diff options
| author | Alan Mackenzie | 2019-06-13 08:46:30 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2019-06-13 08:46:30 +0000 |
| commit | 95c400a508c5571cb1318334a19e53839bc0c590 (patch) | |
| tree | 4ac3ed5a0efdd1977ee093ace344587188fc626d | |
| parent | 4c3e78a9f4240bff6cf2bbc1f181dd167b712144 (diff) | |
| download | emacs-95c400a508c5571cb1318334a19e53839bc0c590.tar.gz emacs-95c400a508c5571cb1318334a19e53839bc0c590.zip | |
Move declaration of c-syntax-table-hwm to avoid compiler warnings.
This variable was declared after an invocation of a defsubst which used it,
the defsubst being in another file.
* lisp/progmodes/cc-mode (c-syntax-table-hwm): Move the declaration to earlier
in the file.
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index b8e21e24013..83c0e36167d 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -506,6 +506,13 @@ preferably use the `c-mode-menu' language constant directly." | |||
| 506 | ;; and `after-change-functions'. Note that this variable is not set when | 506 | ;; and `after-change-functions'. Note that this variable is not set when |
| 507 | ;; `c-before-change' is invoked by a change to text properties. | 507 | ;; `c-before-change' is invoked by a change to text properties. |
| 508 | 508 | ||
| 509 | (defvar c-syntax-table-hwm most-positive-fixnum) | ||
| 510 | ;; A workaround for `syntax-ppss''s failure to take account of changes in | ||
| 511 | ;; syntax-table text properties. This variable gets set to the lowest | ||
| 512 | ;; position where the syntax-table text property is changed, and that value | ||
| 513 | ;; gets supplied to `syntax-ppss-flush-cache' just before a font locking is | ||
| 514 | ;; due to take place. | ||
| 515 | |||
| 509 | (defun c-basic-common-init (mode default-style) | 516 | (defun c-basic-common-init (mode default-style) |
| 510 | "Do the necessary initialization for the syntax handling routines | 517 | "Do the necessary initialization for the syntax handling routines |
| 511 | and the line breaking/filling code. Intended to be used by other | 518 | and the line breaking/filling code. Intended to be used by other |
| @@ -888,13 +895,6 @@ Note that the style variables are always made local to the buffer." | |||
| 888 | 895 | ||
| 889 | 896 | ||
| 890 | ;;; Change hooks, linking with Font Lock and electric-indent-mode. | 897 | ;;; Change hooks, linking with Font Lock and electric-indent-mode. |
| 891 | (defvar c-syntax-table-hwm most-positive-fixnum) | ||
| 892 | ;; A workaround for `syntax-ppss''s failure to take account of changes in | ||
| 893 | ;; syntax-table text properties. This variable gets set to the lowest | ||
| 894 | ;; position where the syntax-table text property is changed, and that value | ||
| 895 | ;; gets supplied to `syntax-ppss-flush-cache' just before a font locking is | ||
| 896 | ;; due to take place. | ||
| 897 | |||
| 898 | (defun c-called-from-text-property-change-p () | 898 | (defun c-called-from-text-property-change-p () |
| 899 | ;; Is the primitive which invoked `before-change-functions' or | 899 | ;; Is the primitive which invoked `before-change-functions' or |
| 900 | ;; `after-change-functions' one which merely changes text properties? This | 900 | ;; `after-change-functions' one which merely changes text properties? This |