Skip to content

Commit 48178ed

Browse files
committed
(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.
1 parent e4fd2cf commit 48178ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lisp/emacs-lisp/lisp.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,9 @@ is called as a function to find the defun's beginning."
370370
(arg-+ve (> arg 0)))
371371
(save-restriction
372372
(widen)
373-
(let ((ppss (let (syntax-begin-function)
374-
(syntax-ppss)))
373+
(let ((ppss (with-suppressed-warnings ((obsolete syntax-begin-function))
374+
(let (syntax-begin-function)
375+
(syntax-ppss))))
375376
;; position of least enclosing paren, or nil.
376377
encl-pos)
377378
;; Back out of any comment/string, so that encl-pos will always

0 commit comments

Comments
 (0)