unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Simon Katz <sk@nomistech.com>
Cc: 50042@debbugs.gnu.org
Subject: bug#50042: acknowledged by developer (control message for bug #50042)
Date: Fri, 20 Aug 2021 15:09:53 +0200	[thread overview]
Message-ID: <87mtpc8dpa.fsf@gnus.org> (raw)
In-Reply-To: <CAPXG94_aKKk1mVTika_0SuOb6rgZD+roFbJ-A+GuO8oSCPEsPw@mail.gmail.com> (Simon Katz's message of "Thu, 19 Aug 2021 15:55:58 +0100")

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

Simon Katz <sk@nomistech.com> writes:

>> The file for reproducing the problem was apparently mangled during
>> transmission, too.  Can you re-send the file as an attachment?
>
> Sure. Please find it attached.

Thanks.

When I hoisted the final waiting from the command, I totally didn't
notice that there was even more waiting there (in the case of a command
that had displayed a message).

I've now tweaked this further, and it now seems to work correctly in
all the message/no keybinding/keybinding cases, I think...

Can you test this, too, to see if I got all the cases right?  That is,
it shouldn't display anything if you do anything else before the
suggestion triggers, and it shouldn't inhibit entering other commands,
and...  er...  no other peculiarities.

One thing that is peculiar, but no more than before, is this bit:

                       ;; FIXME: Can be slow.  Cache it maybe?
                       (setq binding (execute-extended-command--shorter
                                      (symbol-name function) typed))))

It takes five seconds on my laptop, which means that these suggestion
arrive five seconds after I did the `M-x'.  But that hasn't changed
since before these patches.  

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

[-- Attachment #2: demo-post-command-hook-slow-with-m-x-commands-v2.el --]
[-- Type: application/emacs-lisp, Size: 1439 bytes --]

  reply	other threads:[~2021-08-20 13:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <878s13os3a.fsf@gnus.org>
2021-08-13 11:52 ` bug#50042: 26.3; Post-command hooks slow with M-x commands Simon Katz
2021-08-13 12:27   ` Lars Ingebrigtsen
2021-08-13 12:40     ` Simon Katz
2021-08-14 16:36     ` Lars Ingebrigtsen
2021-08-14 20:52       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-15 11:38         ` Lars Ingebrigtsen
2021-08-17  0:41           ` Dmitry Gutov
     [not found]   ` <handler.50042.C.162902754922550.notifdonectrl.0@debbugs.gnu.org>
2021-08-18 15:27     ` bug#50042: acknowledged by developer (control message for bug #50042) Simon Katz
2021-08-18 15:33       ` Simon Katz
2021-08-18 15:37       ` Simon Katz
2021-08-19 13:07         ` Lars Ingebrigtsen
2021-08-19 14:55           ` Simon Katz
2021-08-20 13:09             ` Lars Ingebrigtsen [this message]
2021-08-20 16:14               ` Simon Katz
2021-08-21 12:55                 ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87mtpc8dpa.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=50042@debbugs.gnu.org \
    --cc=sk@nomistech.com \
    /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 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).