From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: uniquify-buffer-name-style Date: Sun, 28 May 2006 22:01:23 -0500 (CDT) Message-ID: <200605290301.k4T31Nqd004384@jane.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1148871787 10127 80.91.229.2 (29 May 2006 03:03:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 May 2006 03:03:07 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 29 05:03:07 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FkY23-0003Ye-6G for ged-emacs-devel@m.gmane.org; Mon, 29 May 2006 05:03:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FkY22-0007OJ-Nc for ged-emacs-devel@m.gmane.org; Sun, 28 May 2006 23:03:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FkY1q-0007Nq-PT for emacs-devel@gnu.org; Sun, 28 May 2006 23:02:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FkY1p-0007Ne-Ex for emacs-devel@gnu.org; Sun, 28 May 2006 23:02:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FkY1p-0007Nb-8l for emacs-devel@gnu.org; Sun, 28 May 2006 23:02:49 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FkY7I-0000Fw-Ho for emacs-devel@gnu.org; Sun, 28 May 2006 23:08:28 -0400 Original-Received: from jane.dms.auburn.edu (jane.dms.auburn.edu [131.204.53.201]) by manatee.dms.auburn.edu (8.13.6/8.13.6) with ESMTP id k4T32mo0020193 for ; Sun, 28 May 2006 22:02:48 -0500 (CDT) Original-Received: from jane.dms.auburn.edu (localhost [127.0.0.1]) by jane.dms.auburn.edu (8.13.4+Sun/8.13.4) with ESMTP id k4T31NXB004387 for ; Sun, 28 May 2006 22:01:23 -0500 (CDT) Original-Received: (from teirllm@localhost) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3/Submit) id k4T31Nqd004384; Sun, 28 May 2006 22:01:23 -0500 (CDT) X-Authentication-Warning: jane.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:55392 Archived-At: Setting `uniquify-buffer-name-style' outside Custom currently only takes effect after uniquify.el is loaded. This misfeature is caused by the use of defadvice in uniquify.el. As getting rid of this advice in uniquify.el requires non-trivial changes to the C code, I do not believe that it would be advisable to do this at the present time. In the patch below, I just document the misfeature and add a comment about the desirability to get rid of it instead. I can install if desired. ===File ~/uniquify.el-diff================================== *** uniquify.el 06 Feb 2006 16:02:02 -0600 1.61 --- uniquify.el 28 May 2006 21:09:47 -0500 *************** *** 93,99 **** "Unique buffer names dependent on file name." :group 'applications) ! (defcustom uniquify-buffer-name-style nil "*If non-nil, buffer names are uniquified with parts of directory name. The value determines the buffer name style and is one of `forward', --- 93,100 ---- "Unique buffer names dependent on file name." :group 'applications) ! ;; The last paragraph of the docstring below should really be made obsolete ! ;; by eliminating the dependence on advice. (defcustom uniquify-buffer-name-style nil "*If non-nil, buffer names are uniquified with parts of directory name. The value determines the buffer name style and is one of `forward', *************** *** 104,110 **** reverse name\\mumble\\bar name\\mumble\\quux post-forward name|bar/mumble name|quux/mumble post-forward-angle-brackets name name ! nil name name<2>" :type '(radio (const forward) (const reverse) (const post-forward) --- 105,116 ---- reverse name\\mumble\\bar name\\mumble\\quux post-forward name|bar/mumble name|quux/mumble post-forward-angle-brackets name name ! nil name name<2> ! ! This variable only takes effect when uniquify.el is loaded. If you set ! this variable in your .emacs, also specify `(require 'uniquify)'. ! Setting this variable through Custom automatically loads uniquify.el if it ! is not already loaded." :type '(radio (const forward) (const reverse) (const post-forward) ============================================================