mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 10:31:37 -08:00
(occur): Provide 5 cols for line number.
This commit is contained in:
parent
98b45886f2
commit
bcccd65d3f
1 changed files with 2 additions and 2 deletions
|
|
@ -388,7 +388,7 @@ It serves as a menu to find any of the occurrences in this buffer.
|
|||
(forward-line (1+ nlines))
|
||||
(forward-line 1))
|
||||
(point)))
|
||||
(tag (format "%3d" linenum))
|
||||
(tag (format "%5d" linenum))
|
||||
(empty (make-string (length tag) ?\ ))
|
||||
tem)
|
||||
(save-excursion
|
||||
|
|
@ -411,7 +411,7 @@ It serves as a menu to find any of the occurrences in this buffer.
|
|||
(+ (point) (- (match-end 0) (match-beginning 0))))
|
||||
(while (< (point) final-context-start)
|
||||
(if (null tag)
|
||||
(setq tag (format "%3d" this-linenum)))
|
||||
(setq tag (format "%5d" this-linenum)))
|
||||
(insert tag ?:)
|
||||
(put-text-property (save-excursion
|
||||
(beginning-of-line)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue