Commit 44a651f0 authored by Paul Eggert's avatar Paul Eggert

* rect.el (rectangle--default-line-number-format): Rename

from misspelled rectange--default-line-number-format (Bug#18045).
All uses changed.
parent f045dbe6
2014-08-04 Paul Eggert <eggert@cs.ucla.edu>
* rect.el (rectangle--default-line-number-format): Rename
from misspelled rectange--default-line-number-format (Bug#18045).
All uses changed.
2014-08-03 Paul Eggert <eggert@cs.ucla.edu>
Don't mishandle year-9999 dates (Bug#18176).
......
......@@ -520,7 +520,7 @@ rectangle which were empty."
(setq rectangle-number-line-counter
(1+ rectangle-number-line-counter)))
(defun rectange--default-line-number-format (start end start-at)
(defun rectangle--default-line-number-format (start end start-at)
(concat "%"
(int-to-string (length (int-to-string (+ (count-lines start end)
start-at))))
......@@ -541,11 +541,11 @@ with a prefix argument, prompt for START-AT and FORMAT."
(start-at (read-number "Number to count from: " 1)))
(list start end start-at
(read-string "Format string: "
(rectange--default-line-number-format
(rectangle--default-line-number-format
start end start-at))))
(list (region-beginning) (region-end) 1 nil)))
(unless format
(setq format (rectange--default-line-number-format start end start-at)))
(setq format (rectangle--default-line-number-format start end start-at)))
(let ((rectangle-number-line-counter start-at))
(apply-on-rectangle 'rectangle-number-line-callback
start end format)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment