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

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

[elpa] externals/memory-usage bc4e515 2/9: Add version tag and commentar


From: Stefan Monnier
Subject: [elpa] externals/memory-usage bc4e515 2/9: Add version tag and commentary to the memory-usage package.
Date: Tue, 1 Dec 2020 16:21:13 -0500 (EST)

branch: externals/memory-usage
commit bc4e515e4c9cba2f964698bc209fae6b933ba67d
Author: Chong Yidong <cyd@gnu.org>
Commit: Chong Yidong <cyd@gnu.org>

    Add version tag and commentary to the memory-usage package.
---
 memory-usage.el | 6 ++++--
 1 file 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)))))



reply via email to

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