unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5473: Fwd: insert-text-button button does not always work
       [not found] <e01d8a51001250720p35995db5k45f6bd5a96ab9704@mail.gmail.com>
@ 2010-01-25 17:17 ` Lennart Borgman
  2013-02-19  2:16   ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman @ 2010-01-25 17:17 UTC (permalink / raw)
  To: 5473

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 <lennart.borgman@gmail.com>
Date: Mon, Jan 25, 2010 at 4:20 PM
Subject: insert-text-button button does not always work
To: Emacs-Devel devel <emacs-devel@gnu.org>


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?







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

* bug#5473: Fwd: insert-text-button button does not always work
  2010-01-25 17:17 ` bug#5473: Fwd: insert-text-button button does not always work Lennart Borgman
@ 2013-02-19  2:16   ` Glenn Morris
  2014-02-06  1:13     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2013-02-19  2:16 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 5473

Lennart Borgman wrote:

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

Seems to work fine for me with

emacs-24-2.93 -l ./pause.elc  --eval '(pause-start 0.05 nil)'

> The two buttons in the orange buffer has this problem.





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

* bug#5473: Fwd: insert-text-button button does not always work
  2013-02-19  2:16   ` Glenn Morris
@ 2014-02-06  1:13     ` Lars Ingebrigtsen
  2015-12-25 23:02       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2014-02-06  1:13 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 5473

Glenn Morris <rgm@gnu.org> writes:

>> 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)
>
> Seems to work fine for me with
>
> emacs-24-2.93 -l ./pause.elc  --eval '(pause-start 0.05 nil)'

This bug report was previously marked "unreproducible".  Are you still
seeing this problem in Emacs 24.3?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

* bug#5473: Fwd: insert-text-button button does not always work
  2014-02-06  1:13     ` Lars Ingebrigtsen
@ 2015-12-25 23:02       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2015-12-25 23:02 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Lennart Borgman, 5473

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Glenn Morris <rgm@gnu.org> writes:
>
>>> 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)
>>
>> Seems to work fine for me with
>>
>> emacs-24-2.93 -l ./pause.elc  --eval '(pause-start 0.05 nil)'
>
> This bug report was previously marked "unreproducible".  Are you still
> seeing this problem in Emacs 24.3?

More information was requested, but no response was given within a few
months, so I'm closing this bug report.  If the problem still exists,
please reopen this bug report.
-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2015-12-25 23:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <e01d8a51001250720p35995db5k45f6bd5a96ab9704@mail.gmail.com>
2010-01-25 17:17 ` bug#5473: Fwd: insert-text-button button does not always work Lennart Borgman
2013-02-19  2:16   ` Glenn Morris
2014-02-06  1:13     ` Lars Ingebrigtsen
2015-12-25 23:02       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).