]> code.delx.au - gnu-emacs-elpa/commitdiff
Add version tag and commentary to the memory-usage package.
authorChong Yidong <cyd@gnu.org>
Sun, 23 Oct 2011 07:33:07 +0000 (15:33 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 23 Oct 2011 07:33:07 +0000 (15:33 +0800)
packages/memory-usage/memory-usage.el

index 9c6cdcac45194e64135d3398fd92470c36135f8c..71644af8290db3d9ea2275df939d07d0a28d4615 100644 (file)
@@ -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)))))