From cfad3c5b4fdfe8e886a050de7f95d6b301df7a59 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 26 May 1995 04:00:52 +0000 Subject: (texinfo-sequentially-find-pointer): Don't modify the kill ring. --- lisp/textmodes/texnfo-upd.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lisp/textmodes/texnfo-upd.el') 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) -- cgit v1.2.1