From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 15 11:43:15 2011 Received: (at submit) by debbugs.gnu.org; 15 Jun 2011 15:43:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QWsFP-000741-3T for submit@debbugs.gnu.org; Wed, 15 Jun 2011 11:43:15 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QWsFM-00073p-SA for submit@debbugs.gnu.org; Wed, 15 Jun 2011 11:43:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWsFG-00042Y-3N for submit@debbugs.gnu.org; Wed, 15 Jun 2011 11:43:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:43231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWsFF-00042S-TG for submit@debbugs.gnu.org; Wed, 15 Jun 2011 11:43:05 -0400 Received: from eggs.gnu.org ([140.186.70.92]:44081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWsFD-00061a-Vw for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 11:43:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWsFB-00041p-4t for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 11:43:03 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:12649 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWsFA-00041d-Hb for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 11:43:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlEFACzS+E1FpY1I/2dsb2JhbABPA5gOAY5FeKgnn1aDOYJtBJ0/hBs X-IronPort-AV: E=Sophos;i="4.65,370,1304308800"; d="scan'208";a="116368261" Received: from 69-165-141-72.dsl.teksavvy.com (HELO ceviche.home) ([69.165.141.72]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 15 Jun 2011 11:42:57 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 27F4266234; Wed, 15 Jun 2011 12:42:53 -0300 (ART) From: Stefan Monnier To: bug-gnu-emacs@gnu.org Subject: Unjustified selection time-out Message-ID: Date: Wed, 15 Jun 2011 11:42:53 -0400 MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.1 (----) Package: Emacs Version: 24.0.50 I recently started to get "selection time out errors" when deleting frames, which more recently turned into "mere delays", but they're still present. Maybe it is true that my system is misconfigured, but AFAIK I never messed with any clipboard configuration and no other application seems to exhibit such a delay when exiting, so I suspect there's a bug in our handling. E.g. I suspect the new code sometimes thinks there's a "modern clipboard manager" running when in reality there simply isn't any. Or maybe your delay is much longer than what is used by other applications. Stefan In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2011-06-12 on ceviche Windowing system distributor `The X.Org Foundation', version 11.0.11002000 configured using `configure 'CFLAGS=-Wall -Wno-pointer-sign -DUSE_LISP_UNION_TYPE -DSYNC_INPUT -DENABLE_CHECKING -DXASSERTS -DFONTSET_DEBUG -g -O1 -I/usr/include/GNUstep' '--enable-maintainer-mode' '--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: fr_CH.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Summary Minor modes in effect: diff-auto-refine-mode: t gnus-mailing-list-mode: t electric-pair-mode: t electric-indent-mode: t url-handler-mode: t global-reveal-mode: t reveal-mode: t auto-insert-mode: t savehist-mode: t minibuffer-electric-default-mode: t mouse-wheel-mode: t menu-bar-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 Recent input: i t SPC i n t o SPC s o m e t h i n g SPC y o u SPC l i k e C-a M-q C-SPC C-w C-SPC C-w Y u c k . H m m . . . SPC n o t SPC s u r e SPC w h y SPC i t SPC d o e s n ' t SPC u s e SPC w i t h - s e l e c t e d - w i n d o w . M-i S t e f a n C-a C-c C-/ C-/ , SPC b u t SPC y e s , SPC p r o v i d i n g SPC a SPC ` w i n d o w ' SPC a r g u m e n t SPC i s SPC e v e n SPC b e t t e r . C-c C-c M-x r e p o r t - e m - b u g b b u Recent messages: Mark set [2 times] Auto-saving...done call-interactively: End of buffer Undo! [2 times] Sending... Sending via mail... Sending...done X clipboard manager error: Timed out waiting for reply from selection owner If the problem persists, set `x-select-enable-clipboard-manager' to nil. Warning: interactive-p is obsolete! Load-path shadows: None found. Features: (shadow emacsbug woman tutorial help-macro man info-look info help-at-pt ehelp apropos cus-edit cus-start cus-load nndoc url-http url-gw url-auth rect dabbrev gnus-dup vc-bzr filecache bbdb-com bbdb timezone debug multi-isearch nnfolder canlock gnus-html browse-url xml url-cache mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util diff-mode jka-compr gnus-fun supercite regi executable copyright pp mule-util flow-fill sort smiley ansi-color gnus-cite mail-extr gnus-async gnus-bcklg qp gnus-ml nndraft nnmh rfc2104 network-stream starttls nnimap parse-time tls utf7 netrc nnagent nnml gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig mailcap nntp gnus-cache nnir gnus-sum nnoo gnus-group gnus-undo nnmail mail-source server gnus-start gnus-spec gnus-int gnus-range message sendmail format-spec rfc822 mml 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 noutline outline easy-mmode flyspell ispell eldoc checkdoc regexp-opt thingatpt help-mode easymenu view prog-mode electric url-handlers url-parse auth-source warnings eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util time-date password-cache url-vars mm-util mail-prsvr reveal autoinsert uniquify advice help-fns advice-preload savehist minibuf-eldef disp-table cl cl-loaddefs proof-site proof-autoloads pg-vars bbdb-autoloads agda2 tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page newcomment menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax 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 system-font-setting font-render-setting x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 15 21:00:41 2011 Received: (at 8869) by debbugs.gnu.org; 16 Jun 2011 01:00:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QX0wr-0003YB-Bd for submit@debbugs.gnu.org; Wed, 15 Jun 2011 21:00:41 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QX0wp-0003Xx-4i for 8869@debbugs.gnu.org; Wed, 15 Jun 2011 21:00:40 -0400 Received: from [87.198.47.170] (87-198-47-170.ptr.magnet.ie [87.198.47.170]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id 0CA676839A; Thu, 16 Jun 2011 02:00:32 +0100 (IST) Message-ID: <4DF955AF.6080107@harpegolden.net> Date: Thu, 16 Jun 2011 02:00:31 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110606 Icedove/3.1.10 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#8869: Unjustified selection time-out References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > E.g. I suspect the new code sometimes thinks there's a "modern clipboard > manager" running when in reality there simply isn't any. What does (x-selection-exists-p 'CLIPBOARD_MANAGER) return on your system? > Or maybe your > delay is much longer than what is used by other applications. Emacs uses 20s delay by default (x-selection-timeout), qt/kde and gtk/gnome apps are about 10s (estimated by watching them on my system, didn't dig the exact timeout figure from their sources) So emacs is waiting twice as long as other apps, but at 10s, I'd still expect the delay in most other apps to be fairly noticeable (for the apps that try to persist at exit at all). Mind you, some other apps' visible/inputoutput windows do disappear at the start rather than end of their wait, though, which might be perceptually hiding the issue. For Qt/KDE apps, watch out for the stderr message "QClipboard: Unable to receive an event from the clipboard manager in a reasonable time" 10 secs after "closing" them. There's also something of an architectural question raised (though might be a bit late to do anything about it given looming pretest, it's not a showstopper): You're seeing the delay when deleting frames - but there might be ways around emacs asking for its clipboard to be saved in such cases a lot of the time: Right now a given emacs frame['s x11 window] is used as the selection owner, AFAIUI. When that frame is to be deleted, emacs asks the clipboard manager (if one is detected) to save. But if it's not the last frame opened via a given terminal/display connection, that is a little wasteful. Emacs doesn't currently keep an extra per-terminal invisible/input-only window lurking (or maybe it does and I just don't know about it) - in contrast AFAICS gtk+ opens a per-process per-display GtkInvisible for owning selections [1][2][3], and Qt probably does something vaguely similar. Emacs could in principle do similar.* Or if we don't want to do something like that, then I suppose the ownership could be "migrated" to another visible frame on that terminal rather than doing that, "just" set selection owner to another living frame, though that could cause some history-keeping clipboard managers to have duplicate entries (though ones I've used do do dupe checking). [1] http://developer.gnome.org/gtk/2.24/GtkInvisible.html [2] http://git.gnome.org/browse/gtk+/tree/gtk/gtkclipboard.c#n451 [3] http://git.gnome.org/browse/gtk+/tree/gtk/gtkinvisible.c#n239 * Well, gtk+ toolkit builds of emacs may wind up with gtk+'s dangling unused and ignored, emacs doesn't use gtk+'s clipboard handling. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 16 02:59:02 2011 Received: (at 8869) by debbugs.gnu.org; 16 Jun 2011 06:59:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QX6Xd-0002rH-Oj for submit@debbugs.gnu.org; Thu, 16 Jun 2011 02:59:01 -0400 Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QX6XW-0002qx-TH for 8869@debbugs.gnu.org; Thu, 16 Jun 2011 02:59:00 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id C5C18EAAC7 for <8869@debbugs.gnu.org>; Thu, 16 Jun 2011 08:58:48 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArxcAOCo+U1V4S1kPGdsb2JhbABShEmESJ1OCwEBAQE3MohzAq8RkQiBK4NygQoEljUdin8 X-IronPort-AV: E=Sophos;i="4.65,373,1304287200"; d="scan'208";a="200240161" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb1.telenor.se with ESMTP; 16 Jun 2011 08:58:48 +0200 Received: from [10.225.17.4] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 3017F7FA05A; Thu, 16 Jun 2011 08:58:47 +0200 (CEST) Message-ID: <4DF9A9A5.6090404@swipnet.se> Date: Thu, 16 Jun 2011 08:58:45 +0200 From: "Jan D." User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; sv-SE; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: David De La Harpe Golden Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> In-Reply-To: <4DF955AF.6080107@harpegolden.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , Stefan Monnier , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) David De La Harpe Golden skrev 2011-06-16 03:00: > Right now a given emacs frame['s x11 window] is used as the selection > owner, AFAIUI. When that frame is to be deleted, emacs asks the > clipboard manager (if one is detected) to save. But if it's not the last > frame opened via a given terminal/display connection, that is a little > wasteful. > > Emacs doesn't currently keep an extra per-terminal invisible/input-only > window lurking (or maybe it does and I just don't know about it) - in > contrast AFAICS gtk+ opens a per-process per-display GtkInvisible for > owning selections [1][2][3], and Qt probably does something vaguely > similar. Emacs could in principle do similar.* There is the session-leader window. Not designed for this, but could do the job. On the other hand, creating a new selection-holding window is not much job. For multidisplay you actually need one window per display, so the session leader isn't really appropriate. That is display as in X11 Display*, not display as in multiscreen. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 16 09:48:13 2011 Received: (at 8869) by debbugs.gnu.org; 16 Jun 2011 13:48:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXCvc-0001kE-NF for submit@debbugs.gnu.org; Thu, 16 Jun 2011 09:48:13 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXCva-0001jw-KF for 8869@debbugs.gnu.org; Thu, 16 Jun 2011 09:48:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAJIH+k1MCozA/2dsb2JhbABSpl94iHPAe4YnBJ1OhB0 X-IronPort-AV: E=Sophos;i="4.65,375,1304308800"; d="scan'208";a="116441975" Received: from 76-10-140-192.dsl.teksavvy.com (HELO pastel.home) ([76.10.140.192]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 16 Jun 2011 09:44:53 -0400 Received: by pastel.home (Postfix, from userid 20848) id 7E08959010; Thu, 16 Jun 2011 09:44:53 -0400 (EDT) From: Stefan Monnier To: David De La Harpe Golden Subject: Re: bug#8869: Unjustified selection time-out Message-ID: References: <4DF955AF.6080107@harpegolden.net> Date: Thu, 16 Jun 2011 09:44:53 -0400 In-Reply-To: <4DF955AF.6080107@harpegolden.net> (David De La Harpe Golden's message of "Thu, 16 Jun 2011 02:00:31 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > What does > (x-selection-exists-p 'CLIPBOARD_MANAGER) > return on your system? It returns t. >> Or maybe your delay is much longer than what is used by >> other applications. > Emacs uses 20s delay by default (x-selection-timeout), qt/kde and gtk/gnome > apps are about 10s (estimated by watching them on my system, didn't dig the > exact timeout figure from their sources) I don't actually know which application other than Emacs implements this protocol, but gnome-terminal exits in less than 1s, same for Firefox (well, it might take a bit more than 1s for Firefox, but it's still pretty close). Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 16 11:36:45 2011 Received: (at 8869) by debbugs.gnu.org; 16 Jun 2011 15:36:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXEce-00086K-Uy for submit@debbugs.gnu.org; Thu, 16 Jun 2011 11:36:45 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXEcc-000865-W8 for 8869@debbugs.gnu.org; Thu, 16 Jun 2011 11:36:43 -0400 Received: from [87.198.47.170] (87-198-47-170.ptr.magnet.ie [87.198.47.170]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id A4DA768533; Thu, 16 Jun 2011 16:36:36 +0100 (IST) Message-ID: <4DFA2303.2070304@harpegolden.net> Date: Thu, 16 Jun 2011 16:36:35 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110606 Icedove/3.1.10 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 16/06/11 14:44, Stefan Monnier wrote: >> What does >> (x-selection-exists-p 'CLIPBOARD_MANAGER) >> return on your system? > > It returns t. > So, well, it does sound like you do have something that looks like a clipboard manager hanging about ...but what? (i.e. what process is the owner of that selection...). Of course, if other apps aren't being affected, maybe it is an issue with emacs rather than the clipboard maanger. But to investigate further, it would still be good to know what version of what clipboard manager you're running (even if you didn't know you were running one...). ISTR you once mentioning you used a fairly old-school desktop setup, don't know what you're using now - given you mention gnome-terminal, though, can you see if you have the "gnome-settings-daemon" process hanging around? It's a clipboard manager among other things. I'm a bit slow to blame the new code, as we've already seen one buggy clipboard manager (a particular version of xfce4-settings-helper, now superseded). We did also have one user report a problem under their gnome desktop, but neither Chong Yidong nor myself could replicate it (#8779). > I don't actually know which application other than Emacs implements this > protocol, but gnome-terminal exits in less than 1s, same for Firefox > (well, it might take a bit more than 1s for Firefox, but it's still > pretty close). > gnome-terminal was one of the apps I tested with, it takes 10 secs to timeout on my system if I make my clipboard manager malfunction in such a way that it still claims to exist but doesn't work (and of course have just copied in gnome-terminal). Testing firefox (or actually iceweasel) it takes a bit over 10 secs too. Uh. Can you start from a fresh emacs -Q and reliably replicate the issue, or is it only happening sometimes even considering only those times you've just copied in emacs? From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 16 22:56:51 2011 Received: (at 8869) by debbugs.gnu.org; 17 Jun 2011 02:56:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXPEp-0007dB-6t for submit@debbugs.gnu.org; Thu, 16 Jun 2011 22:56:51 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXPEj-0007cv-5b for 8869@debbugs.gnu.org; Thu, 16 Jun 2011 22:56:49 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAPbA+k1FpZvP/2dsb2JhbABSpmt4iHPBBYYnBJ1YhB8 X-IronPort-AV: E=Sophos;i="4.65,379,1304308800"; d="scan'208";a="116498796" Received: from 69-165-155-207.dsl.teksavvy.com (HELO ceviche.home) ([69.165.155.207]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 16 Jun 2011 22:56:39 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 0A97D66234; Thu, 16 Jun 2011 23:56:39 -0300 (ART) From: Stefan Monnier To: David De La Harpe Golden Subject: Re: bug#8869: Unjustified selection time-out Message-ID: References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> Date: Thu, 16 Jun 2011 22:56:39 -0400 In-Reply-To: <4DFA2303.2070304@harpegolden.net> (David De La Harpe Golden's message of "Thu, 16 Jun 2011 16:36:35 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > ISTR you once mentioning you used a fairly old-school desktop setup, don't > know what you're using now - given you mention gnome-terminal, though, can Here's the idea: - standard Debian testing Gnome setup. - killall metacity. - start good'ol ctwm, emacs, and xterm. - add a zest of xmodmap+xresources. I never use gnome-terminal because good'ol xterm works just fine, thank you. > you see if you have the "gnome-settings-daemon" process hanging around? Yes, it's there. `dpkg' tells me it's package version 2.30.2-3. > gnome-terminal was one of the apps I tested with, it takes 10 secs to So, my random pick of gnome-terminal for testing was a good one, great. > Uh. Can you start from a fresh emacs -Q and reliably replicate the issue, or > is it only happening sometimes even considering only those times you've just > copied in Emacs? Hmm... I'm indeed having some trouble replicating the problem from "emacs -Q". I rarely if ever delete frames or exit Emacs, so I didn't notice it, but it seems to only appear when I send an email/news message with Gnus (these are placed in dedicated frames). OK, I'll try and come up with a self-contained test case. Thanks, Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 17 14:11:46 2011 Received: (at 8869) by debbugs.gnu.org; 17 Jun 2011 18:11:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXdWE-0002Vx-0P for submit@debbugs.gnu.org; Fri, 17 Jun 2011 14:11:46 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXdWC-0002Vk-6m for 8869@debbugs.gnu.org; Fri, 17 Jun 2011 14:11:44 -0400 Received: from [87.198.47.59] (87-198-47-59.ptr.magnet.ie [87.198.47.59]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id D3FDB68533; Fri, 17 Jun 2011 19:11:37 +0100 (IST) Message-ID: <4DFB98D8.5030204@harpegolden.net> Date: Fri, 17 Jun 2011 19:11:36 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110606 Icedove/3.1.10 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> In-Reply-To: Content-Type: multipart/mixed; boundary="------------080608070208090600050409" X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) This is a multi-part message in MIME format. --------------080608070208090600050409 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 17/06/11 03:56, Stefan Monnier wrote: >> ISTR you once mentioning you used a fairly old-school desktop setup, don't >> know what you're using now - given you mention gnome-terminal, though, can > > Here's the idea: > - standard Debian testing Gnome setup. > - killall metacity. > - start good'ol ctwm, emacs, and xterm. Well, if you're literally doing that, that will tend to leave bits of gnome hanging about. You might be regarding that as a feature. However, if you're using the usual gdm display manager and you want a "pure ctwm" session with no gnome, which might also be useful to see if the problem still happens under it (probably won't, given no clipboard manager), an alternative might be to drop the attached file into /usr/share/xsessions/ctwm.desktop at least until such a time as the ctwm debian package supplies its own session definition (there's been a bug about the missing definition open since 2005, sigh: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330045 ), then you should just be able to select CTWM at login time. (The openbox wm package bundles more complex session definitions, including ones showing how to "cleanly" do openbox+gnome or openbox+kde) --------------080608070208090600050409 Content-Type: application/x-desktop; name="ctwm.desktop" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ctwm.desktop" W0Rlc2t0b3AgRW50cnldCkVuY29kaW5nPVVURi04ClR5cGU9WFNlc3Npb24KRXhlYz1jdHdt ClRyeUV4ZWM9Y3R3bQpOYW1lPUNUV00KQ29tbWVudD1DbGF1ZGUncyBUYWIgV2luZG93IE1h bmFnZXIK --------------080608070208090600050409-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 18 18:04:04 2011 Received: (at 8869) by debbugs.gnu.org; 18 Jun 2011 22:04:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QY3ca-000694-1L for submit@debbugs.gnu.org; Sat, 18 Jun 2011 18:04:04 -0400 Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QY3cY-00068a-Gm for 8869@debbugs.gnu.org; Sat, 18 Jun 2011 18:04:02 -0400 Received: from furball (dhcp128036226133.central.yale.edu [128.36.226.133]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p5IM3uSV000958 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 18 Jun 2011 18:03:57 -0400 Received: by furball (Postfix, from userid 1000) id 67D4616041A; Sat, 18 Jun 2011 18:03:56 -0400 (EDT) From: Chong Yidong To: David De La Harpe Golden Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> Date: Sat, 18 Jun 2011 18:03:56 -0400 In-Reply-To: <4DFB98D8.5030204@harpegolden.net> (David De La Harpe Golden's message of "Fri, 17 Jun 2011 19:11:36 +0100") Message-ID: <871uyq23w3.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 8869 Cc: Stefan Monnier , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) David De La Harpe Golden writes: >> - standard Debian testing Gnome setup. >> - killall metacity. >> - start good'ol ctwm, emacs, and xterm. > > Well, if you're literally doing that, that will tend to leave bits of > gnome hanging about. Yeah, though that doesn't explain why "no other application seems to exhibit such a delay when exiting". Plenty of other applications ought to be supporting the clipboard manager spec these days. There are various possible workarounds, e.g. we could have x_clipboard_manager_save_frame set x-select-enable-clipboard-manager to nil if it hits a timeout, so that the delay at least won't recur in the same session. But it wouldn't be wise to implement them until we get a few more details about the actual failure case. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 19 06:27:09 2011 Received: (at 8869) by debbugs.gnu.org; 19 Jun 2011 10:27:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYFDh-00010A-I0 for submit@debbugs.gnu.org; Sun, 19 Jun 2011 06:27:09 -0400 Received: from smtprelay-b22.telenor.se ([195.54.99.213]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYFDe-0000zb-Kv for 8869@debbugs.gnu.org; Sun, 19 Jun 2011 06:27:07 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id B6CC8EA872 for <8869@debbugs.gnu.org>; Sun, 19 Jun 2011 12:27:00 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvJpAJ7O/U1V4S1kPGdsb2JhbABSiRGdSQsBAQEBNzKIdbwqhioElj6LIw X-IronPort-AV: E=Sophos;i="4.65,388,1304287200"; d="scan'208";a="22445273" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb3.telenor.se with ESMTP; 19 Jun 2011 12:27:00 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id A01627FA05A; Sun, 19 Jun 2011 12:26:56 +0200 (CEST) Message-ID: <4DFDCEF0.5060509@swipnet.se> Date: Sun, 19 Jun 2011 12:26:56 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 To: Chong Yidong Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> In-Reply-To: <871uyq23w3.fsf@stupidchicken.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8869 Cc: 8869@debbugs.gnu.org, David De La Harpe Golden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Hi. There is something wrong with the implementation for SAVE_TARGETS. What happens is: 1) Emacs sends SAVE_TARGET and starts to wait for SelectionNotify. 2) The clipboard manager tries to get the CLIPBOARD selection with a SelectionRequest. 3) Emacs receives this but does not reply to it, as it is only intereted in SelectionNotify. 4) If an input event, such as mouse move, occurs, the loop is broken and all queued X Events are handeled, including SelectionRequest. 5) The clipboard manager has gotten the clipboard from Emacs and only now sends SelectionNotify. Thus, if there isn't any input in 4), the exit will time out. Emacs must handle SelectionRequest in 3) to work correctly. Jan D. Chong Yidong skrev 2011-06-19 00.03: > David De La Harpe Golden writes: > >>> - standard Debian testing Gnome setup. >>> - killall metacity. >>> - start good'ol ctwm, emacs, and xterm. >> >> Well, if you're literally doing that, that will tend to leave bits of >> gnome hanging about. > > Yeah, though that doesn't explain why "no other application seems to > exhibit such a delay when exiting". Plenty of other applications ought > to be supporting the clipboard manager spec these days. > > There are various possible workarounds, e.g. we could have > x_clipboard_manager_save_frame set x-select-enable-clipboard-manager to > nil if it hits a timeout, so that the delay at least won't recur in the > same session. But it wouldn't be wise to implement them until we get a > few more details about the actual failure case. > > From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 19 07:14:51 2011 Received: (at 8869) by debbugs.gnu.org; 19 Jun 2011 11:14:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYFxr-0004Mw-8M for submit@debbugs.gnu.org; Sun, 19 Jun 2011 07:14:51 -0400 Received: from smtprelay-b21.telenor.se ([195.54.99.212]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYFxo-0004Mi-80 for 8869@debbugs.gnu.org; Sun, 19 Jun 2011 07:14:49 -0400 Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b21.telenor.se (Postfix) with ESMTP id EE22FEB387 for <8869@debbugs.gnu.org>; Sun, 19 Jun 2011 13:14:41 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvJpANLZ/U1V4S1kPGdsb2JhbABSiRGdSQsBAQEBNzKIdbwvhioElj6LIw X-IronPort-AV: E=Sophos;i="4.65,388,1304287200"; d="scan'208";a="1741124657" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb4.telenor.se with ESMTP; 19 Jun 2011 13:14:41 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id E98EE7FA05A; Sun, 19 Jun 2011 13:14:40 +0200 (CEST) Message-ID: <4DFDDA20.9010906@swipnet.se> Date: Sun, 19 Jun 2011 13:14:40 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 To: Chong Yidong Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> In-Reply-To: <4DFDCEF0.5060509@swipnet.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8869 Cc: 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Hi. Some more debugging. At the top of the while loop in wait_reading_process_output, there is thi= s: if (read_kbd >=3D 0) QUIT; #ifdef SYNC_INPUT else process_pending_signals (); #endif This is the code that reads the SelectionRequest and queues it. But from here on, there is no code that checks if input is pending, so th= e=20 function gets stuck in select a bit down. There is a check before select: if (read_kbd && detect_input_pending ()) { nfds =3D 0; no_avail =3D 1; } This fails for two reasons. In this situation, read_kbd is zero. Also, setting nfds to zero makes the selection code think it timed out. Adding this patch: =3D=3D=3D modified file 'src/process.c' --- src/process.c 2011-06-14 18:57:19 +0000 +++ src/process.c 2011-06-19 11:09:30 +0000 @@ -4484,6 +4484,11 @@ nfds =3D 0; no_avail =3D 1; } + else if (read_kbd =3D=3D 0 && detect_input_pending ()) + { + nfds =3D 1; + no_avail =3D 1; + } else { fixes the timeout issue in this report, but probably has some bad effect=20 elsewhere. Jan D. Jan Dj=E4rv skrev 2011-06-19 12.26: > Hi. > > There is something wrong with the implementation for SAVE_TARGETS. > What happens is: > > 1) Emacs sends SAVE_TARGET and starts to wait for SelectionNotify. > 2) The clipboard manager tries to get the CLIPBOARD selection with a > SelectionRequest. > 3) Emacs receives this but does not reply to it, as it is only interete= d in > SelectionNotify. > 4) If an input event, such as mouse move, occurs, the loop is broken an= d all > queued X Events are handeled, including SelectionRequest. > 5) The clipboard manager has gotten the clipboard from Emacs and only n= ow > sends SelectionNotify. > > Thus, if there isn't any input in 4), the exit will time out. > Emacs must handle SelectionRequest in 3) to work correctly. > > Jan D. > > > Chong Yidong skrev 2011-06-19 00.03: >> David De La Harpe Golden writes: >> >>>> - standard Debian testing Gnome setup. >>>> - killall metacity. >>>> - start good'ol ctwm, emacs, and xterm. >>> >>> Well, if you're literally doing that, that will tend to leave bits of >>> gnome hanging about. >> >> Yeah, though that doesn't explain why "no other application seems to >> exhibit such a delay when exiting". Plenty of other applications ought >> to be supporting the clipboard manager spec these days. >> >> There are various possible workarounds, e.g. we could have >> x_clipboard_manager_save_frame set x-select-enable-clipboard-manager t= o >> nil if it hits a timeout, so that the delay at least won't recur in th= e >> same session. But it wouldn't be wise to implement them until we get a >> few more details about the actual failure case. >> >> > > From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 19 15:59:36 2011 Received: (at 8869) by debbugs.gnu.org; 19 Jun 2011 19:59:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYO9g-0002p6-02 for submit@debbugs.gnu.org; Sun, 19 Jun 2011 15:59:36 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYO9d-0002ot-1S for 8869@debbugs.gnu.org; Sun, 19 Jun 2011 15:59:33 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QYO9X-00046b-JN; Sun, 19 Jun 2011 15:59:27 -0400 From: Chong Yidong To: Jan =?utf-8?Q?Dj=C3=A4rv?= Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> Date: Sun, 19 Jun 2011 15:59:26 -0400 In-Reply-To: <4DFDCEF0.5060509@swipnet.se> ("Jan =?utf-8?Q?Dj=C3=A4rv=22's?= message of "Sun, 19 Jun 2011 12:26:56 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 8869 Cc: 8869@debbugs.gnu.org, David De La Harpe Golden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Jan Dj=C3=A4rv writes: > 1) Emacs sends SAVE_TARGET and starts to wait for SelectionNotify. > 2) The clipboard manager tries to get the CLIPBOARD selection with a > SelectionRequest. > 3) Emacs receives this but does not reply to it, as it is only intereted = in > SelectionNotify. > 4) If an input event, such as mouse move, occurs, the loop is broken and = all > queued X Events are handeled, including SelectionRequest. > 5) The clipboard manager has gotten the clipboard from Emacs and only now > sends SelectionNotify. > > Thus, if there isn't any input in 4), the exit will time out. > Emacs must handle SelectionRequest in 3) to work correctly. Ah, thanks for this observation; now I can reproduce the problem, by deleting the selection-owning frame using the mouse instead of a keystroke. The behavior of wait_reading_process_output is indeed problematic, but perhaps it's better to work around it in x_get_foreign_selection, instead of changing wait_reading_process_output itself. The following patch, for example, changes x_get_foreign_selection to loop calling wait_reading_process_output with 1ms intervals. That allows the selection events be handled even if no keyboard input is supplied. WDYT? *** src/xselect.c 2011-06-06 19:43:39 +0000 --- src/xselect.c 2011-06-19 19:49:23 +0000 *************** *** 1207,1213 **** Atom type_atom =3D (CONSP (target_type) ? symbol_to_x_atom (dpyinfo, XCAR (target_type)) : symbol_to_x_atom (dpyinfo, target_type)); - int secs, usecs; =20=20 if (!FRAME_LIVE_P (f)) return Qnil; --- 1207,1212 ---- *************** *** 1243,1253 **** UNBLOCK_INPUT; =20=20 /* This allows quits. Also, don't wait forever. */ - secs =3D x_selection_timeout / 1000; - usecs =3D (x_selection_timeout % 1000) * 1000; TRACE1 (" Start waiting %d secs for SelectionNotify", secs); ! wait_reading_process_output (secs, usecs, 0, 0, ! reading_selection_reply, NULL, 0); TRACE1 (" Got event =3D %d", !NILP (XCAR (reading_selection_reply))); =20=20 if (NILP (XCAR (reading_selection_reply))) --- 1242,1258 ---- UNBLOCK_INPUT; =20=20 /* This allows quits. Also, don't wait forever. */ TRACE1 (" Start waiting %d secs for SelectionNotify", secs); ! { ! int j, periods =3D max (1, x_selection_timeout); ! for (j =3D 0; j < periods; j++) ! { ! wait_reading_process_output (0, 1000, 0, 0, ! reading_selection_reply, NULL, 0); ! if (!NILP (XCAR (reading_selection_reply))) ! break; ! } ! } TRACE1 (" Got event =3D %d", !NILP (XCAR (reading_selection_reply))); =20=20 if (NILP (XCAR (reading_selection_reply))) From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 19 16:45:25 2011 Received: (at 8869) by debbugs.gnu.org; 19 Jun 2011 20:45:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYOrz-0006jW-Vg for submit@debbugs.gnu.org; Sun, 19 Jun 2011 16:45:24 -0400 Received: from smtprelay-b22.telenor.se ([195.54.99.213]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYOrx-0006ZI-WF for 8869@debbugs.gnu.org; Sun, 19 Jun 2011 16:45:23 -0400 Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id EA398EBB90 for <8869@debbugs.gnu.org>; Sun, 19 Jun 2011 22:45:15 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjZjAERf/k1V4S1kPGdsb2JhbABShEmESJxmZAsBAQEBNzKIcwKuD49pgSuDdYEKBJY+iyM X-IronPort-AV: E=Sophos;i="4.65,390,1304287200"; d="scan'208";a="1741230416" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb4.telenor.se with ESMTP; 19 Jun 2011 22:45:15 +0200 Received: from [172.20.199.248] (janiphone [172.20.199.248]) by coolsville.localdomain (Postfix) with ESMTPSA id C82647FA05A; Sun, 19 Jun 2011 22:45:14 +0200 (CEST) References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8J2) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-Id: <3E459F31-964C-4C5F-993F-2EFF2710893E@swipnet.se> X-Mailer: iPhone Mail (8J2) From: =?utf-8?Q?Jan_Dj=C3=A4rv?= Subject: Re: bug#8869: Unjustified selection time-out Date: Sun, 19 Jun 2011 22:45:11 +0200 To: Chong Yidong X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 8869 Cc: "8869@debbugs.gnu.org" <8869@debbugs.gnu.org>, David De La Harpe Golden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.6 (-) 19 jun 2011 kl. 21:59 skrev Chong Yidong : > Jan Dj=C3=A4rv writes: >=20 >> 1) Emacs sends SAVE_TARGET and starts to wait for SelectionNotify. >> 2) The clipboard manager tries to get the CLIPBOARD selection with a >> SelectionRequest. >> 3) Emacs receives this but does not reply to it, as it is only intereted i= n >> SelectionNotify. >> 4) If an input event, such as mouse move, occurs, the loop is broken and a= ll >> queued X Events are handeled, including SelectionRequest. >> 5) The clipboard manager has gotten the clipboard from Emacs and only now= >> sends SelectionNotify. >>=20 >> Thus, if there isn't any input in 4), the exit will time out. >> Emacs must handle SelectionRequest in 3) to work correctly. >=20 > Ah, thanks for this observation; now I can reproduce the problem, by > deleting the selection-owning frame using the mouse instead of a > keystroke. >=20 > The behavior of wait_reading_process_output is indeed problematic, but > perhaps it's better to work around it in x_get_foreign_selection, > instead of changing wait_reading_process_output itself. The following > patch, for example, changes x_get_foreign_selection to loop calling > wait_reading_process_output with 1ms intervals. That allows the > selection events be handled even if no keyboard input is supplied. > WDYT? >=20 Maybe it will, but it is a bad solution ( busy wait). It also does not solv= e the error in process.c. That error may very well be responsible for the ha= ng Emacs sometimes does when it should be saving the session and exit. It is not good to have a potential event handling error in process.c.=20 Jan D.=20 From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 19 17:13:22 2011 Received: (at 8869) by debbugs.gnu.org; 19 Jun 2011 21:13:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYPJ3-0008LL-D2 for submit@debbugs.gnu.org; Sun, 19 Jun 2011 17:13:21 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYPJ1-0008LA-0B for 8869@debbugs.gnu.org; Sun, 19 Jun 2011 17:13:19 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QYPIv-0000tj-HU; Sun, 19 Jun 2011 17:13:13 -0400 From: Chong Yidong To: Jan =?utf-8?Q?Dj=C3=A4rv?= Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <3E459F31-964C-4C5F-993F-2EFF2710893E@swipnet.se> Date: Sun, 19 Jun 2011 17:13:12 -0400 In-Reply-To: <3E459F31-964C-4C5F-993F-2EFF2710893E@swipnet.se> ("Jan =?utf-8?Q?Dj=C3=A4rv=22's?= message of "Sun, 19 Jun 2011 22:45:11 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 8869 Cc: "8869@debbugs.gnu.org" <8869@debbugs.gnu.org>, David De La Harpe Golden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Jan Dj=C3=A4rv writes: > Maybe it will, but it is a bad solution (busy wait). It also does not > solve the error in process.c. That error may very well be responsible > for the hang Emacs sometimes does when it should be saving the session > and exit. Hmm, I'm not sure I understand what you're saying. My impression is that Emacs is getting stuck on wait_reading_process_output's select() call, which doesn't exit to do the necessary X event processing until some user input is available. If that's the case, then the problem is calling select() with a long timeout. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 20 02:27:28 2011 Received: (at 8869) by debbugs.gnu.org; 20 Jun 2011 06:27:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYXxH-0006lL-Fx for submit@debbugs.gnu.org; Mon, 20 Jun 2011 02:27:27 -0400 Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYXxF-0006l9-L1 for 8869@debbugs.gnu.org; Mon, 20 Jun 2011 02:27:26 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id D3BFEC4DE for <8869@debbugs.gnu.org>; Mon, 20 Jun 2011 08:27:19 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApZmAOHn/k1V4S1kPGdsb2JhbABThEmESJ1JCwEBAQE3Moh1rTOQA4Erg3WBCgSWPosj X-IronPort-AV: E=Sophos;i="4.65,391,1304287200"; d="scan'208";a="22650862" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb3.telenor.se with ESMTP; 20 Jun 2011 08:27:19 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id ED92D7FA05A; Mon, 20 Jun 2011 08:27:18 +0200 (CEST) Message-ID: <4DFEE846.8080601@swipnet.se> Date: Mon, 20 Jun 2011 08:27:18 +0200 From: =?UTF-8?B?SmFuIERqw6Rydg==?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 To: Chong Yidong Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <3E459F31-964C-4C5F-993F-2EFF2710893E@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8869 Cc: "8869@debbugs.gnu.org" <8869@debbugs.gnu.org>, David De La Harpe Golden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Chong Yidong skrev 2011-06-19 23.13: > Jan Dj=C3=A4rv writes: > >> Maybe it will, but it is a bad solution (busy wait). It also does not >> solve the error in process.c. That error may very well be responsible >> for the hang Emacs sometimes does when it should be saving the session >> and exit. > > Hmm, I'm not sure I understand what you're saying. My impression is > that Emacs is getting stuck on wait_reading_process_output's select() > call, which doesn't exit to do the necessary X event processing until > some user input is available. If that's the case, then the problem is > calling select() with a long timeout. I disagree. The problem is not calling select with a ong timeout, the pr= oblem=20 is not checking if there is queued events and handling them before enteri= ng=20 select. Checking Emacs as I run it, select is usually enetered with a timeout bet= weeen=20 10 and 15 seconds, so the potential for this happening is great. Any solution to a problem that increases frequency of polling is just=20 fundamentally wrong. It leads to increased CPU usage, and since code is=20 executed often, it can not be swapped out. Also, debugging such code is h= ard=20 because breakpoints can't be used reliably since the code depends on busy= wait=20 or polling. Please do not commit that patch. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 20 10:57:43 2011 Received: (at 8869) by debbugs.gnu.org; 20 Jun 2011 14:57:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYfv5-0002R3-Gr for submit@debbugs.gnu.org; Mon, 20 Jun 2011 10:57:43 -0400 Received: from vm-emlprdomr-06.its.yale.edu ([130.132.50.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYfv4-0002Qr-Js for 8869@debbugs.gnu.org; Mon, 20 Jun 2011 10:57:43 -0400 Received: from furball (dhcp128036014060.central.yale.edu [128.36.14.60]) (authenticated bits=0) by vm-emlprdomr-06.its.yale.edu (8.14.4/8.14.4) with ESMTP id p5KEvait023883 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 20 Jun 2011 10:57:37 -0400 Received: by furball (Postfix, from userid 1000) id 28FB31605DE; Mon, 20 Jun 2011 10:57:34 -0400 (EDT) From: Chong Yidong To: Jan =?utf-8?Q?Dj=C3=A4rv?= Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <3E459F31-964C-4C5F-993F-2EFF2710893E@swipnet.se> <4DFEE846.8080601@swipnet.se> Date: Mon, 20 Jun 2011 10:57:34 -0400 In-Reply-To: <4DFEE846.8080601@swipnet.se> ("Jan =?utf-8?Q?Dj=C3=A4rv=22's?= message of "Mon, 20 Jun 2011 08:27:18 +0200") Message-ID: <878vswsg81.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.71 on 130.132.50.147 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 8869 Cc: "8869@debbugs.gnu.org" <8869@debbugs.gnu.org>, David De La Harpe Golden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Jan Dj=C3=A4rv writes: > The problem is not calling select with a ong timeout, the problem is > not checking if there is queued events and handling them before > entering select. > > Checking Emacs as I run it, select is usually enetered with a timeout > betweeen 10 and 15 seconds, so the potential for this happening is > great. But the selection request from the other X client can arrive at any time, not necessarily before we enter the select. If the front part of wait_reading_process_output executes very quickly, we'll enter the select before a response is ready, in which case Emacs will wait the entire 20 seconds if no other input is available. Other than reducing the select timeout, what solution is there? From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 20 11:24:44 2011 Received: (at 8869) by debbugs.gnu.org; 20 Jun 2011 15:24:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYgLE-0004b2-1r for submit@debbugs.gnu.org; Mon, 20 Jun 2011 11:24:44 -0400 Received: from smtprelay-b21.telenor.se ([195.54.99.212]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QYgLA-0004ap-ED for 8869@debbugs.gnu.org; Mon, 20 Jun 2011 11:24:41 -0400 Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b21.telenor.se (Postfix) with ESMTP id 2C0E3EA10E for <8869@debbugs.gnu.org>; Mon, 20 Jun 2011 17:24:34 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah51AK9l/01V4S1kPGdsb2JhbABThEmESJ1NCwEBAQE3MohzAq8HkDyBK4N1gQoElj6LIw X-IronPort-AV: E=Sophos;i="4.65,394,1304287200"; d="scan'208";a="199865109" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb2.telenor.se with ESMTP; 20 Jun 2011 17:24:33 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 395957FA05A; Mon, 20 Jun 2011 17:24:33 +0200 (CEST) Message-ID: <4DFF6631.5020604@swipnet.se> Date: Mon, 20 Jun 2011 17:24:33 +0200 From: =?UTF-8?B?SmFuIERqw6Rydg==?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 To: Chong Yidong Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <3E459F31-964C-4C5F-993F-2EFF2710893E@swipnet.se> <4DFEE846.8080601@swipnet.se> <878vswsg81.fsf@stupidchicken.com> In-Reply-To: <878vswsg81.fsf@stupidchicken.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8869 Cc: "8869@debbugs.gnu.org" <8869@debbugs.gnu.org>, David De La Harpe Golden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Chong Yidong skrev 2011-06-20 16.57: > Jan Dj=C3=A4rv writes: > >> The problem is not calling select with a ong timeout, the problem is >> not checking if there is queued events and handling them before >> entering select. >> >> Checking Emacs as I run it, select is usually enetered with a timeout >> betweeen 10 and 15 seconds, so the potential for this happening is >> great. > > But the selection request from the other X client can arrive at any > time, No, it can't. It must arrive after SAVE_TARGET and it is not read unless= any=20 X code (XNextEvent or gtk_events_pending()) is executed. > not necessarily before we enter the select. > If the front part of > wait_reading_process_output executes very quickly, we'll enter the > select before a response is ready, in which case Emacs will wait the > entire 20 seconds if no other input is available. No, in that case the X request has not been read and it still in the sock= et. Select will then detect that and return. It is not before XTread_socket = is=20 called the event is actually read. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 25 23:40:55 2011 Received: (at 8869) by debbugs.gnu.org; 26 Jun 2011 03:40:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QagDP-0005k5-Ip for submit@debbugs.gnu.org; Sat, 25 Jun 2011 23:40:55 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QagDO-0005jt-6q for 8869@debbugs.gnu.org; Sat, 25 Jun 2011 23:40:54 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QagDI-0008Nn-AF; Sat, 25 Jun 2011 23:40:48 -0400 From: Chong Yidong To: Jan =?utf-8?Q?Dj=C3=A4rv?= Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> Date: Sat, 25 Jun 2011 23:40:47 -0400 In-Reply-To: <4DFDDA20.9010906@swipnet.se> ("Jan =?utf-8?Q?Dj=C3=A4rv=22's?= message of "Sun, 19 Jun 2011 13:14:40 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 8869 Cc: 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Jan Dj=C3=A4rv writes: > Adding this patch: > > =3D=3D=3D modified file 'src/process.c' > --- src/process.c 2011-06-14 18:57:19 +0000 > +++ src/process.c 2011-06-19 11:09:30 +0000 > @@ -4484,6 +4484,11 @@ > nfds =3D 0; > no_avail =3D 1; > } > + else if (read_kbd =3D=3D 0 && detect_input_pending ()) > + { > + nfds =3D 1; > + no_avail =3D 1; > + } > else > { > > fixes the timeout issue in this report, but probably has some bad > effect elsewhere. I stared at the code a long time, and I think it should have no bad effect. I've committed a slightly tweaked version of this fix; let's see how it plays out. Thanks for debugging. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 26 04:36:09 2011 Received: (at 8869) by debbugs.gnu.org; 26 Jun 2011 08:36:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qakp6-0002PV-Pz for submit@debbugs.gnu.org; Sun, 26 Jun 2011 04:36:08 -0400 Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qakp5-0002P1-45 for 8869@debbugs.gnu.org; Sun, 26 Jun 2011 04:36:07 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 156C2E9E22 for <8869@debbugs.gnu.org>; Sun, 26 Jun 2011 10:36:00 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah1dACjuBk5V4S1kPGdsb2JhbABThEmESJ40CwEBAQE3Moh2sH6Pc4Erg3mBDASWcYsv X-IronPort-AV: E=Sophos;i="4.65,427,1304287200"; d="scan'208";a="24352049" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb3.telenor.se with ESMTP; 26 Jun 2011 10:36:00 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id E88677FA05A; Sun, 26 Jun 2011 10:35:59 +0200 (CEST) Message-ID: <4E06EF70.7060009@swipnet.se> Date: Sun, 26 Jun 2011 10:36:00 +0200 From: =?UTF-8?B?SmFuIERqw6Rydg==?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 To: Chong Yidong Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8869 Cc: 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Hi. I was not sure how the interaction between read_kbd being 0 and different= =20 types of events (keyboard, mouse vs the rest) are supposed to work. But if you are sure then that is good. Anyway we have a long time to rel= ease=20 yet :-) BTW, should the bug be closed? Jan D. Chong Yidong skrev 2011-06-26 05.40: > Jan Dj=C3=A4rv writes: > >> Adding this patch: >> >> =3D=3D=3D modified file 'src/process.c' >> --- src/process.c 2011-06-14 18:57:19 +0000 >> +++ src/process.c 2011-06-19 11:09:30 +0000 >> @@ -4484,6 +4484,11 @@ >> nfds =3D 0; >> no_avail =3D 1; >> } >> + else if (read_kbd =3D=3D 0&& detect_input_pending ()) >> + { >> + nfds =3D 1; >> + no_avail =3D 1; >> + } >> else >> { >> >> fixes the timeout issue in this report, but probably has some bad >> effect elsewhere. > > I stared at the code a long time, and I think it should have no bad > effect. I've committed a slightly tweaked version of this fix; let's > see how it plays out. Thanks for debugging. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 26 15:30:32 2011 Received: (at 8869) by debbugs.gnu.org; 26 Jun 2011 19:30:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qav2O-0008C4-1w for submit@debbugs.gnu.org; Sun, 26 Jun 2011 15:30:32 -0400 Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qav2M-00082A-3g for 8869@debbugs.gnu.org; Sun, 26 Jun 2011 15:30:30 -0400 Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p5QJUOLg007088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 26 Jun 2011 15:30:24 -0400 Received: by furball (Postfix, from userid 1000) id 81D3B1605B7; Sun, 26 Jun 2011 15:30:23 -0400 (EDT) From: Chong Yidong To: Jan =?utf-8?Q?Dj=C3=A4rv?= Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> Date: Sun, 26 Jun 2011 15:30:23 -0400 In-Reply-To: <4E06EF70.7060009@swipnet.se> ("Jan =?utf-8?Q?Dj=C3=A4rv=22's?= message of "Sun, 26 Jun 2011 10:36:00 +0200") Message-ID: <87fwmwmlv4.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8869 Cc: 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Jan Dj=C3=A4rv writes: > I was not sure how the interaction between read_kbd being 0 and > different types of events (keyboard, mouse vs the rest) are supposed > to work. But if you are sure then that is good. Anyway we have a > long time to release yet :-) I am as sure as anyone can be from staring at that particular piece of code. So let's see ;-) > BTW, should the bug be closed? Yeah; closing. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 26 15:30:57 2011 Received: (at control) by debbugs.gnu.org; 26 Jun 2011 19:30:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qav2n-00005b-9W for submit@debbugs.gnu.org; Sun, 26 Jun 2011 15:30:57 -0400 Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qav2l-00005P-Jq for control@debbugs.gnu.org; Sun, 26 Jun 2011 15:30:55 -0400 Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p5QJUnqV021101 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 26 Jun 2011 15:30:49 -0400 Received: by furball (Postfix, from userid 1000) id 281791605B7; Sun, 26 Jun 2011 15:30:49 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8869 Date: Sun, 26 Jun 2011 15:30:33 -0400 Message-ID: <87ei2gqtk6.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 8869 thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 30 21:32:39 2011 Received: (at 8869) by debbugs.gnu.org; 1 Jul 2011 01:32:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QcSb1-0007v7-HL for submit@debbugs.gnu.org; Thu, 30 Jun 2011 21:32:39 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QcSaz-0007ut-Vm; Thu, 30 Jun 2011 21:32:38 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAFEjDU5MCqDH/2dsb2JhbABSp114iHi/cYYxBJ5OhCs X-IronPort-AV: E=Sophos;i="4.65,455,1304308800"; d="scan'208";a="118250973" Received: from 76-10-160-199.dsl.teksavvy.com (HELO pastel.home) ([76.10.160.199]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 30 Jun 2011 21:32:18 -0400 Received: by pastel.home (Postfix, from userid 20848) id 3E4175912D; Thu, 30 Jun 2011 21:32:18 -0400 (EDT) From: Stefan Monnier To: Chong Yidong Subject: Re: bug#8869: Unjustified selection time-out Message-ID: References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> Date: Thu, 30 Jun 2011 21:32:18 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8869 Cc: Jan =?iso-8859-1?Q?Dj=E4rv?= , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >> I was not sure how the interaction between read_kbd being 0 and >> different types of events (keyboard, mouse vs the rest) are supposed >> to work. But if you are sure then that is good. Anyway we have a >> long time to release yet :-) > I am as sure as anyone can be from staring at that particular piece of > code. So let's see ;-) >> BTW, should the bug be closed? > Yeah; closing. FWIW, I still see the same problem. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 01 03:05:47 2011 Received: (at 8869) by debbugs.gnu.org; 1 Jul 2011 07:05:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QcXnP-0000Rp-A2 for submit@debbugs.gnu.org; Fri, 01 Jul 2011 03:05:47 -0400 Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QcXnN-0000Rd-FO for 8869@debbugs.gnu.org; Fri, 01 Jul 2011 03:05:46 -0400 Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id F2F19EB137 for <8869@debbugs.gnu.org>; Fri, 1 Jul 2011 09:05:39 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As5VAIJxDU5V4S1kPGdsb2JhbABSiQqeUgsBAQEBHhkNJYh7wGyGMgSXJos8 X-IronPort-AV: E=Sophos;i="4.65,456,1304287200"; d="scan'208";a="1744594392" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb4.telenor.se with ESMTP; 01 Jul 2011 09:05:24 +0200 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 30CAF7FA05A; Fri, 1 Jul 2011 09:05:24 +0200 (CEST) Message-ID: <4E0D71B4.3030000@swipnet.se> Date: Fri, 01 Jul 2011 09:05:24 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) 2011-07-01 03:32, Stefan Monnier skrev: >>> I was not sure how the interaction between read_kbd being 0 and >>> different types of events (keyboard, mouse vs the rest) are supposed >>> to work. But if you are sure then that is good. Anyway we have a >>> long time to release yet :-) >> I am as sure as anyone can be from staring at that particular piece of >> code. So let's see ;-) >>> BTW, should the bug be closed? >> Yeah; closing. > > FWIW, I still see the same problem. > What window system are you using? Does the frame close if you press the close button (assuming you have one) and then move the mouse a bit? Can you now reliably reproduce it with emacs -Q or is it still after gnus usage? Jan D. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 04 10:55:37 2011 Received: (at 8869) by debbugs.gnu.org; 4 Jul 2011 14:55:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdkYi-0002kr-Pq for submit@debbugs.gnu.org; Mon, 04 Jul 2011 10:55:37 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdkYg-0002kf-IN for 8869@debbugs.gnu.org; Mon, 04 Jul 2011 10:55:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAKfTEU5FxIxr/2dsb2JhbABTp3x4iHrBB4Y2BJ5chCw X-IronPort-AV: E=Sophos;i="4.65,472,1304308800"; d="scan'208";a="120370440" Received: from 69-196-140-107.dsl.teksavvy.com (HELO pastel.home) ([69.196.140.107]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 04 Jul 2011 10:55:28 -0400 Received: by pastel.home (Postfix, from userid 20848) id 81A4D59173; Mon, 4 Jul 2011 10:55:28 -0400 (EDT) From: Stefan Monnier To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#8869: Unjustified selection time-out Message-ID: References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> Date: Mon, 04 Jul 2011 10:55:28 -0400 In-Reply-To: <4E0D71B4.3030000@swipnet.se> ("Jan =?iso-8859-1?Q?Dj=E4rv=22?= =?iso-8859-1?Q?'s?= message of "Fri, 01 Jul 2011 09:05:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > Can you now reliably reproduce it with emacs -Q or is it still after > gnus usage? it only ever happens when I send a message from Gnus (which I do from a dedicated frame). In that same session, deleting frames (which own the clipboard) in general works just fine. It's only when that frame is deleted as part of the C-c C-c that sends the message that the problem shows up. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 06 09:29:45 2011 Received: (at 8869) by debbugs.gnu.org; 6 Jul 2011 13:29:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeSAj-0006gl-5q for submit@debbugs.gnu.org; Wed, 06 Jul 2011 09:29:45 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeSAg-0006gZ-8h for 8869@debbugs.gnu.org; Wed, 06 Jul 2011 09:29:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EALpiFE5FxIV4/2dsb2JhbABTqAJ4iHrDS4Y2BJ5rhC4 X-IronPort-AV: E=Sophos;i="4.65,486,1304308800"; d="scan'208";a="120653044" Received: from 69-196-133-120.dsl.teksavvy.com (HELO ceviche.home) ([69.196.133.120]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 06 Jul 2011 09:29:36 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 21043660DD; Wed, 6 Jul 2011 09:29:36 -0400 (EDT) From: Stefan Monnier To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#8869: Unjustified selection time-out Message-ID: References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> Date: Wed, 06 Jul 2011 09:29:36 -0400 In-Reply-To: <4E0D71B4.3030000@swipnet.se> ("Jan =?iso-8859-1?Q?Dj=E4rv=22?= =?iso-8859-1?Q?'s?= message of "Fri, 01 Jul 2011 09:05:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > What window system are you using? ctwm. > Does the frame close if you press the close button (assuming you have one) > and then move the mouse a bit? Aha! Thanks, now I have a recipe for one of those problems: emacs -Q C-x 5 2 C-SPC M-< M-w press the close button (yes, I do have it, tho it's not a button, it's just one of the many operations available in one of the menus ;-). then Emacs will first wait 20s and then delete the frame (with the clipboard-timeout message in the remaining frame). Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 07 22:07:35 2011 Received: (at 8869) by debbugs.gnu.org; 8 Jul 2011 02:07:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qf0Te-0004Jq-OX for submit@debbugs.gnu.org; Thu, 07 Jul 2011 22:07:35 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qf0Tc-0004Jd-2p for 8869@debbugs.gnu.org; Thu, 07 Jul 2011 22:07:32 -0400 Received: from [87.198.47.58] (87-198-47-58.ptr.magnet.ie [87.198.47.58]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id 637A5683D8; Fri, 8 Jul 2011 03:07:25 +0100 (IST) Message-ID: <4E16665B.2040906@harpegolden.net> Date: Fri, 08 Jul 2011 03:07:23 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , =?UTF-8?B?SmFuIERqw6Rydg==?= , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 06/07/11 14:29, Stefan Monnier wrote: >> What window system are you using? > > ctwm. > Still in the run-gnome-kill-metacity-run-ctwm way? From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 07 22:20:23 2011 Received: (at 8869) by debbugs.gnu.org; 8 Jul 2011 02:20:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qf0g3-0004f3-57 for submit@debbugs.gnu.org; Thu, 07 Jul 2011 22:20:23 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qf0g0-0004ei-Hl for 8869@debbugs.gnu.org; Thu, 07 Jul 2011 22:20:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EALRoFk5MCqt8/2dsb2JhbABTpz14iHvDV4Y4BJ5xhC8 X-IronPort-AV: E=Sophos;i="4.65,496,1304308800"; d="scan'208";a="123522003" Received: from 76-10-171-124.dsl.teksavvy.com (HELO ceviche.home) ([76.10.171.124]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 07 Jul 2011 22:20:13 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 69697660D9; Thu, 7 Jul 2011 22:20:13 -0400 (EDT) From: Stefan Monnier To: David De La Harpe Golden Subject: Re: bug#8869: Unjustified selection time-out Message-ID: References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> <4E16665B.2040906@harpegolden.net> Date: Thu, 07 Jul 2011 22:20:13 -0400 In-Reply-To: <4E16665B.2040906@harpegolden.net> (David De La Harpe Golden's message of "Fri, 08 Jul 2011 03:07:23 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , Jan =?iso-8859-1?Q?Dj=E4rv?= , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >>> What window system are you using? >> ctwm. > Still in the run-gnome-kill-metacity-run-ctwm way? Yes. I logged in, tested with metacity (confirmed that the problem doesn't show up in that case), then killed metacity and started ctwm, after which I tested again. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 07 22:40:41 2011 Received: (at 8869) by debbugs.gnu.org; 8 Jul 2011 02:40:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qf0zh-0005Dz-G1 for submit@debbugs.gnu.org; Thu, 07 Jul 2011 22:40:41 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qf0ze-0005Dg-Eg for 8869@debbugs.gnu.org; Thu, 07 Jul 2011 22:40:39 -0400 Received: from [87.198.47.58] (87-198-47-58.ptr.magnet.ie [87.198.47.58]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id 1FFD7683D8; Fri, 8 Jul 2011 03:40:32 +0100 (IST) Message-ID: <4E166E1E.2030507@harpegolden.net> Date: Fri, 08 Jul 2011 03:40:30 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> <4E16665B.2040906@harpegolden.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , =?UTF-8?B?SmFuIERqw6Rydg==?= , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 08/07/11 03:20, Stefan Monnier wrote: >>>> What window system are you using? >>> ctwm. >> Still in the run-gnome-kill-metacity-run-ctwm way? > > Yes. I logged in, tested with metacity (confirmed that the problem > doesn't show up in that case), then killed metacity and started ctwm, > after which I tested again. > With a fresh emacs process or the same one? From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 08:59:38 2011 Received: (at 8869) by debbugs.gnu.org; 8 Jul 2011 12:59:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfAef-0006KY-HB for submit@debbugs.gnu.org; Fri, 08 Jul 2011 08:59:37 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfAec-0006KJ-Jk for 8869@debbugs.gnu.org; Fri, 08 Jul 2011 08:59:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EALb+Fk5MCqt8/2dsb2JhbABTp0R4y2SGOASefYQv X-IronPort-AV: E=Sophos;i="4.65,499,1304308800"; d="scan'208";a="123733556" Received: from 76-10-171-124.dsl.teksavvy.com (HELO pastel.home) ([76.10.171.124]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 08 Jul 2011 08:59:28 -0400 Received: by pastel.home (Postfix, from userid 20848) id 3D06D59160; Fri, 8 Jul 2011 08:59:28 -0400 (EDT) From: Stefan Monnier To: David De La Harpe Golden Subject: Re: bug#8869: Unjustified selection time-out Message-ID: References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> <4E16665B.2040906@harpegolden.net> <4E166E1E.2030507@harpegolden.net> Date: Fri, 08 Jul 2011 08:59:28 -0400 In-Reply-To: <4E166E1E.2030507@harpegolden.net> (David De La Harpe Golden's message of "Fri, 08 Jul 2011 03:40:30 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , Jan =?iso-8859-1?Q?Dj=E4rv?= , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >>>>> What window system are you using? >>>> ctwm. >>> Still in the run-gnome-kill-metacity-run-ctwm way? >> Yes. I logged in, tested with metacity (confirmed that the problem >> doesn't show up in that case), then killed metacity and started ctwm, >> after which I tested again. > With a fresh emacs process or the same one? With a fresh Emacs process each time. Stefan From unknown Sat Jun 21 03:23:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 06 Aug 2011 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 23 21:40:28 2012 Received: (at control) by debbugs.gnu.org; 24 Feb 2012 02:40:28 +0000 Received: from localhost ([127.0.0.1]:53171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0l5A-0006MX-07 for submit@debbugs.gnu.org; Thu, 23 Feb 2012 21:40:28 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:59384 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0l57-0006MM-UW for control@debbugs.gnu.org; Thu, 23 Feb 2012 21:40:26 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1S0l2b-0005AA-Cb for control@debbugs.gnu.org; Thu, 23 Feb 2012 21:37:49 -0500 Date: Thu, 23 Feb 2012 21:37:49 -0500 Message-Id: Subject: control message for bug 8869 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) unarchive 8869 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 23 21:50:16 2012 Received: (at 8869) by debbugs.gnu.org; 24 Feb 2012 02:50:16 +0000 Received: from localhost ([127.0.0.1]:53179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0lEe-0007NJ-1x for submit@debbugs.gnu.org; Thu, 23 Feb 2012 21:50:16 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:59477 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0lEb-0007NC-OI for 8869@debbugs.gnu.org; Thu, 23 Feb 2012 21:50:14 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1S0lC8-0008A0-Sx; Thu, 23 Feb 2012 21:47:40 -0500 From: Glenn Morris To: Stefan Monnier Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> X-Spook: jihad subversive Roswell cybercash supercomputer X-Ran: r*Y2nnaf#=)Okj?zc!(!%wgqj4~1t"%F"&Y"tDYHE8?2EH125<=L7o( X-Hue: green X-Attribution: GM Date: Thu, 23 Feb 2012 21:47:40 -0500 In-Reply-To: (Stefan Monnier's message of "Wed, 06 Jul 2011 09:29:36 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 8869 Cc: Chong Yidong , Jan =?utf-8?Q?Dj=C3=A4rv?= , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Stefan Monnier wrote: > Aha! Thanks, now I have a recipe for one of those problems: > > emacs -Q > C-x 5 2 > C-SPC M-< M-w > press the close button (yes, I do have it, tho it's not a button, it's > just one of the many operations available in one of the menus ;-). > > then Emacs will first wait 20s and then delete the frame (with the > clipboard-timeout message in the remaining frame). Similar problems using current trunk on RHEL6.2 under XFCE 4.8: emacs -Q C-SPC M-< M-w C-x C-c Emacs sits there for 20 seconds before exiting, then prints Error saving to X clipboard manager. If the problem persists, set `x-select-enable-clipboard-manager' to nil. in the terminal. I've never seen another application pause in this way before exiting. This keeps bugging me when I use `emacs -Q' to test things. I can't even set x-selection-timeout to something small via X resources, because -Q ignores those. :( From unknown Sat Jun 21 03:23:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Fri, 24 Feb 2012 05:18:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 24 03:44:54 2012 Received: (at 8869) by debbugs.gnu.org; 24 Feb 2012 08:44:54 +0000 Received: from localhost ([127.0.0.1]:53372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0qlq-0007lJ-4t for submit@debbugs.gnu.org; Fri, 24 Feb 2012 03:44:54 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:36398 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0qln-0007l4-39 for 8869@debbugs.gnu.org; Fri, 24 Feb 2012 03:44:52 -0500 Received: from [155.69.18.71] (port=49241 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1S0qjE-0004b6-1W; Fri, 24 Feb 2012 03:42:12 -0500 From: Chong Yidong To: Glenn Morris Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> Date: Fri, 24 Feb 2012 16:42:02 +0800 In-Reply-To: (Glenn Morris's message of "Thu, 23 Feb 2012 21:47:40 -0500") Message-ID: <87linsd3mt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 8869 Cc: Jan =?utf-8?Q?Dj=C3=A4rv?= , Stefan Monnier , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Glenn Morris writes: > Similar problems using current trunk on RHEL6.2 under XFCE 4.8: > > emacs -Q > C-SPC M-< M-w > C-x C-c Hmm, I couldn't reproduce this, also on XFCE 4.8. But I did see the timeout problem when clicking on the "close window" button rather than doing C-x C-c. There, the problem is that when Emacs is waiting for the selection request from the clipboard manager, swallow_events doesn't get to handle the selection request event because there's a DELETE_WINDOW_EVENT sitting in the keyboard buffer in front of it. I committed a changed to make process_special_events deal with all X selection events in the keyboard fifo buffer. Does that happen to fix things for you? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 24 13:54:56 2012 Received: (at 8869) by debbugs.gnu.org; 24 Feb 2012 18:54:56 +0000 Received: from localhost ([127.0.0.1]:54499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S10IB-0000Pk-52 for submit@debbugs.gnu.org; Fri, 24 Feb 2012 13:54:55 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:45775 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S10I8-0000Pb-QZ for 8869@debbugs.gnu.org; Fri, 24 Feb 2012 13:54:53 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1S10Fc-00033M-Si; Fri, 24 Feb 2012 13:52:16 -0500 From: Glenn Morris To: Chong Yidong Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> <87linsd3mt.fsf@gnu.org> X-Spook: digicash FTS2000 CipherTAC-2000 AGT. AMME AK-47 X-Ran: R6sz{gS]R'-^1= (Chong Yidong's message of "Fri, 24 Feb 2012 16:42:02 +0800") Message-ID: <5daa4883of.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 8869 Cc: Jan =?utf-8?Q?Dj=C3=A4rv?= , Stefan Monnier , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Chong Yidong wrote: > I committed a changed to make process_special_events deal with all X > selection events in the keyboard fifo buffer. Does that happen to fix > things for you? Sorry, no. Some general comments: 1) 20 seconds seems a very long default. If whatever Emacs wants to contact does not respond in say 5 seconds, is it likely to in 20? 2) Someone who starts Emacs from a menu item as opposed to a terminal probably won't see the message about x-select-enable-clipboard-manager. Could you not print "Attempting to contact clipboard manager..." in Emacs before it starts doing whatever it does? 3) I had no idea whether I am running a clipboard manager or not. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8760 says xfce4-settings-helper may be responsible. I do have version 4.8.0 < 4.8.2. So probably this is a duplicate of that report. Oops. Sorry for the noise. I'll write a PROBLEMS entry. If I could figure out how to disable the xfce4 clipboard manager, I could tell for sure... 4) The CLIPBOARD_MANAGER arg of x-selection-exists-p isn't documented. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 24 18:55:05 2012 Received: (at 8869) by debbugs.gnu.org; 24 Feb 2012 23:55:05 +0000 Received: from localhost ([127.0.0.1]:54717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S14ye-00087b-9b for submit@debbugs.gnu.org; Fri, 24 Feb 2012 18:55:05 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:50387 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S14yb-00087H-NP for 8869@debbugs.gnu.org; Fri, 24 Feb 2012 18:55:02 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1S14w4-0007Mg-O0; Fri, 24 Feb 2012 18:52:24 -0500 From: Glenn Morris To: Chong Yidong Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> <87linsd3mt.fsf@gnu.org> <5daa4883of.fsf@fencepost.gnu.org> X-Spook: plutonium Honduras Blowfish counter intelligence Mossad X-Ran: ^?U&(#M"DZqOSTy.wo1vwCR$ac3gIT,{/RbWC!?kcTd[ZQqi;AeXq~^3=9%/&F.xLF2 (Glenn Morris's message of "Fri, 24 Feb 2012 13:52:16 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 8869 Cc: 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Glenn Morris wrote: > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8760 > says xfce4-settings-helper may be responsible. I do have version > 4.8.0 < 4.8.2. So probably this is a duplicate of that report. Oops. > Sorry for the noise. I'll write a PROBLEMS entry. Upgraded to xfce4-settings-helper 4.8.3 and the issue went away. I think my other points stand though. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 24 22:03:32 2012 Received: (at 8869) by debbugs.gnu.org; 25 Feb 2012 03:03:32 +0000 Received: from localhost ([127.0.0.1]:54827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S17v0-0003tN-T6 for submit@debbugs.gnu.org; Fri, 24 Feb 2012 22:03:32 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:52212) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S17ux-0003tF-Bk for 8869@debbugs.gnu.org; Fri, 24 Feb 2012 22:03:28 -0500 Received: from bb116-14-103-36.singnet.com.sg ([116.14.103.36]:55199 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1S17sN-0007rI-Um; Fri, 24 Feb 2012 22:00:48 -0500 From: Chong Yidong To: Glenn Morris Subject: Re: bug#8869: Unjustified selection time-out References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> <4E06EF70.7060009@swipnet.se> <87fwmwmlv4.fsf@stupidchicken.com> <4E0D71B4.3030000@swipnet.se> <87linsd3mt.fsf@gnu.org> <5daa4883of.fsf@fencepost.gnu.org> Date: Sat, 25 Feb 2012 11:00:39 +0800 In-Reply-To: <5daa4883of.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri, 24 Feb 2012 13:52:16 -0500") Message-ID: <87fwdzpqg8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 8869 Cc: Jan =?utf-8?Q?Dj=C3=A4rv?= , Stefan Monnier , 8869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Glenn Morris writes: > 1) 20 seconds seems a very long default. If whatever Emacs wants to > contact does not respond in say 5 seconds, is it likely to in 20? > > 2) Someone who starts Emacs from a menu item as opposed to a terminal > probably won't see the message about x-select-enable-clipboard-manager. > Could you not print "Attempting to contact clipboard manager..." > in Emacs before it starts doing whatever it does? > > 4) The CLIPBOARD_MANAGER arg of x-selection-exists-p isn't documented. I've fixed these in trunk. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 24 22:03:44 2012 Received: (at control) by debbugs.gnu.org; 25 Feb 2012 03:03:44 +0000 Received: from localhost ([127.0.0.1]:54830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S17vD-0003tm-Ir for submit@debbugs.gnu.org; Fri, 24 Feb 2012 22:03:44 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:52217) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S17vB-0003tg-PK for control@debbugs.gnu.org; Fri, 24 Feb 2012 22:03:42 -0500 Received: from bb116-14-103-36.singnet.com.sg ([116.14.103.36]:55201 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1S17se-0007ss-0k for control@debbugs.gnu.org; Fri, 24 Feb 2012 22:01:04 -0500 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8869 Date: Sat, 25 Feb 2012 11:00:57 +0800 Message-ID: <87vcmvliqe.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) close 8869 thanks From unknown Sat Jun 21 03:23:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 24 Mar 2012 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator