]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/imenu.el (imenu-progress-message): Restore.
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 19 Apr 2012 21:34:49 +0000 (23:34 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 19 Apr 2012 21:34:49 +0000 (23:34 +0200)
lisp/ChangeLog
lisp/imenu.el

index 9ad019328d6380178922fd93b1bd715dc5d50be5..5131fa112a721647703e2078871dc0b783487847 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-19  Juanma Barranquero  <lekktu@gmail.com>
+
+       * imenu.el (imenu-progress-message): Restore; it is "used" in
+       erc/erc-imenu.el and net/snmp-mode.el.
+
 2012-04-19  Juanma Barranquero  <lekktu@gmail.com>
 
        * avoid.el (mouse-avoidance-mode): Mark unused arg.
index ceea9420c4c0bee1e6037614c7df22fc4a6cfbcf..12ac35409253d23fe8e59b2d59517e18d2d631f0 100644 (file)
@@ -266,6 +266,29 @@ The function in this variable is called when selecting a normal index-item.")
   (and (consp (cdr item)) (listp (cadr item))
        (not (eq (car (cadr item)) 'lambda))))
 
+;; Macro to display a progress message.
+;; RELPOS is the relative position to display.
+;; If RELPOS is nil, then the relative position in the buffer
+;; is calculated.
+;; PREVPOS is the variable in which we store the last position displayed.
+(defmacro imenu-progress-message (prevpos &optional relpos reverse)
+
+;; Made obsolete/empty, as computers are now faster than the eye, and
+;; it had problems updating the messages correctly, and could shadow
+;; more important messages/prompts in the minibuffer.  KFS 2004-10-27.
+
+;;  `(and
+;;    imenu-scanning-message
+;;    (let ((pos ,(if relpos
+;;                relpos
+;;              `(imenu--relative-position ,reverse))))
+;;     (if ,(if relpos t
+;;         `(> pos (+ 5 ,prevpos)))
+;;      (progn
+;;        (message imenu-scanning-message pos)
+;;        (setq ,prevpos pos)))))
+)
+
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;;;