Mercurial > emacs
diff lisp/emacs-lisp/lisp-mode.el @ 30666:d470d496fd53
(eval-last-sexp-1): Handle `#N=' labels.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 08 Aug 2000 12:16:11 +0000 |
parents | 16e560dd4ab8 |
children | a6eff9b566ae |
line wrap: on
line diff
--- a/lisp/emacs-lisp/lisp-mode.el Tue Aug 08 11:05:38 2000 +0000 +++ b/lisp/emacs-lisp/lisp-mode.el Tue Aug 08 12:16:11 2000 +0000 @@ -349,6 +349,16 @@ (forward-char -1) (when (eq (preceding-char) ??) (forward-char -1))) + + ;; Skip over `#N='s. + (when (eq (preceding-char) ?=) + (let (labeled-p) + (save-excursion + (skip-chars-backward "0-9#=") + (setq labeled-p (looking-at "\\(#[0-9]+=\\)+"))) + (when labeled-p + (forward-sexp -1)))) + (save-restriction ;; vladimir@cs.ualberta.ca 30-Jul-1997: skip ` in ;; `variable' so that the value is returned, not the