unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Minor safe patch in CC
@ 2007-04-24 15:35 Stefan Monnier
  2007-04-28 20:37 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2007-04-24 15:35 UTC (permalink / raw)
  To: emacs-devel

I had to install the patch below to avoid minor problem when modifying the
first char in a narrowed region.


        Stefan


--- orig/lisp/progmodes/cc-mode.el
+++ mod/lisp/progmodes/cc-mode.el
@@ -522,7 +522,7 @@
 	    (setq lim (max (point-min) (1- (point))))
 
 	    ;; Look for the latest `c-type' property before end1
-	    (when (and (> end1 1)
+	    (when (and (> end1 (point-min))
 		       (setq type-pos
 			     (if (get-text-property (1- end1) 'c-type)
 				 end1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Minor safe patch in CC
  2007-04-24 15:35 Minor safe patch in CC Stefan Monnier
@ 2007-04-28 20:37 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2007-04-28 20:37 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier wrote:

> I had to install the patch below to avoid minor problem when modifying the
> first char in a narrowed region.

Given the other changes that have gone in, it would have been
laughable not to install this, so I installed it on trunk and branch.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-28 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-24 15:35 Minor safe patch in CC Stefan Monnier
2007-04-28 20:37 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).