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
commitcfad3c5b4fdfe8e886a050de7f95d6b301df7a59 (patch)
treea054bbcc2c3b9c378aede9eccad25f32a547f1c8 /lisp/textmodes/texnfo-upd.el
parentae7784fb890b713151c10c9e0cd9bdf3ebffc9d0 (diff)
downloademacs-cfad3c5b4fdfe8e886a050de7f95d6b301df7a59.tar.gz
(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)