(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.
This commit is contained in:
parent
e4fd2cfc72
commit
48178edeed
1 changed files with 3 additions and 2 deletions
|
@ -370,8 +370,9 @@ is called as a function to find the defun's beginning."
|
|||
(arg-+ve (> arg 0)))
|
||||
(save-restriction
|
||||
(widen)
|
||||
(let ((ppss (let (syntax-begin-function)
|
||||
(syntax-ppss)))
|
||||
(let ((ppss (with-suppressed-warnings ((obsolete syntax-begin-function))
|
||||
(let (syntax-begin-function)
|
||||
(syntax-ppss))))
|
||||
;; position of least enclosing paren, or nil.
|
||||
encl-pos)
|
||||
;; Back out of any comment/string, so that encl-pos will always
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue