all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#6685: 23.2; Discards control characters during boot.
@ 2010-07-21  2:13 Trent W. Buck
  2012-04-11  8:07 ` Chong Yidong
  2016-09-08  5:08 ` Andrew Hyatt
  0 siblings, 2 replies; 10+ messages in thread
From: Trent W. Buck @ 2010-07-21  2:13 UTC (permalink / raw)
  To: 6685

I start emacs with a wrapper script which boils down to

    ALTERNATIVE_EDITOR="" emacsclient -c -t

In the past (23.1 or so), I could start emacs that way, and while the
daemon was loading in the background, I could type

    M-x irc C-m M-x gnus C-m

and when the daemon finished loading, the IRC and GNUS functions would
run.  Now, what happens is that I get

    xircxgnus

appended to *scratch*.  It seems pretty clear to me that Emacs has
started discarding control characters (^[ and ^M in my case).

If this change was an attempt to fix a bug, it has actually fixed a
feature (for me), since I now have to wait a couple of seconds for the
frame to render before I can reliably start issuing commands.

Note: I haven't reproduce this with --quick, because that starts too
fast and in any case I don't know how to make emacsclient -A='' pass -Q
to it's internal emacs --daemon invocation.

In GNU Emacs 23.2.1 (x86_64-pc-linux-gnu)
 of 2010-05-16 on barber, modified by Debian
configured using `configure  '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=no' '--without-gconf' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_AU.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  xterm-mouse-mode: t
  ido-everywhere: t
  savehist-mode: t
  icomplete-mode: t
  partial-completion-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
t SPC w h e r e SPC ESC q SPC ESC O A e ESC O B ESC 
q SPC s t a g e 1 SPC c a n ' t SPC f i n d SPC s t 
a g e 2 . ESC b ESC b ESC b ( DEL ESC [ 4 ~ SPC SPC 
S i g h . ESC O C ESC O B C-@ ESC O B ESC O B ESC O 
B ESC O B ESC O B ESC O B ESC O B C-w C-@ ESC O B ESC 
O B ESC O B ESC O B ESC O B ESC O A C-w C-@ ESC O B 
ESC O B ESC O B ESC O B C-g C-_ C-x C-x C-x C-x C-w 
C-@ ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B 
C-w C-@ ESC O B ESC O B ESC O B ESC O B ESC O B ESC 
O B C-w C-@ ESC O B ESC O B ESC O B ESC O B ESC O B 
ESC O B ESC O B ESC O B ESC O B C-x C-x ESC O A C-w 
DEL C-x C-s RET RET ESC O B ESC O B DEL DEL DEL C-x 
C-s ESC < ESC % SPC > RET > RET ! ESC O B DEL ESC O 
A ESC O A ESC O A ESC O A ESC O A ESC [ 1 ~ RET ESC 
q ESC O A C-d ESC > C-x C-s C-x C-s ESC O A ESC q C-x 
C-s C-x C-c q y ESC x r e p o r t SPC e m a c s SPC 
b u g RET

Recent messages:
Mark set [2 times]
Replaced 5 occurrences
Mark set
Saving file /tmp/mutt-dali-1000-1258-11239a89bc4892b64a...
Wrote /tmp/mutt-dali-1000-1258-11239a89bc4892b64a
(No changes need to be saved)
Saving file /tmp/mutt-dali-1000-1258-11239a89bc4892b64a...
Wrote /tmp/mutt-dali-1000-1258-11239a89bc4892b64a
Are you sure you want to quit reading news? (y or n) 
(No changes need to be saved)

Load-path shadows:
/usr/share/emacs/site-lisp/haskell-mode/inf-haskell hides /usr/share/emacs/23.2/site-lisp/haskell-mode/inf-haskell
/usr/share/emacs/site-lisp/haskell-mode/haskell-site-file hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-site-file
/usr/share/emacs/site-lisp/haskell-mode/haskell-simple-indent hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-simple-indent
/usr/share/emacs/site-lisp/haskell-mode/haskell-mode hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-mode
/usr/share/emacs/site-lisp/haskell-mode/haskell-indentation hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-indentation
/usr/share/emacs/site-lisp/haskell-mode/haskell-indent hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-indent
/usr/share/emacs/site-lisp/haskell-mode/haskell-hugs hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-hugs
/usr/share/emacs/site-lisp/haskell-mode/haskell-ghci hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-ghci
/usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-font-lock
/usr/share/emacs/site-lisp/haskell-mode/haskell-doc hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-doc
/usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-decl-scan
/usr/share/emacs/site-lisp/haskell-mode/haskell-cabal hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-cabal
/usr/share/emacs/site-lisp/haskell-mode/haskell-c hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-c
/usr/share/emacs/23.2/site-lisp/puppet-el/puppet-mode hides /usr/share/emacs/site-lisp/puppet-mode
/usr/share/emacs/23.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.2/lisp/textmodes/flyspell
/usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.2/lisp/textmodes/ispell

Features:
(shadow sort mail-extr emacsbug newcomment vc-dispatcher vc-darcs cl
cl-19 xml parse-time timezone nndraft nnmh auth-source gnus-agent
gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art image mm-uu
mml2015 epg-config mm-view smime dig nntp gnus-cache gnus-sum nnoo
gnus-group gnus-undo nnmail mail-source format-spec gnus-start gnus-spec
gnus-int gnus-range message sendmail regexp-opt ecomplete rfc822 mml
easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap
mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils
mailheader canlock sha1 hex-util hashcash gnus-win gnus gnus-ems
nnheader gnus-util netrc time-date mail-utils mm-util mail-prsvr
wid-edit server jka-compr edmacro kmacro xt-mouse ido savehist icomplete
complete paren delsel saveplace debian-el debian-el-loaddefs w3m-load
emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode
dpkg-dev-el dpkg-dev-el-loaddefs ediff-hook vc-hooks lisp-float-type
lisp-mode register page menu-bar rfn-eshadow timer select mldrag 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
loaddefs button minibuffer faces cus-face files text-properties overlay
md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
multi-tty emacs)





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

* bug#6685: 23.2; Discards control characters during boot.
  2010-07-21  2:13 bug#6685: 23.2; Discards control characters during boot Trent W. Buck
@ 2012-04-11  8:07 ` Chong Yidong
  2012-04-11 10:56   ` Trent W. Buck
  2016-09-08  5:08 ` Andrew Hyatt
  1 sibling, 1 reply; 10+ messages in thread
From: Chong Yidong @ 2012-04-11  8:07 UTC (permalink / raw)
  To: Trent W. Buck; +Cc: 6685

trentbuck@gmail.com (Trent W. Buck) writes:

> I start emacs with a wrapper script which boils down to
>
>     ALTERNATIVE_EDITOR="" emacsclient -c -t
>
> In the past (23.1 or so), I could start emacs that way, and while the
> daemon was loading in the background, I could type
>
>     M-x irc C-m M-x gnus C-m
>
> and when the daemon finished loading, the IRC and GNUS functions would
> run.  Now, what happens is that I get
>
>     xircxgnus
>
> appended to *scratch*.  It seems pretty clear to me that Emacs has
> started discarding control characters (^[ and ^M in my case).

As far as I can tell, this old bug was fixed by the introduction of
xterm-extra-capabilities (set it to nil to avoid discarding
pre-terminal-initialization input).





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

* bug#6685: 23.2; Discards control characters during boot.
  2012-04-11  8:07 ` Chong Yidong
@ 2012-04-11 10:56   ` Trent W. Buck
  0 siblings, 0 replies; 10+ messages in thread
From: Trent W. Buck @ 2012-04-11 10:56 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 6685

Chong Yidong wrote:
> trentbuck@gmail.com (Trent W. Buck) writes:
> 
> > I start emacs with a wrapper script which boils down to
> >
> >     ALTERNATIVE_EDITOR="" emacsclient -c -t
> >
> > In the past (23.1 or so), I could start emacs that way, and while the
> > daemon was loading in the background, I could type
> >
> >     M-x irc C-m M-x gnus C-m
> >
> > and when the daemon finished loading, the IRC and GNUS functions would
> > run.  Now, what happens is that I get
> >
> >     xircxgnus
> >
> > appended to *scratch*.  It seems pretty clear to me that Emacs has
> > started discarding control characters (^[ and ^M in my case).
> 
> As far as I can tell, this old bug was fixed by the introduction of
> xterm-extra-capabilities (set it to nil to avoid discarding
> pre-terminal-initialization input).

That appears to be defined in lisp/term/xterm.el, so it will only be
loaded when TERM=xterm.  Currently this is not the case for me;
TERM=screen and outside that TERM=linux (I am on the kernel fbcon).
I believe that was also the case when I reported the original bug.

(I have not actually tested this yet, as that variable is not
available in the 23.3 I have to hand just now.)





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

* bug#6685: 23.2; Discards control characters during boot.
  2010-07-21  2:13 bug#6685: 23.2; Discards control characters during boot Trent W. Buck
  2012-04-11  8:07 ` Chong Yidong
@ 2016-09-08  5:08 ` Andrew Hyatt
  2016-09-08 16:21   ` Eli Zaretskii
  1 sibling, 1 reply; 10+ messages in thread
From: Andrew Hyatt @ 2016-09-08  5:08 UTC (permalink / raw)
  To: Trent W. Buck; +Cc: 6685


I was trying to reproduce this in Emacs 25, but emacsclient will not
start up a new emacs instance with emacsclient. According to the
documentation I have on emacsclient on using the alternative editor
flag:

If the value of EDITOR is the empty string, run "emacs --daemon" to
start Emacs in daemon mode, and try to connect to it.

So I can't reproduce this issue anymore.  Let me know if I'm missing
something, please.

trentbuck@gmail.com (Trent W. Buck) writes:

> I start emacs with a wrapper script which boils down to
>
>     ALTERNATIVE_EDITOR="" emacsclient -c -t
>
> In the past (23.1 or so), I could start emacs that way, and while the
> daemon was loading in the background, I could type
>
>     M-x irc C-m M-x gnus C-m
>
> and when the daemon finished loading, the IRC and GNUS functions would
> run.  Now, what happens is that I get
>
>     xircxgnus
>
> appended to *scratch*.  It seems pretty clear to me that Emacs has
> started discarding control characters (^[ and ^M in my case).
>
> If this change was an attempt to fix a bug, it has actually fixed a
> feature (for me), since I now have to wait a couple of seconds for the
> frame to render before I can reliably start issuing commands.
>
> Note: I haven't reproduce this with --quick, because that starts too
> fast and in any case I don't know how to make emacsclient -A='' pass -Q
> to it's internal emacs --daemon invocation.
>
> In GNU Emacs 23.2.1 (x86_64-pc-linux-gnu)
>  of 2010-05-16 on barber, modified by Debian
> configured using `configure  '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=no' '--without-gconf' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
>
> Important settings:
>   value of $LC_ALL: nil
>   value of $LC_COLLATE: C
>   value of $LC_CTYPE: nil
>   value of $LC_MESSAGES: nil
>   value of $LC_MONETARY: nil
>   value of $LC_NUMERIC: nil
>   value of $LC_TIME: nil
>   value of $LANG: en_AU.utf8
>   value of $XMODIFIERS: nil
>   locale-coding-system: utf-8-unix
>   default enable-multibyte-characters: t
>
> Major mode: Fundamental
>
> Minor modes in effect:
>   xterm-mouse-mode: t
>   ido-everywhere: t
>   savehist-mode: t
>   icomplete-mode: t
>   partial-completion-mode: t
>   show-paren-mode: t
>   delete-selection-mode: t
>   file-name-shadow-mode: t
>   global-font-lock-mode: t
>   font-lock-mode: t
>   auto-encryption-mode: t
>   auto-compression-mode: t
>   column-number-mode: t
>   line-number-mode: t
>   transient-mark-mode: t
>
> Recent input:
> t SPC w h e r e SPC ESC q SPC ESC O A e ESC O B ESC 
> q SPC s t a g e 1 SPC c a n ' t SPC f i n d SPC s t 
> a g e 2 . ESC b ESC b ESC b ( DEL ESC [ 4 ~ SPC SPC 
> S i g h . ESC O C ESC O B C-@ ESC O B ESC O B ESC O 
> B ESC O B ESC O B ESC O B ESC O B C-w C-@ ESC O B ESC 
> O B ESC O B ESC O B ESC O B ESC O A C-w C-@ ESC O B 
> ESC O B ESC O B ESC O B C-g C-_ C-x C-x C-x C-x C-w 
> C-@ ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B 
> C-w C-@ ESC O B ESC O B ESC O B ESC O B ESC O B ESC 
> O B C-w C-@ ESC O B ESC O B ESC O B ESC O B ESC O B 
> ESC O B ESC O B ESC O B ESC O B C-x C-x ESC O A C-w 
> DEL C-x C-s RET RET ESC O B ESC O B DEL DEL DEL C-x 
> C-s ESC < ESC % SPC > RET > RET ! ESC O B DEL ESC O 
> A ESC O A ESC O A ESC O A ESC O A ESC [ 1 ~ RET ESC 
> q ESC O A C-d ESC > C-x C-s C-x C-s ESC O A ESC q C-x 
> C-s C-x C-c q y ESC x r e p o r t SPC e m a c s SPC 
> b u g RET
>
> Recent messages:
> Mark set [2 times]
> Replaced 5 occurrences
> Mark set
> Saving file /tmp/mutt-dali-1000-1258-11239a89bc4892b64a...
> Wrote /tmp/mutt-dali-1000-1258-11239a89bc4892b64a
> (No changes need to be saved)
> Saving file /tmp/mutt-dali-1000-1258-11239a89bc4892b64a...
> Wrote /tmp/mutt-dali-1000-1258-11239a89bc4892b64a
> Are you sure you want to quit reading news? (y or n) 
> (No changes need to be saved)
>
> Load-path shadows:
> /usr/share/emacs/site-lisp/haskell-mode/inf-haskell hides /usr/share/emacs/23.2/site-lisp/haskell-mode/inf-haskell
> /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-site-file
> /usr/share/emacs/site-lisp/haskell-mode/haskell-simple-indent hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-simple-indent
> /usr/share/emacs/site-lisp/haskell-mode/haskell-mode hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-mode
> /usr/share/emacs/site-lisp/haskell-mode/haskell-indentation hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-indentation
> /usr/share/emacs/site-lisp/haskell-mode/haskell-indent hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-indent
> /usr/share/emacs/site-lisp/haskell-mode/haskell-hugs hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-hugs
> /usr/share/emacs/site-lisp/haskell-mode/haskell-ghci hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-ghci
> /usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-font-lock
> /usr/share/emacs/site-lisp/haskell-mode/haskell-doc hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-doc
> /usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-decl-scan
> /usr/share/emacs/site-lisp/haskell-mode/haskell-cabal hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-cabal
> /usr/share/emacs/site-lisp/haskell-mode/haskell-c hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-c
> /usr/share/emacs/23.2/site-lisp/puppet-el/puppet-mode hides /usr/share/emacs/site-lisp/puppet-mode
> /usr/share/emacs/23.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
> /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.2/lisp/textmodes/flyspell
> /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.2/lisp/textmodes/ispell
>
> Features:
> (shadow sort mail-extr emacsbug newcomment vc-dispatcher vc-darcs cl
> cl-19 xml parse-time timezone nndraft nnmh auth-source gnus-agent
> gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art image mm-uu
> mml2015 epg-config mm-view smime dig nntp gnus-cache gnus-sum nnoo
> gnus-group gnus-undo nnmail mail-source format-spec gnus-start gnus-spec
> gnus-int gnus-range message sendmail regexp-opt ecomplete rfc822 mml
> easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap
> mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils
> mailheader canlock sha1 hex-util hashcash gnus-win gnus gnus-ems
> nnheader gnus-util netrc time-date mail-utils mm-util mail-prsvr
> wid-edit server jka-compr edmacro kmacro xt-mouse ido savehist icomplete
> complete paren delsel saveplace debian-el debian-el-loaddefs w3m-load
> emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode
> dpkg-dev-el dpkg-dev-el-loaddefs ediff-hook vc-hooks lisp-float-type
> lisp-mode register page menu-bar rfn-eshadow timer select mldrag 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
> loaddefs button minibuffer faces cus-face files text-properties overlay
> md5 base64 format env code-pages mule custom widget
> hashtable-print-readable backquote make-network-process dbusbind
> multi-tty emacs)





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

* bug#6685: 23.2; Discards control characters during boot.
  2016-09-08  5:08 ` Andrew Hyatt
@ 2016-09-08 16:21   ` Eli Zaretskii
  2016-09-09 20:32     ` Andrew Hyatt
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2016-09-08 16:21 UTC (permalink / raw)
  To: Andrew Hyatt; +Cc: trentbuck, 6685

> From: Andrew Hyatt <ahyatt@gmail.com>
> Date: Thu, 08 Sep 2016 01:08:55 -0400
> Cc: 6685@debbugs.gnu.org
> 
> 
> I was trying to reproduce this in Emacs 25, but emacsclient will not
> start up a new emacs instance with emacsclient. According to the
> documentation I have on emacsclient on using the alternative editor
> flag:
> 
> If the value of EDITOR is the empty string, run "emacs --daemon" to
> start Emacs in daemon mode, and try to connect to it.
> 
> So I can't reproduce this issue anymore.  Let me know if I'm missing
> something, please.

Sorry, I don't understand what you are saying.  Starting the daemon
with ALTERNATIVE_EDITOR="" was part of the recipe; you seem to say it
no longer works, although the documentation still says it should?  It
certainly works for me, if I understood correctly what you described.





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

* bug#6685: 23.2; Discards control characters during boot.
  2016-09-08 16:21   ` Eli Zaretskii
@ 2016-09-09 20:32     ` Andrew Hyatt
  2016-09-10  6:23       ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Andrew Hyatt @ 2016-09-09 20:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: trentbuck, 6685

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

On Thu, Sep 8, 2016 at 12:21 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Andrew Hyatt <ahyatt@gmail.com>
> > Date: Thu, 08 Sep 2016 01:08:55 -0400
> > Cc: 6685@debbugs.gnu.org
> >
> >
> > I was trying to reproduce this in Emacs 25, but emacsclient will not
> > start up a new emacs instance with emacsclient. According to the
> > documentation I have on emacsclient on using the alternative editor
> > flag:
> >
> > If the value of EDITOR is the empty string, run "emacs --daemon" to
> > start Emacs in daemon mode, and try to connect to it.
> >
> > So I can't reproduce this issue anymore.  Let me know if I'm missing
> > something, please.
>
> Sorry, I don't understand what you are saying.  Starting the daemon
> with ALTERNATIVE_EDITOR="" was part of the recipe; you seem to say it
> no longer works, although the documentation still says it should?  It
> certainly works for me, if I understood correctly what you described.
>

It doesn't work for me for some reason, and the documentation seems to
imply that it shouldn't work.  If using ALTERNATIVE_EDITOR="" started emacs
in daemon mode, why would the documentation tell the user to run the "emacs
--daemon" manually?  Instead, what I get when I don't have an emacs in
daemon mode, is just emacsclient telling me there's no emacs daemon running.

Judging by your response, I feel I must be misunderstanding something, but
I don't know what.

[-- Attachment #2: Type: text/html, Size: 2371 bytes --]

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

* bug#6685: 23.2; Discards control characters during boot.
  2016-09-09 20:32     ` Andrew Hyatt
@ 2016-09-10  6:23       ` Eli Zaretskii
  2016-09-11  3:53         ` Andrew Hyatt
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2016-09-10  6:23 UTC (permalink / raw)
  To: Andrew Hyatt; +Cc: trentbuck, 6685

> From: Andrew Hyatt <ahyatt@gmail.com>
> Date: Fri, 09 Sep 2016 20:32:57 +0000
> Cc: trentbuck@gmail.com, 6685@debbugs.gnu.org
> 
>  > I was trying to reproduce this in Emacs 25, but emacsclient will not
>  > start up a new emacs instance with emacsclient. According to the
>  > documentation I have on emacsclient on using the alternative editor
>  > flag:
>  >
>  > If the value of EDITOR is the empty string, run "emacs --daemon" to
>  > start Emacs in daemon mode, and try to connect to it.
>  >
>  > So I can't reproduce this issue anymore. Let me know if I'm missing
>  > something, please.
> 
>  Sorry, I don't understand what you are saying. Starting the daemon
>  with ALTERNATIVE_EDITOR="" was part of the recipe; you seem to say it
>  no longer works, although the documentation still says it should? It
>  certainly works for me, if I understood correctly what you described.
> 
> It doesn't work for me for some reason, and the documentation seems to imply that it shouldn't work. If using
> ALTERNATIVE_EDITOR="" started emacs in daemon mode, why would the documentation tell the user to
> run the "emacs --daemon" manually? Instead, what I get when I don't have an emacs in daemon mode, is just
> emacsclient telling me there's no emacs daemon running.
> 
> Judging by your response, I feel I must be misunderstanding something, but I don't know what.

What happens if you try this command on your system?  That is, if you
type

  ALTERNATE_EDITOR='' emacsclient -t -c

What I see on a typical GNU/Linux system is this:

  /home/e/eliz/emacs-current/lib-src/emacsclient: can't find socket; have you started the server?
  To start the server in Emacs, type "M-x server-start".

  Warning: due to a long standing Gtk+ bug
  http://bugzilla.gnome.org/show_bug.cgi?id=85715
  Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.
  Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.
  ("emacs")
  Loading 00debian-vars...
  [More packages loading from the site-init file...]
  Starting Emacs daemon.
  Restarting server
  Emacs daemon should have started, trying to connect again

and then I see an Emacs frame (in text mode in this case, since -t was
used) open.  As you see, after warning me about no daemon running,
emacsclient starts a new daemon, then attempts to reconnect to it.

What happens if you try that?





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

* bug#6685: 23.2; Discards control characters during boot.
  2016-09-10  6:23       ` Eli Zaretskii
@ 2016-09-11  3:53         ` Andrew Hyatt
  2016-09-11 15:35           ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Andrew Hyatt @ 2016-09-11  3:53 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: trentbuck, 6685

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Andrew Hyatt <ahyatt@gmail.com>
>> Date: Fri, 09 Sep 2016 20:32:57 +0000
>> Cc: trentbuck@gmail.com, 6685@debbugs.gnu.org
>> 
>>  > I was trying to reproduce this in Emacs 25, but emacsclient will not
>>  > start up a new emacs instance with emacsclient. According to the
>>  > documentation I have on emacsclient on using the alternative editor
>>  > flag:
>>  >
>>  > If the value of EDITOR is the empty string, run "emacs --daemon" to
>>  > start Emacs in daemon mode, and try to connect to it.
>>  >
>>  > So I can't reproduce this issue anymore. Let me know if I'm missing
>>  > something, please.
>> 
>>  Sorry, I don't understand what you are saying. Starting the daemon
>>  with ALTERNATIVE_EDITOR="" was part of the recipe; you seem to say it
>>  no longer works, although the documentation still says it should? It
>>  certainly works for me, if I understood correctly what you described.
>> 
>> It doesn't work for me for some reason, and the documentation seems to imply
>> that it shouldn't work. If using
>> ALTERNATIVE_EDITOR="" started emacs in daemon mode, why would the
>> documentation tell the user to
>> run the "emacs --daemon" manually? Instead, what I get when I don't have an
>> emacs in daemon mode, is just
>> emacsclient telling me there's no emacs daemon running.
>> 
>> Judging by your response, I feel I must be misunderstanding something, but I
>> don't know what.
>
> What happens if you try this command on your system?  That is, if you
> type
>
>   ALTERNATE_EDITOR='' emacsclient -t -c
>
> What I see on a typical GNU/Linux system is this:
>
>   /home/e/eliz/emacs-current/lib-src/emacsclient: can't find socket; have you
> started the server?
>   To start the server in Emacs, type "M-x server-start".
>
>   Warning: due to a long standing Gtk+ bug
>   http://bugzilla.gnome.org/show_bug.cgi?id=85715
>   Emacs might crash when run in daemon mode and the X11 connection is
> unexpectedly lost.
>   Using an Emacs configured with --with-x-toolkit=lucid does not have this
> problem.
>   ("emacs")
>   Loading 00debian-vars...
>   [More packages loading from the site-init file...]
>   Starting Emacs daemon.
>   Restarting server
>   Emacs daemon should have started, trying to connect again
>
> and then I see an Emacs frame (in text mode in this case, since -t was
> used) open.  As you see, after warning me about no daemon running,
> emacsclient starts a new daemon, then attempts to reconnect to it.
>
> What happens if you try that?

Yes, you are correct - I must have had a typo.  When I tried it again
today, it works as you describe, and I was able to reproduce the
original bug.  Thanks for the help.

I still think the manual seems to say this shouldn't be expected to
work, which is odd.






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

* bug#6685: 23.2; Discards control characters during boot.
  2016-09-11  3:53         ` Andrew Hyatt
@ 2016-09-11 15:35           ` Eli Zaretskii
  2016-09-14 14:46             ` Trent W. Buck
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2016-09-11 15:35 UTC (permalink / raw)
  To: Andrew Hyatt; +Cc: trentbuck, 6685

> From: Andrew Hyatt <ahyatt@gmail.com>
> Cc: trentbuck@gmail.com,  6685@debbugs.gnu.org
> Date: Sat, 10 Sep 2016 23:53:03 -0400
> 
> Yes, you are correct - I must have had a typo.  When I tried it again
> today, it works as you describe, and I was able to reproduce the
> original bug.  Thanks for the help.

The original bug is probably due to the initial queries we make to see
if xterm supports some advanced features.  Can you see if this is
indeed the culprit?

> I still think the manual seems to say this shouldn't be expected to
> work, which is odd.

Not sure which part you think says that, the documentation sounds
correct to me.





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

* bug#6685: 23.2; Discards control characters during boot.
  2016-09-11 15:35           ` Eli Zaretskii
@ 2016-09-14 14:46             ` Trent W. Buck
  0 siblings, 0 replies; 10+ messages in thread
From: Trent W. Buck @ 2016-09-14 14:46 UTC (permalink / raw)
  To: 6685

Eli Zaretskii wrote:
> > From: Andrew Hyatt <ahyatt@gmail.com>
> > Cc: trentbuck@gmail.com,  6685@debbugs.gnu.org
> > Date: Sat, 10 Sep 2016 23:53:03 -0400
> >
> > Yes, you are correct - I must have had a typo.  When I tried it again
> > today, it works as you describe, and I was able to reproduce the
> > original bug.  Thanks for the help.
>
> The original bug is probably due to the initial queries we make to see
> if xterm supports some advanced features.  Can you see if this is
> indeed the culprit?

I tried adding

    (setq xterm-extra-capabilities nil)

to my ~/.emacs and as at

    GNU Emacs 24.4.1 (x86_64-pc-linux-gnu) of 2014-10-26 on trouble,
    modified by Debian

...I still saw that M-x turned into just x if I typed it while Emacs
was starting (using ALTERNATE_EDITOR= emacsclient -c -t).

I tried using *just* that line as my .emacs,
but emacs started too fast for me to type the M-x. :-)

I don't have a 25.x handy to test with - since 24.4 has
xterm-extra-capabilities I hope it's new enough to be a useful test.

It definitely doesn't happen with just "emacs" instead of
"ALTERNATE_EDITOR= emacsclient -c -t".





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

end of thread, other threads:[~2016-09-14 14:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-21  2:13 bug#6685: 23.2; Discards control characters during boot Trent W. Buck
2012-04-11  8:07 ` Chong Yidong
2012-04-11 10:56   ` Trent W. Buck
2016-09-08  5:08 ` Andrew Hyatt
2016-09-08 16:21   ` Eli Zaretskii
2016-09-09 20:32     ` Andrew Hyatt
2016-09-10  6:23       ` Eli Zaretskii
2016-09-11  3:53         ` Andrew Hyatt
2016-09-11 15:35           ` Eli Zaretskii
2016-09-14 14:46             ` Trent W. Buck

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.