diff options
| author | Richard M. Stallman | 2001-11-05 02:35:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-11-05 02:35:44 +0000 |
| commit | 48461f7cdec26eca9e5d71eb904699376a2296f6 (patch) | |
| tree | c65611c4af4e4e5d62d7fb5e2526c1c75baf1a00 | |
| parent | 830047fdb65770704faf43fec7ecac3f3d916cf0 (diff) | |
| download | emacs-48461f7cdec26eca9e5d71eb904699376a2296f6.tar.gz emacs-48461f7cdec26eca9e5d71eb904699376a2296f6.zip | |
(last-sexp-toggle-display): Cope if previous-single-property-change or
next-single-char-property-change returns nil.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ce8c9aba4bd..60640ca163b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2001-11-04 Richard M. Stallman <rms@gnu.org> | 1 | 2001-11-04 Richard M. Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * emacs-lisp/lisp-mode.el (last-sexp-toggle-display): Cope if | ||
| 4 | previous-single-property-change or next-single-char-property-change | ||
| 5 | returns nil. | ||
| 6 | |||
| 3 | * international/mule-cmds.el (set-locale-environment): | 7 | * international/mule-cmds.el (set-locale-environment): |
| 4 | Make it interactive; make arg optional. | 8 | Make it interactive; make arg optional. |
| 5 | 9 | ||
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index ed25088a93d..34321783b81 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -406,8 +406,8 @@ alternative printed representations that can be displayed." | |||
| 406 | (interactive) | 406 | (interactive) |
| 407 | (let ((value (get-text-property (point) 'printed-value))) | 407 | (let ((value (get-text-property (point) 'printed-value))) |
| 408 | (when value | 408 | (when value |
| 409 | (let ((beg (previous-single-property-change (point) 'printed-value)) | 409 | (let ((beg (or (previous-single-property-change (point) 'printed-value) (point))) |
| 410 | (end (next-single-char-property-change (point) 'printed-value)) | 410 | (end (or (next-single-char-property-change (point) 'printed-value) (point))) |
| 411 | (standard-output (current-buffer)) | 411 | (standard-output (current-buffer)) |
| 412 | (point (point))) | 412 | (point (point))) |
| 413 | (delete-region beg end) | 413 | (delete-region beg end) |