emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/vhdl-mode.el, v [EMACS_22_


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/vhdl-mode.el, v [EMACS_22_BASE]
Date: Mon, 13 Aug 2007 11:39:46 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Juanma Barranquero <lektu>      07/08/13 11:39:45

Index: vhdl-mode.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/vhdl-mode.el,v
retrieving revision 1.60.2.1
retrieving revision 1.60.2.2
diff -u -b -r1.60.2.1 -r1.60.2.2
--- vhdl-mode.el        25 Jul 2007 04:29:26 -0000      1.60.2.1
+++ vhdl-mode.el        13 Aug 2007 11:39:45 -0000      1.60.2.2
@@ -6982,10 +6982,13 @@
   (when (and vhdl-progress-info (not noninteractive)
             (< vhdl-progress-interval
                (- (nth 1 (current-time)) (aref vhdl-progress-info 2))))
+    (let ((delta (- (aref vhdl-progress-info 1)
+                    (aref vhdl-progress-info 0))))
+      (if (= 0 delta)
+          (message (concat string "... (100%s)") "%")
     (message (concat string "... (%2d%s)")
             (/ (* 100 (- pos (aref vhdl-progress-info 0)))
-               (- (aref vhdl-progress-info 1)
-                  (aref vhdl-progress-info 0))) "%")
+                    delta) "%")))
     (aset vhdl-progress-info 2 (nth 1 (current-time)))))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]