(last-sexp-toggle-display): Cope if previous-single-property-change or
next-single-char-property-change returns nil.
This commit is contained in:
parent
830047fdb6
commit
48461f7cde
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
||||||
2001-11-04 Richard M. Stallman <rms@gnu.org>
|
2001-11-04 Richard M. Stallman <rms@gnu.org>
|
||||||
|
|
||||||
|
* emacs-lisp/lisp-mode.el (last-sexp-toggle-display): Cope if
|
||||||
|
previous-single-property-change or next-single-char-property-change
|
||||||
|
returns nil.
|
||||||
|
|
||||||
* international/mule-cmds.el (set-locale-environment):
|
* international/mule-cmds.el (set-locale-environment):
|
||||||
Make it interactive; make arg optional.
|
Make it interactive; make arg optional.
|
||||||
|
|
||||||
|
|
|
@ -406,8 +406,8 @@ alternative printed representations that can be displayed."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((value (get-text-property (point) 'printed-value)))
|
(let ((value (get-text-property (point) 'printed-value)))
|
||||||
(when value
|
(when value
|
||||||
(let ((beg (previous-single-property-change (point) 'printed-value))
|
(let ((beg (or (previous-single-property-change (point) 'printed-value) (point)))
|
||||||
(end (next-single-char-property-change (point) 'printed-value))
|
(end (or (next-single-char-property-change (point) 'printed-value) (point)))
|
||||||
(standard-output (current-buffer))
|
(standard-output (current-buffer))
|
||||||
(point (point)))
|
(point (point)))
|
||||||
(delete-region beg end)
|
(delete-region beg end)
|
||||||
|
|
Loading…
Add table
Reference in a new issue