From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: two more emacs questions Date: Sat, 18 Nov 2006 12:02:35 +0200 Message-ID: References: <009d01c70a7b$6731f190$6b01a8c0@dimalaptop> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1163844205 16515 80.91.229.2 (18 Nov 2006 10:03:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Nov 2006 10:03:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 18 11:03:22 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GlN2d-0001yx-NT for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Nov 2006 11:03:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlN2d-0004Ke-AI for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Nov 2006 05:03:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GlN22-00045L-8x for help-gnu-emacs@gnu.org; Sat, 18 Nov 2006 05:02:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GlN1z-00042s-HH for help-gnu-emacs@gnu.org; Sat, 18 Nov 2006 05:02:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlN1z-00042Y-7v for help-gnu-emacs@gnu.org; Sat, 18 Nov 2006 05:02:39 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GlN1y-00046r-LP for help-gnu-emacs@gnu.org; Sat, 18 Nov 2006 05:02:38 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-68-107.inter.net.il [80.230.68.107]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id GHH44561 (AUTH halo1); Sat, 18 Nov 2006 12:02:34 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: <009d01c70a7b$6731f190$6b01a8c0@dimalaptop> (vb@vsbe.com) 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:38794 Archived-At: > From: "Vadim Bendebury" > Date: Fri, 17 Nov 2006 11:05:50 -0800 > > Another emacs annoyance (at least for us, unfortunate users of other, less > priviledged editors ;-)) is its handling of undo. It does not consider > highligting of the part of the file (like setting marks around a block of > code) a separate operation. Say I highlighted a 10 line block, cut it, moved > the cursor to another place in the file and pasted the block there. Then I > wanted to actually decrease the amount of moved code. I hit undo a few > times, it does put the code back where it came from, but it skips the > highlighting step, so at this time, if I wanted to move a 9 line block > instead of 10 - I need to highlight the entire block again instead of just > shrinking the highlighted area by a line. Is there a way to make it consider > highligting a part of the command sequence and folow it in the undo path? Doesn't "C-x C-x" re-highlight the block again?