unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14619: 24.3; Daemon mode and NS App could play nicer together
@ 2013-06-14 17:21             ` Ryan
       [not found]               ` <handler.14619.D21357.163379147530704.notifdone@debbugs.gnu.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Ryan @ 2013-06-14 17:21 UTC (permalink / raw)
  To: 14619

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org. Please check that
the From: line contains a valid email address. After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug. If you can, give a recipe
starting from `emacs -Q':

On OS X, if one starts emacs as a daemon and opens up a GUI client 
window and then closes it, the NS App becomes unresponsive. Doing the 
following on OS X will exhibit the bug:

1. Run "emacs --daemon -Q"
2. Run "emacsclient -c" to get a GUI frame
3. Do "C-x C-c" to kill the GUI frame

After this, the Emacs daemon will still be running, and the dock will 
also indicate that the Emacs app is still running. However, the menus 
become nonfunctional. Clicking on "File", "Edit", "View", etc. does not 
pop up any menu at all. Clicking on "Emacs" pops up a menu, but the only 
functional items are "About Emacs" and "Quit Emacs". All keyboard 
shortcuts, even those listed in the menus for functional menu items, are 
nonfunctional.

In short, once the last GUI frame is killed for an Emacs instance, it is 
not possible to have any further interaction with Emacs from the GUI 
other than quitting Emacs entirely. If one creates a new GUI frame by 
running "emacsclient -c" from a terminal, the GUI once again becomes 
responsive.

In any case, I believe that this situation is clearly suboptimal. I can 
think of two reasonable ways for Emacs to handle the closing of the last 
GUI frame. First, Emacs could shut down the NS App, so that OS X would 
think that Emacs had quit and no longer show it as running. Then, when a 
new GUI frame is created via "emacsclient -c", a new NS App instance 
would be created. Second, Emacs could support the behavior of most OS X 
apps, which continue running after the last window is closed, with menus 
and keyboard shortcuts still functional. Either of these is preferable 
to the current behavior.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Applications/Emacs.app/Contents/Resources/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2013-03-12 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1187
Configured using:
`configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
'--with-ns' 'build_alias=i686-apple-darwin'
'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
-isystem
/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
-F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''

Important settings:
locale-coding-system: nil
default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
recentf-mode: t
bug-reference-prog-mode: t
global-pretty-mode: t
pretty-mode: t
sml-modeline-mode: t
show-paren-mode: t
savehist-mode: t
minibuffer-electric-default-mode: t
minibuffer-depth-indicate-mode: t
ido-yes-or-no-mode: t
ido-ubiquitous-mode: t
icomplete-mode: t
global-undo-tree-mode: t
undo-tree-mode: t
desktop-save-mode: t
delete-selection-mode: t
ido-everywhere: t
shell-dirtrack-mode: t
eldoc-mode: t
autopair-global-mode: t
autopair-mode: t
global-auto-complete-mode: t
auto-complete-mode: t
override-global-mode: t
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t

Recent input:
n s _ t e r m _ i n i t <return> C-h f x - o p e n
- <return> <help-echo> <help-echo> M-x f i n d l i
b <right> <return> n s w i n <right> <right> <backspace>
<backspace> <backspace> - w i n <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> C-g
C-g C-g M-x l o a d - l i <return> n o <backspace>
s - w i n C-g C-g <down-mouse-1> <mouse-1> C-x C-f
l i s p <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> e m <return> l i s p / n s
- w i n <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> t e r m / n s w i n <return>
C-s x - o p e n - c o n n e c t i o n C-s <return>
C-x 1 <wheel-up> <double-wheel-up> <triple-wheel-up>
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-movement>
<mouse-movement> <drag-mouse-1> <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-1> C-h f <return> <down-mouse-1>
<mouse-movement> <mouse-movement> <drag-mouse-1> <down-mouse-1>
<mouse-1> s-h <help-echo> <wheel-up> <double-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<help-echo> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1>
<double-down-mouse-1> <double-mouse-1> <down-mouse-1>
<mouse-1> <down-mouse-1> <mouse-1> <s-down-mouse-1>
<s-mouse-1> <s-down-mouse-1> <s-mouse-1> <down-mouse-1>
<mouse-1> <wheel-down> <double-wheel-down> <wheel-down>
<double-wheel-down> <triple-wheel-down> <wheel-up>
<double-wheel-up> <triple-wheel-up> <triple-wheel-up>
<wheel-down> <double-wheel-down> <triple-wheel-down>
<triple-wheel-down> <wheel-up> <double-wheel-up> <wheel-up>
<wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <wheel-down> <wheel-down>
<double-wheel-down> <down-mouse-1> <mouse-1> <wheel-down>
<double-wheel-down> <wheel-up> <double-wheel-up> <triple-wheel-up>
<triple-wheel-up> <wheel-down> <wheel-down> <wheel-down>
<double-wheel-down> <triple-wheel-down> <wheel-up>
<double-wheel-up> <wheel-down> <double-wheel-down>
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down>
<triple-wheel-down> <wheel-up> <double-wheel-up> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <wheel-up> <double-wheel-up> <triple-wheel-up>
<triple-wheel-up> <wheel-up> <double-wheel-up> <triple-wheel-up>
<wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <wheel-up> <double-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <down-mouse-1> <mouse-1> M-x r e
p o r t - e m a c s <return>

Recent messages:
Quit [3 times]
Mark saved where search started
Error during redisplay: (eval (list (sml-modeline-create))) signaled 
(args-out-of-range 1296 1330)
Type C-x 1 to delete the help window.
Source file `/Users/ryan/.emacs.d/elpa/smex-20130421.2153/smex.el' newer 
than byte-compiled file
Quit [6 times]
Mark saved where search started
Error during redisplay: (eval (list (sml-modeline-create))) signaled 
(args-out-of-range 2780 2918)
Type C-x 1 to delete the help window.
scroll-down: Beginning of buffer [14 times]
browse-url-at-point: No URL found

Load-path shadows:
~/.emacs.d/el-get/el-get/.dir-locals hides 
/Users/ryan/.emacs.d/elpa/ess-20130521.1613/.dir-locals
~/.emacs.d/el-get/el-get/.dir-locals hides 
/Users/ryan/.emacs.d/elpa/fringe-helper-20130519.1641/.dir-locals
~/.emacs.d/el-get/el-get/.dir-locals hides 
/Users/ryan/.emacs.d/elpa/highlight-parentheses-20130523.1752/.dir-locals
/Users/ryan/.emacs.d/el-get/ido-ubiquitous/ido-ubiquitous hides 
/Users/ryan/.emacs.d/elpa/ido-ubiquitous-20121214.2145/ido-ubiquitous
~/.emacs.d/el-get/el-get/.dir-locals hides 
/Users/ryan/.emacs.d/elpa/magit-20130528.2019/.dir-locals
/Users/ryan/.emacs.d/elpa/cperl-mode-20130117.2116/cperl-mode hides 
/Applications/Emacs.app/Contents/Resources/lisp/progmodes/cperl-mode
/Users/ryan/.emacs.d/elpa/org-20130527/org hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org
/Users/ryan/.emacs.d/elpa/org-20130527/org-w3m hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-w3m
/Users/ryan/.emacs.d/elpa/org-20130527/org-version hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-version
/Users/ryan/.emacs.d/elpa/org-20130527/org-timer hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-timer
/Users/ryan/.emacs.d/elpa/org-20130527/org-table hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-table
/Users/ryan/.emacs.d/elpa/org-20130527/org-src hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-src
/Users/ryan/.emacs.d/elpa/org-20130527/org-rmail hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-rmail
/Users/ryan/.emacs.d/elpa/org-20130527/org-protocol hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-protocol
/Users/ryan/.emacs.d/elpa/org-20130527/org-plot hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-plot
/Users/ryan/.emacs.d/elpa/org-20130527/org-pcomplete hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-pcomplete
/Users/ryan/.emacs.d/elpa/org-20130527/org-mouse hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-mouse
/Users/ryan/.emacs.d/elpa/org-20130527/org-mobile hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-mobile
/Users/ryan/.emacs.d/elpa/org-20130527/org-mhe hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-mhe
/Users/ryan/.emacs.d/elpa/org-20130527/org-macs hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-macs
/Users/ryan/.emacs.d/elpa/org-20130527/org-loaddefs hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-loaddefs
/Users/ryan/.emacs.d/elpa/org-20130527/org-list hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-list
/Users/ryan/.emacs.d/elpa/org-20130527/org-irc hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-irc
/Users/ryan/.emacs.d/elpa/org-20130527/org-install hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-install
/Users/ryan/.emacs.d/elpa/org-20130527/org-inlinetask hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-inlinetask
/Users/ryan/.emacs.d/elpa/org-20130527/org-info hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-info
/Users/ryan/.emacs.d/elpa/org-20130527/org-indent hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-indent
/Users/ryan/.emacs.d/elpa/org-20130527/org-id hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-id
/Users/ryan/.emacs.d/elpa/org-20130527/org-habit hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-habit
/Users/ryan/.emacs.d/elpa/org-20130527/org-gnus hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-gnus
/Users/ryan/.emacs.d/elpa/org-20130527/org-footnote hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-footnote
/Users/ryan/.emacs.d/elpa/org-20130527/org-feed hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-feed
/Users/ryan/.emacs.d/elpa/org-20130527/org-faces hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-faces
/Users/ryan/.emacs.d/elpa/org-20130527/org-eshell hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-eshell
/Users/ryan/.emacs.d/elpa/org-20130527/org-entities hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-entities
/Users/ryan/.emacs.d/elpa/org-20130527/org-element hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-element
/Users/ryan/.emacs.d/elpa/org-20130527/org-docview hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-docview
/Users/ryan/.emacs.d/elpa/org-20130527/org-datetree hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-datetree
/Users/ryan/.emacs.d/elpa/org-20130527/org-ctags hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-ctags
/Users/ryan/.emacs.d/elpa/org-20130527/org-crypt hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-crypt
/Users/ryan/.emacs.d/elpa/org-20130527/org-compat hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-compat
/Users/ryan/.emacs.d/elpa/org-20130527/org-colview hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-colview
/Users/ryan/.emacs.d/elpa/org-20130527/org-clock hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-clock
/Users/ryan/.emacs.d/elpa/org-20130527/org-capture hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-capture
/Users/ryan/.emacs.d/elpa/org-20130527/org-bibtex hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-bibtex
/Users/ryan/.emacs.d/elpa/org-20130527/org-bbdb hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-bbdb
/Users/ryan/.emacs.d/elpa/org-20130527/org-attach hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-attach
/Users/ryan/.emacs.d/elpa/org-20130527/org-archive hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-archive
/Users/ryan/.emacs.d/elpa/org-20130527/org-agenda hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/org-agenda
/Users/ryan/.emacs.d/elpa/org-20130527/ob hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob
/Users/ryan/.emacs.d/elpa/org-20130527/ob-tangle hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-tangle
/Users/ryan/.emacs.d/elpa/org-20130527/ob-table hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-table
/Users/ryan/.emacs.d/elpa/org-20130527/ob-sqlite hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-sqlite
/Users/ryan/.emacs.d/elpa/org-20130527/ob-sql hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-sql
/Users/ryan/.emacs.d/elpa/org-20130527/ob-shen hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-shen
/Users/ryan/.emacs.d/elpa/org-20130527/ob-sh hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-sh
/Users/ryan/.emacs.d/elpa/org-20130527/ob-screen hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-screen
/Users/ryan/.emacs.d/elpa/org-20130527/ob-scheme hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-scheme
/Users/ryan/.emacs.d/elpa/org-20130527/ob-scala hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-scala
/Users/ryan/.emacs.d/elpa/org-20130527/ob-sass hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-sass
/Users/ryan/.emacs.d/elpa/org-20130527/ob-ruby hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-ruby
/Users/ryan/.emacs.d/elpa/org-20130527/ob-ref hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-ref
/Users/ryan/.emacs.d/elpa/org-20130527/ob-R hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-R
/Users/ryan/.emacs.d/elpa/org-20130527/ob-python hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-python
/Users/ryan/.emacs.d/elpa/org-20130527/ob-plantuml hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-plantuml
/Users/ryan/.emacs.d/elpa/org-20130527/ob-picolisp hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-picolisp
/Users/ryan/.emacs.d/elpa/org-20130527/ob-perl hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-perl
/Users/ryan/.emacs.d/elpa/org-20130527/ob-org hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-org
/Users/ryan/.emacs.d/elpa/org-20130527/ob-octave hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-octave
/Users/ryan/.emacs.d/elpa/org-20130527/ob-ocaml hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-ocaml
/Users/ryan/.emacs.d/elpa/org-20130527/ob-mscgen hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-mscgen
/Users/ryan/.emacs.d/elpa/org-20130527/ob-maxima hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-maxima
/Users/ryan/.emacs.d/elpa/org-20130527/ob-matlab hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-matlab
/Users/ryan/.emacs.d/elpa/org-20130527/ob-lob hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-lob
/Users/ryan/.emacs.d/elpa/org-20130527/ob-lisp hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-lisp
/Users/ryan/.emacs.d/elpa/org-20130527/ob-lilypond hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-lilypond
/Users/ryan/.emacs.d/elpa/org-20130527/ob-ledger hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-ledger
/Users/ryan/.emacs.d/elpa/org-20130527/ob-latex hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-latex
/Users/ryan/.emacs.d/elpa/org-20130527/ob-keys hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-keys
/Users/ryan/.emacs.d/elpa/org-20130527/ob-js hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-js
/Users/ryan/.emacs.d/elpa/org-20130527/ob-java hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-java
/Users/ryan/.emacs.d/elpa/org-20130527/ob-io hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-io
/Users/ryan/.emacs.d/elpa/org-20130527/ob-haskell hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-haskell
/Users/ryan/.emacs.d/elpa/org-20130527/ob-gnuplot hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-gnuplot
/Users/ryan/.emacs.d/elpa/org-20130527/ob-fortran hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-fortran
/Users/ryan/.emacs.d/elpa/org-20130527/ob-exp hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-exp
/Users/ryan/.emacs.d/elpa/org-20130527/ob-eval hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-eval
/Users/ryan/.emacs.d/elpa/org-20130527/ob-emacs-lisp hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-emacs-lisp
/Users/ryan/.emacs.d/elpa/org-20130527/ob-dot hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-dot
/Users/ryan/.emacs.d/elpa/org-20130527/ob-ditaa hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-ditaa
/Users/ryan/.emacs.d/elpa/org-20130527/ob-css hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-css
/Users/ryan/.emacs.d/elpa/org-20130527/ob-comint hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-comint
/Users/ryan/.emacs.d/elpa/org-20130527/ob-clojure hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-clojure
/Users/ryan/.emacs.d/elpa/org-20130527/ob-calc hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-calc
/Users/ryan/.emacs.d/elpa/org-20130527/ob-C hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-C
/Users/ryan/.emacs.d/elpa/org-20130527/ob-awk hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-awk
/Users/ryan/.emacs.d/elpa/org-20130527/ob-asymptote hides 
/Applications/Emacs.app/Contents/Resources/lisp/org/ob-asymptote
~/.emacs.d/el-get/el-get/.dir-locals hides 
/Applications/Emacs.app/Contents/Resources/lisp/gnus/.dir-locals
/Users/ryan/.emacs.d/elpa/emms-20130515.1144/tq hides 
/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/tq

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils smex recentf tree-widget wid-edit misearch
multi-isearch cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine jka-compr find-func load-dir gitignore-mode
bug-reference vc-git imenu noutline outline pretty-mode conf-mode
bug-reference-github vlfi sh-script smie melpa server face-remap
midnight saveplace uniquify sml-modeline paren savehist minibuf-eldef
mb-depth ido-yes-or-no ido-ubiquitous icomplete undo-tree diff desktop
delsel auto-dim-other-buffers cus-start cus-load ido-speed-hack
.loaddefs ido ess-toolbar ess-mouse mouseme thingatpt browse-url
ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els
ess-sas-d ess-sas-l ess-sas-a shell pcomplete ess-arc-d ess-vst-d
ess-xls-d ess-lsp-l ess-sta-d ess-sta-l cc-vars cc-defs make-regexp
ess-sp6-d ess-sp5-d ess-sp3-d ess-julia ess-r-d compile ess-tracebug
ess-roxy hideshow ess-help ess-developer ess-r-args eldoc ess-s-l ess
ess-inf comint ansi-color ring ess-mode ess-noweb-mode ess-utils
ess-custom executable ess-compat ess-site autopair auto-complete popup
time-date bar-cursor edmacro kmacro use-package diminish bind-key
easy-mmode el-get el-get-autoloads el-get-list-packages el-get-notify
help-mode el-get-dependencies el-get-build el-get-status pp
el-get-recipes el-get-byte-compile el-get-methods el-get-fossil
el-get-svn el-get-pacman el-get-github-zip el-get-github-tar
el-get-http-zip el-get-http-tar el-get-hg el-get-git-svn el-get-fink
el-get-emacswiki el-get-http el-get-emacsmirror el-get-github el-get-git
el-get-elpa el-get-darcs el-get-cvs el-get-bzr el-get-brew
el-get-builtin el-get-apt-get el-get-custom el-get-core autoload dired
ac-js2-autoloads ack-and-a-half-autoloads apache-mode-autoloads
applescript-mode-autoloads async-autoloads
auto-dim-other-buffers-autoloads auto-indent-mode-autoloads
autopair-autoloads bar-cursor-autoloads bs-ext-autoloads
buffer-utils-autoloads bug-reference-github-autoloads
button-lock-autoloads charmap-autoloads charmap concurrent-autoloads
cperl-mode-autoloads crontab-mode-autoloads csharp-mode-autoloads
cursor-chg-autoloads dedicated-autoloads deferred-autoloads
dna-mode-autoloads edit-list-autoloads ein-autoloads
auto-complete-autoloads eldoc-eval-autoloads emacs-setup-autoloads
emms-autoloads ess-R-data-view-autoloads ctable-autoloads
ess-R-object-popup-autoloads express-autoloads
git-gutter-fringe-autoloads fringe-helper-autoloads git-gutter-autoloads
gitconfig-mode-autoloads gitignore-mode-autoloads hardhat-autoloads
header2-autoloads highlight-cl-autoloads highlight-parentheses-autoloads
icomplete+-autoloads ido-load-library-autoloads ido-sort-mtime-autoloads
ido-ubiquitous-autoloads ido-yes-or-no-autoloads ignoramus-autoloads
igrep-autoloads lacarte-autoloads letcheck-autoloads
lexbind-mode-autoloads load-dir-autoloads look-dired-autoloads
look-mode-autoloads macro-utils-autoloads macrostep-autoloads
magit-commit-training-wheels-autoloads magit-gh-pulls-autoloads
gh-autoloads eieio logito-autoloads magithub-autoloads magit-autoloads
markdown-mode+-autoloads markdown-mode-autoloads marmalade-autoloads
furl-autoloads melpa-autoloads byte-opt warnings bytecomp byte-compile
cconv advice advice-preload mic-paren-autoloads
mode-line-debug-autoloads mouse+-autoloads nav-autoloads
nav-flash-autoloads nlinum-autoloads oddmuse-autoloads
openwith-autoloads org-autoloads info easymenu osx-plist-autoloads
pallet-autoloads carton-autoloads paredit-everywhere-autoloads
paredit-autoloads paredit-menu-autoloads persistent-soft-autoloads
pcache-autoloads pointback-autoloads popup-switcher-autoloads
popup-autoloads popwin-autoloads powerline-autoloads powerline
powerline-separators pretty-mode-autoloads rainbow-mode-autoloads
request-autoloads s-buffer-autoloads noflet-autoloads s-autoloads
shell-history-autoloads skewer-mode-autoloads js2-mode-autoloads
finder-inf simple-httpd-autoloads smart-forward-autoloads
expand-region-autoloads smart-mode-line-autoloads smex-autoloads
sml-modeline-autoloads ssh-config-mode-autoloads string-edit-autoloads
dash-autoloads string-utils-autoloads list-utils-autoloads help-fns
cl-macs gv cl cl-lib sudo-ext-autoloads undo-tree-autoloads
unfill-autoloads use-package-autoloads diminish-autoloads
bind-key-autoloads vlfi-autoloads volatile-highlights-autoloads
websocket-autoloads winpoint-autoloads package tooltip ediff-hook
vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process ns multi-tty emacs)






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame
@ 2015-08-26 23:35 random832
  2015-11-03 15:39 ` bug#21357: Bug #21357 is a duplicate of #14619 Random832
  2021-08-16 12:57 ` bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame Lars Ingebrigtsen
  0 siblings, 2 replies; 12+ messages in thread
From: random832 @ 2015-08-26 23:35 UTC (permalink / raw)
  To: 21357

If I have Emacs (OSX App) started in daemon mode, and then create a
GUI frame, e.g. emacsclient -c, an instance of Emacs.app starts,
which then does not go away when the frame is closed with C-x C-c.
Most menu items, even ones such as "New Frame (C-x 5 2)" that seem
like they should make sense without a frame, are unresponsive.

The app is also unable to respond to s-q, though it does respond to the
"Quit Emacs (Command-Q)" item in the App menu, which C-h k shows
as sending <ns-power-off> rather than a <menu-bar> sequence.

I'm not sure what behavior should be expected here. In order of my
personal preference:

1. Keep the app open, and most menu commands should open a new
   frame.

2. Somehow (is this possible?) close the app instance without shutting
   down the daemon process, when there are no frames.

3. Somehow create a separate app instance for each emacsclient -c
   process.

In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2015-04-10 on builder10-9.porkrind.org
Windowing system distributor `Apple', version 10.3.1344
Configured using:
 `configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Starting Emacs daemon.
When done with this frame, type C-x 5 0

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils server time-date tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
cocoa ns multi-tty emacs)

Memory information:
((conses 16 72471 4238)
 (symbols 48 17293 0)
 (miscs 40 43 140)
 (strings 32 10183 4263)
 (string-bytes 1 271546)
 (vectors 16 9219)
 (vector-slots 8 376271 16268)
 (floats 8 57 68)
 (intervals 56 173 0)
 (buffers 960 12))





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#21357: Bug #21357 is a duplicate of #14619
  2015-08-26 23:35 bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame random832
@ 2015-11-03 15:39 ` Random832
  2015-11-03 16:04   ` Eli Zaretskii
  2021-08-16 12:57 ` bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame Lars Ingebrigtsen
  1 sibling, 1 reply; 12+ messages in thread
From: Random832 @ 2015-11-03 15:39 UTC (permalink / raw)
  To: 21357


Sorry about this, I had not found the original bug when I searched
before reporting the bug.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#21357: Bug #21357 is a duplicate of #14619
  2015-11-03 15:39 ` bug#21357: Bug #21357 is a duplicate of #14619 Random832
@ 2015-11-03 16:04   ` Eli Zaretskii
  0 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2015-11-03 16:04 UTC (permalink / raw)
  To: Random832; +Cc: 21357

> From: Random832 <random832@fastmail.com>
> Date: Tue, 03 Nov 2015 10:39:46 -0500
> 
> 
> Sorry about this, I had not found the original bug when I searched
> before reporting the bug.

No need to apologize, but please do merge them.

Thanks.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame
  2015-08-26 23:35 bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame random832
  2015-11-03 15:39 ` bug#21357: Bug #21357 is a duplicate of #14619 Random832
@ 2021-08-16 12:57 ` Lars Ingebrigtsen
  2021-08-16 17:13   ` Alan Third
  1 sibling, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-16 12:57 UTC (permalink / raw)
  To: random832; +Cc: 21357

random832@fastmail.com writes:

> If I have Emacs (OSX App) started in daemon mode, and then create a
> GUI frame, e.g. emacsclient -c, an instance of Emacs.app starts,
> which then does not go away when the frame is closed with C-x C-c.
> Most menu items, even ones such as "New Frame (C-x 5 2)" that seem
> like they should make sense without a frame, are unresponsive.

(I'm going through old bug reports that unfortunately weren't
resolved at the time.)

Is this problem still present in recent Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame
  2021-08-16 12:57 ` bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame Lars Ingebrigtsen
@ 2021-08-16 17:13   ` Alan Third
  2021-08-25 20:18     ` Alan Third
  0 siblings, 1 reply; 12+ messages in thread
From: Alan Third @ 2021-08-16 17:13 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: random832, 21357

On Mon, Aug 16, 2021 at 02:57:58PM +0200, Lars Ingebrigtsen wrote:
> random832@fastmail.com writes:
> 
> > If I have Emacs (OSX App) started in daemon mode, and then create a
> > GUI frame, e.g. emacsclient -c, an instance of Emacs.app starts,
> > which then does not go away when the frame is closed with C-x C-c.
> > Most menu items, even ones such as "New Frame (C-x 5 2)" that seem
> > like they should make sense without a frame, are unresponsive.
> 
> (I'm going through old bug reports that unfortunately weren't
> resolved at the time.)
> 
> Is this problem still present in recent Emacs versions?

As far as I'm aware it is.
-- 
Alan Third





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame
  2021-08-16 17:13   ` Alan Third
@ 2021-08-25 20:18     ` Alan Third
  2021-08-26 14:00       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Alan Third @ 2021-08-25 20:18 UTC (permalink / raw)
  To: Lars Ingebrigtsen, random832, 21357

[-- Attachment #1: Type: text/plain, Size: 1405 bytes --]

On Mon, Aug 16, 2021 at 06:13:03PM +0100, Alan Third wrote:
> On Mon, Aug 16, 2021 at 02:57:58PM +0200, Lars Ingebrigtsen wrote:
> > random832@fastmail.com writes:
> > 
> > > If I have Emacs (OSX App) started in daemon mode, and then create a
> > > GUI frame, e.g. emacsclient -c, an instance of Emacs.app starts,
> > > which then does not go away when the frame is closed with C-x C-c.
> > > Most menu items, even ones such as "New Frame (C-x 5 2)" that seem
> > > like they should make sense without a frame, are unresponsive.
> > 
> > (I'm going through old bug reports that unfortunately weren't
> > resolved at the time.)
> > 
> > Is this problem still present in recent Emacs versions?
> 
> As far as I'm aware it is.

The attached patch "fixes" this by hiding the app icon in the dock and
removing the menus. It's still possible to create a new frame using
emacsclient.

There's still a bug when a terminal frame is open and the last GUI
frame is closed. I've put the code in ns_delete_terminal, which may
not be the best place. Perhaps it should go in the normal frame
closing function and check whether there are any remaining open
frames.

The alternative is to occasionally run the NS run loop even when there
are no NS frames open. I don't know how we could do that but it would
allow us to leave the menu and dock icon available and operative even
without any GUI frames open.
-- 
Alan Third

[-- Attachment #2: 0001-Disable-the-NS-app-when-no-frames-are-left-bug-14619.patch --]
[-- Type: text/x-diff, Size: 1487 bytes --]

From 5dd66d7966d32e8c42e12e16b8682c52d4487d81 Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
Date: Wed, 25 Aug 2021 21:00:07 +0100
Subject: [PATCH] Disable the NS app when no frames are left (bug#14619,
 bug#21357, bug#23586)

* src/nsfns.m (Fx_create_frame): Enable the app.
* src/nsterm.m (ns_delete_terminal): Disable the app.
---
 src/nsfns.m  | 5 +++++
 src/nsterm.m | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/src/nsfns.m b/src/nsfns.m
index c40367703d..07bcab1816 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -1343,6 +1343,11 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side.
 
   f->output_data.ns->in_animation = NO;
 
+#ifdef NS_IMPL_COCOA
+  /* If the app has previously been disabled, start it up again.  */
+  [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
+#endif
+
   [[EmacsView alloc] initFrameFromEmacs: f];
 
   ns_icon (f, parms);
diff --git a/src/nsterm.m b/src/nsterm.m
index 1c1f0c8f23..4bdc67c10b 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5014,6 +5014,12 @@ static Lisp_Object ns_string_to_lispmod (const char *s)
 
   block_input ();
 
+#ifdef NS_IMPL_COCOA
+  /* Rather than try to clean up the NS environment we can just
+     disable the app and leave it waiting for any new frames.  */
+  [NSApp setActivationPolicy:NSApplicationActivationPolicyProhibited];
+#endif
+
   image_destroy_all_bitmaps (dpyinfo);
   ns_delete_display (dpyinfo);
   unblock_input ();
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame
  2021-08-25 20:18     ` Alan Third
@ 2021-08-26 14:00       ` Lars Ingebrigtsen
  2021-08-29  9:27         ` Alan Third
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-26 14:00 UTC (permalink / raw)
  To: Alan Third; +Cc: random832, 21357

Alan Third <alan@idiocy.org> writes:

> The attached patch "fixes" this by hiding the app icon in the dock and
> removing the menus. It's still possible to create a new frame using
> emacsclient.

I think that makes sense...

> The alternative is to occasionally run the NS run loop even when there
> are no NS frames open. I don't know how we could do that but it would
> allow us to leave the menu and dock icon available and operative even
> without any GUI frames open.

I would expect there to be nothing in the dock when running an Emacs
daemon (and there's no frames open), but don't really have an opinion on
this.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame
  2021-08-26 14:00       ` Lars Ingebrigtsen
@ 2021-08-29  9:27         ` Alan Third
  2021-10-09 14:57           ` Alan Third
  0 siblings, 1 reply; 12+ messages in thread
From: Alan Third @ 2021-08-29  9:27 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: random832, 21357

On Thu, Aug 26, 2021 at 04:00:12PM +0200, Lars Ingebrigtsen wrote:
> Alan Third <alan@idiocy.org> writes:
> 
> > The attached patch "fixes" this by hiding the app icon in the dock and
> > removing the menus. It's still possible to create a new frame using
> > emacsclient.
> 
> I think that makes sense...

Since I don't think we're likely to get anyone testing this on the
strength of this bug report, I've pushed it to master and we can wait
and see if anyone has any comments.

> > The alternative is to occasionally run the NS run loop even when there
> > are no NS frames open. I don't know how we could do that but it would
> > allow us to leave the menu and dock icon available and operative even
> > without any GUI frames open.
> 
> I would expect there to be nothing in the dock when running an Emacs
> daemon (and there's no frames open), but don't really have an opinion on
> this.

I reckon that many Mac users would expect if they run an application
(in the normal way, not daemon mode) and close all the windows the
application menu and dock icon will still work, allowing them to open
new windows and so on. I don't think it's unreasonable for the app to
just quit, though.
-- 
Alan Third





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame
  2021-08-29  9:27         ` Alan Third
@ 2021-10-09 14:57           ` Alan Third
  2013-06-14 17:21             ` bug#14619: 24.3; Daemon mode and NS App could play nicer together Ryan
  0 siblings, 1 reply; 12+ messages in thread
From: Alan Third @ 2021-10-09 14:57 UTC (permalink / raw)
  To: Lars Ingebrigtsen, random832, 21357-done

On Sun, Aug 29, 2021 at 10:27:11AM +0100, Alan Third wrote:
> On Thu, Aug 26, 2021 at 04:00:12PM +0200, Lars Ingebrigtsen wrote:
> > Alan Third <alan@idiocy.org> writes:
> > 
> > > The attached patch "fixes" this by hiding the app icon in the dock and
> > > removing the menus. It's still possible to create a new frame using
> > > emacsclient.
> > 
> > I think that makes sense...
> 
> Since I don't think we're likely to get anyone testing this on the
> strength of this bug report, I've pushed it to master and we can wait
> and see if anyone has any comments.

It's been over a month with no complaints, so I'm closing this bug report.
-- 
Alan Third





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#14619: closed (Re: bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame)
       [not found]               ` <handler.14619.D21357.163379147530704.notifdone@debbugs.gnu.org>
@ 2021-10-09 15:22                 ` Ryan C. Thompson
  2021-10-09 16:02                 ` Ryan C. Thompson
  1 sibling, 0 replies; 12+ messages in thread
From: Ryan C. Thompson @ 2021-10-09 15:22 UTC (permalink / raw)
  To: 14619

Hello,

For some reason (perhaps related to bugs being marked duplicates?) I 
didn't see the email about this patch. I will give it a try and report back.

Regards,

Ryan

On 10/9/21 10:58 AM, GNU bug Tracking System wrote:
> Your bug report
>
> #21357: 24.3; Daemon mode and NS App could play nicer together
>
> which was filed against the emacs package, has been closed.
>
> The explanation is attached below, along with your original report.
> If you require more details, please reply to 14619@debbugs.gnu.org.
>





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#14619: closed (Re: bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame)
       [not found]               ` <handler.14619.D21357.163379147530704.notifdone@debbugs.gnu.org>
  2021-10-09 15:22                 ` bug#14619: closed (Re: bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame) Ryan C. Thompson
@ 2021-10-09 16:02                 ` Ryan C. Thompson
  1 sibling, 0 replies; 12+ messages in thread
From: Ryan C. Thompson @ 2021-10-09 16:02 UTC (permalink / raw)
  To: 14619

On 10/9/21 10:58 AM, GNU bug Tracking System wrote:
> Your bug report
>
> #21357: 24.3; Daemon mode and NS App could play nicer together
>
> which was filed against the emacs package, has been closed.
>
> The explanation is attached below, along with your original report.
> If you require more details, please reply to 14619@debbugs.gnu.org.

Ok, I have tested this a bit, and I think it's an improvement over the 
previous behavior. However, I notice some weird edge cases that would 
need to be fixed before I could recommend this for general use. Try the 
following:


0. Start with no emacs running

1. Run "emacs --daemon". The emacs daemon should launch normally.

2. Try to launch the Emacs app normally. Nothing happens.


I'm not sure exactly what *should* happen when you do this, but doing 
nothing is clearly wrong. Possibly defensible choices include:

- automatically detecting a running daemon and running "emacsclient -c" 
instead of "emacs"

- ignoring the daemon and launching a separate non-daemon instance of Emacs

- Popping up a dialogue box informing the user that there's already an 
emacs daemon running?

- Somehow making this a user preference?


In addition, "emacsclient -c" does indeed create a new frame and 
activate the NS app, but that frame is created behind all other OS 
windows, unless it is the frame created upon launch by "emacsclient -c 
-a ''", in which case it appears in front of all other OS windows. This 
seems like it should be governed by a preference, but the default should 
probably be to appear in front, or else the user might not realize that 
the frame was actually created.






^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-10-09 16:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-26 23:35 bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame random832
2015-11-03 15:39 ` bug#21357: Bug #21357 is a duplicate of #14619 Random832
2015-11-03 16:04   ` Eli Zaretskii
2021-08-16 12:57 ` bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame Lars Ingebrigtsen
2021-08-16 17:13   ` Alan Third
2021-08-25 20:18     ` Alan Third
2021-08-26 14:00       ` Lars Ingebrigtsen
2021-08-29  9:27         ` Alan Third
2021-10-09 14:57           ` Alan Third
2013-06-14 17:21             ` bug#14619: 24.3; Daemon mode and NS App could play nicer together Ryan
     [not found]               ` <handler.14619.D21357.163379147530704.notifdone@debbugs.gnu.org>
2021-10-09 15:22                 ` bug#14619: closed (Re: bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame) Ryan C. Thompson
2021-10-09 16:02                 ` Ryan C. Thompson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).