From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1229: generate-new-buffer-name could be more efficient Date: Tue, 03 Jul 2012 09:58:30 -0400 Message-ID: References: <7bojxfgeb.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341323988 24890 80.91.229.3 (3 Jul 2012 13:59:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2012 13:59:48 +0000 (UTC) Cc: 1229@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 03 15:59:46 2012 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 1Sm3dk-00073d-22 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jul 2012 15:59:40 +0200 Original-Received: from localhost ([::1]:52125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm3dj-0008Dk-52 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jul 2012 09:59:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm3db-0008Cz-Bo for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2012 09:59:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sm3dR-0007BL-IV for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2012 09:59:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm3dR-0007BD-FA for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2012 09:59:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sm3hy-0008Hj-1y for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2012 10:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Jul 2012 14:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 1229-submit@debbugs.gnu.org id=B1229.134132419531793 (code B ref 1229); Tue, 03 Jul 2012 14:04:02 +0000 Original-Received: (at 1229) by debbugs.gnu.org; 3 Jul 2012 14:03:15 +0000 Original-Received: from localhost ([127.0.0.1]:45291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sm3hD-0008Gk-7X for submit@debbugs.gnu.org; Tue, 03 Jul 2012 10:03:15 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:9256) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sm3hA-0008Gc-W0 for 1229@debbugs.gnu.org; Tue, 03 Jul 2012 10:03:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCquH/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLDiYSFBgNJIgcBboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="192534661" Original-Received: from 76-10-171-135.dsl.teksavvy.com (HELO pastel.home) ([76.10.171.135]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Jul 2012 09:58:31 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B35394E706; Tue, 3 Jul 2012 09:58:30 -0400 (EDT) In-Reply-To: <7bojxfgeb.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 03 Jul 2012 03:33:16 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:61524 Archived-At: > Something like the following? Yes. > + sprintf (number, "-%"pD"d", Frandom (make_number (999999))); I don't like this arbitrary constant. Maybe we could use something like "N * Flength (Vbuffer_alist)". Stefan