[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/mb-depth.el,v
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/mb-depth.el,v |
Date: |
Mon, 08 Oct 2007 14:44:50 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Juanma Barranquero <lektu> 07/10/08 14:44:50
Index: mb-depth.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/mb-depth.el,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- mb-depth.el 27 Jul 2007 07:17:21 -0000 1.3
+++ mb-depth.el 8 Oct 2007 14:44:49 -0000 1.4
@@ -32,6 +32,11 @@
;;; Code:
+(defvar minibuf-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.")
+
;; An overlay covering the prompt. This is a buffer-local variable in
;; each affected minibuffer.
;;
@@ -45,8 +50,9 @@
(when (> (minibuffer-depth) 1)
(setq minibuf-depth-overlay (make-overlay (point-min) (1+ (point-min))))
(overlay-put minibuf-depth-overlay 'before-string
- (propertize (format "[%d]" (minibuffer-depth))
- 'face 'highlight))
+ (if minibuf-depth-indicator-function
+ (funcall minibuf-depth-indicator-function
(minibuffer-depth))
+ (propertize (format "[%d]" (minibuffer-depth)) 'face
'highlight)))
(overlay-put minibuf-depth-overlay 'evaporate t)))
;;;###autoload
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/mb-depth.el,v,
Juanma Barranquero <=