diff options
| author | Gerd Moellmann | 2000-08-08 12:16:11 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-08-08 12:16:11 +0000 |
| commit | 07ca56eb35f7d46b1a50cee59f8798528026b192 (patch) | |
| tree | d74bebce76429103838142547bdf28854689f77e | |
| parent | 704bdba16c44b303541bc87a259de031c3db98ed (diff) | |
| download | emacs-07ca56eb35f7d46b1a50cee59f8798528026b192.tar.gz emacs-07ca56eb35f7d46b1a50cee59f8798528026b192.zip | |
(eval-last-sexp-1): Handle `#N=' labels.
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 4a794883bd9..f48ecf8be69 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -349,6 +349,16 @@ With argument, print output into current buffer." | |||
| 349 | (forward-char -1) | 349 | (forward-char -1) |
| 350 | (when (eq (preceding-char) ??) | 350 | (when (eq (preceding-char) ??) |
| 351 | (forward-char -1))) | 351 | (forward-char -1))) |
| 352 | |||
| 353 | ;; Skip over `#N='s. | ||
| 354 | (when (eq (preceding-char) ?=) | ||
| 355 | (let (labeled-p) | ||
| 356 | (save-excursion | ||
| 357 | (skip-chars-backward "0-9#=") | ||
| 358 | (setq labeled-p (looking-at "\\(#[0-9]+=\\)+"))) | ||
| 359 | (when labeled-p | ||
| 360 | (forward-sexp -1)))) | ||
| 361 | |||
| 352 | (save-restriction | 362 | (save-restriction |
| 353 | ;; vladimir@cs.ualberta.ca 30-Jul-1997: skip ` in | 363 | ;; vladimir@cs.ualberta.ca 30-Jul-1997: skip ` in |
| 354 | ;; `variable' so that the value is returned, not the | 364 | ;; `variable' so that the value is returned, not the |