From unknown Fri Jun 20 07:19:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19957: automaticaly rename new buffer in term-mode 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: To: 19957@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: timflutre@gmail.com Received: via spool by submit@debbugs.gnu.org id=B.142498295720828 (code B ref -1); Thu, 26 Feb 2015 20:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Feb 2015 20:35:57 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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) MIME-Version: 1.0 Received: by 10.194.242.202 with HTTP; Thu, 26 Feb 2015 12:21:59 -0800 (PST) From: =?UTF-8?Q?Timoth=C3=A9e?= Flutre Date: Thu, 26 Feb 2015 21:21:59 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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 From unknown Fri Jun 20 07:19:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19957: automaticaly rename new buffer in term-mode Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Feb 2015 20:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19957 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: timflutre@gmail.com Cc: 19957@debbugs.gnu.org Received: via spool by 19957-submit@debbugs.gnu.org id=B19957.14251555463353 (code B ref 19957); Sat, 28 Feb 2015 20:33:02 +0000 Received: (at 19957) by debbugs.gnu.org; 28 Feb 2015 20:32:26 +0000 Received: from localhost ([127.0.0.1]:60888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRo3l-0000s0-RH for submit@debbugs.gnu.org; Sat, 28 Feb 2015 15:32:26 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:45732 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRo3j-0000rs-Gs for 19957@debbugs.gnu.org; Sat, 28 Feb 2015 15:32:23 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YRo3j-0007CQ-66; Sat, 28 Feb 2015 15:32:23 -0500 From: Glenn Morris References: X-Spook: Treasury MD2 ICE radar jihad AVIP spies industrial X-Ran: b,JP6aKO3&/Q`/7W?+[-5Aw9~LR)&XW6q_{?[pQ^H`*/"KuO#6{17,-:uPc.F>:%{=oPPn X-Hue: red X-Attribution: GM Date: Sat, 28 Feb 2015 15:32:23 -0500 In-Reply-To: ("=?UTF-8?Q?Timoth=C3=A9e?= Flutre"'s message of "Thu, 26 Feb 2015 21:21:59 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Thanks, but I think this is too specific/too much of a personal preference thing for Emacs proper. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 28 15:33:08 2015 Received: (at control) by debbugs.gnu.org; 28 Feb 2015 20:33:08 +0000 Received: from localhost ([127.0.0.1]:60892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRo4S-0000tV-5m for submit@debbugs.gnu.org; Sat, 28 Feb 2015 15:33:08 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:45737 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRo4Q-0000tL-1S for control@debbugs.gnu.org; Sat, 28 Feb 2015 15:33:06 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YRo4P-0007HD-PK for control@debbugs.gnu.org; Sat, 28 Feb 2015 15:33:05 -0500 Date: Sat, 28 Feb 2015 15:33:05 -0500 Message-Id: Subject: control message for bug 19957 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) tag 19957 wontfix close 19957