# HG changeset patch # User Luc Teirlinck <teirllm@auburn.edu> # Date 1081698056 0 # Node ID 870b7a6bffb8c8772d9752dad513c262878817c9 # Parent 1fff9cffd37c8eab3875e4c5bc3e2c3391146367 (Fgenerate_new_buffer_name): Return NAME argument if IGNORE argument equals NAME. Doc fix. diff -r 1fff9cffd37c -r 870b7a6bffb8 src/buffer.c --- a/src/buffer.c Sun Apr 11 15:08:39 2004 +0000 +++ b/src/buffer.c Sun Apr 11 15:40:56 2004 +0000 @@ -766,7 +766,7 @@ doc: /* Return a string that is the name of no existing buffer based on NAME. If there is no live buffer named NAME, then return NAME. Otherwise modify name by appending `<NUMBER>', incrementing NUMBER -until an unused name is found, and then return that name. +\(starting at 2) until an unused name is found, and then return that name. Optional second argument IGNORE specifies a name that is okay to use \(if it is in the sequence to be tried) even if a buffer with that name exists. */) @@ -779,6 +779,9 @@ CHECK_STRING (name); + tem = Fstring_equal (name, ignore); + if (!NILP (tem)) + return name; tem = Fget_buffer (name); if (NILP (tem)) return name;