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.

Full log


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?





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.