From: Drew Adams <drew.adams@oracle.com>
To: Gabriel do Nascimento Ribeiro <gabriel376@hotmail.com>,
emacs-devel@gnu.org
Subject: RE: [PATCHES] Minor patches for Remember, Minibuffer and Tab Bar
Date: Sat, 5 Dec 2020 08:03:09 -0800 (PST) [thread overview]
Message-ID: <17529736-2baa-440e-8d5f-948a2ed5284e@default> (raw)
In-Reply-To: <CH2PR01MB587905EB8149C34AD85FEA578BF00@CH2PR01MB5879.prod.exchangelabs.com>
> This patch:
> - adds a trailing space to minibuffer depth indicator, so
> it has some distance from minibuffer prompt
> - adds a new face 'minibuffer-depth-indicator'
Time travel...2006...
https://www.emacswiki.org/emacs/download/mb-depth%2b.el
And here's (all of) the code:
(defface minibuffer-depth-indicator '((t (:inherit default)))
"Face used to indicate minibuffer depth."
:group 'convenience :group 'faces)
(defcustom minibuffer-depth-indicator-format "%d) "
"Format string for minibuffer depth indicator."
:type 'string :group 'convenience)
;; REPLACE original defined in `mb-depth.el'.
;; Use face `minibuffer-depth-indicator' and option
;; `minibuffer-depth-indicator-format'.
;;
;; This function goes on `minibuffer-setup-hook'.
;;
(defun minibuffer-depth-setup ()
"Set up a minibuffer for `minibuffer-depth-indicate-mode'.
The prompt should already have been inserted."
(when (> (minibuffer-depth) 1)
(setq minibuffer-depth-overlay
(make-overlay (point-min) (1+ (point-min))))
(overlay-put minibuffer-depth-overlay 'before-string
(if minibuffer-depth-indicator-function
(funcall minibuffer-depth-indicator-function
(minibuffer-depth))
(propertize
(format minibuffer-depth-indicator-format
(minibuffer-depth))
'face 'minibuffer-depth-indicator)))
(overlay-put minibuffer-depth-overlay 'evaporate t)))
next prev parent reply other threads:[~2020-12-05 16:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-05 4:26 [PATCHES] Minor patches for Remember, Minibuffer and Tab Bar Gabriel do Nascimento Ribeiro
2020-12-05 16:03 ` Drew Adams [this message]
2020-12-05 16:57 ` Gabriel do Nascimento Ribeiro
2020-12-05 17:08 ` Drew Adams
2020-12-05 20:30 ` Juri Linkov
2020-12-05 21:52 ` Drew Adams
2020-12-05 21:58 ` Juri Linkov
2020-12-05 22:48 ` Drew Adams
2021-01-05 18:58 ` Juri Linkov
2021-01-05 23:52 ` Gabriel do Nascimento Ribeiro
2021-01-06 18:28 ` Juri Linkov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17529736-2baa-440e-8d5f-948a2ed5284e@default \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=gabriel376@hotmail.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 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).