aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2000-04-02 02:31:07 +0000
committerKen Raeburn2000-04-02 02:31:07 +0000
commitc01fbf95dfa35ec54003620b62971378f5c12730 (patch)
treef47fce8d864623a0231a92a3cee4fd186238e5ad /src
parentcc2d8c6b3dfb886957d7adfffbaeccdfb68ae13d (diff)
downloademacs-c01fbf95dfa35ec54003620b62971378f5c12730.tar.gz
emacs-c01fbf95dfa35ec54003620b62971378f5c12730.zip
* editfns.c (text_property_stickiness, Fmessage_or_box): Use NILP to test
Lisp_Object boolean value. (Fformat): Use a temporary variable to avoid ENABLE_CHECKING problems reading from and changing the same lisp value in an XSETSTRING call.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/editfns.c11
2 files changed, 13 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4622d9e6699..247f1123050 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -7,6 +7,12 @@
7 (make_number): Define as a function if it's not defined as a 7 (make_number): Define as a function if it's not defined as a
8 macro. 8 macro.
9 9
10 * editfns.c (text_property_stickiness, Fmessage_or_box): Use NILP
11 to test Lisp_Object boolean value.
12 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13 problems reading from and changing the same lisp value in an
14 XSETSTRING call.
15
102000-04-01 Gerd Moellmann <gerd@gnu.org> 162000-04-01 Gerd Moellmann <gerd@gnu.org>
11 17
12 * term.c (TN_no_color_video): New variable. 18 * term.c (TN_no_color_video): New variable.
diff --git a/src/editfns.c b/src/editfns.c
index 12db1a310dd..c2465e7f9e8 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -315,7 +315,7 @@ text_property_stickiness (prop, pos)
315 315
316 if (EQ (rear_non_sticky, Qnil) 316 if (EQ (rear_non_sticky, Qnil)
317 || (CONSP (rear_non_sticky) 317 || (CONSP (rear_non_sticky)
318 && !Fmemq (prop, rear_non_sticky))) 318 && NILP (Fmemq (prop, rear_non_sticky))))
319 /* PROP is not rear-non-sticky, and since this takes precedence over 319 /* PROP is not rear-non-sticky, and since this takes precedence over
320 any front-stickiness, PROP is inherited from before. */ 320 any front-stickiness, PROP is inherited from before. */
321 return -1; 321 return -1;
@@ -326,7 +326,7 @@ text_property_stickiness (prop, pos)
326 326
327 if (EQ (front_sticky, Qt) 327 if (EQ (front_sticky, Qt)
328 || (CONSP (front_sticky) 328 || (CONSP (front_sticky)
329 && Fmemq (prop, front_sticky))) 329 && !NILP (Fmemq (prop, front_sticky))))
330 /* PROP is inherited from after. */ 330 /* PROP is inherited from after. */
331 return 1; 331 return 1;
332 332
@@ -2781,7 +2781,7 @@ minibuffer contents show.")
2781{ 2781{
2782#ifdef HAVE_MENUS 2782#ifdef HAVE_MENUS
2783 if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) 2783 if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
2784 && NILP (use_dialog_box)) 2784 && use_dialog_box)
2785 return Fmessage_box (nargs, args); 2785 return Fmessage_box (nargs, args);
2786#endif 2786#endif
2787 return Fmessage (nargs, args); 2787 return Fmessage (nargs, args);
@@ -2949,7 +2949,10 @@ Use %% to put a single % into the output.")
2949 } 2949 }
2950 else if (SYMBOLP (args[n])) 2950 else if (SYMBOLP (args[n]))
2951 { 2951 {
2952 XSETSTRING (args[n], XSYMBOL (args[n])->name); 2952 /* Use a temp var to avoid problems when ENABLE_CHECKING
2953 is turned on. */
2954 struct Lisp_String *t = XSYMBOL (args[n])->name;
2955 XSETSTRING (args[n], t);
2953 if (STRING_MULTIBYTE (args[n]) && ! multibyte) 2956 if (STRING_MULTIBYTE (args[n]) && ! multibyte)
2954 { 2957 {
2955 multibyte = 1; 2958 multibyte = 1;