|
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
[Prev in Thread] | Current Thread | [Next in Thread] |