APPROVE COMMIT
NOTE: This patch has been committed
# HG changeset patch
# User Aidan Kehoe <kehoea(a)parhasard.net>
# Date 1530725348 -3600
# Wed Jul 04 18:29:08 2018 +0100
# Node ID 73b61c5225a6c7026ea8a8a40372a97160f53202
# Parent 7fb73e4efef3a3629eaf1b4253d47751e65894fa
Make the docstring to #'special-operator-p a little more helpful.
src/ChangeLog addition:
2018-07-04 Aidan Kehoe <kehoea(a)parhasard.net>
* symbols.c (Fspecial_operator_p):
Change the name of the argument of this function to OBJECT in its
docstring, to make it clearer that there is no error if the
argument is a non-subr.
diff -r 7fb73e4efef3 -r 73b61c5225a6 src/ChangeLog
--- a/src/ChangeLog Sun Jul 01 21:06:56 2018 +0100
+++ b/src/ChangeLog Wed Jul 04 18:29:08 2018 +0100
@@ -1,3 +1,10 @@
+2018-07-04 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * symbols.c (Fspecial_operator_p):
+ Change the name of the argument of this function to OBJECT in its
+ docstring, to make it clearer that there is no error if the
+ argument is a non-subr.
+
2018-06-30 Aidan Kehoe <kehoea(a)parhasard.net>
* glyphs.c (check_window_subwindow_cache):
diff -r 7fb73e4efef3 -r 73b61c5225a6 src/symbols.c
--- a/src/symbols.c Sun Jul 01 21:06:56 2018 +0100
+++ b/src/symbols.c Wed Jul 04 18:29:08 2018 +0100
@@ -444,7 +444,7 @@
}
DEFUN ("special-operator-p", Fspecial_operator_p, 1, 1, 0, /*
-Return whether SUBR is a special operator.
+Return whether OBJECT is a special operator.
A special operator is a built-in function (a subr, that is a function
implemented in C, not Lisp) which does not necessarily evaluate all its
@@ -457,10 +457,10 @@
implementations) way to go about it is to write a macro instead. See
`defmacro' and `backquote'.
*/
- (subr))
+ (object))
{
- subr = indirect_function (subr, 0);
- return (SUBRP (subr) && XSUBR (subr)->max_args == UNEVALLED) ? Qt : Qnil;
+ object = indirect_function (object, 0);
+ return (SUBRP (object) && XSUBR (object)->max_args == UNEVALLED) ? Qt :
Qnil;
}
DEFUN ("setplist", Fsetplist, 2, 2, 0, /*
--
‘As I sat looking up at the Guinness ad, I could never figure out /
How your man stayed up on the surfboard after forty pints of stout’
(C. Moore)
Show replies by date