all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ian Perryman <iperryman@xtreme-eda.com>
To: Ken Brown <kbrown@cornell.edu>
Cc: Paul Eggert <eggert@cs.ucla.edu>, 23842@debbugs.gnu.org
Subject: bug#23842: 24.4; Runaway background process
Date: Mon, 27 Jun 2016 09:51:47 -0400	[thread overview]
Message-ID: <CANoMOPf+L=af-g3s1WrRuBWNYOdm-wWt49SEGLnoChT5qTrw2Q@mail.gmail.com> (raw)
In-Reply-To: <02ecaa18-2108-e5c7-c7c4-56896a9c2869@cornell.edu>

[-- Attachment #1: Type: text/plain, Size: 2687 bytes --]

I am not the author of the verilog mode.  I have alerted the maintainer to
the issue at
http://www.veripool.org/issues/1070-Verilog-mode-Auto-completion-results-in-runaway-emacs-process-in-emacs-24-4-on-Debian-using-2016-04-23-5f6855e-vpo

Not sure what the intended behaviour is.  My guess is that the list of
possible completions was to be presented in the temporary buffer, and then
 user could select the completion they wanted with a mouse click and it
should be inserted back in the original buffer.

Did the definition of with-output-to-temp-buffer change over the years?  I
am not certain when this code was developed, but it was quite a while
back.  I am surprised that no one else has complained about it.

Perhaps the paradigm for completion is not being followed by this mode?

Any suggestions?

Ian

On Mon, Jun 27, 2016 at 9:24 AM, Ken Brown <kbrown@cornell.edu> wrote:

> On 6/27/2016 8:46 AM, Ian Perryman wrote:
>
>> I tried down grading to emacs 24.1.1 in windows to see if the problem
>> still exists.
>>
>> The good news is that the process does not runaway to 100% CPU like with
>> emacs 24.4, but it still does not do the completion.  I get the "wrong
>> type argument: window-live-p, #<window 5>"
>>
>> The window # would change as I tried it multiple times.
>>
>> This appears to the be the same issue that is now reported in emacs 25.
>>
>> The same error is given in emacs 23.1.1
>>
>> Not sure when this worked.
>>
>
> I know virtually nothing about how completion works, but a glance at
> verilog-mode.el shows the following code, in both verilog-show-completions
> and verilog-complete-word:
>
>     ;; Show possible completions in a temporary buffer.
>     (with-output-to-temp-buffer "*Completions*"
>       (display-completion-list allcomp))
>     ;; Wait for a key press. Then delete *Completion*  window
>     (momentary-string-display "" (point))
>     (delete-window (get-buffer-window (get-buffer "*Completions*")))))
>
> It's hard to see how this could possibly work.  As soon as you click in
> the *Completion* window, the window is deleted.  Here's a lisp backtrace:
>
> Debugger entered--Lisp error: (wrong-type-argument window-live-p #<window
> 6>)
>   get-char-property(129 follow-link #<window 6>)
>   mouse-posn-property((#<window 6> 129 (35 . 76) 415716125 nil 129 (3 . 4)
> nil (8 . 4) (9 . 18)) follow-link)
>   mouse-on-link-p((#<window 6> 129 (35 . 76) 415716125 nil 129 (3 . 4) nil
> (8 . 4) (9 . 18)))
>   mouse--down-1-maybe-follows-link(nil)
>
> The error is generated when Fget_char_property (in textprop.c) calls
> get_char_property_and_overlay, which calls CHECK_LIVE_WINDOW on a window
> that has already been deleted.
>
> Ken
>

[-- Attachment #2: Type: text/html, Size: 3653 bytes --]

  reply	other threads:[~2016-06-27 13:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-24 19:08 bug#23842: 24.4; Runaway background process Ian Perryman
2016-06-24 20:02 ` bug#23842: Dribble files Ian Perryman
2016-06-25  7:00   ` Eli Zaretskii
2016-06-26  0:55     ` Ian Perryman
2016-06-25  6:50 ` bug#23842: 24.4; Runaway background process Eli Zaretskii
2016-06-25 20:49   ` Noam Postavsky
2016-06-26  2:37     ` Eli Zaretskii
2016-06-26  8:51 ` Paul Eggert
2016-06-26 17:04   ` Glenn Morris
2016-06-26 19:02     ` Ian Perryman
2016-06-26 19:50       ` Paul Eggert
2016-06-27 12:46         ` Ian Perryman
2016-06-27 13:24           ` Ken Brown
2016-06-27 13:51             ` Ian Perryman [this message]
2016-08-14  2:36               ` npostavs
2016-12-20  3:58                 ` npostavs
2016-06-27 15:49             ` Eli Zaretskii
2016-06-27 16:54               ` Ken Brown
2016-06-26 19:48     ` Paul Eggert
2016-12-21 23:37 ` Wilson Snyder
2016-12-22  2:44   ` npostavs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANoMOPf+L=af-g3s1WrRuBWNYOdm-wWt49SEGLnoChT5qTrw2Q@mail.gmail.com' \
    --to=iperryman@xtreme-eda.com \
    --cc=23842@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=kbrown@cornell.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.