From: Terechkov Evgenii <evg_krsk@inbox.ru>
To: bug-gnu-emacs@gnu.org
Subject: [PATCH]WoMan's buffer name not customizable
Date: Sun, 07 Oct 2007 12:29:28 +0800 [thread overview]
Message-ID: <m3r6k75yzb.fsf@evg.krastel.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 631 bytes --]
Hello.
In my Emacs 22.1.1 I meet little trouble: WoMan's buffers names begin
from "*" and, with combination with iswitchb and ibuffer (I setup them
to hide all buffers, whos names begin on asterisk, as it usually
temporary buffers) I just "can't see needed WoMan's buffers in various
buffer lists. What I need is, I think, customization of WoMan's buffer
names. So I digg the elisp code and write attached simple patch. It's
work fine for me (not ideally, actually, e.g., it show man's section
number at begin of buffer name). I hope this patch will be included in
next stable release of Emacs.
P.S.: sorry for my ugly English.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: emacs-woman-buffer-name.patch --]
[-- Type: text/x-patch, Size: 832 bytes --]
diff -ruN /home/evg/.emacs.d/woman.el.orig /home/evg/.emacs.d/woman.el
--- /home/evg/.emacs.d/woman.el.orig 2007-10-07 12:03:17 +0800
+++ /home/evg/.emacs.d/woman.el 2007-10-07 12:09:50 +0800
@@ -537,6 +537,15 @@
:type 'hook
:group 'woman)
+(defcustom woman-buffer-name-format "*WoMan %b*"
+ "Format specification for WoMan's buffer name.
+These fields are available at this moment:
+
+%b initial buffer name
+"
+ :group 'woman
+ :type 'string)
+
\f
;; Interface options
@@ -1633,7 +1642,7 @@
(substring bufname (1+ dot)) " "
(substring bufname 0 dot))))
(generate-new-buffer-name ; ensure uniqueness
- (concat "*WoMan " bufname "*"))))
+ (format-spec woman-buffer-name-format (list (cons ?b bufname))))))
(defvar woman-frame nil
"Dedicated frame used for displaying WoMan windows.")
[-- Attachment #3: Type: text/plain, Size: 163 bytes --]
--
С уважением, Терешков
Евгений.
reply other threads:[~2007-10-07 4:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3r6k75yzb.fsf@evg.krastel.ru \
--to=evg_krsk@inbox.ru \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.