help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why save-excursion doesn't restore cursor position after 3 kill-line cal


From: address@hidden
Subject: Why save-excursion doesn't restore cursor position after 3 kill-line calls?
Date: Thu, 27 Nov 2008 20:40:44 -0800 (PST)
User-agent: G2/1.0

I'm trying to map C-d to a function that deletes an entire line and
stops on the *SAME* column number of the following line....

(global-set-key "\^d" (lambda () (interactive) (save-excursion (kill-
line)
 
(kill-line 0)
 
(kill-line))))

Why doesn't save-excursion preserve the column number after these kill-
line invocations?

chris


reply via email to

[Prev in Thread] Current Thread [Next in Thread]