summaryrefslogtreecommitdiff
path: root/lisp/cedet
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2021-03-07 19:05:02 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2021-03-07 19:05:02 -0500
commit42751f440dc46628ac09a522026f4ce41cada8d3 (patch)
tree0ac34a6b8462bf51e720f51d13997eeabfee00f2 /lisp/cedet
parentc4f49d7609f63d6a8d7a57c7fc6cd14d9b0b9ab0 (diff)
* 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.
Diffstat (limited to 'lisp/cedet')
-rw-r--r--lisp/cedet/semantic/fw.el12
1 files changed, 1 insertions, 11 deletions
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el
index 3c36c6cb9f8..bdead99d68b 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.