🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99995

updase-region etc. mark empty buffer changed

#99995
From: Jonathan I. Kamens
Date: Mon, 19 Feb 1990 19:38
30 lines
1625 bytes
  All of the functions defined in casefiddle.c mark a buffer changed,
even after doing a case change on a region of length 0 (i.e. not doing
any changes at all).

  The solution to this is to modify the function casify_region() so
that it returns without marking the buffer modified, if the beginning
and end buffer positions are equal.  A patch is appended to the end of
this message.

Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8495			      Home: 617-782-0710

*** /tmp/,RCSt1020127	Mon Feb 19 14:37:39 1990
--- casefiddle.c	Mon Feb 19 14:30:08 1990
***************
*** 110,115 ****
--- 110,119 ----
    prepare_to_modify_buffer ();
    record_change (XFASTINT (b), XFASTINT (e) - XFASTINT (b));
  
+   if (EQ (b, e))
+     /* Not modifying because nothing marked */
+     return (0);
+   
    for (i = XFASTINT (b); i < XFASTINT (e); i++)
      {
        c = CharAt (i);
Technical Details
Message-ID: <9002191938.AA20133@pit-manager.MIT.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!snorkelwacker!tut.cis.ohio-state.edu!PIT-MANAGER.MIT.EDU!jik

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,1d9115782e6eac43,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-02-19 17:48:57 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!snorkelwacker!tut.cis.ohio-state.edu!PIT-MANAGER.MIT.EDU!jik
From: jik@PIT-MANAGER.MIT.EDU (Jonathan I. Kamens)
Newsgroups: gnu.emacs.bug
Subject: updase-region etc. mark empty buffer changed
Message-ID: <9002191938.AA20133@pit-manager.MIT.EDU>
Date: 19 Feb 90 19:38:18 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 30
Posted: Mon Feb 19 20:38:18 1990