[Top][All Lists]

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

bug#11822: 24.1; emacsclient terminal mode captures escape characters as

From: Ken Raeburn
Subject: bug#11822: 24.1; emacsclient terminal mode captures escape characters as text
Date: Fri, 29 Jun 2012 20:08:40 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

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

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:

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.

(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

reply via email to

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