aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorGerd Moellmann2000-12-06 17:14:38 +0000
committerGerd Moellmann2000-12-06 17:14:38 +0000
commit9043c1c30754b4441ea2c59d24b24c759f363129 (patch)
tree885a7cbd6c4e5b43d9b1db2d5156b000ce1b8050 /lisp/replace.el
parent8714a182913706f421631a07da3dfa439c7eb9ec (diff)
downloademacs-9043c1c30754b4441ea2c59d24b24c759f363129.tar.gz
emacs-9043c1c30754b4441ea2c59d24b24c759f363129.zip
(occur): Make line-number-width 1 smaller for the
colon following the line number.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 8645e81420b..6fc67ad87bc 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -568,14 +568,14 @@ the matching is case-sensitive."
568 (current-tab-width tab-width) 568 (current-tab-width tab-width)
569 ;; Minimum width of line number plus trailing colon. 569 ;; Minimum width of line number plus trailing colon.
570 (min-line-number-width 6) 570 (min-line-number-width 6)
571 ;; Actual width of line number prefix. Choose a width that's 571 ;; Width of line number prefix without the colon. Choose a
572 ;; a multiple of `tab-width' in the original buffer so that 572 ;; width that's a multiple of `tab-width' in the original
573 ;; lines in *Occur* appear right. 573 ;; buffer so that lines in *Occur* appear right.
574 (line-number-width (* (/ (- (+ min-line-number-width 574 (line-number-width (1- (* (/ (- (+ min-line-number-width
575 tab-width) 575 tab-width)
576 1) 576 1)
577 tab-width) 577 tab-width)
578 tab-width)) 578 tab-width)))
579 ;; Format string for line numbers. 579 ;; Format string for line numbers.
580 (line-number-format (format "%%%dd" line-number-width)) 580 (line-number-format (format "%%%dd" line-number-width))
581 (empty (make-string line-number-width ?\ )) 581 (empty (make-string line-number-width ?\ ))