Skip to content

Commit 5434784

Browse files
committed
Fix breaking read-only access to submodules when AUTO expanding.
* verilog-mode.el (verilog-scan): Fix breaking read-only access to submodules when AUTO expanding, broke in r598. git-svn-id: file:///verilog-mode-svn/trunk@604 db5bb42b-8904-0410-88e9-aa7026cf2ec3
1 parent 6c23362 commit 5434784

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.cvsignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ e
66
emacs-version.h
77
gnu22
88
gnuhead
9+
gnutrunk
910
mmencoded_verilog-mode
1011
skip_for_xemacs
1112
verilog-mode-gnu-want.el

verilog-mode.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -2583,7 +2583,8 @@ either is ok to parse as a non-comment, or `verilog-insert' was used."
25832583
(equal verilog-scan-cache-tick (buffer-modified-tick)))
25842584
(setq verilog-scan-cache-tick (buffer-modified-tick))
25852585
(save-excursion
2586-
(let ((was-mod (buffer-modified-p)))
2586+
(let ((was-mod (buffer-modified-p))
2587+
(buffer-read-only nil))
25872588
(remove-text-properties (point-min) (point-max) '(v-cmt nil))
25882589
(verilog-scan-region (point-min) (point-max))
25892590
(unless was-mod (set-buffer-modified-p nil))))))

0 commit comments

Comments
 (0)