mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
(ibuffer-accumulate-lines): Moved to replace.el.
This commit is contained in:
parent
c06bd65eac
commit
e69738c939
@ -721,25 +721,6 @@ width and the longest string in LIST."
|
||||
(insert (pop list)))
|
||||
(insert "\n")))))
|
||||
|
||||
(defun ibuffer-accumulate-lines (count)
|
||||
(save-excursion
|
||||
(let ((forwardp (> count 0))
|
||||
(result nil))
|
||||
(while (not (or (zerop count)
|
||||
(if forwardp
|
||||
(eobp)
|
||||
(bobp))))
|
||||
(if forwardp
|
||||
(decf count)
|
||||
(incf count))
|
||||
(push
|
||||
(buffer-substring
|
||||
(line-beginning-position)
|
||||
(line-end-position))
|
||||
result)
|
||||
(forward-line (if forwardp 1 -1)))
|
||||
(nreverse result))))
|
||||
|
||||
(defsubst ibuffer-current-mark ()
|
||||
(cadr (get-text-property (line-beginning-position)
|
||||
'ibuffer-properties)))
|
||||
|
Loading…
Reference in New Issue
Block a user