unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11822: 24.1; emacsclient terminal mode captures escape characters as text
@ 2012-06-30  0:08 Ken Raeburn
  2012-06-30  5:55 ` Eli Zaretskii
  0 siblings, 1 reply; 64+ messages in thread
From: Ken Raeburn @ 2012-06-30  0:08 UTC (permalink / raw)
  To: 11822

I've been using Emacs in daemon mode and starting X11 frames for most of
my editing, and setting $EDITOR to point to a script that invokes
"emacsclient -t" so programs launching an editor get Emacs using the
program's original window (under gnome-terminal).

Often, Emacs seems to suffer a couple of problems when $EDITOR gets
invoked:

1) After Emacs takes over the terminal window (which can take several
seconds), it displays one of my pre-existing buffers for several seconds
before switching to the new file to be edited.  The file to be edited in
these cases is typically living in NFS and kind of large (over 24KB this
last time), so it's possible that reading the file is slow.  It's a bit
distracting to have this other file displayed for so long though.  I see
code in server-create-tty-frame to explicitly select the *scratch*
buffer, but it doesn't seem to be doing it.

2) After Emacs displays the file to be edited, some text from an escape
sequence gets inserted; view-lossage shows this sequence:
   ESC [ > 1 ; 2 4 0 3 ; 0 c
The buffer itself now contains the part starting with "1".

One time so far, though I think it was with a pretest version before
24.1, I even had Emacs take over the terminal window from which some
program launched $EDITOR, but then the file to be edited got displayed
in one of my already existing X11 windows.  I haven't had it happen
again, though I haven't tried to figure out how to reproduce it either.
(Maybe I clicked on the X11 window during one of those delays described
above and that confused Emacs?)

I have no idea what the "error during redisplay" messages shown below
are about; I hadn't even noticed them until skimming this report.


In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2012-06-11 on just-testing.permabit.com
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Configured using:
 `configure
 '--prefix=/permabit/user/raeburn/I64/install/emacs-24.1.squeeze'
 '--with-x-toolkit=lucid''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  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: C
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: C/l

Minor modes in effect:
  diff-auto-refine-mode: t
  eldoc-mode: t
  rcirc-track-minor-mode: t
  whitespace-mode: t
  desktop-save-mode: t
  jabber-activity-mode: t
  display-time-mode: t
  which-function-mode: t
  icomplete-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-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
  abbrev-mode: t

