GNU bug report logs - #21390
24.5; Missing definition for predicate `buffer-or-string-p'

Previous Next

Package: emacs;

Reported by: Tino Calancha <f92capac <at> gmail.com>

Date: Tue, 1 Sep 2015 01:45:03 UTC

Severity: wishlist

Found in version 24.5

Done: Tino Calancha <tino.calancha <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Constantino Calancha" <f92capac <at> gmail.com>
To: "Glenn Morris" <rgm <at> gnu.org>
Cc: "21390 <at> debbugs.gnu.org" <21390 <at> debbugs.gnu.org>
Subject: bug#21390: 24.5; Missing definition for predicate `buffer-or-string-p'
Date: Wed, 02 Sep 2015 11:07:46 +0900
Hi Glenn,

i dont think is needed i just find more natural to be defined than not.
Its also elegant.

There are two files that may use that predicate:

simple.el
   2856:	       (not (or (bufferp output-buffer)  (stringp  
output-buffer))))
   3118:		 (not (or (bufferp output-buffer) (stringp output-buffer)))))

gnus-art.el:
   2800:	   ((not (or (bufferp (car handle)) (stringp (car handle)))))



On Wed, 02 Sep 2015 00:45:04 +0900, Glenn Morris <rgm <at> gnu.org> wrote:

> Tino Calancha wrote:
>
>> Predicate `buffer-or-string-p' is declared but definition is missing in:
>> emacs-24.5/src/data.c
>
> I guess you are referring to the fact that src/data.c contains
>
>   DEFSYM (Qbuffer_or_string_p, "buffer-or-string-p")
>
> This is used in CHECK_STRING_OR_BUFFER in textprop.c.
> The simple presence of the DEFSYM is not by itself motivation for the
> addition of a "buffer-or-string-p" predicate.
>
> If you think such a thing is needed, you need to eg show how many places
> in the current lisp sources would use it. And then if added it needs to
> be documented too.




This bug report was last modified 8 years and 63 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.