[Python-mode] [ python-mode-Patches-1021881 ] Include the name of a
module's package in its buffer name.
SourceForge.net
noreply at sourceforge.net
Sun Jan 9 19:04:33 CET 2005
Patches item #1021881, was opened at 2004-09-03 10:18
Message generated for change (Comment added) made by montanaro
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1021881&group_id=86916
Category: None
Group: None
>Status: Open
Resolution: Accepted
Priority: 5
Submitted By: Edward Loper (edloper)
Assigned to: Nobody/Anonymous (nobody)
Summary: Include the name of a module's package in its buffer name.
Initial Comment:
Add an option to include a module's package name in
its buffer name. E.g. if module `module.py' is
contained in a package whose dotted name is `a.b.c',
then its buffer will be named "module.py (a.b.c)"
instead of just "module.py".
When using complex package hierarchies, this can be
useful for keeping track of where a module is in the
hierarchy. It's especially useful for keeping track of
__init__.py files.
In the patch, the option is turned on by default; but
that could be changed. See the docs for the custom
variable py-name-buffers-with-packages.
For more info about file-name-handler-alist (which is
used to implement the change), see
<http://www.gnu.org/software/emacs/elisp-
manual/html_node/elisp_403.html> ("Making Certain
File Names 'Magic'"). It should work under both
emacs and xemacs.
----------------------------------------------------------------------
>Comment By: Skip Montanaro (montanaro)
Date: 2005-01-09 12:04
Message:
Logged In: YES
user_id=44345
I backed this change out. With it in place it seems that
buffer names are annotated with "<2>" even if they are the only
buffer associated with a given file name.
----------------------------------------------------------------------
Comment By: Skip Montanaro (montanaro)
Date: 2004-10-23 12:37
Message:
Logged In: YES
user_id=44345
Looks good. Checked in as v 4.65.
----------------------------------------------------------------------
Comment By: Edward Loper (edloper)
Date: 2004-09-12 16:26
Message:
Logged In: YES
user_id=195958
Fixed a bug in the patch where the rename would fail if two buffers with
the same name were opened. (Also, used context diff instead of unified
diff.)
----------------------------------------------------------------------
Comment By: Edward Loper (edloper)
Date: 2004-09-06 21:20
Message:
Logged In: YES
user_id=195958
Attatching file, take 2.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1021881&group_id=86916
More information about the Python-mode
mailing list