[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-awk.el
From: |
Alan Mackenzie |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-awk.el |
Date: |
Fri, 24 Feb 2006 15:33:03 +0000 |
Index: emacs/lisp/progmodes/cc-awk.el
diff -u emacs/lisp/progmodes/cc-awk.el:1.8 emacs/lisp/progmodes/cc-awk.el:1.9
--- emacs/lisp/progmodes/cc-awk.el:1.8 Fri Feb 10 09:00:31 2006
+++ emacs/lisp/progmodes/cc-awk.el Fri Feb 24 15:33:02 2006
@@ -1,7 +1,7 @@
;;; cc-awk.el --- AWK specific code within cc-mode.
-;; Copyright (C) 1988,94,96,2000, 2001, 2002, 2003, 2004, 2005, 2006
-;; Free Software Foundation, Inc.
+;; Copyright (C) 1988,94,96,2000, 2001, 2002, 2003, 2004, 2005, 2006 Free
+;; Software Foundation, Inc.
;; Author: Alan Mackenzie <address@hidden> (originally based on awk-mode.el)
;; Maintainer: FSF
@@ -804,7 +804,7 @@
(defun c-awk-end-of-change-region (beg end old-len)
;; Find the end of the region which needs to be font-locked after a change.
;; This is the end of the logical line on which the change happened, either
- ;; as it was before the change, or as it is now, which ever is later.
+ ;; as it was before the change, or as it is now, whichever is later.
;; N.B. point is left undefined.
;;
;; This function might do hidden buffer changes.
@@ -822,11 +822,12 @@
(unless (and (boundp 'font-lock-mode) font-lock-mode)
(save-restriction
(save-excursion
- (setq end (c-awk-end-of-change-region beg end old-len))
- (c-awk-beginning-of-logical-line beg)
- (c-save-buffer-state nil ; So that read-only status isn't affected.
+ (save-match-data
+ (setq end (c-awk-end-of-change-region beg end old-len))
+ (c-awk-beginning-of-logical-line beg)
+ (c-save-buffer-state nil ; So that read-only status isn't affected.
; (e.g. when first loading the buffer)
- (c-awk-set-syntax-table-properties end))))))
+ (c-awk-set-syntax-table-properties end)))))))
;; ACM 2002/5/25. When font-locking is invoked by a buffer change, the region
;; specified by the font-lock after-change function must be expanded to