Article View: gnu.emacs.bug
Article #98683behavior change in kill-region (18.55->18.57): C-SPC C-w C-y
From: Michael L. Littman
Date: Fri, 08 Mar 1991 17:04
Date: Fri, 08 Mar 1991 17:04
28 lines
1660 bytes
1660 bytes
Hey folks, I don't read the newsgroups that closely so I apologize if this is a repeat... I am running 18.57 on a Sun 4. I was running 18.55 on a Sun 4. Under 18.57, S.el was behaving strangely. Essentially, when started, an extra character would be inserted into the buffer. I traced this behavior to something of the basic form: (kill-region (point-max) (point-max)) (yank) Apparently, this code behaves somewhat upredicatable depending on what is in the undo list and kill rings. The difference seems to come down to a change in the definition of kill-region between 18.55 and 18.57. It seems that kill-region is now defined so that a region is deleted, and then the top of the undo list is pushed into the kill ring. Normally, this doesn't make any difference, but when delete-region is called with an empty region, the undo list has a nil added instead of an empty string. A simple demonstration of this is: C-SPC C-w C-y. -Michael
Technical Details
Message-ID:
<9103081704.AA02912@breeze.bellcore.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,b7573c4cc67f6687,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-03-08 09:04:45 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage From: mlittman@BREEZE.BELLCORE.COM (Michael L. Littman) Newsgroups: gnu.emacs.bug Subject: behavior change in kill-region (18.55->18.57): C-SPC C-w C-y Message-ID: <9103081704.AA02912@breeze.bellcore.com> Date: 8 Mar 91 17:04:45 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 28 Approved: bug-gnu-emacs@prep.ai.mit.edu