From 2db10f13d9d2d2f3bf4255e70f24722b98203ed0 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 26 May 1995 04:00:52 +0000 Subject: [PATCH] (texinfo-sequentially-find-pointer): Don't modify the kill ring. --- lisp/textmodes/texnfo-upd.el | 7 +++---- 1 file 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) -- 2.39.2