aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-10 13:24:03 +0400
committerDmitry Antipov2012-08-10 13:24:03 +0400
commit9fb0c957319ac71aca7b668bd3ee781590f59b19 (patch)
treebfd56f79f4033bcd62e1edd443687541299cadde /src
parent65e8ee52931d3885fd75491a8f5b22ddc80c7208 (diff)
downloademacs-9fb0c957319ac71aca7b668bd3ee781590f59b19.tar.gz
emacs-9fb0c957319ac71aca7b668bd3ee781590f59b19.zip
Define Qnone once for all platforms.
* frame.c (Qnone): Define here. (syms_of_frame): DEFSYM it. * lisp.h (Qnone): New declaration. * nsfns.m, nsterm.h, nsterm.m, w32fns.c, w32font.c: * xfns.c: Remove duplication. Adjust users.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/frame.c3
-rw-r--r--src/lisp.h2
-rw-r--r--src/nsfns.m1
-rw-r--r--src/nsterm.h1
-rw-r--r--src/nsterm.m3
-rw-r--r--src/w32fns.c2
-rw-r--r--src/w32font.c1
-rw-r--r--src/xfns.c2
9 files changed, 13 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 79dcf0bbaa6..ec53ff2a264 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,14 @@
12012-08-10 Dmitry Antipov <dmantipov@yandex.ru> 12012-08-10 Dmitry Antipov <dmantipov@yandex.ru>
2 2
3 Define Qnone once for all platforms.
4 * frame.c (Qnone): Define here.
5 (syms_of_frame): DEFSYM it.
6 * lisp.h (Qnone): New declaration.
7 * nsfns.m, nsterm.h, nsterm.m, w32fns.c, w32font.c:
8 * xfns.c: Remove duplication. Adjust users.
9
102012-08-10 Dmitry Antipov <dmantipov@yandex.ru>
11
3 Remove unused macros from intervals.h. 12 Remove unused macros from intervals.h.
4 * intervals.h (MERGE_INSERTIONS, DISPLAY_INVISIBLE_GLYPH): Remove. 13 * intervals.h (MERGE_INSERTIONS, DISPLAY_INVISIBLE_GLYPH): Remove.
5 * intervals.c: Adjust comment. 14 * intervals.c: Adjust comment.
diff --git a/src/frame.c b/src/frame.c
index 2a2a8576a2b..09049ddae72 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -65,7 +65,7 @@ Lisp_Object Qns_parse_geometry;
65 65
66Lisp_Object Qframep, Qframe_live_p; 66Lisp_Object Qframep, Qframe_live_p;
67Lisp_Object Qicon, Qmodeline; 67Lisp_Object Qicon, Qmodeline;
68Lisp_Object Qonly; 68Lisp_Object Qonly, Qnone;
69Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; 69Lisp_Object Qx, Qw32, Qmac, Qpc, Qns;
70Lisp_Object Qvisible; 70Lisp_Object Qvisible;
71Lisp_Object Qdisplay_type; 71Lisp_Object Qdisplay_type;
@@ -4202,6 +4202,7 @@ syms_of_frame (void)
4202 DEFSYM (Qminibuffer, "minibuffer"); 4202 DEFSYM (Qminibuffer, "minibuffer");
4203 DEFSYM (Qmodeline, "modeline"); 4203 DEFSYM (Qmodeline, "modeline");
4204 DEFSYM (Qonly, "only"); 4204 DEFSYM (Qonly, "only");
4205 DEFSYM (Qnone, "none");
4205 DEFSYM (Qwidth, "width"); 4206 DEFSYM (Qwidth, "width");
4206 DEFSYM (Qgeometry, "geometry"); 4207 DEFSYM (Qgeometry, "geometry");
4207 DEFSYM (Qicon_left, "icon-left"); 4208 DEFSYM (Qicon_left, "icon-left");
diff --git a/src/lisp.h b/src/lisp.h
index 4f1a8931e99..e23093f56c9 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -3128,7 +3128,7 @@ extern int indented_beyond_p (ptrdiff_t, ptrdiff_t, EMACS_INT);
3128extern void syms_of_indent (void); 3128extern void syms_of_indent (void);
3129 3129
3130/* Defined in frame.c. */ 3130/* Defined in frame.c. */
3131extern Lisp_Object Qonly; 3131extern Lisp_Object Qonly, Qnone;
3132extern Lisp_Object Qvisible; 3132extern Lisp_Object Qvisible;
3133extern void store_frame_param (struct frame *, Lisp_Object, Lisp_Object); 3133extern void store_frame_param (struct frame *, Lisp_Object, Lisp_Object);
3134extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object); 3134extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object);
diff --git a/src/nsfns.m b/src/nsfns.m
index a19cbfb657c..0b639d6269c 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -82,7 +82,6 @@ extern Lisp_Object Qface_set_after_frame_default;
82extern Lisp_Object Qunderline, Qundefined; 82extern Lisp_Object Qunderline, Qundefined;
83extern Lisp_Object Qheight, Qminibuffer, Qname, Qonly, Qwidth; 83extern Lisp_Object Qheight, Qminibuffer, Qname, Qonly, Qwidth;
84extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle; 84extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle;
85extern Lisp_Object Qnone;
86 85
87 86
88Lisp_Object Qbuffered; 87Lisp_Object Qbuffered;
diff --git a/src/nsterm.h b/src/nsterm.h
index b20621a53d7..de41929e3fd 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -735,7 +735,6 @@ extern Lisp_Object ns_get_local_selection (Lisp_Object selection_name,
735extern void nxatoms_of_nsselect (void); 735extern void nxatoms_of_nsselect (void);
736extern int ns_lisp_to_cursor_type (Lisp_Object arg); 736extern int ns_lisp_to_cursor_type (Lisp_Object arg);
737extern Lisp_Object ns_cursor_type_to_lisp (int arg); 737extern Lisp_Object ns_cursor_type_to_lisp (int arg);
738extern Lisp_Object Qnone;
739extern void ns_set_name_as_filename (struct frame *f); 738extern void ns_set_name_as_filename (struct frame *f);
740extern void ns_set_doc_edited (struct frame *f, Lisp_Object arg); 739extern void ns_set_doc_edited (struct frame *f, Lisp_Object arg);
741 740
diff --git a/src/nsterm.m b/src/nsterm.m
index 4d3a1387259..807ff564213 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -139,7 +139,7 @@ static unsigned convert_ns_to_X_keysym[] =
139}; 139};
140 140
141static Lisp_Object Qmodifier_value; 141static Lisp_Object Qmodifier_value;
142Lisp_Object Qalt, Qcontrol, Qhyper, Qmeta, Qsuper, Qnone; 142Lisp_Object Qalt, Qcontrol, Qhyper, Qmeta, Qsuper;
143extern Lisp_Object Qcursor_color, Qcursor_type, Qns, Qleft; 143extern Lisp_Object Qcursor_color, Qcursor_type, Qns, Qleft;
144 144
145static Lisp_Object QUTF8_STRING; 145static Lisp_Object QUTF8_STRING;
@@ -6706,7 +6706,6 @@ syms_of_nsterm (void)
6706 DEFSYM (Qmeta, "meta"); 6706 DEFSYM (Qmeta, "meta");
6707 DEFSYM (Qsuper, "super"); 6707 DEFSYM (Qsuper, "super");
6708 DEFSYM (Qcontrol, "control"); 6708 DEFSYM (Qcontrol, "control");
6709 DEFSYM (Qnone, "none");
6710 DEFSYM (QUTF8_STRING, "UTF8_STRING"); 6709 DEFSYM (QUTF8_STRING, "UTF8_STRING");
6711 6710
6712 Fput (Qalt, Qmodifier_value, make_number (alt_modifier)); 6711 Fput (Qalt, Qmodifier_value, make_number (alt_modifier));
diff --git a/src/w32fns.c b/src/w32fns.c
index 53dcb4bac96..1464f867077 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -93,7 +93,6 @@ static HWND hourglass_hwnd = NULL;
93 93
94static int w32_in_use; 94static int w32_in_use;
95 95
96Lisp_Object Qnone;
97Lisp_Object Qsuppress_icon; 96Lisp_Object Qsuppress_icon;
98Lisp_Object Qundefined_color; 97Lisp_Object Qundefined_color;
99Lisp_Object Qcancel_timer; 98Lisp_Object Qcancel_timer;
@@ -6808,7 +6807,6 @@ syms_of_w32fns (void)
6808 6807
6809 w32_visible_system_caret_hwnd = NULL; 6808 w32_visible_system_caret_hwnd = NULL;
6810 6809
6811 DEFSYM (Qnone, "none");
6812 DEFSYM (Qsuppress_icon, "suppress-icon"); 6810 DEFSYM (Qsuppress_icon, "suppress-icon");
6813 DEFSYM (Qundefined_color, "undefined-color"); 6811 DEFSYM (Qundefined_color, "undefined-color");
6814 DEFSYM (Qcancel_timer, "cancel-timer"); 6812 DEFSYM (Qcancel_timer, "cancel-timer");
diff --git a/src/w32font.c b/src/w32font.c
index fd24a90d60b..59dab789ab7 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -62,7 +62,6 @@ static Lisp_Object Qserif, Qscript, Qdecorative;
62static Lisp_Object Qraster, Qoutline, Qunknown; 62static Lisp_Object Qraster, Qoutline, Qunknown;
63 63
64/* antialiasing */ 64/* antialiasing */
65extern Lisp_Object Qnone; /* reuse from w32fns.c */
66static Lisp_Object Qstandard, Qsubpixel, Qnatural; 65static Lisp_Object Qstandard, Qsubpixel, Qnatural;
67 66
68/* languages */ 67/* languages */
diff --git a/src/xfns.c b/src/xfns.c
index b4d3e84602e..26c96e99c0f 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -130,7 +130,6 @@ extern LWLIB_ID widget_id_tick;
130 130
131int x_in_use; 131int x_in_use;
132 132
133static Lisp_Object Qnone;
134static Lisp_Object Qsuppress_icon; 133static Lisp_Object Qsuppress_icon;
135static Lisp_Object Qundefined_color; 134static Lisp_Object Qundefined_color;
136static Lisp_Object Qcompound_text, Qcancel_timer; 135static Lisp_Object Qcompound_text, Qcancel_timer;
@@ -5814,7 +5813,6 @@ syms_of_xfns (void)
5814 /* The section below is built by the lisp expression at the top of the file, 5813 /* The section below is built by the lisp expression at the top of the file,
5815 just above where these variables are declared. */ 5814 just above where these variables are declared. */
5816 /*&&& init symbols here &&&*/ 5815 /*&&& init symbols here &&&*/
5817 DEFSYM (Qnone, "none");
5818 DEFSYM (Qsuppress_icon, "suppress-icon"); 5816 DEFSYM (Qsuppress_icon, "suppress-icon");
5819 DEFSYM (Qundefined_color, "undefined-color"); 5817 DEFSYM (Qundefined_color, "undefined-color");
5820 DEFSYM (Qcompound_text, "compound-text"); 5818 DEFSYM (Qcompound_text, "compound-text");