aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-06-21 03:26:32 +0000
committerRichard M. Stallman2004-06-21 03:26:32 +0000
commit5e9bab6ff158845a104bcdf8dedf9c7fbe2fbd95 (patch)
tree1a9e0fcd381bb95693fdbfcab771d789871b8332
parentf90a5bf53ae425bee1f729d80c0d426d2500c6ed (diff)
downloademacs-5e9bab6ff158845a104bcdf8dedf9c7fbe2fbd95.tar.gz
emacs-5e9bab6ff158845a104bcdf8dedf9c7fbe2fbd95.zip
(Finternal_copy_lisp_face): Small cleanup; doc fix.
-rw-r--r--src/xfaces.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 677bee25aff..17f4490774c 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -3896,12 +3896,13 @@ Otherwise check for the existence of a global face. */)
3896DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face, 3896DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face,
3897 Sinternal_copy_lisp_face, 4, 4, 0, 3897 Sinternal_copy_lisp_face, 4, 4, 0,
3898 doc: /* Copy face FROM to TO. 3898 doc: /* Copy face FROM to TO.
3899If FRAME is t, copy the global face definition of FROM to the 3899If FRAME is t, copy the global face definition of FROM.
3900global face definition of TO. Otherwise, copy the frame-local 3900Otherwise, copy the frame-local definition of FROM on FRAME.
3901definition of FROM on FRAME to the frame-local definition of TO 3901If NEW-FRAME is a frame, copy that data into the frame-local
3902on NEW-FRAME, or FRAME if NEW-FRAME is nil. 3902definition of TO on NEW-FRAME. If NEW-FRAME is nil.
3903FRAME controls where the data is copied to.
3903 3904
3904Value is TO. */) 3905The value is TO. */)
3905 (from, to, frame, new_frame) 3906 (from, to, frame, new_frame)
3906 Lisp_Object from, to, frame, new_frame; 3907 Lisp_Object from, to, frame, new_frame;
3907{ 3908{
@@ -3909,8 +3910,6 @@ Value is TO. */)
3909 3910
3910 CHECK_SYMBOL (from); 3911 CHECK_SYMBOL (from);
3911 CHECK_SYMBOL (to); 3912 CHECK_SYMBOL (to);
3912 if (NILP (new_frame))
3913 new_frame = frame;
3914 3913
3915 if (EQ (frame, Qt)) 3914 if (EQ (frame, Qt))
3916 { 3915 {
@@ -3922,6 +3921,8 @@ Value is TO. */)
3922 else 3921 else
3923 { 3922 {
3924 /* Copy frame-local definition of FROM. */ 3923 /* Copy frame-local definition of FROM. */
3924 if (NILP (new_frame))
3925 new_frame = frame;
3925 CHECK_LIVE_FRAME (frame); 3926 CHECK_LIVE_FRAME (frame);
3926 CHECK_LIVE_FRAME (new_frame); 3927 CHECK_LIVE_FRAME (new_frame);
3927 lface = lface_from_face_name (XFRAME (frame), from, 1); 3928 lface = lface_from_face_name (XFRAME (frame), from, 1);