From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#5473: Fwd: insert-text-button button does not always work Date: Mon, 25 Jan 2010 18:17:04 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1264441228 20907 80.91.229.12 (25 Jan 2010 17:40:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2010 17:40:28 +0000 (UTC) To: 5473@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 25 18:40:21 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NZSvE-0002Mn-E2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jan 2010 18:40:20 +0100 Original-Received: from localhost ([127.0.0.1]:59950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZSvF-0007oq-L8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jan 2010 12:40:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZSur-0007Nr-KC for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2010 12:39:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZSul-00079U-D2 for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2010 12:39:55 -0500 Original-Received: from [199.232.76.173] (port=55119 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZSuk-00079A-VI for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2010 12:39:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42586) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NZSuj-0004gn-2a for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2010 12:39:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NZSZe-0005Op-8E; Mon, 25 Jan 2010 12:18:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jan 2010 17:18:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5473 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: Emacs Bugs Original-Received: via spool by submit@debbugs.gnu.org id=B.126443986120742 (code B ref -1); Mon, 25 Jan 2010 17:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jan 2010 17:17:41 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZSZJ-0005OV-D7 for submit@debbugs.gnu.org; Mon, 25 Jan 2010 12:17:41 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZSZI-0005ON-IR for submit@debbugs.gnu.org; Mon, 25 Jan 2010 12:17:40 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:39480 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZSZD-0006gv-Ar for submit@debbugs.gnu.org; Mon, 25 Jan 2010 12:17:36 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NZSZ8-00019D-5v for submit@debbugs.gnu.org; Mon, 25 Jan 2010 12:17:31 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:40329) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NZSZ8-000194-1w for submit@debbugs.gnu.org; Mon, 25 Jan 2010 12:17:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZSZ7-0006RT-A8 for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2010 12:17:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZSZ6-0006Qp-Ij for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2010 12:17:28 -0500 Original-Received: from [199.232.76.173] (port=59080 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZSZ6-0006Qd-8t for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2010 12:17:28 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.154]:60542) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZSZ5-00018g-AR for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2010 12:17:27 -0500 Original-Received: by fg-out-1718.google.com with SMTP id e21so454619fga.12 for ; Mon, 25 Jan 2010 09:17:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=tTUOxiTmxPZ1ZUSD9zDZhIf9T+Bv+gA/zOvWNgoz/k0=; b=KWQJM6nvjc6kRdrIwjtUISZ6Xg9IQMnbGAjNr0290zio2fPNTnEghzPwPBgbtLKHDI ZOnYVCJGU58qKAvc7zOV/n6DtundytvLGaWS9w/B7onPajykEfWLn87+KWOcRoV65KQP B5ivOiZFXayBXKXL1U/Nl51Yw+N+3ythykPG4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Vbnjl4TxHBnwD/Ds6j9VdTSu6+gmKYLkbsRf6B9ZPaoLWrkUNZLWs2i7/YJBk+2bZi F98sIsiEzMNL5eMwjTXQz/E0j49+9C0bBkXlMja/9AR0j94pKSRtDHtB4fU/KVGcnpTM 5lvEe9wnuTu2u8o33wz+v0Oy/CVycVeB3I/Y4= Original-Received: by 10.239.192.65 with SMTP id d1mr823402hbi.197.1264439844177; Mon, 25 Jan 2010 09:17:24 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.5 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -4.6 (----) Resent-Date: Mon, 25 Jan 2010 12:18:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34702 Archived-At: I got no answer to this one so I am reporting it as a bug instead. I can't find out what is happening. It is reproducable though it is a bit random. Some kind of race condition. (key-binding [13]) on the button in this strange state gives just `newline' instead of `push-button'. Note that the same code normally gives a totally fine button. It has something to do with calling the function that creates the buffer from command line since it is then it fails, but I have no idea why. The button looks perfectly normal. It has the category `default-button' which should have given it the key binding `push-button'. I also observer that there is something wrong with (get-char-property (point) 'keymap). This should return the `default-button' keymap. Sometimes it does not do that even in the case where the button works. The bug can be reproduced by using the library pause.el from nXhtml. At the moment I unfortunately do not know how to make a smaller example. To reproduce it do emacs -Q -l pause.elc --eval "(pause-start 0.05) The two buttons in the orange buffer has this problem. If the eval part of the command line above is omitted and it is evaluated in M-: instead M-: (pause-after 0.05) then the buttons works ok. Note that in both cases the buffer is created in a timer after 0.05 minutes. ---------- Forwarded message ---------- From: Lennart Borgman Date: Mon, Jan 25, 2010 at 4:20 PM Subject: insert-text-button button does not always work To: Emacs-Devel devel I am hunting a bug related to insert-text-button. The button sometimes does not work when I press RET and sometimes it does. Clicking on it with the mouse seems to work always. Yesterday it looked liked it always worked if it did hit any key before the buffer with the button is shown. (The buffer is loaded from command line.) Today I can not reproduce this. Any bell ringing in someone's head about this?