* bug#56621: [PATCH] info-edit: Delay `ibuffer' var change until after `ibuffer' loads
@ 2022-07-17 18:49 Richard Hansen
2022-07-18 2:14 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 2+ messages in thread
From: Richard Hansen @ 2022-07-17 18:49 UTC (permalink / raw)
To: 56621
[-- Attachment #1.1.1: Type: text/plain, Size: 368 bytes --]
Attached patch:
info-edit: Delay `ibuffer' var change until after `ibuffer' loads
* lisp/obsolete/info-edit.el: Delay the addition of `Info-edit-mode'
to the `ibuffer-help-buffer-modes' list until after `ibuffer' is
loaded. This fixes a "(void-variable ibuffer-help-buffer-modes)"
error when `info-edit' is loaded before `ibuffer'.
[-- Attachment #1.1.2: 0001-info-edit-Delay-ibuffer-var-change-until-after-ibuff.patch --]
[-- Type: text/x-patch, Size: 1447 bytes --]
From c71dc095a677518a8da65b2bea4360df3bd606fa Mon Sep 17 00:00:00 2001
From: Richard Hansen <rhansen@rhansen.org>
Date: Sun, 17 Jul 2022 14:32:42 -0400
Subject: [PATCH] info-edit: Delay `ibuffer' var change until after `ibuffer'
loads
* lisp/obsolete/info-edit.el: Delay the addition of `Info-edit-mode'
to the `ibuffer-help-buffer-modes' list until after `ibuffer' is
loaded. This fixes a "(void-variable ibuffer-help-buffer-modes)"
error when `info-edit' is loaded before `ibuffer'.
---
lisp/obsolete/info-edit.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lisp/obsolete/info-edit.el b/lisp/obsolete/info-edit.el
index 6c4c10ca6c..3bab77e245 100644
--- a/lisp/obsolete/info-edit.el
+++ b/lisp/obsolete/info-edit.el
@@ -77,11 +77,11 @@ Info-cease-edit
(buffer-modified-p)
(message "Tags may have changed. Use Info-tagify if necessary")))
-(defvar ibuffer-help-buffer-modes)
-;; Moved here from definition of ibuffer-help-buffer-modes to make
-;; that variable customizable even though this code is obsolete. See
-;; also Bug#30990.
-(add-to-list 'ibuffer-help-buffer-modes 'Info-edit-mode)
+(with-eval-after-load 'ibuffer
+ ;; Moved here from definition of ibuffer-help-buffer-modes to make
+ ;; that variable customizable even though this code is obsolete. See
+ ;; also Bug#30990.
+ (add-to-list 'ibuffer-help-buffer-modes 'Info-edit-mode))
(provide 'info-edit)
--
2.37.1
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#56621: [PATCH] info-edit: Delay `ibuffer' var change until after `ibuffer' loads
2022-07-17 18:49 bug#56621: [PATCH] info-edit: Delay `ibuffer' var change until after `ibuffer' loads Richard Hansen
@ 2022-07-18 2:14 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-07-18 2:14 UTC (permalink / raw)
To: Richard Hansen; +Cc: 56621-done
Richard Hansen [2022-07-17 14:49:20] wrote:
> info-edit: Delay `ibuffer' var change until after `ibuffer' loads
Thanks, pushed to `master`.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-18 2:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-17 18:49 bug#56621: [PATCH] info-edit: Delay `ibuffer' var change until after `ibuffer' loads Richard Hansen
2022-07-18 2:14 ` 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).