summaryrefslogtreecommitdiff
path: root/lisp/textmodes/texnfo-upd.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-05-26 04:00:52 +0000
committerKarl Heuer <kwzh@gnu.org>1995-05-26 04:00:52 +0000
commit2db10f13d9d2d2f3bf4255e70f24722b98203ed0 (patch)
tree858edb25ab555c52dd36114cf3e6a65cccc62159 /lisp/textmodes/texnfo-upd.el
parent689cee2acc0942f27ef57f6b8c5cf6f4b21cbc55 (diff)
downloademacs-2db10f13d9d2d2f3bf4255e70f24722b98203ed0.tar.gz
emacs-2db10f13d9d2d2f3bf4255e70f24722b98203ed0.tar.bz2
emacs-2db10f13d9d2d2f3bf4255e70f24722b98203ed0.zip
(texinfo-sequentially-find-pointer): Don't modify
the kill ring.
Diffstat (limited to 'lisp/textmodes/texnfo-upd.el')
-rw-r--r--lisp/textmodes/texnfo-upd.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/textmodes/texnfo-upd.el b/lisp/textmodes/texnfo-upd.el
index d43d1c50466..f84cdd51496 100644
--- a/lisp/textmodes/texnfo-upd.el
+++ b/lisp/textmodes/texnfo-upd.el
@@ -1347,10 +1347,9 @@ Point must be at beginning of node line. Does not move point."
Starts from the current position of the cursor, and searches forward
on the line for a comma and if one is found, deletes the rest of the
line, including the comma. Leaves point at beginning of line."
- (if (search-forward "," (save-excursion (end-of-line) (point)) t)
- (progn
- (goto-char (1- (point)))
- (kill-line nil)))
+ (let ((eol-point (save-excursion (end-of-line) (point))))
+ (if (search-forward "," eol-point t)
+ (delete-region (1- (point)) eol-point)))
(beginning-of-line))
(defun texinfo-find-pointer (beginning end level direction)