emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ELPA-diffs] /srv/bzr/emacs/elpa r153: Add version tag and commentary to


From: Chong Yidong
Subject: [ELPA-diffs] /srv/bzr/emacs/elpa r153: Add version tag and commentary to the memory-usage package.
Date: Sun, 23 Oct 2011 15:33:07 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 153
committer: Chong Yidong <address@hidden>
branch nick: elpa
timestamp: Sun 2011-10-23 15:33:07 +0800
message:
  Add version tag and commentary to the memory-usage package.
modified:
  packages/memory-usage/memory-usage.el
=== modified file 'packages/memory-usage/memory-usage.el'
--- a/packages/memory-usage/memory-usage.el     2011-10-21 13:06:38 +0000
+++ b/packages/memory-usage/memory-usage.el     2011-10-23 07:33:07 +0000
@@ -4,6 +4,7 @@
 
 ;; Author: Stefan Monnier <address@hidden>
 ;; 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)))))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]