Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
30665:6f2c9914b5b0 | 30666:d470d496fd53 |
---|---|
347 ;; use the whole thing, not just the `e'. | 347 ;; use the whole thing, not just the `e'. |
348 (when (eq (preceding-char) ?\\) | 348 (when (eq (preceding-char) ?\\) |
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 |
355 ;; name | 365 ;; name |
356 (if (and ignore-quotes | 366 (if (and ignore-quotes |