GNU bug report logs -
#19957
automaticaly rename new buffer in term-mode
Previous Next
Reported by: timflutre <at> gmail.com
Date: Thu, 26 Feb 2015 20:36:01 UTC
Severity: wishlist
Tags: wontfix
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
I recently asked this question: http://unix.stackexchange.com/q/182211/34919
and someone kindly answered: http://unix.stackexchange.com/a/186565/34919
I slightly modified his answer into the following function:
(defun term-new ()
(interactive)
(command-execute 'term)
(setq-default truncate-lines nil)
(if (not (boundp 'term-number))
(defvar term-number 1 "term index in the current emacs session") )
(rename-buffer (concat "*terminal*<" (int-to-string term-number) ">"))
(setq term-number (+ 1 term-number))
)
I think it can be useful to other users (at least I know several of
them). By any chance, could this be added to a future release of
Emacs?
If yes, as it is a very small contributions, do you still want me to
retrieve the full distribution from
http://savannah.gnu.org/projects/emacs/ and submit an official patch?
Timothée Flutre
This bug report was last modified 10 years and 85 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.