aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-09-12 02:17:20 +0000
committerRichard M. Stallman1999-09-12 02:17:20 +0000
commit19b014e465074c4c1cdb7081bf76cbed1680cfca (patch)
tree37be45583cb31936b83253ea505048fe1b71b08f
parent4adcd90506e21f051c7160296f686031aa5c8188 (diff)
downloademacs-19b014e465074c4c1cdb7081bf76cbed1680cfca.tar.gz
emacs-19b014e465074c4c1cdb7081bf76cbed1680cfca.zip
(eval-last-sexp): If after ?\LETTER, use all of that as the sexp.
-rw-r--r--lisp/emacs-lisp/lisp-mode.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index f5755bc4b8c..00464730359 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -340,6 +340,12 @@ With argument, print output into current buffer."
340 (or (eq (following-char) ?\') 340 (or (eq (following-char) ?\')
341 (eq (preceding-char) ?\'))) 341 (eq (preceding-char) ?\')))
342 (forward-sexp -1) 342 (forward-sexp -1)
343 ;; If we were after `?\e' (or similar case),
344 ;; use the whole thing, not just the `e'.
345 (when (eq (preceding-char) ?\\)
346 (forward-char -1)
347 (when (eq (preceding-char) ??)
348 (forward-char -1)))
343 (save-restriction 349 (save-restriction
344 ;; vladimir@cs.ualberta.ca 30-Jul-1997: skip ` in 350 ;; vladimir@cs.ualberta.ca 30-Jul-1997: skip ` in
345 ;; `variable' so that the value is returned, not the 351 ;; `variable' so that the value is returned, not the