all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#47252: 28.0.50; [PATCH] Make minibuffer-depth-indicator-function a defcustom
@ 2021-03-19  3:36 Gabriel
  2021-03-19  8:38 ` Lars Ingebrigtsen
  2021-03-19  9:00 ` Mauro Aranda
  0 siblings, 2 replies; 7+ messages in thread
From: Gabriel @ 2021-03-19  3:36 UTC (permalink / raw)
  To: 47252

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

This simple patch makes 'minibuffer-depth-indicator-function' a
defcustom.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-mb-depth.el-Make-minibuffer-depth-indicator-fun.patch --]
[-- Type: text/x-diff, Size: 1026 bytes --]

From 6edb731766fa7fb34b62b3b1f9906d8c2119cb1c Mon Sep 17 00:00:00 2001
From: Gabriel do Nascimento Ribeiro <gabriel.nascimento@nubank.com.br>
Date: Fri, 19 Mar 2021 00:09:43 -0300
Subject: [PATCH] * lisp/mb-depth.el: Make minibuffer-depth-indicator-function
 a defcustom

(minibuffer-depth-indicator-function): Make a defcustom.
---
 lisp/mb-depth.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/mb-depth.el b/lisp/mb-depth.el
index f9a24e34bf..71b4abb5cb 100644
--- a/lisp/mb-depth.el
+++ b/lisp/mb-depth.el
@@ -30,10 +30,12 @@
 
 ;;; Code:
 
-(defvar minibuffer-depth-indicator-function nil
+(defcustom minibuffer-depth-indicator-function nil
   "If non-nil, function to set up the minibuffer depth indicator.
 It is called with one argument, the minibuffer depth,
-and must return a string.")
+and must return a string."
+  :type 'function
+  :group 'minibuffer)
 
 (defface minibuffer-depth-indicator '((t :inherit highlight))
   "Face to use for minibuffer depth indicator."
-- 
2.27.0


[-- Attachment #3: Type: text/plain, Size: 501 bytes --]


There was a long discussion 14 years ago when mb-depth.el was
implemented about making it a defcustom or not:

[1] https://lists.gnu.org/archive/html/emacs-devel/2008-08/msg00025.html
[2] https://lists.gnu.org/archive/html/emacs-devel/2007-06/msg00304.html

These are the only references I could find about this topic. Perhaps
today the rationale for this decision is different and this patch can be
applied. If the decision is to keep it as a defvar, please close this
bug report.

Regards,
Gabriel

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

end of thread, other threads:[~2021-03-20  8:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-19  3:36 bug#47252: 28.0.50; [PATCH] Make minibuffer-depth-indicator-function a defcustom Gabriel
2021-03-19  8:38 ` Lars Ingebrigtsen
2021-03-19  9:00 ` Mauro Aranda
2021-03-19  9:31   ` Lars Ingebrigtsen
2021-03-19 10:04     ` Mauro Aranda
2021-03-20  8:02       ` Lars Ingebrigtsen
2021-03-19 10:49     ` Robert Pluim

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.