GNU bug report logs - #19957
automaticaly rename new buffer in term-mode

Previous Next

Package: emacs;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19957 in the body.
You can then email your comments to 19957 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19957; Package emacs. (Thu, 26 Feb 2015 20:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to timflutre <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 26 Feb 2015 20:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Timothée Flutre <timflutre <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: automaticaly rename new buffer in term-mode
Date: Thu, 26 Feb 2015 21:21:59 +0100
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19957; Package emacs. (Sat, 28 Feb 2015 20:33:02 GMT) Full text and rfc822 format available.

Message #8 received at 19957 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: timflutre <at> gmail.com
Cc: 19957 <at> debbugs.gnu.org
Subject: Re: bug#19957: automaticaly rename new buffer in term-mode
Date: Sat, 28 Feb 2015 15:32:23 -0500
Thanks, but I think this is too specific/too much of a personal
preference thing for Emacs proper.





Added tag(s) wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 28 Feb 2015 20:34:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 19957 <at> debbugs.gnu.org and timflutre <at> gmail.com Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 28 Feb 2015 20:34:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 29 Mar 2015 11:24:04 GMT) Full text and rfc822 format available.

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.