Recent input:
<mouse-5> <down-mouse-1> <mouse-movement> <mouse-1> 
<M-backspace> <M-backspace> w h e t h e r C-x C-s ESC 
[ > 1 ; 2 4 0 3 ; 0 c ESC DEL ESC DEL ESC DEL C-f C-x 
C-s C-x C-c <down-mouse-1> <mouse-movement> <mouse-1> 
M-x e m a c s - v e r s i o n <return> C-x m C-x k 
<return> M-x e m a c s - b u g <tab> <M-backspace> 
<M-backspace> r e p o r t - e m <tab> <return>

Recent messages:
Error during redisplay: (wrong-type-argument arrayp nil) [4 times]
When done with a buffer, type C-x #
Error during redisplay: (wrong-type-argument arrayp nil) [2 times]
Saving file /permabit/user/raeburn/workspace/timeout/.git/COMMIT_EDITMSG...
Wrote /permabit/user/raeburn/workspace/timeout/.git/COMMIT_EDITMSG
Error during redisplay: (wrong-type-argument arrayp nil)
(No files need saving)
Error during redisplay: (wrong-type-argument arrayp nil) [17 times]
GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2012-06-11 on just-testing.permabit.com
Error during redisplay: (wrong-type-argument arrayp nil) [23 times]

Load-path shadows:
None found.

Features:
(pcmpl-gnu diff-mode vc ediff-merg ediff-diff ediff-wind ediff-help
ediff-util ediff-mult ediff-init ediff vc-dispatcher dired-aux
face-remap apropos find-dired sgml-mode asm-mode conf-mode pcmpl-unix
debug nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc
rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns
nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok
arc-mode archive-mode doc-view image-mode dired python-21 python novice
noutline outline objdump ielm tramp-sh tramp-cache gnus-cite qp
gnus-async gnus-bcklg gnus-ml disp-table nndraft nnmh nnfolder utf-7
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-cache align
copyright pp tabify man grep gnutls mailalias smtpmail cus-edit
jka-compr find-func multi-isearch add-log newcomment shadow sort
mail-extr gnus-msg network-stream url-cache url-http url-gw url-auth url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-util url-parse url-vars emacsbug sendmail goto-addr thingatpt
jabber-keepalive jabber-bookmarks jabber-private sasl-digest hmac-md5
hex-util help-mode view mule-util server autorevert make-mode sh-script
executable vc-git c-eldoc eldoc rcirc whitespace desktop cus-start
cus-load jabber jabber-awesome jabber-osd jabber-wmii jabber-xmessage
jabber-festival jabber-sawfish jabber-ratpoison jabber-screen
jabber-socks5 jabber-ft-server jabber-si-server jabber-ft-client
jabber-ft-common jabber-si-client jabber-si-common jabber-feature-neg
jabber-truncate jabber-time jabber-autoaway jabber-vcard-avatars
jabber-chatstates jabber-events jabber-vcard jabber-avatar
jabber-activity jabber-watch jabber-modeline easy-mmode
jabber-ahc-presence jabber-ahc jabber-version jabber-ourversion
jabber-muc-nick-completion hippie-exp jabber-browse jabber-search
jabber-register jabber-roster edmacro kmacro jabber-presence jabber-muc
jabber-newdisco jabber-widget jabber-disco jabber-chat ewoc
jabber-history jabber-chatbuffer jabber-alert jabber-iq jabber-keymap
jabber-core jabber-sasl sasl sasl-anonymous sasl-login sasl-plain fsm
jabber-logon jabber-conn srv dns starttls jabber-xml jabber-menu
jabber-autoloads jabber-util cl idutils compile cperl-mode p4 timeclock
time cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs warnings which-func imenu icomplete kr-stuff
ses unsafep nnimap parse-time tls utf7 netrc browse-url edit-server
gnus-demon nntp gnus-art mm-uu mml2015 epg-config mm-view mml-smime
smime dig mailcap gnus-sum nnoo gnus-group gnus-undo nnmail mail-source
gnus-start gnus-spec gnus-int gnus-range message rfc822 mml easymenu
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems
nnheader mail-utils wid-edit iso-transl notifications dbus xml tramp
tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv
macroexp assoc gnus-util time-date mm-util mail-prsvr password-cache
format-spec tramp-loaddefs ssh shell pcomplete comint regexp-opt
ansi-color ring uniquify advice help-fns advice-preload tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe 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 files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting font-render-setting x-toolkit x multi-tty
emacs)





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

end of thread, other threads:[~2015-09-26  7:01 UTC | newest]

Thread overview: 64+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-30  0:08 bug#11822: 24.1; emacsclient terminal mode captures escape characters as text Ken Raeburn
2012-06-30  5:55 ` Eli Zaretskii
2012-07-31 21:06   ` Ken Raeburn
2012-08-08  3:13     ` Ken Raeburn
2012-08-08  4:52       ` Dan Nicolaescu
2012-08-08  9:26         ` Ken Raeburn
2012-08-09 21:12           ` Ken Raeburn
2012-08-10  6:16             ` Eli Zaretskii
2012-08-10  7:27               ` Ken Raeburn
2012-08-10  7:46                 ` Eli Zaretskii
2012-08-10  8:08                   ` Eli Zaretskii
2015-09-07 21:09                     ` Ken Raeburn
2015-09-08  1:29                       ` Stefan Monnier
2015-09-08  4:29                         ` Eli Zaretskii
2015-09-08  6:53                         ` Ken Raeburn
2015-09-08 13:03                           ` Stefan Monnier
2015-09-08 13:11                           ` Stefan Monnier
2015-09-08 17:21                             ` Eli Zaretskii
2015-09-08  4:48                       ` Eli Zaretskii
2015-09-08 10:15                         ` Ken Raeburn
2015-09-08 13:35                           ` Stefan Monnier
2015-09-08 17:33                           ` Eli Zaretskii
2015-09-08 19:54                             ` Ken Raeburn
2015-09-09 14:16                               ` Eli Zaretskii
2015-09-10  6:59                                 ` Ken Raeburn
2015-09-10 15:36                                   ` Eli Zaretskii
2015-09-10 17:56                                     ` Stefan Monnier
2015-09-10 18:06                                       ` Eli Zaretskii
2015-09-11 12:56                                         ` Stefan Monnier
2015-09-11 13:53                                           ` Eli Zaretskii
2015-09-11 16:53                                             ` Stefan Monnier
2015-09-11  6:54                                     ` Ken Raeburn
2015-09-11  7:22                                       ` Eli Zaretskii
2015-09-11 23:11                                         ` Ken Raeburn
2015-09-12  0:51                                           ` Stefan Monnier
2015-09-12  1:34                                             ` Ken Raeburn
2015-09-15 14:29                                             ` Eli Zaretskii
2015-09-15 16:14                                               ` Stefan Monnier
2015-09-18 14:19                                                 ` Eli Zaretskii
2015-09-21  9:23                                                   ` Ken Raeburn
2015-09-21  9:44                                                     ` Eli Zaretskii
2015-09-23 17:27                                                       ` Ken Raeburn
2015-09-23 18:04                                                         ` martin rudalics
2015-09-23 20:59                                                           ` Ken Raeburn
2015-09-23 19:17                                                         ` Eli Zaretskii
2015-09-24  8:52                                                           ` Ken Raeburn
2015-09-24 18:46                                                             ` Eli Zaretskii
2015-09-24 20:08                                                               ` Ken Raeburn
2015-09-25  6:49                                                                 ` Eli Zaretskii
2015-09-25 12:07                                                                   ` Stefan Monnier
2015-09-26  7:01                                                                   ` Eli Zaretskii
2015-09-25  6:50                                                             ` Eli Zaretskii
2015-09-25 12:09                                                               ` Stefan Monnier
2015-09-25 13:29                                                                 ` Eli Zaretskii
2015-09-25 15:18                                                                   ` Stefan Monnier
2015-09-12  7:30                                           ` Eli Zaretskii
2015-09-11 13:39                                       ` Stefan Monnier
2015-09-11 14:01                                         ` Eli Zaretskii
2015-09-08 13:22                         ` Stefan Monnier
2015-09-08 17:25                           ` Eli Zaretskii
2015-09-08 18:52                             ` Stefan Monnier
2015-09-08 19:08                               ` Eli Zaretskii
2015-09-08 20:37                                 ` Stefan Monnier
2015-09-08 17:36                         ` Eli Zaretskii

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