Function: semantic-find-file-noselect
semantic-find-file-noselect is a byte-compiled function defined in
fw.el.gz.
Signature
(semantic-find-file-noselect FILE &optional NOWARN RAWFILE WILDCARDS)
Documentation
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.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/fw.el.gz
(defun semantic-find-file-noselect (file &optional nowarn rawfile wildcards)
"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'."
(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.
(semantic-init-hook nil)
;; This disables the part of EDE that asks questions
(ede-auto-add-method 'never)
;; Ask font-lock to not colorize these buffers, nor to
;; whine about it either.
(global-font-lock-mode nil)
(font-lock-verbose nil)
;; This forces flymake to ignore this buffer on find-file, and
;; prevents flymake processes from being started.
(flymake-start-syntax-check-on-find-file nil)
;; Disable revision control
(vc-handled-backends nil)
;; Don't prompt to insert a template if we visit an empty file
(auto-insert nil)
;; We don't want emacs to query about unsafe local variables
(enable-local-variables :safe)
;; ... or eval variables
(enable-local-eval nil)
)
(save-match-data
(find-file-noselect file nowarn rawfile wildcards))))