From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.bugs Subject: bug#11822: 24.1; emacsclient terminal mode captures escape characters as text Date: Fri, 29 Jun 2012 20:08:40 -0400 Message-ID: <6eipe9fypj.fsf@just-testing.permabit.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341014994 12951 80.91.229.3 (30 Jun 2012 00:09:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2012 00:09:54 +0000 (UTC) To: 11822@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 30 02:09:54 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SklG3-0000tR-MK for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jun 2012 02:09:51 +0200 Original-Received: from localhost ([::1]:52043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SklG3-0004Sw-Dl for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jun 2012 20:09:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SklFw-0004Sj-WC for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2012 20:09:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SklFt-0004FC-Vz for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2012 20:09:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SklFt-0004F3-Rp for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2012 20:09:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SklK5-0000q6-OV for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2012 20:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Raeburn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jun 2012 00:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11822 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13410151973163 (code B ref -1); Sat, 30 Jun 2012 00:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jun 2012 00:13:17 +0000 Original-Received: from localhost ([127.0.0.1]:38002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SklJK-0000oP-R6 for submit@debbugs.gnu.org; Fri, 29 Jun 2012 20:13:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56901) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SklJI-0000oH-J9 for submit@debbugs.gnu.org; Fri, 29 Jun 2012 20:13:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SklF3-0003tu-Ab for submit@debbugs.gnu.org; Fri, 29 Jun 2012 20:08:51 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:33369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SklF3-0003th-79 for submit@debbugs.gnu.org; Fri, 29 Jun 2012 20:08:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SklF0-0004Qr-Nn for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2012 20:08:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SklEx-0003sp-Kk for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2012 20:08:45 -0400 Original-Received: from pbit-mailserver.permabit.com ([204.246.225.83]:54681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SklEx-0003sL-En for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2012 20:08:43 -0400 Original-Received: from just-testing.permabit.com (just-testing.permabit.com [10.95.208.54]) by pbit-mailserver.permabit.com (Postfix) with ESMTPS id 56942148E171; Fri, 29 Jun 2012 20:08:40 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61428 Archived-At: 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: 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 M-x e m a c s - v e r s i o n C-x m C-x k M-x e m a c s - b u g r e p o r t - e m 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)