Subject: bug#23394: generate-new-buffer-name behaviour changed

From: Glenn Morris <[email-masked]>
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?