From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Terechkov Evgenii Newsgroups: gmane.emacs.bugs Subject: [PATCH]WoMan's buffer name not customizable Date: Sun, 07 Oct 2007 12:29:28 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1191742007 28090 80.91.229.12 (7 Oct 2007 07:26:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2007 07:26:47 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 07 09:26:45 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IeQXE-0004wp-Kh for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Oct 2007 09:26:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IeQX8-0003Xb-W2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Oct 2007 03:26:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IeNa6-0007tp-60 for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2007 00:17:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IeNa5-0007td-Df for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2007 00:17:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IeNa5-0007tY-8L for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2007 00:17:29 -0400 Original-Received: from mx38.mail.ru ([194.67.23.34] helo=mx34.mail.ru) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IeNa4-0005XK-UI for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2007 00:17:29 -0400 Original-Received: from [80.253.235.197] (port=55998 helo=evg.krastel.ru) by mx34.mail.ru with psmtp id 1IeNYq-00061T-00 for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2007 08:16:12 +0400 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Genre and OS details not recognized. X-Mailman-Approved-At: Sun, 07 Oct 2007 03:26:38 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16702 Archived-At: --=-=-= 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. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=emacs-woman-buffer-name.patch 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) + ;; 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.") --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 DQoNCi0tIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg 0KEg0YPQstCw0LbQtdC90LjQtdC8LCDQotC10YDQtdGI0LrQvtCyDQogICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICDQldCy0LPQtdC90LjQuS4NCg== --=-=-=--