Package: ess
Version: 5.2.11-1
Severity: normal
Tags: patch

This bug is similar to #340125. See http://bugs.debian.org/340125 for the
full discussion.

In brief: binding "\e\C-h" automatically rebinds [(meta backspace)] in
XEmacs, which does not happen in Emacs.  Below is a simple patch to fix
the problem.  Please consider applying it to the package and/or
forwarding it upstream.  The ess/Xemacs users will appreciate it.


--- ess-5.2.11.orig/lisp/ess-mode.el
+++ ess-5.2.11/lisp/ess-mode.el
@@ -158,6 +158,8 @@
   (define-key ess-mode-map "{"         'ess-electric-brace)
   (define-key ess-mode-map "}"         'ess-electric-brace)
   (define-key ess-mode-map "\e\C-h"    'ess-mark-function)
+  (if (featurep 'xemacs)
+      (define-key ess-mode-map [(meta backspace)] 'backward-kill-word))
   (define-key ess-mode-map "\e\C-q"    'ess-indent-exp)
   (define-key ess-mode-map "\177"      'backward-delete-char-untabify)
   (define-key ess-mode-map "\t"                'ess-indent-command)


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.8-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages ess depends on:
ii  emacs21 [emacsen]             21.4a-3    The GNU Emacs editor
ii  xemacs21-mule [emacsen]       21.4.17-2  highly customizable text editor --
ii  xemacs21-nomule [emacsen]     21.4.17-2  highly customizable text editor --

ess recommends no packages.

-- no debconf information

-- 
Rafael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to