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-c...