Subject: generate-new-buffer-name behaviour changed
From: Chaitanya Koparkar <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Thu, 28 Apr 2016 06:24:08 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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