]> code.delx.au - gnu-emacs/blobdiff - lisp/makesum.el
Wrap around error in coreutil's ls
[gnu-emacs] / lisp / makesum.el
index a0f3aa7763c5c696684a92e08b3f7b123ae79af7..a65e5ae86d3d4ba54e2ef92bcd1d5a70bb1881b1 100644 (file)
@@ -1,9 +1,8 @@
 ;;; makesum.el --- generate key binding summary for Emacs
 
-;; Copyright (C) 1985, 2001, 2002, 2003, 2004, 2005,
-;;   2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 2001-2016 Free Software Foundation, Inc.
 
-;; Maintainer: FSF
+;; Maintainer: emacs-devel@gnu.org
 ;; Keywords: help
 
 ;; This file is part of GNU Emacs.
@@ -86,8 +85,7 @@ Previous contents of that buffer are killed first."
 
 (defun double-column (start end)
   (interactive "r")
-  (let (half cnt
-        line lines nlines
+  (let (half line lines nlines
        (from-end (- (point-max) end)))
     (setq nlines (count-lines start end))
     (if (<= nlines 1)
@@ -98,7 +96,7 @@ Previous contents of that buffer are killed first."
        (forward-line half)
        (while (< half nlines)
         (setq half (1+ half))
-        (setq line (buffer-substring (point) (save-excursion (end-of-line) (point))))
+        (setq line (buffer-substring (point) (line-end-position)))
         (setq lines (cons line lines))
         (delete-region (point) (progn (forward-line 1) (point)))))
       (setq lines (nreverse lines))
@@ -112,5 +110,4 @@ Previous contents of that buffer are killed first."
 
 (provide 'makesum)
 
-;; arch-tag: c2383336-fc89-46ad-8110-ded42bffaee3
 ;;; makesum.el ends here