From bug-request at octave dot org Tue Nov 29 21:01:20 2005 Subject: Re: octave-mod.el: wrong binding for M-BS in XEmacs From: Rafael Laboissiere To: "John W. Eaton" Cc: bug at octave dot org Date: Wed, 23 Nov 2005 02:02:28 -0600 * John W. Eaton [2005-11-22 22:47]: > With this patch, is there no key binding for octave-mark-defun in > XEmacs? Wouldn't it be best to come up with a key binding for > octave-mark-defun that would work in both systems? I don't have a > preference for a keybinding. What do other modes do for similar > operations? Yes, with the proposed patch, I have in both XEmacs and Emacs: [(meta) (control) h] -> bound to octave-mark-defun [(meta) (backspace)] -> bound to backward-kill-word According to the XEmacs Lisp documentation, binding the key sequence "\M-\C-h", which contains an ASCII character "C-h", also binds the key sequence defined symbolically by [(meta backspace)]. The converse is not true, and since my patch does things in order: (define-key map "\M-\C-h" 'octave-mark-defun) (if octave-xemacs-p (define-key map [(meta backspace)] 'backward-kill-word)) the result above is guaranteed. I have tested this in both xemacs21 and emacs21. > GNU Emacs also includes a copy of octave-mod.el. I'd like to keep the > two versions synchronized as much as possible, so once we agree on a > change, I think it would be good if you could try to have it included > in the GNU Emacs sources for octave-mod.el as well. Even though the patch is exclusively for XEmacs and it does not result in any difference for Emacs users, I think the GNU Emacs people will be willing to apply it. At any rate, the versions of octave-mod.el in the Octave 2.1.72 tarball, in the 2.9.4 tarball, and that distributed by GNU (Debian package emacs-snapshot_20051117-1, the most recent), all the three differ. Which one should be considered the master source? -- Rafael ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------