From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "seberino@spawar.navy.mil" Newsgroups: gmane.emacs.help Subject: Why save-excursion doesn't restore cursor position after 3 kill-line calls? Date: Thu, 27 Nov 2008 20:40:44 -0800 (PST) Organization: http://groups.google.com Message-ID: <429c5cab-0015-4eb6-a794-ce990c6255d6@q26g2000prq.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227881902 17100 80.91.229.12 (28 Nov 2008 14:18:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Nov 2008 14:18:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 28 15:19:26 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L64Bo-0004qg-5T for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Nov 2008 15:19:24 +0100 Original-Received: from localhost ([127.0.0.1]:37900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L64Ae-0002po-5u for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Nov 2008 09:18:12 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q26g2000prq.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 68.26.25.51 Original-X-Trace: posting.google.com 1227847245 14075 127.0.0.1 (28 Nov 2008 04:40:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 28 Nov 2008 04:40:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q26g2000prq.googlegroups.com; posting-host=68.26.25.51; posting-account=VkuUtQkAAADKqMjRUmZTNs7a8uCSNNy2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164851 X-Mailman-Approved-At: Fri, 28 Nov 2008 09:15:23 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60189 Archived-At: 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