GNU bug report logs - #23394
generate-new-buffer-name behaviour changed

Previous Next

Package: emacs;

Reported by: Chaitanya Koparkar <ckoparkar <at> live.in>

Date: Thu, 28 Apr 2016 15:40:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 23394 in the body.
You can then email your comments to 23394 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#23394; Package emacs. (Thu, 28 Apr 2016 15:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chaitanya Koparkar <ckoparkar <at> live.in>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 28 Apr 2016 15:40:02 GMT) Full text and rfc822 format available.

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

From: Chaitanya Koparkar <ckoparkar <at> live.in>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: generate-new-buffer-name behaviour changed
Date: Thu, 28 Apr 2016 06:24:08 -0500
[Message part 1 (text/plain, inline)]
In GNU Emacs 25.1.50.1 (x86_64-apple-darwin15.3.0, NS appkit-1404.34 Version 10.11.3 (Build 15D21)) of 2016-04-17 built on Chaitanyas-Macbook-Pro.localRepository revision: 3de30674d7aa79c9f366f65c9f30aec2c8963b54Windowing system distributor 'Apple', version 10.3.1404Configured using: 'configure --with-ns'
Configured features:JPEG IMAGEMAGICK NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS
Important settings:  value of $LANG: en_IN.UTF-8  locale-coding-system: utf-8-unix
Steps to reproduce:
* Start emacs and open a buffer named "*scratch*"
* Run `(generate-new-buffer-name "*scratch*")`
* The expected return value is "*scratch*<2>"   but instead it returns "*scratch*<1>"
I'm guessing, this commit introduced it, https://github.com/emacs-mirror/emacs/commit/b4c7869e5e1bb0bb33379b25ff830e721761a7bf.
Note the `++count` vs  just `count`.
This is just a guess however and it could be completely wrong.
Thanks,Chaitanya 		 	   		  
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23394; Package emacs. (Fri, 29 Apr 2016 22:48:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Chaitanya Koparkar <ckoparkar <at> live.in>
Cc: Paul Eggert <eggert <at> cs.ucla.edu>, 23394 <at> debbugs.gnu.org
Subject: Re: bug#23394: generate-new-buffer-name behaviour changed
Date: Fri, 29 Apr 2016 18:46:43 -0400
Chaitanya Koparkar wrote:

> Steps to reproduce:
> * Start emacs and open a buffer named "*scratch*"
> * Run `(generate-new-buffer-name "*scratch*")`
> * The expected return value is "*scratch*<2>" but instead it returns
> "*scratch*<1>"
> I'm guessing, this commit introduced it,
> https://github.com/emacs-mirror/emacs/commit/b4c7869e5e1bb0bb33379b25ff830e721761a7bf.
> Note the `++count` vs  just `count`.

Looks to me like you are right.
generate-new-buffer-name is documented to start from <2>, not <1>.

Paul, please could you take a look?





Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Sat, 30 Apr 2016 23:40:02 GMT) Full text and rfc822 format available.

Notification sent to Chaitanya Koparkar <ckoparkar <at> live.in>:
bug acknowledged by developer. (Sat, 30 Apr 2016 23:40:02 GMT) Full text and rfc822 format available.

Message #13 received at 23394-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Chaitanya Koparkar <ckoparkar <at> live.in>
Cc: Glenn Morris <rgm <at> gnu.org>, 23394-done <at> debbugs.gnu.org
Subject: Re: bug#23394: generate-new-buffer-name behaviour changed
Date: Sat, 30 Apr 2016 16:38:59 -0700
[Message part 1 (text/plain, inline)]
Thanks for reporting the bug. I installed the attached patch to fix the typo.
[0001-Fix-generate-new-buffer-name-increment-typo.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23394; Package emacs. (Sun, 01 May 2016 05:55:01 GMT) Full text and rfc822 format available.

Message #16 received at 23394-done <at> debbugs.gnu.org (full text, mbox):

From: Chaitanya Koparkar <ckoparkar <at> live.in>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Glenn Morris <rgm <at> gnu.org>,
 "23394-done <at> debbugs.gnu.org" <23394-done <at> debbugs.gnu.org>
Subject: RE: bug#23394: generate-new-buffer-name behaviour changed
Date: Sun, 1 May 2016 00:54:36 -0500
[Message part 1 (text/plain, inline)]
Awesome!Thanks :-)
> Thanks for reporting the bug. I installed the attached patch to fix the typo.
 		 	   		  
[Message part 2 (text/html, inline)]

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

This bug report was last modified 9 years and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.