all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org,
	monnier@iro.umontreal.ca, oleh@oremacs.com
Subject: Re: [Emacs-diffs] emacs-26 3db388b: Speed up (format "%s" STRING) and the like
Date: Thu, 05 Oct 2017 20:13:44 +0000	[thread overview]
Message-ID: <CAFyQvY38-RgGnOxfTuMojTV-U3QDiOWC6CN6wzpk5usdEeUjxQ@mail.gmail.com> (raw)
In-Reply-To: <83k209whwr.fsf@gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 3365 bytes --]

On Thu, Oct 5, 2017 at 2:48 PM Eli Zaretskii <eliz@gnu.org> wrote:

>
> Please always provide a minimal recipe to reproduce whatever problems
> you see.  For add-on packages, please also provide an explanation why
> what you see is problematic.  E.g., in this case, by just seeing the
> echo-area messages, I don't quite understand the problem, as I don't
> use hydra.
>

Understood, here is the recipe.

1. Install hydra from GNU Elpa in emacs -Q.
2. Evaluate the below

  (defhydra hydra-test (:color teal
                        :columns 7)
    "Test Hydra"
    ("<SPC>"   (message "Pressed space") "Space")
    ("<s-SPC>" (message "Pressed super space") "Super Space")
    ("q" (message "Pressed q") "q")
    ("r" (message "Pressed r") "r")
    ("s" (message "Pressed s") "s")
    ("t" (message "Pressed t") "t")
    ("u" (message "Pressed u") "u")
    ("v" (message "Pressed v") "v")
    ("w" (message "Pressed w") "w")
    ("x" (message "Pressed x") "x")
    ("y" (message "Pressed y") "y")
    ("z" (message "Pressed z") "z")
    ("A" (message "Pressed A") "A")
    ("B" (message "Pressed B") "B")
    ("C" (message "Pressed C") "C")
    ("D" (message "Pressed D") "D")
    ("E" (message "Pressed E") "E")
    ("F" (message "Pressed F") "F")
    ("G" (message "Pressed G") "G")
    ("H" (message "Pressed H") "H")
    ("I" (message "Pressed I") "I")
    ("J" (message "Pressed J") "J")
    ("K" (message "Pressed K") "K")
    ("L" (message "Pressed L") "L")
    ("M" (message "Pressed M") "M")
    ("N" (message "Pressed N") "N")
    ("O" (message "Pressed O") "O")
    ("P" (message "Pressed P") "P")
    ("Q" (message "Pressed Q") "Q")
    ("R" (message "Pressed R") "R")
    ("S" (message "Pressed S") "S")
    ("T" (message "Pressed T") "T")
    ("U" (message "Pressed U") "U")
    ("V" (message "Pressed V") "V")
    ("W" (message "Pressed W") "W")
    ("X" (message "Pressed X") "X")
    ("Y" (message "Pressed Y") "Y")
    ("Z" (message "Pressed Z") "Z")
    ("C-g"     nil "cancel" :color blue))
  (global-set-key (kbd "C-c l") #'hydra-test/body)
3. Press "C-c l"

I cannot quite place what's special about the above test hydra, but once
you press C-c l, you will see:

[image: image.png]

and the hydra will be unresponsive.. you won't be able to exist that Hydra
window at the bottom (of course, you can kill it.. but the hydra won't be
possible to quit any more).

I have copied Oleh so that he can provide more insight into how this format
commit affects hydra, and what that "binding stack not balanced" error
means.

About "something special about the test hydra":
- I do not get this error if I reduce the number of elements/heads of that
test hydra.
- I do not get this error if I remove the head with "<s-SPC>" binding:
("<s-SPC>" (message "Pressed super space") "Super Space")

I arrive to above test hydra only by trial.

Another issue caused by the format speed-up commit, that I cannot recreate
in a recipe is that once emacs started up with my config, I would see the
echo area 3-line tall, which is odd, and I've never seen.


> We don't usually revert commits when they cause problems, we rather
> prefer fixing the problems.  I'm quite sure this one will be fixed
> soon enough.
>

Sure. I just thought this commit was too experimental, as it made my emacs
session 100% unusable, and rebuilding was my only option.
-- 

Kaushal Modi

[-- Attachment #1.2: Type: text/html, Size: 6097 bytes --]

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 46038 bytes --]

  reply	other threads:[~2017-10-05 20:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20171004214511.1405.22257@vcs0.savannah.gnu.org>
     [not found] ` <20171004214513.6A40E2041C@vcs0.savannah.gnu.org>
2017-10-05  3:09   ` [Emacs-diffs] emacs-26 3db388b: Speed up (format "%s" STRING) and the like Stefan Monnier
2017-10-05  6:07     ` Paul Eggert
2017-10-05  7:30       ` Eli Zaretskii
2017-10-05 13:20         ` Stefan Monnier
2017-10-05 16:57           ` Kaushal Modi
2017-10-05 17:08             ` Kaushal Modi
2017-10-05 17:09               ` Kaushal Modi
2017-10-05 18:47               ` Eli Zaretskii
2017-10-05 20:13                 ` Kaushal Modi [this message]
2017-10-05 21:44                   ` Paul Eggert
2017-10-06  0:47                     ` Kaushal Modi
2017-10-06 17:45                       ` Paul Eggert
2017-10-06 17:49                         ` Kaushal Modi
2017-10-06 18:06                           ` Paul Eggert
2017-10-06 18:15                             ` Kaushal Modi
2017-10-06 18:21                               ` Kaushal Modi

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=CAFyQvY38-RgGnOxfTuMojTV-U3QDiOWC6CN6wzpk5usdEeUjxQ@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=oleh@oremacs.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 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.