unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Why save-excursion doesn't restore cursor position after 3 kill-line calls?
@ 2008-11-28  4:40 seberino
  2008-11-28 10:00 ` Barry Margolin
  0 siblings, 1 reply; 10+ messages in thread
From: seberino @ 2008-11-28  4:40 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-11-29 17:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28  4:40 Why save-excursion doesn't restore cursor position after 3 kill-line calls? seberino
2008-11-28 10:00 ` Barry Margolin
2008-11-28 15:59   ` tyler
2008-11-28 22:49     ` Stephen Berman
     [not found]   ` <mailman.1440.1227888009.26697.help-gnu-emacs@gnu.org>
2008-11-28 16:43     ` Xah Lee
2008-11-28 20:18       ` tyler
     [not found]       ` <mailman.1449.1227903504.26697.help-gnu-emacs@gnu.org>
2008-11-28 22:35         ` Andreas Politz
2008-11-28 23:18           ` tyler
     [not found]           ` <mailman.1463.1227914342.26697.help-gnu-emacs@gnu.org>
2008-11-29  8:21             ` Barry Margolin
2008-11-29 17:28               ` tyler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).