[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/disk-usage b2497fd 19/48: Set buffer name in a defvar
From: |
Stefan Monnier |
Subject: |
[elpa] externals/disk-usage b2497fd 19/48: Set buffer name in a defvar |
Date: |
Tue, 19 Feb 2019 08:00:00 -0500 (EST) |
branch: externals/disk-usage
commit b2497fd1f542a730d5f2fd82a27718196cd987b7
Author: Pierre Neidhardt <address@hidden>
Commit: Pierre Neidhardt <address@hidden>
Set buffer name in a defvar
---
disk-usage.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/disk-usage.el b/disk-usage.el
index 80a89a2..3399084 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -298,6 +298,8 @@ beings."
(setq tabulated-list-printer #'disk-usage--print-entry)
(add-hook 'tabulated-list-revert-hook 'disk-usage--refresh nil t))
+(defvar disk-usage-buffer-name "disk-usage")
+
;;;###autoload
(defun disk-usage (&optional directory)
(interactive "D")
@@ -307,7 +309,8 @@ beings."
directory)
default-directory)))
(switch-to-buffer
- (get-buffer-create (format "*disk-usage<%s>*" (directory-file-name
directory))))
+ (get-buffer-create (format "*%s<%s>*" disk-usage-buffer-name
+ (directory-file-name directory))))
(disk-usage-mode)
(setq default-directory directory)
(tabulated-list-revert))
- [elpa] branch externals/disk-usage created (now f89b69d), Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage e6f342a 04/48: Bind "h" to toggle-human-readable, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 28ceb1a 02/48: Alight size to the right, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 4ce2b9b 03/48: Update buffer when toggling human readable size, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 0123f06 06/48: Display symlink targets, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 8792145 16/48: Bind "f" to disk-usage-toggle-full-path, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 3fb4803 07/48: Display total size, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage b2497fd 19/48: Set buffer name in a defvar,
Stefan Monnier <=
- [elpa] externals/disk-usage ca3aa43 05/48: Display symlinks, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f35eb8b 26/48: Refactor disk-usage-toggle-recursive, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 9b55d63 09/48: Add disk-usage-toggle-full-path, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f3bcae9 22/48: readme: Link to Guix, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f330f01 31/48: Fix structure manipulation in disk-usage-by-types, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 00aa40a 10/48: Bind "S-<return>" to disk-usage-find-file-at-point, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 4fc5cb3 33/48: Refresh cache with prefix argument, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 1949c82 37/48: Add disk-usage-by-types-here, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f3895a3 27/48: Normalize some function names, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 0d4ce4b 12/48: Bind "^" and "<backspace>" to disk-usage-up, Stefan Monnier, 2019/02/19