aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorRichard M. Stallman2002-09-18 16:03:58 +0000
committerRichard M. Stallman2002-09-18 16:03:58 +0000
commit261cca8832d07c2332410b20fd1227043d280c14 (patch)
tree90bc8598e60f08aeac3690edc05f3ece366abef4 /lisp/replace.el
parent2b25de040f7df72224b0261119ac2790233562f9 (diff)
downloademacs-261cca8832d07c2332410b20fd1227043d280c14.tar.gz
emacs-261cca8832d07c2332410b20fd1227043d280c14.zip
(occur-engine-add-prefix): Use 7 spaces.
(occur-engine): Use 7 digits to align tabs in the data.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 544f10ada91..f24a5fde9df 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -767,7 +767,7 @@ See also `multi-occur'."
767(defun occur-engine-add-prefix (lines) 767(defun occur-engine-add-prefix (lines)
768 (mapcar 768 (mapcar
769 #'(lambda (line) 769 #'(lambda (line)
770 (concat " :" line "\n")) 770 (concat " :" line "\n"))
771 lines)) 771 lines))
772 772
773(defun occur-engine (regexp buffers out-buf nlines case-fold-search 773(defun occur-engine (regexp buffers out-buf nlines case-fold-search
@@ -825,7 +825,8 @@ See also `multi-occur'."
825 ;; Generate the string to insert for this match 825 ;; Generate the string to insert for this match
826 (let* ((out-line 826 (let* ((out-line
827 (concat 827 (concat
828 (apply #'propertize (format "%6d:" lines) 828 ;; Using 7 digits aligns tabs properly.
829 (apply #'propertize (format "%7d:" lines)
829 (append 830 (append
830 (when prefix-face 831 (when prefix-face
831 `(font-lock-face prefix-face)) 832 `(font-lock-face prefix-face))