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.local
Repository revision: 3de30674d7aa79c9f366f65c9f30aec2c8963b54
Windowing system distributor 'Apple', version 10.3.1404
Configured 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>"
Note the `++count` vs just `count`.
This is just a guess however and it could be completely wrong.
Thanks,
Chaitanya