From acm@muc.de Fri Oct 2 07:11:35 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Oct 2009 14:11:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n92EBXlg031127 for ; Fri, 2 Oct 2009 07:11:35 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mtir6-0008D1-TK for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2009 10:11:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mtir2-00081u-10 for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2009 10:11:32 -0400 Received: from [199.232.76.173] (port=47621 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mtir1-00081a-OC for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2009 10:11:27 -0400 Received: from colin.muc.de ([193.149.48.1]:4136 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mtir1-00048c-86 for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2009 10:11:27 -0400 Received: (qmail 3645 invoked by uid 3782); 2 Oct 2009 14:11:23 -0000 Received: from acm.muc.de (pD9E5205F.dip.t-dialin.net [217.229.32.95]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Fri, 02 Oct 2009 16:11:22 +0200 Received: (qmail 7621 invoked by uid 1000); 2 Oct 2009 14:15:20 -0000 Date: Fri, 2 Oct 2009 14:15:20 +0000 To: Stefan Monnier Cc: bug-gnu-emacs@gnu.org Subject: Re: Description of `buffer-swap-text' is vague and inadequate. Message-ID: <20091002141520.GA7535@muc.de> References: <20091001094854.GB4599@muc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 Hi, Stefan, On Thu, Oct 01, 2009 at 09:56:00AM -0400, Stefan Monnier wrote: > > The Elisp manual page "Swapping Text", says that `buffer-swap-text' > > "swaps text between the current buffer and its argument BUFFER." > > This tells me nothing. I'd have to read the source (or maybe try it > > out) to find out what this function does. > > What does "swap" mean here? How much text is "swapped". What does > > "between" mean? > > A naive guess would suggest this command takes a bit of text out of > > buffer A and dumps it into buffer B, simultaneously moving a bit of B > > into A. > No, it swaps the whole freakin' text, including text-properties, > markers, and overlays. So at the end, buffer A has buffer B's text and > vice versa. Ah. OK, got you! I'll patch in a "the" sometime, to make it "swaps THE text between .....". But overlays? Overlays aren't part of the text (thought text-properties are). But this has probably been talked through anyway, some long time ago. Sounds like a brilliant idea, though - you could use this for several major modes in the same "buffer", somehow. > > There is also no entry in .../src/ChangeLog (or ChangeLog.10, ...) > > marking the introduction of this command. > grep disagrees: Apologies. I was grepping for "buffer-swap-text". > -- Stefan -- Alan Mackenzie (Nuremberg, Germany). From rgm@gnu.org Fri Oct 2 17:15:07 2009 Received: (at control) by emacsbugs.donarmstrong.com; 3 Oct 2009 00:15:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.5 required=4.0 tests=AWL,ONEWORD,VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n930F5Nc028519 for ; Fri, 2 Oct 2009 17:15:06 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MtsHB-0002df-2y; Fri, 02 Oct 2009 20:15:05 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19142.38793.26660.496725@fencepost.gnu.org> Date: Fri, 2 Oct 2009 20:15:05 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: yellow X-Ran: `1HVlPAe]oX58p&Mww>"vcHF148BX1RE=klf?{tlYoKADa1BE*zv) id 1NaGMs-0000c3-Bf for submit@debbugs.gnu.org; Wed, 27 Jan 2010 17:28:10 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NaGMr-0000by-0E for control@debbugs.gnu.org; Wed, 27 Jan 2010 17:28:09 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NaGMn-0007OK-3v; Wed, 27 Jan 2010 17:28:05 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19296.48629.96436.638769@fencepost.gnu.org> Date: Wed, 27 Jan 2010 17:28:05 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: cyan X-Ran: 0TV}r/rsw&u^pJU\=0+2(iP_DvG;#sy=b-[j^^4Y%q'cqa)&LXPkw?icI:bXVA9JYlF9%K X-Debbugs-No-Ack: yes X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) close 4605 severity 4610 wishlist severity 4629 important tags 4629 patch severity 4655 minor From unknown Sat Aug 16 18:46:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 25 Feb 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator