* . *
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Monday, June 30, 2025
Earth-News
  • Home
  • Business
  • Entertainment
    A Secret Society, Ritualistic Killings, and a Century-Old Curse Netflix and YRF Entertainment’s ‘Mandala Murders’ Premieres July 25 – About Netflix

    A Secret Society, Ritualistic Killings, and a Century-Old Curse: Dive into the Chilling World of ‘Mandala Murders’ Premiering July 25

    Susquehanna Raises Penn Entertainment Inc. (PENN) Price Target. – Yahoo Finance

    Susquehanna Raises Price Target for Penn Entertainment Inc. (PENN)

    George Lopez is coming to Spokane – KXLY.com

    George Lopez is coming to Spokane – KXLY.com

    Netflix unveils Dallas immersive venue for fans of hit shows like ‘Squid Game,’ ‘Stranger Things’ – Houston Chronicle

    Step Inside Netflix’s New Dallas Immersive Experience Featuring Hits Like ‘Squid Game’ and ‘Stranger Things

    ‘Puttin’ on the Ritz’: Civic Players bring ‘Young Frankenstein’ to life – Yahoo

    Civic Players Deliver a Hilarious and Unforgettable Performance of ‘Young Frankenstein

    ‘Wheel of Fortune’: Amputee Wins $60,000 After Breaking Incredible ‘Curse’ – Hastings Tribune

    Wheel of Fortune’ Amputee Breaks Incredible ‘Curse’ to Win $60,000!

  • General
  • Health
  • News

    Cracking the Code: Why China’s Economic Challenges Aren’t Shaking Markets, Unlike America’s” – Bloomberg

    Trump’s Narrow Window to Spread the Truth About Harris

    Trump’s Narrow Window to Spread the Truth About Harris

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Science
  • Sports
  • Technology
    New center coming to Mizzou will focus on energy research and technology – Columbia Missourian

    Mizzou Launches Innovative New Center Dedicated to Energy Research and Technology

    Mirrors in space and underwater curtains: can technology buy us enough time to save the Arctic ice caps? – The Guardian

    Can Technology Like Space Mirrors and Underwater Curtains Buy Us Time to Save the Arctic Ice Caps?

    Naples restaurant owner prepares for hurricane season with new flood technology – Fox4Now.com

    Naples restaurant owner prepares for hurricane season with new flood technology – Fox4Now.com

    Emerging Memory and Storage Technology Market Analysis Report 2025-2034 | AI and HPC Boom Fuels Surging Demand for Fast, Low-Power Memory Devices – Yahoo Finance

    How AI and HPC Are Driving Explosive Growth in Fast, Low-Power Memory Technologies Through 2034

    Ostin Technology (OST): Volatility’s Warning or Contrarian Opportunity? – AInvest

    Ostin Technology (OST): Navigating Market Volatility – Red Flag or Hidden Opportunity?

    St. Francis Medical Center brings advanced robotic surgery technology to Northeast Louisiana – KNOE

    St. Francis Medical Center brings advanced robotic surgery technology to Northeast Louisiana – KNOE

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
  • Home
  • Business
  • Entertainment
    A Secret Society, Ritualistic Killings, and a Century-Old Curse Netflix and YRF Entertainment’s ‘Mandala Murders’ Premieres July 25 – About Netflix

    A Secret Society, Ritualistic Killings, and a Century-Old Curse: Dive into the Chilling World of ‘Mandala Murders’ Premiering July 25

    Susquehanna Raises Penn Entertainment Inc. (PENN) Price Target. – Yahoo Finance

    Susquehanna Raises Price Target for Penn Entertainment Inc. (PENN)

    George Lopez is coming to Spokane – KXLY.com

    George Lopez is coming to Spokane – KXLY.com

    Netflix unveils Dallas immersive venue for fans of hit shows like ‘Squid Game,’ ‘Stranger Things’ – Houston Chronicle

    Step Inside Netflix’s New Dallas Immersive Experience Featuring Hits Like ‘Squid Game’ and ‘Stranger Things

    ‘Puttin’ on the Ritz’: Civic Players bring ‘Young Frankenstein’ to life – Yahoo

    Civic Players Deliver a Hilarious and Unforgettable Performance of ‘Young Frankenstein

    ‘Wheel of Fortune’: Amputee Wins $60,000 After Breaking Incredible ‘Curse’ – Hastings Tribune

    Wheel of Fortune’ Amputee Breaks Incredible ‘Curse’ to Win $60,000!

  • General
  • Health
  • News

    Cracking the Code: Why China’s Economic Challenges Aren’t Shaking Markets, Unlike America’s” – Bloomberg

    Trump’s Narrow Window to Spread the Truth About Harris

    Trump’s Narrow Window to Spread the Truth About Harris

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Science
  • Sports
  • Technology
    New center coming to Mizzou will focus on energy research and technology – Columbia Missourian

    Mizzou Launches Innovative New Center Dedicated to Energy Research and Technology

    Mirrors in space and underwater curtains: can technology buy us enough time to save the Arctic ice caps? – The Guardian

    Can Technology Like Space Mirrors and Underwater Curtains Buy Us Time to Save the Arctic Ice Caps?

    Naples restaurant owner prepares for hurricane season with new flood technology – Fox4Now.com

    Naples restaurant owner prepares for hurricane season with new flood technology – Fox4Now.com

    Emerging Memory and Storage Technology Market Analysis Report 2025-2034 | AI and HPC Boom Fuels Surging Demand for Fast, Low-Power Memory Devices – Yahoo Finance

    How AI and HPC Are Driving Explosive Growth in Fast, Low-Power Memory Technologies Through 2034

    Ostin Technology (OST): Volatility’s Warning or Contrarian Opportunity? – AInvest

    Ostin Technology (OST): Navigating Market Volatility – Red Flag or Hidden Opportunity?

    St. Francis Medical Center brings advanced robotic surgery technology to Northeast Louisiana – KNOE

    St. Francis Medical Center brings advanced robotic surgery technology to Northeast Louisiana – KNOE

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
Earth-News
No Result
View All Result
Home Technology

Emacs bug: describe-key and lambda too poetic

April 6, 2024
in Technology
Share on FacebookShare on Twitter

* bug#70209: 30.0.50; describe key + lambda too poetic
@ 2024-04-05 4:47 No Wayman
2024-04-05 5:07 ` No Wayman
0 siblings, 1 reply; 6+ messages in thread
From: No Wayman @ 2024-04-05 4:47 UTC (permalink / raw)
To: 70209

GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.41, cairo version 1.18.0) of 2024-04-02

emacs -Q –batch
–eval ‘(global-set-key (kbd “c”) (lambda () (interactive) t))’
–eval ‘(describe-key “c”)’
–eval ‘(with-current-buffer “*Help*” (print
(buffer-substring-no-properties (point-min) (point-max))))’

Outputs the following poetry:

“c runs the command # (found in global-map), which is
.

It is bound to c.

(anonymous)
”

“which is…”?
What is describe-key trying to tell us?
Is it respecting the function’s wish to remain anonymous?
Is it commentary on the limits of descriptive language?
I can only respond with the output of M-x describe-feelings:

“It is bound to c, yet I see a bind:
Though closure mentioned, none I’ve yet to find.”
~ Anonymous

^ permalink raw reply [flat|nested] 6+ messages in thread* bug#70209: 30.0.50; describe key + lambda too poetic
2024-04-05 4:47 bug#70209: 30.0.50; describe key + lambda too poetic No Wayman
@ 2024-04-05 5:07 ` No Wayman
2024-04-05 5:43 ` Eli Zaretskii
2024-04-05 11:44 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 2 replies; 6+ messages in thread
From: No Wayman @ 2024-04-05 5:07 UTC (permalink / raw)
To: 70209

[– Attachment #1: Type: text/plain, Size: 32 bytes –]

See attached patch, which is.

[– Warning: decoded text below may be mangled, UTF-8 assumed –]
[– Attachment #2: 0001-Include-lambda-type-in-describe-key-output.patch –]
[– Type: text/x-patch, Size: 903 bytes –]

From 65f0f2fa251a7b18c15698460c499394b931d09d Mon Sep 17 00:00:00 2001
From: Nicholas Vollmer
Date: Thu, 4 Apr 2024 23:54:42 -0400
Subject: [PATCH] Include lambda type in describe-key output

* lisp/help-fns.el (help-fns-function-description-header):
Add case to describe lambda forms (Bug#70209).
—
lisp/help-fns.el | 2 ++
1 file changed, 2 insertions(+)

diff –git a/lisp/help-fns.el b/lisp/help-fns.el
index a291893e9a2..3a5984d5b84 100644
— a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1102,6 +1102,8 @@ help-fns-function-description-header
elts nil))
(setq elts (cdr-safe elts)))
(concat beg (if is-full “keymap” “sparse keymap”))))
+ ((eq (car-safe def) ‘lambda)
+ (concat beg “anonymous Lisp function”))
(t “”))))
(with-current-buffer standard-output
(insert description))
—
2.44.0

^ permalink raw reply related [flat|nested] 6+ messages in thread* bug#70209: 30.0.50; describe key + lambda too poetic
2024-04-05 5:07 ` No Wayman
@ 2024-04-05 5:43 ` Eli Zaretskii
2024-04-05 11:44 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2024-04-05 5:43 UTC (permalink / raw)
To: No Wayman, Stefan Monnier; +Cc: 70209

> From: No Wayman
> Date: Fri, 05 Apr 2024 01:07:39 -0400
>
> See attached patch, which is.

Thanks. Stefan, any comments?

^ permalink raw reply [flat|nested] 6+ messages in thread* bug#70209: 30.0.50; describe key + lambda too poetic
2024-04-05 5:07 ` No Wayman
2024-04-05 5:43 ` Eli Zaretskii
@ 2024-04-05 11:44 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-05 20:58 ` No Wayman
1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-04-05 11:44 UTC (permalink / raw)
To: No Wayman; +Cc: 70209

