]> git.eshelyaron.com Git - emacs.git/commit
Update chart.el
authorMark Oteiza <mvoteiza@udel.edu>
Sat, 12 Nov 2016 00:05:23 +0000 (19:05 -0500)
committerMark Oteiza <mvoteiza@udel.edu>
Sat, 12 Nov 2016 00:05:23 +0000 (19:05 -0500)
commit058816441840b5229b4437ff486a243e05fc5c93
tree59479b41dc8e2c4deac6568721d80a1597bee344
parent06b7e73b3e3189143163f87506e5a262b657d57a
Update chart.el

* lisp/emacs-lisp/chart.el (chart-mode): Derive from special-mode.
(chart-draw): Wrap in with-silent-modifications.  Instead of inserting a
fixed number of newlines, use window-height.
(chart-bar):
(chart-trim): Use dolist.
(chart-file-count): The previous implementation was buggy and missed
extensions.  Use file-name-extension instead to detect file extensions.
Also use dolist and cl-incf to reduce verbosity.
lisp/emacs-lisp/chart.el