[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 42751f4 4/7: * lisp/cedet/semantic/fw.el (semantic-find-file-nose
From: |
Stefan Monnier |
Subject: |
master 42751f4 4/7: * lisp/cedet/semantic/fw.el (semantic-find-file-noselect): Fix warning |
Date: |
Sun, 7 Mar 2021 19:07:35 -0500 (EST) |
branch: master
commit 42751f440dc46628ac09a522026f4ce41cada8d3
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* lisp/cedet/semantic/fw.el (semantic-find-file-noselect): Fix warning
Remove ugly hack trying to warn the user about some unknown problem,
and which stopped working in 2013 when files.el started using
lexical-binding.
---
lisp/cedet/semantic/fw.el | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el
index 3c36c6c..bdead99 100644
--- a/lisp/cedet/semantic/fw.el
+++ b/lisp/cedet/semantic/fw.el
@@ -322,17 +322,7 @@ calling this one."
"Call `find-file-noselect' with various features turned off.
Use this when referencing a file that will be soon deleted.
FILE, NOWARN, RAWFILE, and WILDCARDS are passed into `find-file-noselect'."
- ;; Hack -
- ;; Check if we are in set-auto-mode, and if so, warn about this.
- (when (boundp 'keep-mode-if-same)
- (let ((filename (or (and (boundp 'filename) filename)
- "(unknown)")))
- (message "WARNING: semantic-find-file-noselect called for \
-%s while in set-auto-mode for %s. You should call the responsible function \
-into `mode-local-init-hook'." file filename)
- (sit-for 1)))
-
- (let* ((recentf-exclude '( (lambda (f) t) ))
+ (let* ((recentf-exclude #'always)
;; This is a brave statement. Don't waste time loading in
;; lots of modes. Especially decoration mode can waste a lot
;; of time for a buffer we intend to kill.
- master updated (c63d2ef -> 7e1cfa2), Stefan Monnier, 2021/03/07
- master c4f49d7 3/7: * lisp/skeleton.el (skeleton-read): Silence compiler warning, Stefan Monnier, 2021/03/07
- master 26bfd0c 2/7: * lisp/cedet/semantic/bovine.el: Fix recent regression, Stefan Monnier, 2021/03/07
- master 251dea6 1/7: * lisp/emacs-lisp/bytecomp.el: Warn about unprefixed vars in `boundp`, Stefan Monnier, 2021/03/07
- master 42751f4 4/7: * lisp/cedet/semantic/fw.el (semantic-find-file-noselect): Fix warning,
Stefan Monnier <=
- master 490f830 6/7: * lisp/net/ange-ftp.el: Fix problem pointed out by compiler warning, Stefan Monnier, 2021/03/07
- master fb779e9 5/7: * lisp/erc/erc.el: Fix problem pointed out by compiler warning, Stefan Monnier, 2021/03/07
- master 7e1cfa2 7/7: * lisp/net/tramp-cache.el: Fix misuse of bound-and-true-p, Stefan Monnier, 2021/03/07