[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Once more emacs-w3m and w3mmee
- From: ino-qc@xxxxxxxxxxxxxxxxxxxxxxxxx (C. Fischer)
- Date: Sat, 28 May 2005 22:22:32 +0200
- X-ml-name: emacs-w3m
- X-mail-count: 08115
- References: <87y8cpvs75.fsf@denkblock.local>
* 2005-03-14 Elias Oltmanns:
> - Debian/Sarge with utf-8 locale (de_DE.UTF-8);
> - w3mmee: w3m/0.3.2+mee-p24-19+moe-1.5.0;
there are newer versions out, btw.
> - emacs: GNU Emacs 21.3.1;
> - emacs-w3m: cvs branch updated this morning.
>
> ---- ~/.w3mmee/config ----
> tty_charset utf-8
> ;mylang_charset ISO-8859-1
> mylang de,en
> mylang_charset ISO-8859-1
> ---- ~/.w3mmee/config ----
is this the entire config? i noticed that with w3mmee, you can tick the
values you want saved, it took me some time to realize that you should check
off *all* values to get a complete config. for some unknown reason, this
makes a subtle difference.
> ---- ~/.emacs ----
> ...
> (setq locale-coding-system 'utf-8)
> (set-terminal-coding-system 'utf-8)
> (set-keyboard-coding-system 'utf-8)
> (set-selection-coding-system 'utf-8)
> (require 'w3m-load)
> (setq w3m-command "/usr/bin/w3mmee")
> ;(setq w3m-output-coding-system 'utf-8)
> (setq w3m-coding-system-priority-list '(iso-8859-1 utf-8))
> ...
> ---- ~/.emacs ----
all i have here is:
(when (>= emacs-major-version 21)
(require 'ucs-tables)
(unless (>= emacs-minor-version 3)
(load-library "utf-8"))
(unify-8859-on-encoding-mode 1)
(unify-8859-on-decoding-mode 1))
(prefer-coding-system 'iso-latin-1); 'utf-8; setzt auch *coding-system!
(add-hook 'kill-emacs-hook (lambda () (when (fboundp 'w3m-cookie-shutdown) (w3m-cookie-shutdown))))
(setq
w3m-command "/usr/local/bin/w3mmee"
;;w3m-command "/usr/local/bin/w3m"
;;w3m-type 'w3m; automatic! never set!
w3m-output-coding-system 'utf-8; 'ctext; 'w3m-iso-latin-1 'raw-text
w3m-treat-image-size nil; t
w3m-coding-system 'iso-8859-1; 'utf-8; 'iso-8859-1; iso-2022-7bit-ss2
w3m-default-coding-system 'iso-8859-1; 'utf-8; 'iso-8859-1
w3m-coding-system-priority-list '(utf-8 iso-8859-1 shift_jis)
)
*but* i run emacs-cvs in iso-8859-1! my locale is a german UTF-8, like yours.
on freebsd-5.4-i368, i should add. do you have a "~/.emacs-w3m.el" file?
mine contains:
(setq
w3m-cookie-accept-bad-cookies t; 'ask; t, nil
w3m-cookie-accept-domains '(
"google.com" "google.de"
"yahoo.com" ".yahoo.com" "groups.yahoo.com"
"www.dyndns.org"
)
w3m-cookie-file "/root/.w3m/.cookie"
w3m-display-message-enable-logging t; nil
w3m-home-page "http://www.bbspot.com/"
w3m-horizontal-shift-columns 1; 2
w3m-image-viewer "/usr/X11R6/bin/xv"
w3m-init-file "~/.emacs.d/.emacs-w3m"
w3m-tab-width 8; 16
w3m-use-ange-ftp nil
w3m-use-favicon nil
w3m-treat-image-size nil; workaround 4 new w3m
w3m-display-message-enable-logging t
w3m-default-save-directory "/dl/"
;;w3m-async-exec nil ; can also be t, but no passwords then...?
w3m-use-cookies t
w3m-use-header-line t
w3m-icon-directory "/emacs/site-lisp/emacs-w3m"
w3m-bookmark-file-coding-system 'iso-8859-1
w3m-session-load-always nil; t w3m-session-load will *not* confirm
w3m-session-save-always nil; t w3m-session-load will *not* confirm
w3m-session-file "~/.emacs.d/.w3m-session"; session safe
;;w3m-symbol '("-+" " |" "--" " +" "-|" " |" "-+" ""
;; "--" " +" "--" "" "-+" "" "" ""
;; "-+" " |" "--" " +" "-|" " |" "-+" ""
;; "--" " +" "--" "" "-+" "" "" ""
;; " *" " +" " o" " #" " @" " -"
;; " =" " x" " %" " *" " o" " #"
;; " #"
;; "<=UpDn ")
;;w3m-default-symbol w3m-symbol
w3m-make-new-session t ; open URL in new TAB (close by C-c C-w)
)
(define-key w3m-mode-map [up] 'previous-line)
(define-key w3m-mode-map [down] 'next-line)
(define-key w3m-mode-map [right] 'forward-char)
(define-key w3m-mode-map [left] 'backward-char)
(define-key w3m-mode-map [?p] 'w3m-view-previous-page)
(define-key w3m-mode-map [backspace] 'w3m-view-previous-page)
(define-key w3m-mode-map [tab] 'w3m-next-anchor)
(define-key w3m-mode-map [\S-tab] 'w3m-previous-anchor)
as you might deduce from this, my problems lie with cookies and the spiffy new
table symbols, which i need in ASCII to save tables elsewhere.
> Personally I'm not quite sure whether the w3mmee process started by emacs is
> actually running in utf-8 mode, that is to say, whether
> /etc/w3mmee/w3mconfig.utf-8 is parsed rather than one of the other config
> files.
you might at least try to check the access times of those files. mine look
like this currently:
/www/src/emacs-w3m
0 p1 # lta /l/etc/w3mmee/
total 32
1469573 lrwxr-x--x 1 root wheel - 15 27 Nov 21:27 w3mconfig_jp.euc@ -> w3mconfig.eucjp
1470201 -rw-r--r-- 1 root wheel - 928 25 Mai 18:29 w3mmenu.ja
1470198 -rw-r--r-- 1 root wheel - 4194 25 Mai 18:29 w3mconfig.sjis
1470194 -rw-r--r-- 1 root wheel - 33 25 Mai 18:29 w3mconfig.ru_ru
1470114 -rw-r--r-- 1 root wheel - 19 25 Mai 18:29 w3mconfig.koi8-r
1468805 -rw-r--r-- 1 root wheel - 4302 25 Mai 18:29 w3mconfig.eucjp
1468778 -rw-r--r-- 1 root wheel - 7517 25 Mai 18:29 w3mconfig.eucjisx0208
1468762 -rw-r--r-- 1 root wheel - 743 25 Mai 18:29 w3mconfig.big5
1470199 -rw-r--r-- 1 root wheel - 717 28 Mai 21:52 w3mconfig.utf-8
1470145 -rw-r--r-- 1 root wheel - 1472 28 Mai 22:07 w3mconfig.kterm
1469013 -rw-r--r-- 1 root wheel - 104 28 Mai 22:07 w3mconfig.ja
1468706 -rw-r--r-- 1 root wheel - 319 28 Mai 22:07 w3mconfig
1470222 -rw-r--r-- 1 root wheel - 165 28 Mai 22:07 browsecap
881428 drwxr-xr-x 20 root wheel - 3072 28 Mai 22:15 ../
1469418 drwxr-x--x 2 root wheel - 512 28 Mai 22:15 ./
looks like w3mmee sucks those files on seeing the encoding of some pages?
note that w3m{,mee} doesn't run as a permanent "co-process", but is called on
every single URL visited.
> Have you any ideas how to track this problem down?
we're getting there ...
clemens
(you can talk to me privately and in german, if you see an advantage in it.)