all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#41322: [PATCH] Remove reference to missing gnus-custom-mode-hook
@ 2020-05-16 13:29 Stefan Kangas
  2020-05-16 16:49 ` Eric Abrahamsen
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kangas @ 2020-05-16 13:29 UTC (permalink / raw)
  To: 41322

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

There is a reference to `gnus-custom-mode-hook' in the docstring of
`gnus-custom-mode'.  However, I can't find this hook variable anywhere
in the sources and it is not used as advertised in `gnus-custom-mode'.

Should this reference just be removed, like in the attached patch?

Best regards,
Stefan Kangas

[-- Attachment #2: 0001-lisp-gnus-gnus-cus.el-gnus-custom-mode-Doc-fix.patch --]
[-- Type: text/x-diff, Size: 1000 bytes --]

From 0ccf4ab71ebace40158075f8ba06ae2ce09c31fb Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Sat, 16 May 2020 15:24:13 +0200
Subject: [PATCH] * lisp/gnus/gnus-cus.el (gnus-custom-mode): Doc fix.

---
 lisp/gnus/gnus-cus.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lisp/gnus/gnus-cus.el b/lisp/gnus/gnus-cus.el
index f0c4d07ca9..7c647f7f78 100644
--- a/lisp/gnus/gnus-cus.el
+++ b/lisp/gnus/gnus-cus.el
@@ -41,10 +41,7 @@ gnus-custom-mode
 \\[widget-forward]		Move to next button or editable field.
 \\[widget-backward]		Move to previous button or editable field.
 \\[widget-button-click]		Activate button under the mouse pointer.
-\\[widget-button-press]		Activate button under point.
-
-Entry to this mode calls the value of `gnus-custom-mode-hook'
-if that value is non-nil."
+\\[widget-button-press]		Activate button under point."
   (use-local-map widget-keymap)
   ;; Emacs stuff:
   (when (and (facep 'custom-button-face)
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#41322: [PATCH] Remove reference to missing gnus-custom-mode-hook
  2020-05-16 13:29 bug#41322: [PATCH] Remove reference to missing gnus-custom-mode-hook Stefan Kangas
@ 2020-05-16 16:49 ` Eric Abrahamsen
  2020-05-16 17:09   ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Abrahamsen @ 2020-05-16 16:49 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 41322

Stefan Kangas <stefankangas@gmail.com> writes:

> There is a reference to `gnus-custom-mode-hook' in the docstring of
> `gnus-custom-mode'.  However, I can't find this hook variable anywhere
> in the sources and it is not used as advertised in `gnus-custom-mode'.

It's just an automatically-generated mode hook, like all the others, it
doesn't need to be referenced in gnus-cus.el code.

C-h v gnus-custom-mode-hook

gnus-custom-mode-hook is a variable defined in ‘gnus-cus.el’.
Its value is nil

  This variable may be risky if used as a file-local variable.

Documentation:
Hook run after entering Gnus Customize mode.
No problems result if this variable is not bound.
‘add-hook’ automatically binds it.  (This is true for all hook variables.)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#41322: [PATCH] Remove reference to missing gnus-custom-mode-hook
  2020-05-16 16:49 ` Eric Abrahamsen
@ 2020-05-16 17:09   ` Stefan Kangas
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2020-05-16 17:09 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: 41322

tags 41322 + notabug
close 41322
thanks

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> It's just an automatically-generated mode hook, like all the others, it
> doesn't need to be referenced in gnus-cus.el code.

Ah, but of course.  Sorry about the brain fart.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-16 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-16 13:29 bug#41322: [PATCH] Remove reference to missing gnus-custom-mode-hook Stefan Kangas
2020-05-16 16:49 ` Eric Abrahamsen
2020-05-16 17:09   ` Stefan Kangas

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.