* vc/vc-hooks.el (vc-find-file-hook): Don't ask about following links
if we can't get user input. Fixes: debbugs:6567
This commit is contained in:
parent
e86762ec41
commit
5fd03926b3
2 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2013-02-06 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* vc/vc-hooks.el (vc-find-file-hook): Don't ask about following links
|
||||
if we can't get user input. (Bug#6567)
|
||||
|
||||
* startup.el (command-line): If simple.el is missing,
|
||||
test and warn about for some possible causes.
|
||||
|
||||
|
|
|
@ -866,6 +866,13 @@ current, and kill the buffer that visits the link."
|
|||
(message
|
||||
"Warning: symbolic link to %s-controlled source file" link-type))
|
||||
((or (not (eq vc-follow-symlinks 'ask))
|
||||
;; Assume we cannot ask, default to yes.
|
||||
noninteractive
|
||||
;; Copied from server-start. Seems like there should
|
||||
;; be a better way to ask "can we get user input?"...
|
||||
(and (daemonp)
|
||||
(null (cdr (frame-list)))
|
||||
(eq (selected-frame) terminal-frame))
|
||||
;; If we already visited this file by following
|
||||
;; the link, don't ask again if we try to visit
|
||||
;; it again. GUD does that, and repeated questions
|
||||
|
|
Loading…
Add table
Reference in a new issue