[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 885c512: Fix a bug in 'generate-new-buffer-name
From: |
Eli Zaretskii |
Subject: |
Re: [Emacs-diffs] master 885c512: Fix a bug in 'generate-new-buffer-name' |
Date: |
Sat, 05 Aug 2017 16:02:28 +0300 |
> From: Stefan Monnier <address@hidden>
> Cc: Eli Zaretskii <address@hidden>
> Date: Sat, 05 Aug 2017 08:51:28 -0400
>
> > - if (!NILP (Fstring_equal (name, ignore)) || NILP (Fget_buffer (name)))
> > + if ((!NILP (ignore) && !NILP (Fstring_equal (name, ignore)))
> > + || NILP (Fget_buffer (name)))
>
> Why not just use Fequal instead of Fstring_equal?
Because no one said that using a symbol for the IGNORE argument is
forbidden in that function. "nil" just happens to be a special case,
but other strings/symbols are allowed.