+2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
+
+ * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
+ IGNORE argument equals NAME. Doc fix.
+
2004-04-11 Masatake YAMATO <jet@gyve.org>
- * buffer.c (fix_start_end_in_overlays): make overlays
+ * buffer.c (fix_start_end_in_overlays): make overlays
empty if they are backwards.
2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
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. */)
CHECK_STRING (name);
+ tem = Fstring_equal (name, ignore);
+ if (!NILP (tem))
+ return name;
tem = Fget_buffer (name);
if (NILP (tem))
return name;