Thank you for your enjoyable bug report and the suggested patch.

> @@ -1102,6 +1102,8 @@ help-fns-function-description-header
> elts nil))
> (setq elts (cdr-safe elts)))
> (concat beg (if is-full “keymap” “sparse keymap”))))
> + ((eq (car-safe def) ‘lambda)
> + (concat beg “anonymous Lisp function”))
> (t “”))))
> (with-current-buffer standard-output
> (insert description))

Actually, I think this won’t help because in my test the `car` of `def`
is `closure` rather than `lambda`.

I installed the patch below instead.

Stefan

diff –git a/lisp/help-fns.el b/lisp/help-fns.el
index a291893e9a2..27011575333 100644
— a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1086,13 +1086,6 @@ help-fns-function-description-header
;; need to check macros before functions.
(macrop function))
(concat beg “Lisp macro”))
– ((atom def)
– (let ((type (or (oclosure-type def) (cl-type-of def))))
– (concat beg (format “%s”
– (make-text-button
– (symbol-name type) nil
– ‘type ‘help-type
– ‘help-args (list type))))))
((keymapp def)
(let ((is-full nil)
(elts (cdr-safe def)))
@@ -1102,7 +1095,16 @@ help-fns-function-description-header
elts nil))
(setq elts (cdr-safe elts)))
(concat beg (if is-full “keymap” “sparse keymap”))))
– (t “”))))
+ (t
+ (let ((type
+ (if (and (consp def) (symbolp (car def)))
+ (car def)
+ (or (oclosure-type def) (cl-type-of def)))))
+ (concat beg (format “%s”
+ (make-text-button
+ (symbol-name type) nil
+ ‘type ‘help-type
+ ‘help-args (list type)))))))))
(with-current-buffer standard-output
(insert description))

^ permalink raw reply related [flat|nested] 6+ messages in thread* bug#70209: 30.0.50; describe key + lambda too poetic
2024-04-05 11:44 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-04-05 20:58 ` No Wayman
2024-04-05 22:32 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 6+ messages in thread
From: No Wayman @ 2024-04-05 20:58 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 70209

Stefan Monnier writes:

> Thank you for your enjoyable bug report and the suggested patch.

🙂

> Actually, I think this won’t help because in my test the `car`
> of `def`
> is `closure` rather than `lambda`.
>
> I installed the patch below instead.
> diff –git a/lisp/help-fns.el b/lisp/help-fns.el
> index a291893e9a2..27011575333 100644

With patch applied, thy *scratch* prepared to itch which I bemoan,
*Help* link replied, its ink ensnared, with “lambda, type
Unknown.”[1]
Apostrophized: “Be tossed, repaired, my user-error thrown!”
With paren pride, I then declared a test which I have shown.[2]
Test now revised as thou compared. Composure hath no throne
when teary-eyed, in fear I blared, “My closure! Type Unknown?”

[1]:
emacs -Q –batch
–eval ‘(global-set-key (kbd “c”) `(lambda () (interactive) t)))’

–eval ‘(describe-key “c”)’
–eval ‘(with-current-buffer “*Help*”
(forward-button 2)
(push-button)
(print (buffer-substring-no-properties (point-min)
(point-max))))’

Unknown type lambda

[2]:
emacs -Q –batch
–eval ‘(global-set-key (kbd “c”) (lambda () (interactive) t)))’
–eval ‘(describe-key “c”)’
–eval ‘(with-current-buffer “*Help*”
(forward-button 2)
(push-button)
(print (buffer-substring-no-properties (point-min)
(point-max))))’

Unknown type closure

^ permalink raw reply [flat|nested] 6+ messages in thread* bug#70209: 30.0.50; describe key + lambda too poetic
2024-04-05 20:58 ` No Wayman
@ 2024-04-05 22:32 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-04-05 22:32 UTC (permalink / raw)
To: No Wayman; +Cc: 70209

> [1]:
> emacs -Q –batch
> –eval ‘(global-set-key (kbd “c”) `(lambda () (interactive) t)))’
> –eval ‘(describe-key “c”)’
> –eval ‘(with-current-buffer “*Help*”
> (forward-button 2)
> (push-button)
> (print (buffer-substring-no-properties (point-min)
> (point-max))))’
>
> Unknown type lambda

That’s mild punishment for quoting a lambda.

> [2]:
> emacs -Q –batch
> –eval ‘(global-set-key (kbd “c”) (lambda () (interactive) t)))’
> –eval ‘(describe-key “c”)’
> –eval ‘(with-current-buffer “*Help*”
> (forward-button 2)
> (push-button)
> (print (buffer-substring-no-properties (point-min)
> (point-max))))’
>
> Unknown type closure

OK, OK, I relent, it shouldn’t be button.
Should be fixed now on `master`, thanks to the handy patch below.

Stefan

diff –git a/lisp/help-fns.el b/lisp/help-fns.el
index 27011575333..cfe27077055 100644
— a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1096,15 +1096,15 @@ help-fns-function-description-header
(setq elts (cdr-safe elts)))
(concat beg (if is-full “keymap” “sparse keymap”))))
(t
– (let ((type
– (if (and (consp def) (symbolp (car def)))
– (car def)
– (or (oclosure-type def) (cl-type-of def)))))
– (concat beg (format “%s”
– (make-text-button
– (symbol-name type) nil
– ‘type ‘help-type
– ‘help-args (list type)))))))))
+ (concat beg (format “%s”
+ (if (and (consp def) (symbolp (car def)))
+ (car def)
+ (let ((type (or (oclosure-type def)
+ (cl-type-of def))))
+ (make-text-button
+ (symbol-name type) nil
+ ‘type ‘help-type
+ ‘help-args (list type))))))))))
(with-current-buffer standard-output
(insert description))

