all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH]WoMan's buffer name not customizable
@ 2007-10-07  4:29 Terechkov Evgenii
  0 siblings, 0 replies; only message in thread
From: Terechkov Evgenii @ 2007-10-07  4:29 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- 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 --]



-- 
                                                С уважением, Терешков
                                                Евгений.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-07  4:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-07  4:29 [PATCH]WoMan's buffer name not customizable Terechkov Evgenii

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.