[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: error when loading emacs-w3m when start xemacs

>>>>> In [emacs-w3m : No.03603]
>>>>>	Tatsuya Kinoshita <tats@iris.ne.jp> wrote:

> In message [emacs-w3m:03586], on Sat, 29 Jun 2002,
> alm@nomad.consult-meyers.com wrote:

>> Unknown key-sequence specifier: 67108896

Lucien, thanks for the precise report.

> I guess that emacs-w3m was compiled with GNU Emacs instead of XEmacs.
> A byte-compiled file depends on the flavor of emacsen.

Oops.  Lucien, didn't you use the configure option --with-xemacs
or --with-xemacs=xemacs-21.4.8?  Since the installer of emacs-w3m
uses FSF Emacs by default, that option is needed for XEmacs.

By the way, the error seems to be caused by the following code:

(define-key map [?\C-c?\C- ] 'w3m-history-store-position)

I noticed that the key format [?\C-c?\C- ] doesn't mean C-c C-SPC
in XEmacs.  So, I'll replace it with [?C-c (control space)] later.
Here's the patch for w3m_el-1.2.8:
--- w3m.el~	2002-06-20 03:31:38 +0000
+++ w3m.el	2002-07-01 22:39:01 +0000
@@ -4121,7 +4121,9 @@
       (define-key map [mouse-2] 'w3m-mouse-view-this-url)
       (define-key map [S-mouse-2] 'w3m-mouse-view-this-url-new-session))
     (define-key map "\C-c\C-@" 'w3m-history-store-position)
-    (define-key map [?\C-c?\C- ] 'w3m-history-store-position)
+    (if (featurep 'xemacs)
+	(define-key map [?\C-c (control space)] 'w3m-history-store-position)
+      (define-key map [?\C-c ?\C-\ ] 'w3m-history-store-position))
     (define-key map "\C-c\C-b" 'w3m-history-restore-position)
     (define-key map [left] 'w3m-view-previous-page)
     (define-key map "B" 'w3m-view-previous-page)
Katsumi Yamaoka <yamaoka@jpl.org>