From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Timoth=C3=A9e?= Flutre Newsgroups: gmane.emacs.bugs Subject: bug#19957: automaticaly rename new buffer in term-mode Date: Thu, 26 Feb 2015 21:21:59 +0100 Message-ID: Reply-To: timflutre@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1424982982 13464 80.91.229.3 (26 Feb 2015 20:36:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Feb 2015 20:36:22 +0000 (UTC) To: 19957@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 26 21:36:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YR5AJ-0003Ln-8M for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Feb 2015 21:36:11 +0100 Original-Received: from localhost ([::1]:60762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR5AI-0004XI-NT for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Feb 2015 15:36:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR5AF-0004Tk-K0 for bug-gnu-emacs@gnu.org; Thu, 26 Feb 2015 15:36:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YR5AA-0007I6-Oy for bug-gnu-emacs@gnu.org; Thu, 26 Feb 2015 15:36:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR5AA-0007I2-M3 for bug-gnu-emacs@gnu.org; Thu, 26 Feb 2015 15:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YR5AA-0005QC-AN for bug-gnu-emacs@gnu.org; Thu, 26 Feb 2015 15:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Timoth=C3=A9e?= Flutre Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Feb 2015 20:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19957 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142498295720828 (code B ref -1); Thu, 26 Feb 2015 20:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Feb 2015 20:35:57 +0000 Original-Received: from localhost ([127.0.0.1]:59008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR5A4-0005Pr-9o for submit@debbugs.gnu.org; Thu, 26 Feb 2015 15:35:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54823) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR4x8-00054q-7d for submit@debbugs.gnu.org; Thu, 26 Feb 2015 15:22:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YR4wy-0002eC-Ih for submit@debbugs.gnu.org; Thu, 26 Feb 2015 15:22:29 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR4wy-0002e8-Fd for submit@debbugs.gnu.org; Thu, 26 Feb 2015 15:22:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR4wx-0005Tp-3P for bug-gnu-emacs@gnu.org; Thu, 26 Feb 2015 15:22:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YR4wu-0002Xj-TR for bug-gnu-emacs@gnu.org; Thu, 26 Feb 2015 15:22:23 -0500 Original-Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:44029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR4wu-0002Ws-Mn for bug-gnu-emacs@gnu.org; Thu, 26 Feb 2015 15:22:20 -0500 Original-Received: by wggy19 with SMTP id y19so14467847wgg.10 for ; Thu, 26 Feb 2015 12:22:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=YBTxWHW1YHBI9II8k463pnRnvgZ0SR1n3meqd3QrV+E=; b=RetAvRt1uF7kI5/54gqy6o4tw9oHIr58tHSGxi5b9xy+dlxCyFRyTCqx2QQrtCmXMV 9VRG4arwkQyFzAWVP81aegdMCYlnVTpv3SWhBqDgnM5HqpVyUFdIdoa/btg0vw/oFTT6 Sppjla3GYu5zBqqd3ntsbr4pENXN03KS3g7KJlXfOPQwpq4iU6IBSCAiWIcTZCFq9JQ7 F6YhRTvBkTprVizyyVDyLXBE+5Cma6HBU/WtcLrC4SktaiEPLEM+I2KemKnam/fMrfbA iOoo5C8Ejb3ZDvP7a++h+fFKFmFcxPd4R5KkBpdL1mS1ZNO1H1897LL3vooN05yha+y9 11BQ== X-Received: by 10.194.77.133 with SMTP id s5mr20709026wjw.71.1424982139196; Thu, 26 Feb 2015 12:22:19 -0800 (PST) Original-Received: by 10.194.242.202 with HTTP; Thu, 26 Feb 2015 12:21:59 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Thu, 26 Feb 2015 15:35:54 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99850 Archived-At: Hello, I recently asked this question: http://unix.stackexchange.com/q/182211/3491= 9 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=C3=A9e Flutre