summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2011-10-23 15:33:07 +0800
committerChong Yidong <cyd@gnu.org>2011-10-23 15:33:07 +0800
commitbc4e515e4c9cba2f964698bc209fae6b933ba67d (patch)
tree5c7dfd9e8f9623df397057fa2d87d1fba48b3e45
parenta88374c8c0a4392bf0f253fb095df92b40f8f3bc (diff)
Add version tag and commentary to the memory-usage package.
-rw-r--r--memory-usage.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/memory-usage.el b/memory-usage.el
index 9c6cdca..71644af 100644
--- a/memory-usage.el
+++ b/memory-usage.el
@@ -4,6 +4,7 @@
;; Author: Stefan Monnier <monnier@cs.yale.edu>
;; Keywords: maint
+;; Version: 0.1
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -22,7 +23,8 @@
;;; Commentary:
-;;
+;; This package provide the command `memory-usage', which lists all
+;; buffers and how much memory they use.
;;; Code:
@@ -45,7 +47,7 @@
"Return total number of ralloc bytes used by buffer."
(with-current-buffer b
(save-restriction
- (widen)
+ (widen)
(+ (position-bytes (point-max))
(- (position-bytes (point-min)))
(gap-size)))))