[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Minor safe patch in CC
From: |
Stefan Monnier |
Subject: |
Minor safe patch in CC |
Date: |
Tue, 24 Apr 2007 11:35:53 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux) |
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
- Minor safe patch in CC,
Stefan Monnier <=