diff options
| author | Lars Ingebrigtsen | 2019-06-12 17:45:59 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-12 17:46:06 +0200 |
| commit | 48178edeed1006775a4a6755c6ee22bf5ab7a8e4 (patch) | |
| tree | 3e7d2065bf97053428330fb5192e9dcd1e2dd233 | |
| parent | e4fd2cfc72dcecfd458ecaca334b79d7e4448545 (diff) | |
| download | emacs-48178edeed1006775a4a6755c6ee22bf5ab7a8e4.tar.gz emacs-48178edeed1006775a4a6755c6ee22bf5ab7a8e4.zip | |
(beginning-of-defun-raw): Suppress warning about syntax-begin-function
* lisp/emacs-lisp/lisp.el (beginning-of-defun-raw):
font-lock-compile-keywords also suppresses warnings about the
obsolete syntax-begin-function variable, so suppress the only
other use not in syntax.el.
| -rw-r--r-- | lisp/emacs-lisp/lisp.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index 38df920f17a..ab0e853e9a4 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el | |||
| @@ -370,8 +370,9 @@ is called as a function to find the defun's beginning." | |||
| 370 | (arg-+ve (> arg 0))) | 370 | (arg-+ve (> arg 0))) |
| 371 | (save-restriction | 371 | (save-restriction |
| 372 | (widen) | 372 | (widen) |
| 373 | (let ((ppss (let (syntax-begin-function) | 373 | (let ((ppss (with-suppressed-warnings ((obsolete syntax-begin-function)) |
| 374 | (syntax-ppss))) | 374 | (let (syntax-begin-function) |
| 375 | (syntax-ppss)))) | ||
| 375 | ;; position of least enclosing paren, or nil. | 376 | ;; position of least enclosing paren, or nil. |
| 376 | encl-pos) | 377 | encl-pos) |
| 377 | ;; Back out of any comment/string, so that encl-pos will always | 378 | ;; Back out of any comment/string, so that encl-pos will always |