^ permalink raw reply related [flat|nested] 6+ messages in threadend of thread, other threads:[~2024-04-05 22:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
— links below jump to the message on this page —
2024-04-05 4:47 bug#70209: 30.0.50; describe key + lambda too poetic No Wayman
2024-04-05 5:07 ` No Wayman
2024-04-05 5:43 ` Eli Zaretskii
2024-04-05 11:44 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-05 20:58 ` No Wayman
2024-04-05 22:32 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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).
>>> Read full article>>>
Copyright for syndicated content belongs to the linked Source : Hacker News – https://yhetil.org/emacs-bugs/874jcgbekr.fsf@gmail.com/T/#u

Tags: describe-keyEmacstechnology
Previous Post

Best Latex Mattresses of 2024

Next Post

SearXNG is a free internet metasearch engine

Aceso Life Science Group Enhances Governance with New Nomination Committee Appointment – TipRanks

Aceso Life Science Group Boosts Leadership with Exciting New Nomination Committee Appointment

June 30, 2025
Aceso Life Science Group Updates Board Composition and Roles – TipRanks

Aceso Life Science Group Updates Board Composition and Roles – TipRanks

June 30, 2025
59 Years Ago Today… – Corvette: Sales, News & Lifestyle – CorvetteBlogger

59 Years Ago Today… – Corvette: Sales, News & Lifestyle – CorvetteBlogger

June 30, 2025
Botafogo sack manager Paiva after Club World Cup exit – Reuters

Botafogo sack manager Paiva after Club World Cup exit – Reuters

June 30, 2025
Deep inside U.S. economy, more sticker prices start going up due to tariffs, and inventory is headed down – CNBC

Soaring Tariffs Drive U.S. Prices Up Amid Shrinking Inventory Levels

June 30, 2025
A Secret Society, Ritualistic Killings, and a Century-Old Curse Netflix and YRF Entertainment’s ‘Mandala Murders’ Premieres July 25 – About Netflix

A Secret Society, Ritualistic Killings, and a Century-Old Curse: Dive into the Chilling World of ‘Mandala Murders’ Premiering July 25

June 30, 2025
Immune Health Supplements Market Size to Reach USD 56.23 – GlobeNewswire

Immune Health Supplements Market Size to Reach USD 56.23 – GlobeNewswire

June 30, 2025
‘I don’t believe in losing’: GOP lawmaker responds to concerns about passing bill | CNN Politics – CNN

‘I don’t believe in losing’: GOP lawmaker responds to concerns about passing bill | CNN Politics – CNN

June 30, 2025
New center coming to Mizzou will focus on energy research and technology – Columbia Missourian

Mizzou Launches Innovative New Center Dedicated to Energy Research and Technology

June 30, 2025
Atlanta Dream Dealt Concerning Loss During Liberty Game – Yahoo Sports

Atlanta Dream Faces Crushing Defeat in Thrilling Liberty Clash

June 30, 2025

Categories

Archives

June 2025
MTWTFSS
 1
2345678
9101112131415
16171819202122
23242526272829
30 
« May    
Earth-News.info

The Earth News is an independent English-language daily published Website from all around the World News

Browse by Category

  • Business (20,132)
  • Ecology (700)
  • Economy (725)
  • Entertainment (21,614)
  • General (15,638)
  • Health (9,764)
  • Lifestyle (730)
  • News (22,149)
  • People (725)
  • Politics (731)
  • Science (15,942)
  • Sports (21,221)
  • Technology (15,709)
  • World (705)

Recent News

Aceso Life Science Group Enhances Governance with New Nomination Committee Appointment – TipRanks

Aceso Life Science Group Boosts Leadership with Exciting New Nomination Committee Appointment

June 30, 2025
Aceso Life Science Group Updates Board Composition and Roles – TipRanks

Aceso Life Science Group Updates Board Composition and Roles – TipRanks

June 30, 2025
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2023 earth-news.info

No Result
View All Result

© 2023 earth-news.info

No Result
View All Result

© 2023 earth-news.info

Go to mobile version