how to supress popup window from emacs programatically? -


for example, have setup in .emacs

(defun gtags-create-or-update ()   "create or update gnu global tag file."   (interactive)   (if (y-or-n-p-with-timeout        (format "run gtags create/update tag file code @ %s (default no)? "                default-directory)        5 nil) ; default - no run       (unless (= 0 (call-process "global" nil nil nil " -p")) ; tagfile doesn't exist?           (let ((olddir default-directory)                 (topdir (read-directory-name                          "gtags: top of source tree: " default-directory)))             (cd topdir)             (shell-command "gtags -v")             ;; (shell-command "gtags && echo 'created tagfile'")             (cd olddir)) ; restore         ;;  tagfile exists; update         (shell-command "global -uv")))) ;; (shell-command "global -u && echo 'updated tagfile'")))  (add-hook 'c-mode-common-hook   (lambda ()     (require 'gtags)     (gtags-mode t)     (gtags-create-or-update))) 

when run gtags-create-or-update explicitly, emacs prompt in minibuffer ask me whether create/update tag files. however, when open c/cpp file, pops gui window ask me yes or no, super annoying. wondering why happening.

what @phils says in comment. avoid dialog boxes in gui emacs, can set use-dialog-box nil put line (setq use-dialog-box nil) in initialization file.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -