emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: y-or-n-p and emacs --daemon


From: Dan Nicolaescu
Subject: Re: y-or-n-p and emacs --daemon
Date: Wed, 3 Dec 2008 13:53:06 -0800 (PST)

Chong Yidong <address@hidden> writes:

  > Dan Nicolaescu <address@hidden> writes:
  > 
  > >   > The only thing I can think of is to make y-or-n-p and yes-or-no-p
  > >   > default to "no" when only the daemon's dummy terminal is open.  
  > >
  > > Bad idea:
  > > (unless (y-or-n-p "Stop me from removing all your files") 
  > >         /bin/rm -rf /
  > >         )
  > >
  > >   > Does anyone have a better suggestion?
  > >
  > > Ignore it, or fix it properly: so that it works like y-or-n-p when
  > > using -batch.
  > 
  > I don't think that would solve the problem either, since AFAIU the
  > daemon might not have a user accessible terminal at all (as bug#1310).

Bug#1310 is a long standing Gtk+ bug, Jan has made workarounds for it a
few times, and it is looking at this instance too.  So that bug is not
related to this issue.  BTW, the patch in #1310 is probably correct.

  > What we could do is to make y-or-n-p signal an error.  

IMO redefining the meaning of y-or-n-p is still not a good idea.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]