diff options
Diffstat (limited to 'src')
205 files changed, 1234 insertions, 2254 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index d76c3aa8e05..0f2138284a0 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright (C) 1992-1998, 2000-2014 Free Software Foundation, Inc. | 1 | # Copyright (C) 1992-1998, 2000-2015 Free Software Foundation, Inc. |
| 2 | # | 2 | # |
| 3 | # This file is part of GNU Emacs. | 3 | # This file is part of GNU Emacs. |
| 4 | # | 4 | # |
diff --git a/src/ChangeLog b/src/ChangeLog index 85eb113db82..861ba91c275 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,154 @@ | |||
| 1 | 2015-01-06 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsterm.m (x_set_window_size): Call updateFrameSize to get real | ||
| 4 | size instead of using widht/height. The frame may be constrained. | ||
| 5 | |||
| 6 | 2015-01-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7 | |||
| 8 | * lisp.h (XSYMBOL): Parenthesize id in forward decl. | ||
| 9 | Needed when neither optimizing nor inlining. | ||
| 10 | Also, sort decls alphabetically. | ||
| 11 | |||
| 12 | 2015-01-05 Eli Zaretskii <eliz@gnu.org> | ||
| 13 | |||
| 14 | * w32proc.c, w32.h, w32fns.c, w32font.c, w32menu.c, w32notify.c: | ||
| 15 | * w32proc.c, w32select.c, w32term.c, w32uniscribe.c: Remove | ||
| 16 | declarations of Q* variables that represent symbols. | ||
| 17 | |||
| 18 | 2015-01-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19 | |||
| 20 | Use 0 for Qnil | ||
| 21 | Fixes Bug#15880. | ||
| 22 | If USE_LSB_TAG, arrange for the representation of Qnil to be zero so | ||
| 23 | that NILP (x) is equivalent to testing whether x is 0 at the | ||
| 24 | machine level. The overall effects of this and the previous patch | ||
| 25 | shrink the size of the text segment by 2.3% and speeds up | ||
| 26 | compilation of all the .elc files by about 0.5% on my platform, | ||
| 27 | which is Fedora 20 x86-64. | ||
| 28 | * lisp.h (lisp_h_XPNTR, lisp_h_XSYMBOL, lisp_h_XUNTAG) | ||
| 29 | (make_lisp_symbol) [USE_LSB_TAG]: | ||
| 30 | Symbols now tag the difference from lispsym, not the pointer. | ||
| 31 | (lisp_h_XUNTAGBASE, TAG_SYMPTR): New macros. | ||
| 32 | (Lisp_Int0, Lisp_Int1, Lisp_Symbol, Lisp_Misc, Lisp_String, Lisp_Cons): | ||
| 33 | Renumber so that Lisp_Symbol is 0, so that Qnil is zero. | ||
| 34 | (XSYMBOL): New forward decl. | ||
| 35 | (XUNTAGBASE): New function. | ||
| 36 | (XUNTAG): Use it. | ||
| 37 | |||
| 38 | Compute C decls for DEFSYMs automatically | ||
| 39 | Fixes Bug#15880. | ||
| 40 | This patch also makes Q constants (e.g., Qnil) constant addresses | ||
| 41 | from the C point of view. | ||
| 42 | * alloc.c, bidi.c, buffer.c, bytecode.c, callint.c, casefiddle: | ||
| 43 | * casetab.c, category.c, ccl.c, charset.c, chartab.c, cmds.c, coding.c: | ||
| 44 | * composite.c, data.c, dbusbind.c, decompress.c, dired.c, dispnew.c: | ||
| 45 | * doc.c, editfns.c, emacs.c, eval.c, fileio.c, fns.c, font.c, fontset.c: | ||
| 46 | * frame.c, fringe.c, ftfont.c, ftxfont.c, gfilenotify.c, gnutls.c: | ||
| 47 | * image.c, inotify.c, insdel.c, keyboard.c, keymap.c, lread.c: | ||
| 48 | * macfont.m, macros.c, minibuf.c, nsfns.m, nsfont.m, nsimage.m: | ||
| 49 | * nsmenu.m, nsselect.m, nsterm.m, print.c, process.c, profiler.c: | ||
| 50 | * search.c, sound.c, syntax.c, term.c, terminal.c, textprop.c, undo.c: | ||
| 51 | * window.c, xdisp.c, xfaces.c, xfns.c, xftfont.c, xmenu.c, xml.c: | ||
| 52 | * xselect.c, xsettings.c, xterm.c: | ||
| 53 | Remove Q vars that represent symbols (e.g., Qnil, Qt, Qemacs). | ||
| 54 | These names are now defined automatically by make-docfile. | ||
| 55 | * alloc.c (init_symbol): New function. | ||
| 56 | (Fmake_symbol): Use it. | ||
| 57 | (c_symbol_p): New function. | ||
| 58 | (valid_lisp_object_p, purecopy): Use it. | ||
| 59 | * alloc.c (marked_pinned_symbols): | ||
| 60 | Use make_lisp_symbol instead of make_lisp_ptr. | ||
| 61 | (garbage_collect_1): Mark lispsym symbols. | ||
| 62 | (CHECK_ALLOCATED_AND_LIVE_SYMBOL): New macro. | ||
| 63 | (mark_object): Use it. | ||
| 64 | (sweep_symbols): Sweep lispsym symbols. | ||
| 65 | (symbol_uses_obj): New function. | ||
| 66 | (which_symbols): Use it. Work for lispsym symbols, too. | ||
| 67 | (init_alloc_once): Initialize Vpurify_flag here; no need to wait, | ||
| 68 | since Qt's address is already known now. | ||
| 69 | (syms_of_alloc): Add lispsym count to symbols_consed. | ||
| 70 | * buffer.c (init_buffer_once): Compare to Qnil, not to make_number (0), | ||
| 71 | when testing whether storage is all bits zero. | ||
| 72 | * dispextern (struct image_type): | ||
| 73 | * font.c (font_property_table): | ||
| 74 | * frame.c (struct frame_parm_table, frame_parms): | ||
| 75 | * keyboard.c (scroll_bar_parts, struct event_head): | ||
| 76 | * xdisp.c (struct props): | ||
| 77 | Use XSYMBOL_INIT (Qfoo) and struct Lisp_Symbol * rather than &Qfoo and | ||
| 78 | Lisp_Object *, since Qfoo is no longer an object whose address can be | ||
| 79 | taken. All uses changed. | ||
| 80 | * eval.c (run_hook): New function. Most uses of Frun_hooks changed to | ||
| 81 | use it, so that they no longer need to take the address of a Lisp sym. | ||
| 82 | (syms_of_eval): Don't use DEFSYM on Vrun_hooks, as it's a variable. | ||
| 83 | * frame.c (syms_of_frame): Add defsyms for the frame_parms table. | ||
| 84 | * keyboard.c (syms_of_keyboard): Don't DEFSYM Qmenu_bar here. | ||
| 85 | DEFSYM Qdeactivate_mark before the corresponding var. | ||
| 86 | * keymap.c (syms_of_keymap): Use DEFSYM for Qmenu_bar and Qmode_line | ||
| 87 | instead of interning their symbols; this avoids duplicates. | ||
| 88 | (LISP_INITIALLY, TAG_PTR) | ||
| 89 | (DEFINE_LISP_SYMBOL_BEGIN, DEFINE_LISP_SYMBOL_END, XSYMBOL_INIT): | ||
| 90 | New macros. | ||
| 91 | (LISP_INITIALLY_ZERO): Use it. | ||
| 92 | (enum symbol_interned, enum symbol_redirect, struct Lisp_Symbol) | ||
| 93 | (EXFUN, DEFUN_ARGS_MANY, DEFUN_ARGS_UNEVALLED, DEFUN_ARGS_*): | ||
| 94 | Move decls up, to avoid forward uses. Include globals.h earlier, too. | ||
| 95 | (make_lisp_symbol): New function. | ||
| 96 | (XSETSYMBOL): Use it. | ||
| 97 | (DEFSYM): Now just a placeholder for make-docfile. | ||
| 98 | * lread.c (DEFINE_SYMBOLS): Define, for globals.h. | ||
| 99 | (intern_sym): New function, with body taken from old intern_driver. | ||
| 100 | (intern_driver): Use it. Last arg is now Lisp integer, not ptrdiff_t. | ||
| 101 | All uses changed. | ||
| 102 | (define_symbol): New function. | ||
| 103 | (init_obarray): Define the C symbols taken from lispsym. | ||
| 104 | Use plain DEFSYM for Qt and Qnil. | ||
| 105 | * syntax.c (init_syntax_once): No need to worry about | ||
| 106 | Qchar_table_extra_slots. | ||
| 107 | |||
| 108 | 2015-01-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 109 | |||
| 110 | 'temacs -nw' should not call missing functions | ||
| 111 | Without this patch, "temacs -nw" fails with the diagnostic | ||
| 112 | "emacs: Symbol's function definition is void: frame-windows-min-size" | ||
| 113 | and messes up the tty's state. | ||
| 114 | * frame.c (Fframe_windows_min_size): New placeholder function. | ||
| 115 | (syms_of_frame): Define it. | ||
| 116 | * window.c (Fwindow__sanitize_window_sizes): New placeholder. | ||
| 117 | (syms_of_window): Define it. | ||
| 118 | |||
| 119 | Less 'make' chatter for lisp dir | ||
| 120 | * Makefile.in (%.elc): Adjust to compile-onefile change in | ||
| 121 | ../lisp/Makefile.in. | ||
| 122 | |||
| 123 | batch write-region no longer says "Wrote FOO" | ||
| 124 | This cuts down on 'make' chatter a bit. | ||
| 125 | * fileio.c (Fwrite_region): | ||
| 126 | Don't output "Wrote /whatever/foo.elc" if noninteractive. | ||
| 127 | |||
| 128 | 2015-01-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 129 | |||
| 130 | Revert previous change to produce_composite_glyph | ||
| 131 | * term.c (produce_composite_glyph): Revert previous change (Bug#19496). | ||
| 132 | |||
| 133 | Pacify gcc -Wparentheses | ||
| 134 | * frame.c (x_set_frame_parameters): Add parens (Bug#19428). | ||
| 135 | |||
| 136 | 2015-01-03 Martin Rudalics <rudalics@gmx.at> | ||
| 137 | |||
| 138 | * frame.c (x_set_frame_parameters): Call Fset_frame_size only if | ||
| 139 | f->can_x_set_window_size is true. | ||
| 140 | * xterm.c (x_set_window_size_1): Call change_frame_size with | ||
| 141 | text sizes instead of pixel sizes (Bug#19428). | ||
| 142 | |||
| 143 | 2015-01-01 Eli Zaretskii <eliz@gnu.org> | ||
| 144 | |||
| 145 | * xdisp.c (pos_visible_p): Fix up the X coordinate for | ||
| 146 | right-to-left screen lines. (Bug#19473) | ||
| 147 | |||
| 148 | 2015-01-01 Eli Zaretskii <eliz@gnu.org> | ||
| 149 | |||
| 150 | * w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458) | ||
| 151 | |||
| 1 | 2014-12-31 Paul Eggert <eggert@cs.ucla.edu> | 152 | 2014-12-31 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 153 | ||
| 3 | Simplify setfattr use by assuming GNU make | 154 | Simplify setfattr use by assuming GNU make |
| @@ -12,6 +163,24 @@ | |||
| 12 | * sysdep.c [WINDOWSNT]: Include sys/socket.h, without which this | 163 | * sysdep.c [WINDOWSNT]: Include sys/socket.h, without which this |
| 13 | file doesn't compile on MS-Windows. | 164 | file doesn't compile on MS-Windows. |
| 14 | 165 | ||
| 166 | 2014-12-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 167 | |||
| 168 | Allow return value of system-name to vary. (Bug#19438) | ||
| 169 | * filelock.c (current_lock_owner): | ||
| 170 | * xrdb.c (get_environ_db): | ||
| 171 | * xterm.c (same_x_server): | ||
| 172 | * xterm.c (x_term_init): | ||
| 173 | Prefer (system-name) to system-name, and avoid naming | ||
| 174 | locals 'system-name'. | ||
| 175 | * editfns.c (cached_system_name): New static var. | ||
| 176 | (init_and_cache_system_name): New function. | ||
| 177 | (init_editfns, Fsystem_name): Use it. | ||
| 178 | (syms_of_editfns): Initialize it and Vsystem_name to the same value. | ||
| 179 | * sysdep.c [HAVE_SOCKETS]: Don't include <sys/socket.h>, <netdb.h>. | ||
| 180 | (h_errno) [TRY_AGAIN && !HAVE_H_ERRNO]: Remove decl. | ||
| 181 | (init_system_name) [HAVE_SOCKETS]: Don't canonicalize the name. | ||
| 182 | Don't create a new string if the current value is already correct. | ||
| 183 | |||
| 15 | 2014-12-28 Paul Eggert <eggert@cs.ucla.edu> | 184 | 2014-12-28 Paul Eggert <eggert@cs.ucla.edu> |
| 16 | 185 | ||
| 17 | Fix produce_composite_width typo | 186 | Fix produce_composite_width typo |
| @@ -135,6 +304,24 @@ | |||
| 135 | (x_session_initialize, Fhandle_save_session): | 304 | (x_session_initialize, Fhandle_save_session): |
| 136 | Prefer NILP (x) to EQ (x, Qnil). | 305 | Prefer NILP (x) to EQ (x, Qnil). |
| 137 | 306 | ||
| 307 | 2014-12-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 308 | |||
| 309 | * callproc.c (child_setup): | ||
| 310 | * dbusbind.c (xd_signature_cat): | ||
| 311 | * doc.c (get_doc_string, Fsnarf_documentation): | ||
| 312 | * editfns.c (Fuser_full_name): | ||
| 313 | * frame.c (xrdb_get_resource): | ||
| 314 | * gtkutil.c (xg_get_file_with_chooser): | ||
| 315 | * tparam.c (tparam1): | ||
| 316 | * xfns.c (xic_create_fontsetname): | ||
| 317 | * xrdb.c (gethomedir, get_user_db, get_environ_db): | ||
| 318 | * xsmfns.c (smc_save_yourself_CB): | ||
| 319 | Rewrite to avoid the need for strcat, typically by using stpcpy | ||
| 320 | and/or lispstpcpy. strcat tends to be part of O(N**2) algorithms. | ||
| 321 | * doc.c (sibling_etc): | ||
| 322 | * xrdb.c (xdefaults): | ||
| 323 | Now a top-level static constant. | ||
| 324 | |||
| 138 | 2014-12-23 Didier Verna <didier@didierverna.net> (tiny change). | 325 | 2014-12-23 Didier Verna <didier@didierverna.net> (tiny change). |
| 139 | 326 | ||
| 140 | * nsselect.m (Fns_selection_owner_p): Return a Lisp boolean, not a | 327 | * nsselect.m (Fns_selection_owner_p): Return a Lisp boolean, not a |
| @@ -542,7 +729,7 @@ | |||
| 542 | 2014-11-29 Paul Eggert <eggert@cs.ucla.edu> | 729 | 2014-11-29 Paul Eggert <eggert@cs.ucla.edu> |
| 543 | 730 | ||
| 544 | Improve clarity of USE_LSB_TAG definition. | 731 | Improve clarity of USE_LSB_TAG definition. |
| 545 | Problem reported by Lee Duhem. Suggestion by Andreas Schwab in: | 732 | Reported by Lee Duhem. Suggested by Andreas Schwab in: |
| 546 | http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg02222.html | 733 | http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg02222.html |
| 547 | * lisp.h (USE_LSB_TAG): Define in terms of the (simpler) | 734 | * lisp.h (USE_LSB_TAG): Define in terms of the (simpler) |
| 548 | VAL_MAX / 2 rather than in terms of the (more complicated) | 735 | VAL_MAX / 2 rather than in terms of the (more complicated) |
| @@ -568,7 +755,7 @@ | |||
| 568 | 755 | ||
| 569 | 2014-11-27 Oscar Fuentes <ofv@wanadoo.es> | 756 | 2014-11-27 Oscar Fuentes <ofv@wanadoo.es> |
| 570 | 757 | ||
| 571 | * src/w32.c, src/w32heap.c, src/w32term.c: | 758 | * w32.c, w32heap.c, w32term.c: |
| 572 | Use MINGW_W64 instead of _W64. | 759 | Use MINGW_W64 instead of _W64. |
| 573 | 760 | ||
| 574 | 2014-11-27 Stefan Monnier <monnier@iro.umontreal.ca> | 761 | 2014-11-27 Stefan Monnier <monnier@iro.umontreal.ca> |
| @@ -1038,7 +1225,7 @@ | |||
| 1038 | 1225 | ||
| 1039 | 2014-10-25 Noam Postavsky <npostavs@users.sourceforget.net> | 1226 | 2014-10-25 Noam Postavsky <npostavs@users.sourceforget.net> |
| 1040 | 1227 | ||
| 1041 | * src/w32proc.c (create_child): If calling a quoted batch file, | 1228 | * w32proc.c (create_child): If calling a quoted batch file, |
| 1042 | pass NULL for exe. (Bug#18745) | 1229 | pass NULL for exe. (Bug#18745) |
| 1043 | 1230 | ||
| 1044 | 2014-10-24 Eli Zaretskii <eliz@gnu.org> | 1231 | 2014-10-24 Eli Zaretskii <eliz@gnu.org> |
| @@ -1457,7 +1644,7 @@ | |||
| 1457 | On x86 platforms this works around GCC bug 63495 | 1644 | On x86 platforms this works around GCC bug 63495 |
| 1458 | <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63495>, | 1645 | <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63495>, |
| 1459 | and more generally should fix a portability problem in Emacs. | 1646 | and more generally should fix a portability problem in Emacs. |
| 1460 | Problem reported by Stefan Monnier in: | 1647 | Reported by Stefan Monnier in: |
| 1461 | http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00261.html | 1648 | http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00261.html |
| 1462 | 1649 | ||
| 1463 | 2014-10-08 Leo Liu <sdl.web@gmail.com> | 1650 | 2014-10-08 Leo Liu <sdl.web@gmail.com> |
| @@ -1973,7 +2160,7 @@ | |||
| 1973 | 2014-09-23 Paul Eggert <eggert@cs.ucla.edu> | 2160 | 2014-09-23 Paul Eggert <eggert@cs.ucla.edu> |
| 1974 | 2161 | ||
| 1975 | Fix SAFE_ALLOCA to not exhaust the stack when in a loop. | 2162 | Fix SAFE_ALLOCA to not exhaust the stack when in a loop. |
| 1976 | Problem reported by Dmitry Antipov in thread leading to: | 2163 | Reported by Dmitry Antipov in thread leading to: |
| 1977 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00713.html | 2164 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00713.html |
| 1978 | This patch fixes only SAFE_ALLOCA, SAFE_NALLOCA, and SAFE_ALLOCA_LISP; | 2165 | This patch fixes only SAFE_ALLOCA, SAFE_NALLOCA, and SAFE_ALLOCA_LISP; |
| 1979 | the experimental local_* macros enabled by USE_LOCAL_ALLOCATORS | 2166 | the experimental local_* macros enabled by USE_LOCAL_ALLOCATORS |
| @@ -2306,7 +2493,7 @@ | |||
| 2306 | 2014-09-10 Paul Eggert <eggert@cs.ucla.edu> | 2493 | 2014-09-10 Paul Eggert <eggert@cs.ucla.edu> |
| 2307 | 2494 | ||
| 2308 | Simplify lisp.h by removing the __COUNTER__ business. | 2495 | Simplify lisp.h by removing the __COUNTER__ business. |
| 2309 | Problem reported by Dmitry Antipov in: | 2496 | Reported by Dmitry Antipov in: |
| 2310 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00220.html | 2497 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00220.html |
| 2311 | * lisp.h (make_local_vector, make_local_string) | 2498 | * lisp.h (make_local_vector, make_local_string) |
| 2312 | (build_local_string): Simplify by not bothering with __COUNTER__. | 2499 | (build_local_string): Simplify by not bothering with __COUNTER__. |
| @@ -2337,7 +2524,7 @@ | |||
| 2337 | * lisp.h (DEFINE_GDB_SYMBOL_ENUM): Remove. | 2524 | * lisp.h (DEFINE_GDB_SYMBOL_ENUM): Remove. |
| 2338 | These can generate a constant with the correct value but the wrong | 2525 | These can generate a constant with the correct value but the wrong |
| 2339 | width, which doesn't work as a printf argument. All uses removed. | 2526 | width, which doesn't work as a printf argument. All uses removed. |
| 2340 | Problem reported by Dmitry Antipov in: | 2527 | Reported by Dmitry Antipov in: |
| 2341 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00213.html | 2528 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00213.html |
| 2342 | (ENUMABLE): Remove; no longer needed. | 2529 | (ENUMABLE): Remove; no longer needed. |
| 2343 | (ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val): | 2530 | (ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val): |
| @@ -4828,7 +5015,7 @@ | |||
| 4828 | 2014-06-03 Paul Eggert <eggert@cs.ucla.edu> | 5015 | 2014-06-03 Paul Eggert <eggert@cs.ucla.edu> |
| 4829 | 5016 | ||
| 4830 | * emacs.c: Include "sysselect.h", to define its inline functions. | 5017 | * emacs.c: Include "sysselect.h", to define its inline functions. |
| 4831 | Problem reported by Glenn Morris in: | 5018 | Reported by Glenn Morris in: |
| 4832 | http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00077.html | 5019 | http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00077.html |
| 4833 | 5020 | ||
| 4834 | Do not require libXt-devel when building with gtk. | 5021 | Do not require libXt-devel when building with gtk. |
| @@ -5928,7 +6115,7 @@ | |||
| 5928 | 2014-03-27 Paul Eggert <eggert@cs.ucla.edu> | 6115 | 2014-03-27 Paul Eggert <eggert@cs.ucla.edu> |
| 5929 | 6116 | ||
| 5930 | Port recent signal-related changes to FreeBSD. | 6117 | Port recent signal-related changes to FreeBSD. |
| 5931 | Problem reported by Herbert J. Skuhra. | 6118 | Reported by Herbert J. Skuhra. |
| 5932 | * lisp.h (block_tty_out_signal, unblock_tty_out_signal): | 6119 | * lisp.h (block_tty_out_signal, unblock_tty_out_signal): |
| 5933 | Move decls from here ... | 6120 | Move decls from here ... |
| 5934 | * syssignal.h: ... to here, so that lisp.h doesn't depend on signal.h. | 6121 | * syssignal.h: ... to here, so that lisp.h doesn't depend on signal.h. |
| @@ -6906,7 +7093,7 @@ | |||
| 6906 | 2014-01-20 Paul Eggert <eggert@cs.ucla.edu> | 7093 | 2014-01-20 Paul Eggert <eggert@cs.ucla.edu> |
| 6907 | 7094 | ||
| 6908 | Avoid undefined behavior by initializing buffer redisplay bit. | 7095 | Avoid undefined behavior by initializing buffer redisplay bit. |
| 6909 | Problem reported by Dmitry Antipov in | 7096 | Reported by Dmitry Antipov in |
| 6910 | <http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01756.html>. | 7097 | <http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01756.html>. |
| 6911 | * buffer.c (Fget_buffer_create): Initialize redisplay bit. | 7098 | * buffer.c (Fget_buffer_create): Initialize redisplay bit. |
| 6912 | 7099 | ||
| @@ -8747,7 +8934,7 @@ | |||
| 8747 | 2013-11-21 Paul Eggert <eggert@cs.ucla.edu> | 8934 | 2013-11-21 Paul Eggert <eggert@cs.ucla.edu> |
| 8748 | 8935 | ||
| 8749 | Fix some dependency problems that cause unnecessary recompiles. | 8936 | Fix some dependency problems that cause unnecessary recompiles. |
| 8750 | Problem reported by RMS in | 8937 | Reported by RMS in |
| 8751 | <http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00421.html>. | 8938 | <http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00421.html>. |
| 8752 | * Makefile.in (OLDXMENU_TARGET, OLDXMENU, OLDXMENU_DEPS) | 8939 | * Makefile.in (OLDXMENU_TARGET, OLDXMENU, OLDXMENU_DEPS) |
| 8753 | (really-lwlib, really-oldXMenu, stamp-oldxmenu) | 8940 | (really-lwlib, really-oldXMenu, stamp-oldxmenu) |
| @@ -9492,8 +9679,7 @@ | |||
| 9492 | 9679 | ||
| 9493 | 2013-10-23 Paul Eggert <eggert@cs.ucla.edu> | 9680 | 2013-10-23 Paul Eggert <eggert@cs.ucla.edu> |
| 9494 | 9681 | ||
| 9495 | Port to Solaris 10 and its bundled GCC. | 9682 | Port to Solaris 10 and its bundled GCC. Reported by Timothy C. Burt. |
| 9496 | Problem reported by Timothy C. Burt. | ||
| 9497 | * floatfns.c (isfinite, isnan): Redefine unconditionally. | 9683 | * floatfns.c (isfinite, isnan): Redefine unconditionally. |
| 9498 | 9684 | ||
| 9499 | 2013-10-21 Dmitry Antipov <dmantipov@yandex.ru> | 9685 | 2013-10-21 Dmitry Antipov <dmantipov@yandex.ru> |
| @@ -9897,7 +10083,7 @@ | |||
| 9897 | so it shouldn't be used all the time. Perhaps we need two | 10083 | so it shouldn't be used all the time. Perhaps we need two |
| 9898 | flavors of 'eassert', one for where 'assume' is far more likely | 10084 | flavors of 'eassert', one for where 'assume' is far more likely |
| 9899 | to help or to hurt; but that can be done later. | 10085 | to help or to hurt; but that can be done later. |
| 9900 | Problem reported by Dmitry Antipov in | 10086 | Reported by Dmitry Antipov in |
| 9901 | <http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00276.html>. | 10087 | <http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00276.html>. |
| 9902 | Also, don't include <verify.h>; no longer needed. | 10088 | Also, don't include <verify.h>; no longer needed. |
| 9903 | 10089 | ||
| @@ -13625,8 +13811,7 @@ | |||
| 13625 | 13811 | ||
| 13626 | 2013-07-07 Paul Eggert <eggert@cs.ucla.edu> | 13812 | 2013-07-07 Paul Eggert <eggert@cs.ucla.edu> |
| 13627 | 13813 | ||
| 13628 | Port to Ubuntu 10 (Bug#14803). | 13814 | Port to Ubuntu 10 (Bug#14803). Reported by T.V. Raman. |
| 13629 | Problem reported by T.V. Raman. | ||
| 13630 | * process.c (close_on_exec, accept4, process_socket): | 13815 | * process.c (close_on_exec, accept4, process_socket): |
| 13631 | Define these if !HAVE_ACCEPT4, not if !SOCK_CLOEXEC. | 13816 | Define these if !HAVE_ACCEPT4, not if !SOCK_CLOEXEC. |
| 13632 | 13817 | ||
| @@ -13891,7 +14076,7 @@ | |||
| 13891 | * emacs.c (malloc_enable_thread): Hoist extern decl to top level. | 14076 | * emacs.c (malloc_enable_thread): Hoist extern decl to top level. |
| 13892 | (main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: | 14077 | (main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: |
| 13893 | Invoke malloc_enable_thread even when not interactive. | 14078 | Invoke malloc_enable_thread even when not interactive. |
| 13894 | Problem reported by Ken Brown in <http://bugs.gnu.org/14569#275>. | 14079 | Reported by Ken Brown in <http://bugs.gnu.org/14569#275>. |
| 13895 | * process.c (init_process_emacs) [CYGWIN]: Tickle glib even | 14080 | * process.c (init_process_emacs) [CYGWIN]: Tickle glib even |
| 13896 | in this case, since the underlying bug has now been fixed. | 14081 | in this case, since the underlying bug has now been fixed. |
| 13897 | 14082 | ||
| @@ -15116,7 +15301,7 @@ | |||
| 15116 | * unexelf.c: Don't assume ElfW (Half) fits in int. | 15301 | * unexelf.c: Don't assume ElfW (Half) fits in int. |
| 15117 | (entry_address, find_section, unexec): Use ptrdiff_t, not int, | 15302 | (entry_address, find_section, unexec): Use ptrdiff_t, not int, |
| 15118 | when dealing with ElfW (Half) values, since they can exceed 2**31 | 15303 | when dealing with ElfW (Half) values, since they can exceed 2**31 |
| 15119 | on 64-bit OpenBSD hosts. Problem reported privately by Han Boetes. | 15304 | on 64-bit OpenBSD hosts. Reported by Han Boetes (privately). |
| 15120 | (entry_address): Omit unused NUM arg. All uses changed. | 15305 | (entry_address): Omit unused NUM arg. All uses changed. |
| 15121 | 15306 | ||
| 15122 | 2013-05-07 Juri Linkov <juri@jurta.org> | 15307 | 2013-05-07 Juri Linkov <juri@jurta.org> |
| @@ -16082,7 +16267,7 @@ See ChangeLog.12 for earlier changes. | |||
| 16082 | ;; coding: utf-8 | 16267 | ;; coding: utf-8 |
| 16083 | ;; End: | 16268 | ;; End: |
| 16084 | 16269 | ||
| 16085 | Copyright (C) 2011-2014 Free Software Foundation, Inc. | 16270 | Copyright (C) 2011-2015 Free Software Foundation, Inc. |
| 16086 | 16271 | ||
| 16087 | This file is part of GNU Emacs. | 16272 | This file is part of GNU Emacs. |
| 16088 | 16273 | ||
diff --git a/src/ChangeLog.1 b/src/ChangeLog.1 index 657bedce959..4b6ed3a987c 100644 --- a/src/ChangeLog.1 +++ b/src/ChangeLog.1 | |||
| @@ -3521,7 +3521,7 @@ | |||
| 3521 | * minibuf.c: Don't allow entry to minibuffer | 3521 | * minibuf.c: Don't allow entry to minibuffer |
| 3522 | while minibuffer is selected. | 3522 | while minibuffer is selected. |
| 3523 | 3523 | ||
| 3524 | Copyright (C) 1985-1986, 2001-2014 Free Software Foundation, Inc. | 3524 | Copyright (C) 1985-1986, 2001-2015 Free Software Foundation, Inc. |
| 3525 | 3525 | ||
| 3526 | This file is part of GNU Emacs. | 3526 | This file is part of GNU Emacs. |
| 3527 | 3527 | ||
diff --git a/src/ChangeLog.10 b/src/ChangeLog.10 index b6646e797e3..6eba7f06b9c 100644 --- a/src/ChangeLog.10 +++ b/src/ChangeLog.10 | |||
| @@ -2826,7 +2826,7 @@ | |||
| 2826 | 2006-07-21 Eli Zaretskii <eliz@gnu.org> | 2826 | 2006-07-21 Eli Zaretskii <eliz@gnu.org> |
| 2827 | 2827 | ||
| 2828 | * w32.c (convert_time): Use explicit long double constants to | 2828 | * w32.c (convert_time): Use explicit long double constants to |
| 2829 | ensure long double arithmetics is used throughout. | 2829 | ensure long double arithmetic is used throughout. |
| 2830 | 2830 | ||
| 2831 | 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2831 | 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2832 | 2832 | ||
| @@ -27912,7 +27912,7 @@ See ChangeLog.9 for earlier changes. | |||
| 27912 | ;; add-log-time-zone-rule: t | 27912 | ;; add-log-time-zone-rule: t |
| 27913 | ;; End: | 27913 | ;; End: |
| 27914 | 27914 | ||
| 27915 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 27915 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 27916 | 27916 | ||
| 27917 | This file is part of GNU Emacs. | 27917 | This file is part of GNU Emacs. |
| 27918 | 27918 | ||
diff --git a/src/ChangeLog.11 b/src/ChangeLog.11 index 100b0cbe710..351f9785765 100644 --- a/src/ChangeLog.11 +++ b/src/ChangeLog.11 | |||
| @@ -31385,7 +31385,7 @@ See ChangeLog.10 for earlier changes. | |||
| 31385 | ;; coding: utf-8 | 31385 | ;; coding: utf-8 |
| 31386 | ;; End: | 31386 | ;; End: |
| 31387 | 31387 | ||
| 31388 | Copyright (C) 2007-2014 Free Software Foundation, Inc. | 31388 | Copyright (C) 2007-2015 Free Software Foundation, Inc. |
| 31389 | 31389 | ||
| 31390 | This file is part of GNU Emacs. | 31390 | This file is part of GNU Emacs. |
| 31391 | 31391 | ||
diff --git a/src/ChangeLog.12 b/src/ChangeLog.12 index 80d7460c734..78b903e9d0e 100644 --- a/src/ChangeLog.12 +++ b/src/ChangeLog.12 | |||
| @@ -2327,7 +2327,7 @@ | |||
| 2327 | 2327 | ||
| 2328 | 2012-12-08 Fabrice Popineau <fabrice.popineau@gmail.com> | 2328 | 2012-12-08 Fabrice Popineau <fabrice.popineau@gmail.com> |
| 2329 | 2329 | ||
| 2330 | * w32fns.c (emacs_abort): Don't do arithmetics on void pointers. | 2330 | * w32fns.c (emacs_abort): Don't do arithmetic on void pointers. |
| 2331 | 2331 | ||
| 2332 | 2012-12-08 Eli Zaretskii <eliz@gnu.org> | 2332 | 2012-12-08 Eli Zaretskii <eliz@gnu.org> |
| 2333 | 2333 | ||
| @@ -4716,7 +4716,7 @@ | |||
| 4716 | defining an XRectangle structure. | 4716 | defining an XRectangle structure. |
| 4717 | 4717 | ||
| 4718 | * w32proc.c (RVA_TO_PTR, w32_executable_type): Fix pointer | 4718 | * w32proc.c (RVA_TO_PTR, w32_executable_type): Fix pointer |
| 4719 | arithmetics for compatibility with x64. | 4719 | arithmetic for compatibility with x64. |
| 4720 | 4720 | ||
| 4721 | * w32menu.c (add_menu_item): Use UINT_PTR instead of UINT, for | 4721 | * w32menu.c (add_menu_item): Use UINT_PTR instead of UINT, for |
| 4722 | compatibility with x64. | 4722 | compatibility with x64. |
| @@ -22936,7 +22936,7 @@ See ChangeLog.11 for earlier changes. | |||
| 22936 | ;; coding: utf-8 | 22936 | ;; coding: utf-8 |
| 22937 | ;; End: | 22937 | ;; End: |
| 22938 | 22938 | ||
| 22939 | Copyright (C) 2011-2014 Free Software Foundation, Inc. | 22939 | Copyright (C) 2011-2015 Free Software Foundation, Inc. |
| 22940 | 22940 | ||
| 22941 | This file is part of GNU Emacs. | 22941 | This file is part of GNU Emacs. |
| 22942 | 22942 | ||
diff --git a/src/ChangeLog.2 b/src/ChangeLog.2 index f8fc9b1c813..f62f3bb5835 100644 --- a/src/ChangeLog.2 +++ b/src/ChangeLog.2 | |||
| @@ -4771,7 +4771,7 @@ | |||
| 4771 | 4771 | ||
| 4772 | See ChangeLog.1 for earlier changes. | 4772 | See ChangeLog.1 for earlier changes. |
| 4773 | 4773 | ||
| 4774 | Copyright (C) 1986-1988, 2001-2014 Free Software Foundation, Inc. | 4774 | Copyright (C) 1986-1988, 2001-2015 Free Software Foundation, Inc. |
| 4775 | 4775 | ||
| 4776 | This file is part of GNU Emacs. | 4776 | This file is part of GNU Emacs. |
| 4777 | 4777 | ||
diff --git a/src/ChangeLog.3 b/src/ChangeLog.3 index 0a04a134cc3..d7c0a2f2b3c 100644 --- a/src/ChangeLog.3 +++ b/src/ChangeLog.3 | |||
| @@ -16503,7 +16503,7 @@ See ChangeLog.2 for earlier changes. | |||
| 16503 | ;; coding: utf-8 | 16503 | ;; coding: utf-8 |
| 16504 | ;; End: | 16504 | ;; End: |
| 16505 | 16505 | ||
| 16506 | Copyright (C) 1993, 2001-2014 Free Software Foundation, Inc. | 16506 | Copyright (C) 1993, 2001-2015 Free Software Foundation, Inc. |
| 16507 | 16507 | ||
| 16508 | This file is part of GNU Emacs. | 16508 | This file is part of GNU Emacs. |
| 16509 | 16509 | ||
diff --git a/src/ChangeLog.4 b/src/ChangeLog.4 index 54b37258c9f..b621d75d378 100644 --- a/src/ChangeLog.4 +++ b/src/ChangeLog.4 | |||
| @@ -6906,7 +6906,7 @@ See ChangeLog.3 for earlier changes. | |||
| 6906 | ;; coding: utf-8 | 6906 | ;; coding: utf-8 |
| 6907 | ;; End: | 6907 | ;; End: |
| 6908 | 6908 | ||
| 6909 | Copyright (C) 1993-1994, 2001-2014 Free Software Foundation, Inc. | 6909 | Copyright (C) 1993-1994, 2001-2015 Free Software Foundation, Inc. |
| 6910 | 6910 | ||
| 6911 | This file is part of GNU Emacs. | 6911 | This file is part of GNU Emacs. |
| 6912 | 6912 | ||
diff --git a/src/ChangeLog.5 b/src/ChangeLog.5 index 1de7775c465..0d1797ca1ce 100644 --- a/src/ChangeLog.5 +++ b/src/ChangeLog.5 | |||
| @@ -7148,7 +7148,7 @@ See ChangeLog.4 for earlier changes. | |||
| 7148 | ;; coding: utf-8 | 7148 | ;; coding: utf-8 |
| 7149 | ;; End: | 7149 | ;; End: |
| 7150 | 7150 | ||
| 7151 | Copyright (C) 1994-1995, 2001-2014 Free Software Foundation, Inc. | 7151 | Copyright (C) 1994-1995, 2001-2015 Free Software Foundation, Inc. |
| 7152 | 7152 | ||
| 7153 | This file is part of GNU Emacs. | 7153 | This file is part of GNU Emacs. |
| 7154 | 7154 | ||
diff --git a/src/ChangeLog.6 b/src/ChangeLog.6 index 19752bae1f4..5f73781c24e 100644 --- a/src/ChangeLog.6 +++ b/src/ChangeLog.6 | |||
| @@ -5358,7 +5358,7 @@ See ChangeLog.5 for earlier changes. | |||
| 5358 | ;; coding: utf-8 | 5358 | ;; coding: utf-8 |
| 5359 | ;; End: | 5359 | ;; End: |
| 5360 | 5360 | ||
| 5361 | Copyright (C) 1995-1996, 2001-2014 Free Software Foundation, Inc. | 5361 | Copyright (C) 1995-1996, 2001-2015 Free Software Foundation, Inc. |
| 5362 | 5362 | ||
| 5363 | This file is part of GNU Emacs. | 5363 | This file is part of GNU Emacs. |
| 5364 | 5364 | ||
diff --git a/src/ChangeLog.7 b/src/ChangeLog.7 index c43ab88fff6..f603d53bb6a 100644 --- a/src/ChangeLog.7 +++ b/src/ChangeLog.7 | |||
| @@ -11091,7 +11091,7 @@ See ChangeLog.6 for earlier changes. | |||
| 11091 | ;; coding: utf-8 | 11091 | ;; coding: utf-8 |
| 11092 | ;; End: | 11092 | ;; End: |
| 11093 | 11093 | ||
| 11094 | Copyright (C) 1997-1998, 2001-2014 Free Software Foundation, Inc. | 11094 | Copyright (C) 1997-1998, 2001-2015 Free Software Foundation, Inc. |
| 11095 | 11095 | ||
| 11096 | This file is part of GNU Emacs. | 11096 | This file is part of GNU Emacs. |
| 11097 | 11097 | ||
diff --git a/src/ChangeLog.8 b/src/ChangeLog.8 index fd8ae6caa20..aa331eafc00 100644 --- a/src/ChangeLog.8 +++ b/src/ChangeLog.8 | |||
| @@ -13979,7 +13979,7 @@ | |||
| 13979 | 13979 | ||
| 13980 | See ChangeLog.7 for earlier changes. | 13980 | See ChangeLog.7 for earlier changes. |
| 13981 | 13981 | ||
| 13982 | Copyright (C) 1999, 2001-2014 Free Software Foundation, Inc. | 13982 | Copyright (C) 1999, 2001-2015 Free Software Foundation, Inc. |
| 13983 | 13983 | ||
| 13984 | This file is part of GNU Emacs. | 13984 | This file is part of GNU Emacs. |
| 13985 | 13985 | ||
diff --git a/src/ChangeLog.9 b/src/ChangeLog.9 index 4b5afae0e6c..06ce3c1811c 100644 --- a/src/ChangeLog.9 +++ b/src/ChangeLog.9 | |||
| @@ -13294,7 +13294,7 @@ See ChangeLog.8 for earlier changes. | |||
| 13294 | ;; coding: utf-8 | 13294 | ;; coding: utf-8 |
| 13295 | ;; End: | 13295 | ;; End: |
| 13296 | 13296 | ||
| 13297 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 13297 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 13298 | 13298 | ||
| 13299 | This file is part of GNU Emacs. | 13299 | This file is part of GNU Emacs. |
| 13300 | 13300 | ||
diff --git a/src/Makefile.in b/src/Makefile.in index 812f3e22143..a2754eadacd 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ### @configure_input@ | 1 | ### @configure_input@ |
| 2 | 2 | ||
| 3 | # Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2014 | 3 | # Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2015 Free Software |
| 4 | # Free Software Foundation, Inc. | 4 | # Foundation, Inc. |
| 5 | 5 | ||
| 6 | # This file is part of GNU Emacs. | 6 | # This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -636,7 +636,7 @@ tags: TAGS ../lisp/TAGS $(lwlibdir)/TAGS | |||
| 636 | ## bootstrap-emacs$(EXEEXT) as an order-only prerequisite. | 636 | ## bootstrap-emacs$(EXEEXT) as an order-only prerequisite. |
| 637 | 637 | ||
| 638 | %.elc: %.el | bootstrap-emacs$(EXEEXT) | 638 | %.elc: %.el | bootstrap-emacs$(EXEEXT) |
| 639 | @$(MAKE) -C ../lisp compile-onefile THEFILE=$< EMACS="$(bootstrap_exe)" | 639 | @$(MAKE) -C ../lisp EMACS="$(bootstrap_exe)" THEFILE=$< $<c |
| 640 | 640 | ||
| 641 | ## VCSWITNESS points to the file that holds info about the current checkout. | 641 | ## VCSWITNESS points to the file that holds info about the current checkout. |
| 642 | ## We use it as a heuristic to decide when to rebuild loaddefs.el. | 642 | ## We use it as a heuristic to decide when to rebuild loaddefs.el. |
diff --git a/src/README b/src/README index 66de620573a..ef08d14d075 100644 --- a/src/README +++ b/src/README | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 1 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 2 | See the end of the file for license conditions. | 2 | See the end of the file for license conditions. |
| 3 | 3 | ||
| 4 | 4 | ||
diff --git a/src/alloc.c b/src/alloc.c index eada96c0c10..712c8f771f7 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Storage allocation and gc for GNU Emacs Lisp interpreter. | 1 | /* Storage allocation and gc for GNU Emacs Lisp interpreter. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1988, 1993-1995, 1997-2014 Free Software | 3 | Copyright (C) 1985-1986, 1988, 1993-1995, 1997-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -263,23 +263,6 @@ no_sanitize_memcpy (void *dest, void const *src, size_t size) | |||
| 263 | 263 | ||
| 264 | #endif /* MAX_SAVE_STACK > 0 */ | 264 | #endif /* MAX_SAVE_STACK > 0 */ |
| 265 | 265 | ||
| 266 | static Lisp_Object Qconses; | ||
| 267 | static Lisp_Object Qsymbols; | ||
| 268 | static Lisp_Object Qmiscs; | ||
| 269 | static Lisp_Object Qstrings; | ||
| 270 | static Lisp_Object Qvectors; | ||
| 271 | static Lisp_Object Qfloats; | ||
| 272 | static Lisp_Object Qintervals; | ||
| 273 | static Lisp_Object Qbuffers; | ||
| 274 | static Lisp_Object Qstring_bytes, Qvector_slots, Qheap; | ||
| 275 | static Lisp_Object Qgc_cons_threshold; | ||
| 276 | Lisp_Object Qautomatic_gc; | ||
| 277 | Lisp_Object Qchar_table_extra_slots; | ||
| 278 | |||
| 279 | /* Hook run after GC has finished. */ | ||
| 280 | |||
| 281 | static Lisp_Object Qpost_gc_hook; | ||
| 282 | |||
| 283 | static void mark_terminals (void); | 266 | static void mark_terminals (void); |
| 284 | static void gc_sweep (void); | 267 | static void gc_sweep (void); |
| 285 | static Lisp_Object make_pure_vector (ptrdiff_t); | 268 | static Lisp_Object make_pure_vector (ptrdiff_t); |
| @@ -3410,13 +3393,29 @@ set_symbol_name (Lisp_Object sym, Lisp_Object name) | |||
| 3410 | XSYMBOL (sym)->name = name; | 3393 | XSYMBOL (sym)->name = name; |
| 3411 | } | 3394 | } |
| 3412 | 3395 | ||
| 3396 | void | ||
| 3397 | init_symbol (Lisp_Object val, Lisp_Object name) | ||
| 3398 | { | ||
| 3399 | struct Lisp_Symbol *p = XSYMBOL (val); | ||
| 3400 | set_symbol_name (val, name); | ||
| 3401 | set_symbol_plist (val, Qnil); | ||
| 3402 | p->redirect = SYMBOL_PLAINVAL; | ||
| 3403 | SET_SYMBOL_VAL (p, Qunbound); | ||
| 3404 | set_symbol_function (val, Qnil); | ||
| 3405 | set_symbol_next (val, NULL); | ||
| 3406 | p->gcmarkbit = false; | ||
| 3407 | p->interned = SYMBOL_UNINTERNED; | ||
| 3408 | p->constant = 0; | ||
| 3409 | p->declared_special = false; | ||
| 3410 | p->pinned = false; | ||
| 3411 | } | ||
| 3412 | |||
| 3413 | DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0, | 3413 | DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0, |
| 3414 | doc: /* Return a newly allocated uninterned symbol whose name is NAME. | 3414 | doc: /* Return a newly allocated uninterned symbol whose name is NAME. |
| 3415 | Its value is void, and its function definition and property list are nil. */) | 3415 | Its value is void, and its function definition and property list are nil. */) |
| 3416 | (Lisp_Object name) | 3416 | (Lisp_Object name) |
| 3417 | { | 3417 | { |
| 3418 | register Lisp_Object val; | 3418 | Lisp_Object val; |
| 3419 | register struct Lisp_Symbol *p; | ||
| 3420 | 3419 | ||
| 3421 | CHECK_STRING (name); | 3420 | CHECK_STRING (name); |
| 3422 | 3421 | ||
| @@ -3444,18 +3443,7 @@ Its value is void, and its function definition and property list are nil. */) | |||
| 3444 | 3443 | ||
| 3445 | MALLOC_UNBLOCK_INPUT; | 3444 | MALLOC_UNBLOCK_INPUT; |
| 3446 | 3445 | ||
| 3447 | p = XSYMBOL (val); | 3446 | init_symbol (val, name); |
| 3448 | set_symbol_name (val, name); | ||
| 3449 | set_symbol_plist (val, Qnil); | ||
| 3450 | p->redirect = SYMBOL_PLAINVAL; | ||
| 3451 | SET_SYMBOL_VAL (p, Qunbound); | ||
| 3452 | set_symbol_function (val, Qnil); | ||
| 3453 | set_symbol_next (val, NULL); | ||
| 3454 | p->gcmarkbit = false; | ||
| 3455 | p->interned = SYMBOL_UNINTERNED; | ||
| 3456 | p->constant = 0; | ||
| 3457 | p->declared_special = false; | ||
| 3458 | p->pinned = false; | ||
| 3459 | consing_since_gc += sizeof (struct Lisp_Symbol); | 3447 | consing_since_gc += sizeof (struct Lisp_Symbol); |
| 3460 | symbols_consed++; | 3448 | symbols_consed++; |
| 3461 | total_free_symbols--; | 3449 | total_free_symbols--; |
| @@ -4925,6 +4913,14 @@ mark_stack (void *end) | |||
| 4925 | 4913 | ||
| 4926 | #endif /* GC_MARK_STACK != 0 */ | 4914 | #endif /* GC_MARK_STACK != 0 */ |
| 4927 | 4915 | ||
| 4916 | static bool | ||
| 4917 | c_symbol_p (struct Lisp_Symbol *sym) | ||
| 4918 | { | ||
| 4919 | char *lispsym_ptr = (char *) lispsym; | ||
| 4920 | char *sym_ptr = (char *) sym; | ||
| 4921 | ptrdiff_t lispsym_offset = sym_ptr - lispsym_ptr; | ||
| 4922 | return 0 <= lispsym_offset && lispsym_offset < sizeof lispsym; | ||
| 4923 | } | ||
| 4928 | 4924 | ||
| 4929 | /* Determine whether it is safe to access memory at address P. */ | 4925 | /* Determine whether it is safe to access memory at address P. */ |
| 4930 | static int | 4926 | static int |
| @@ -4978,6 +4974,9 @@ valid_lisp_object_p (Lisp_Object obj) | |||
| 4978 | if (PURE_POINTER_P (p)) | 4974 | if (PURE_POINTER_P (p)) |
| 4979 | return 1; | 4975 | return 1; |
| 4980 | 4976 | ||
| 4977 | if (SYMBOLP (obj) && c_symbol_p (p)) | ||
| 4978 | return ((char *) p - (char *) lispsym) % sizeof lispsym[0] == 0; | ||
| 4979 | |||
| 4981 | if (p == &buffer_defaults || p == &buffer_local_symbols) | 4980 | if (p == &buffer_defaults || p == &buffer_local_symbols) |
| 4982 | return 2; | 4981 | return 2; |
| 4983 | 4982 | ||
| @@ -5343,7 +5342,7 @@ purecopy (Lisp_Object obj) | |||
| 5343 | } | 5342 | } |
| 5344 | else if (SYMBOLP (obj)) | 5343 | else if (SYMBOLP (obj)) |
| 5345 | { | 5344 | { |
| 5346 | if (!XSYMBOL (obj)->pinned) | 5345 | if (!XSYMBOL (obj)->pinned && !c_symbol_p (XSYMBOL (obj))) |
| 5347 | { /* We can't purify them, but they appear in many pure objects. | 5346 | { /* We can't purify them, but they appear in many pure objects. |
| 5348 | Mark them as `pinned' so we know to mark them at every GC cycle. */ | 5347 | Mark them as `pinned' so we know to mark them at every GC cycle. */ |
| 5349 | XSYMBOL (obj)->pinned = true; | 5348 | XSYMBOL (obj)->pinned = true; |
| @@ -5532,7 +5531,7 @@ mark_pinned_symbols (void) | |||
| 5532 | union aligned_Lisp_Symbol *sym = sblk->symbols, *end = sym + lim; | 5531 | union aligned_Lisp_Symbol *sym = sblk->symbols, *end = sym + lim; |
| 5533 | for (; sym < end; ++sym) | 5532 | for (; sym < end; ++sym) |
| 5534 | if (sym->s.pinned) | 5533 | if (sym->s.pinned) |
| 5535 | mark_object (make_lisp_ptr (&sym->s, Lisp_Symbol)); | 5534 | mark_object (make_lisp_symbol (&sym->s)); |
| 5536 | 5535 | ||
| 5537 | lim = SYMBOL_BLOCK_SIZE; | 5536 | lim = SYMBOL_BLOCK_SIZE; |
| 5538 | } | 5537 | } |
| @@ -5566,7 +5565,7 @@ garbage_collect_1 (void *end) | |||
| 5566 | return Qnil; | 5565 | return Qnil; |
| 5567 | 5566 | ||
| 5568 | /* Record this function, so it appears on the profiler's backtraces. */ | 5567 | /* Record this function, so it appears on the profiler's backtraces. */ |
| 5569 | record_in_backtrace (Qautomatic_gc, &Qnil, 0); | 5568 | record_in_backtrace (Qautomatic_gc, 0, 0); |
| 5570 | 5569 | ||
| 5571 | check_cons_list (); | 5570 | check_cons_list (); |
| 5572 | 5571 | ||
| @@ -5630,6 +5629,9 @@ garbage_collect_1 (void *end) | |||
| 5630 | mark_buffer (&buffer_defaults); | 5629 | mark_buffer (&buffer_defaults); |
| 5631 | mark_buffer (&buffer_local_symbols); | 5630 | mark_buffer (&buffer_local_symbols); |
| 5632 | 5631 | ||
| 5632 | for (i = 0; i < ARRAYELTS (lispsym); i++) | ||
| 5633 | mark_object (make_lisp_symbol (&lispsym[i])); | ||
| 5634 | |||
| 5633 | for (i = 0; i < staticidx; i++) | 5635 | for (i = 0; i < staticidx; i++) |
| 5634 | mark_object (*staticvec[i]); | 5636 | mark_object (*staticvec[i]); |
| 5635 | 5637 | ||
| @@ -6193,17 +6195,28 @@ mark_object (Lisp_Object arg) | |||
| 6193 | emacs_abort (); \ | 6195 | emacs_abort (); \ |
| 6194 | } while (0) | 6196 | } while (0) |
| 6195 | 6197 | ||
| 6196 | /* Check both of the above conditions. */ | 6198 | /* Check both of the above conditions, for non-symbols. */ |
| 6197 | #define CHECK_ALLOCATED_AND_LIVE(LIVEP) \ | 6199 | #define CHECK_ALLOCATED_AND_LIVE(LIVEP) \ |
| 6198 | do { \ | 6200 | do { \ |
| 6199 | CHECK_ALLOCATED (); \ | 6201 | CHECK_ALLOCATED (); \ |
| 6200 | CHECK_LIVE (LIVEP); \ | 6202 | CHECK_LIVE (LIVEP); \ |
| 6201 | } while (0) \ | 6203 | } while (0) \ |
| 6202 | 6204 | ||
| 6205 | /* Check both of the above conditions, for symbols. */ | ||
| 6206 | #define CHECK_ALLOCATED_AND_LIVE_SYMBOL() \ | ||
| 6207 | do { \ | ||
| 6208 | if (!c_symbol_p (ptr)) \ | ||
| 6209 | { \ | ||
| 6210 | CHECK_ALLOCATED (); \ | ||
| 6211 | CHECK_LIVE (live_symbol_p); \ | ||
| 6212 | } \ | ||
| 6213 | } while (0) \ | ||
| 6214 | |||
| 6203 | #else /* not GC_CHECK_MARKED_OBJECTS */ | 6215 | #else /* not GC_CHECK_MARKED_OBJECTS */ |
| 6204 | 6216 | ||
| 6205 | #define CHECK_LIVE(LIVEP) ((void) 0) | 6217 | #define CHECK_LIVE(LIVEP) ((void) 0) |
| 6206 | #define CHECK_ALLOCATED_AND_LIVE(LIVEP) ((void) 0) | 6218 | #define CHECK_ALLOCATED_AND_LIVE(LIVEP) ((void) 0) |
| 6219 | #define CHECK_ALLOCATED_AND_LIVE_SYMBOL() ((void) 0) | ||
| 6207 | 6220 | ||
| 6208 | #endif /* not GC_CHECK_MARKED_OBJECTS */ | 6221 | #endif /* not GC_CHECK_MARKED_OBJECTS */ |
| 6209 | 6222 | ||
| @@ -6363,7 +6376,7 @@ mark_object (Lisp_Object arg) | |||
| 6363 | nextsym: | 6376 | nextsym: |
| 6364 | if (ptr->gcmarkbit) | 6377 | if (ptr->gcmarkbit) |
| 6365 | break; | 6378 | break; |
| 6366 | CHECK_ALLOCATED_AND_LIVE (live_symbol_p); | 6379 | CHECK_ALLOCATED_AND_LIVE_SYMBOL (); |
| 6367 | ptr->gcmarkbit = 1; | 6380 | ptr->gcmarkbit = 1; |
| 6368 | /* Attempt to catch bogus objects. */ | 6381 | /* Attempt to catch bogus objects. */ |
| 6369 | eassert (valid_lisp_object_p (ptr->function)); | 6382 | eassert (valid_lisp_object_p (ptr->function)); |
| @@ -6720,13 +6733,16 @@ NO_INLINE /* For better stack traces */ | |||
| 6720 | static void | 6733 | static void |
| 6721 | sweep_symbols (void) | 6734 | sweep_symbols (void) |
| 6722 | { | 6735 | { |
| 6723 | register struct symbol_block *sblk; | 6736 | struct symbol_block *sblk; |
| 6724 | struct symbol_block **sprev = &symbol_block; | 6737 | struct symbol_block **sprev = &symbol_block; |
| 6725 | register int lim = symbol_block_index; | 6738 | int lim = symbol_block_index; |
| 6726 | EMACS_INT num_free = 0, num_used = 0; | 6739 | EMACS_INT num_free = 0, num_used = ARRAYELTS (lispsym); |
| 6727 | 6740 | ||
| 6728 | symbol_free_list = NULL; | 6741 | symbol_free_list = NULL; |
| 6729 | 6742 | ||
| 6743 | for (int i = 0; i < ARRAYELTS (lispsym); i++) | ||
| 6744 | lispsym[i].gcmarkbit = 0; | ||
| 6745 | |||
| 6730 | for (sblk = symbol_block; sblk; sblk = *sprev) | 6746 | for (sblk = symbol_block; sblk; sblk = *sprev) |
| 6731 | { | 6747 | { |
| 6732 | int this_free = 0; | 6748 | int this_free = 0; |
| @@ -6974,6 +6990,21 @@ Frames, windows, buffers, and subprocesses count as vectors | |||
| 6974 | bounded_number (strings_consed)); | 6990 | bounded_number (strings_consed)); |
| 6975 | } | 6991 | } |
| 6976 | 6992 | ||
| 6993 | static bool | ||
| 6994 | symbol_uses_obj (Lisp_Object symbol, Lisp_Object obj) | ||
| 6995 | { | ||
| 6996 | struct Lisp_Symbol *sym = XSYMBOL (symbol); | ||
| 6997 | Lisp_Object val = find_symbol_value (symbol); | ||
| 6998 | return (EQ (val, obj) | ||
| 6999 | || EQ (sym->function, obj) | ||
| 7000 | || (!NILP (sym->function) | ||
| 7001 | && COMPILEDP (sym->function) | ||
| 7002 | && EQ (AREF (sym->function, COMPILED_BYTECODE), obj)) | ||
| 7003 | || (!NILP (val) | ||
| 7004 | && COMPILEDP (val) | ||
| 7005 | && EQ (AREF (val, COMPILED_BYTECODE), obj))); | ||
| 7006 | } | ||
| 7007 | |||
| 6977 | /* Find at most FIND_MAX symbols which have OBJ as their value or | 7008 | /* Find at most FIND_MAX symbols which have OBJ as their value or |
| 6978 | function. This is used in gdbinit's `xwhichsymbols' command. */ | 7009 | function. This is used in gdbinit's `xwhichsymbols' command. */ |
| 6979 | 7010 | ||
| @@ -6986,6 +7017,17 @@ which_symbols (Lisp_Object obj, EMACS_INT find_max) | |||
| 6986 | 7017 | ||
| 6987 | if (! DEADP (obj)) | 7018 | if (! DEADP (obj)) |
| 6988 | { | 7019 | { |
| 7020 | for (int i = 0; i < ARRAYELTS (lispsym); i++) | ||
| 7021 | { | ||
| 7022 | Lisp_Object sym = make_lisp_symbol (&lispsym[i]); | ||
| 7023 | if (symbol_uses_obj (sym, obj)) | ||
| 7024 | { | ||
| 7025 | found = Fcons (sym, found); | ||
| 7026 | if (--find_max == 0) | ||
| 7027 | goto out; | ||
| 7028 | } | ||
| 7029 | } | ||
| 7030 | |||
| 6989 | for (sblk = symbol_block; sblk; sblk = sblk->next) | 7031 | for (sblk = symbol_block; sblk; sblk = sblk->next) |
| 6990 | { | 7032 | { |
| 6991 | union aligned_Lisp_Symbol *aligned_sym = sblk->symbols; | 7033 | union aligned_Lisp_Symbol *aligned_sym = sblk->symbols; |
| @@ -6993,25 +7035,13 @@ which_symbols (Lisp_Object obj, EMACS_INT find_max) | |||
| 6993 | 7035 | ||
| 6994 | for (bn = 0; bn < SYMBOL_BLOCK_SIZE; bn++, aligned_sym++) | 7036 | for (bn = 0; bn < SYMBOL_BLOCK_SIZE; bn++, aligned_sym++) |
| 6995 | { | 7037 | { |
| 6996 | struct Lisp_Symbol *sym = &aligned_sym->s; | ||
| 6997 | Lisp_Object val; | ||
| 6998 | Lisp_Object tem; | ||
| 6999 | |||
| 7000 | if (sblk == symbol_block && bn >= symbol_block_index) | 7038 | if (sblk == symbol_block && bn >= symbol_block_index) |
| 7001 | break; | 7039 | break; |
| 7002 | 7040 | ||
| 7003 | XSETSYMBOL (tem, sym); | 7041 | Lisp_Object sym = make_lisp_symbol (&aligned_sym->s); |
| 7004 | val = find_symbol_value (tem); | 7042 | if (symbol_uses_obj (sym, obj)) |
| 7005 | if (EQ (val, obj) | ||
| 7006 | || EQ (sym->function, obj) | ||
| 7007 | || (!NILP (sym->function) | ||
| 7008 | && COMPILEDP (sym->function) | ||
| 7009 | && EQ (AREF (sym->function, COMPILED_BYTECODE), obj)) | ||
| 7010 | || (!NILP (val) | ||
| 7011 | && COMPILEDP (val) | ||
| 7012 | && EQ (AREF (val, COMPILED_BYTECODE), obj))) | ||
| 7013 | { | 7043 | { |
| 7014 | found = Fcons (tem, found); | 7044 | found = Fcons (sym, found); |
| 7015 | if (--find_max == 0) | 7045 | if (--find_max == 0) |
| 7016 | goto out; | 7046 | goto out; |
| 7017 | } | 7047 | } |
| @@ -7154,7 +7184,9 @@ verify_alloca (void) | |||
| 7154 | void | 7184 | void |
| 7155 | init_alloc_once (void) | 7185 | init_alloc_once (void) |
| 7156 | { | 7186 | { |
| 7157 | /* Used to do Vpurify_flag = Qt here, but Qt isn't set up yet! */ | 7187 | /* Even though Qt's contents are not set up, its address is known. */ |
| 7188 | Vpurify_flag = Qt; | ||
| 7189 | |||
| 7158 | purebeg = PUREBEG; | 7190 | purebeg = PUREBEG; |
| 7159 | pure_size = PURESIZE; | 7191 | pure_size = PURESIZE; |
| 7160 | 7192 | ||
| @@ -7230,6 +7262,7 @@ If this portion is smaller than `gc-cons-threshold', this is ignored. */); | |||
| 7230 | 7262 | ||
| 7231 | DEFVAR_INT ("symbols-consed", symbols_consed, | 7263 | DEFVAR_INT ("symbols-consed", symbols_consed, |
| 7232 | doc: /* Number of symbols that have been consed so far. */); | 7264 | doc: /* Number of symbols that have been consed so far. */); |
| 7265 | symbols_consed += ARRAYELTS (lispsym); | ||
| 7233 | 7266 | ||
| 7234 | DEFVAR_INT ("string-chars-consed", string_chars_consed, | 7267 | DEFVAR_INT ("string-chars-consed", string_chars_consed, |
| 7235 | doc: /* Number of string characters that have been consed so far. */); | 7268 | doc: /* Number of string characters that have been consed so far. */); |
diff --git a/src/atimer.c b/src/atimer.c index ce782f6adb6..8ff9bb89757 100644 --- a/src/atimer.c +++ b/src/atimer.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Asynchronous timers. | 1 | /* Asynchronous timers. |
| 2 | Copyright (C) 2000-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2000-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/atimer.h b/src/atimer.h index 2386977cf87..d08cd7fcb24 100644 --- a/src/atimer.h +++ b/src/atimer.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Asynchronous timers. | 1 | /* Asynchronous timers. |
| 2 | Copyright (C) 2000-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2000-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/bidi.c b/src/bidi.c index 45385452755..cbc1820c2a5 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Low-level bidirectional buffer/string-scanning functions for GNU Emacs. | 1 | /* Low-level bidirectional buffer/string-scanning functions for GNU Emacs. |
| 2 | Copyright (C) 2000-2001, 2004-2005, 2009-2014 Free Software | 2 | Copyright (C) 2000-2001, 2004-2005, 2009-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -262,7 +262,6 @@ typedef enum { | |||
| 262 | } bidi_category_t; | 262 | } bidi_category_t; |
| 263 | 263 | ||
| 264 | static Lisp_Object paragraph_start_re, paragraph_separate_re; | 264 | static Lisp_Object paragraph_start_re, paragraph_separate_re; |
| 265 | static Lisp_Object Qparagraph_start, Qparagraph_separate; | ||
| 266 | 265 | ||
| 267 | 266 | ||
| 268 | /*********************************************************************** | 267 | /*********************************************************************** |
diff --git a/src/blockinput.h b/src/blockinput.h index 8303c8c4d36..b0dbdf22885 100644 --- a/src/blockinput.h +++ b/src/blockinput.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* blockinput.h - interface to blocking complicated interrupt-driven input. | 1 | /* blockinput.h - interface to blocking complicated interrupt-driven input. |
| 2 | Copyright (C) 1989, 1993, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1989, 1993, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/buffer.c b/src/buffer.c index 9a5c4a8824f..e0843723232 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Buffer manipulation primitives for GNU Emacs. | 1 | /* Buffer manipulation primitives for GNU Emacs. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1989, 1993-1995, 1997-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1985-1989, 1993-1995, 1997-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 6 | 7 | ||
| @@ -114,41 +115,8 @@ static void reset_buffer_local_variables (struct buffer *, bool); | |||
| 114 | due to user rplac'ing this alist or its elements. */ | 115 | due to user rplac'ing this alist or its elements. */ |
| 115 | Lisp_Object Vbuffer_alist; | 116 | Lisp_Object Vbuffer_alist; |
| 116 | 117 | ||
| 117 | static Lisp_Object Qkill_buffer_query_functions; | ||
| 118 | |||
| 119 | /* Hook run before changing a major mode. */ | ||
| 120 | static Lisp_Object Qchange_major_mode_hook; | ||
| 121 | |||
| 122 | Lisp_Object Qfirst_change_hook; | ||
| 123 | Lisp_Object Qbefore_change_functions; | ||
| 124 | Lisp_Object Qafter_change_functions; | ||
| 125 | |||
| 126 | static Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; | ||
| 127 | static Lisp_Object Qpermanent_local_hook; | ||
| 128 | |||
| 129 | static Lisp_Object Qprotected_field; | ||
| 130 | |||
| 131 | static Lisp_Object QSFundamental; /* A string "Fundamental". */ | 118 | static Lisp_Object QSFundamental; /* A string "Fundamental". */ |
| 132 | 119 | ||
| 133 | static Lisp_Object Qkill_buffer_hook; | ||
| 134 | static Lisp_Object Qbuffer_list_update_hook; | ||
| 135 | |||
| 136 | static Lisp_Object Qget_file_buffer; | ||
| 137 | |||
| 138 | static Lisp_Object Qoverlayp; | ||
| 139 | |||
| 140 | Lisp_Object Qpriority, Qbefore_string, Qafter_string; | ||
| 141 | |||
| 142 | static Lisp_Object Qevaporate; | ||
| 143 | |||
| 144 | Lisp_Object Qmodification_hooks; | ||
| 145 | Lisp_Object Qinsert_in_front_hooks; | ||
| 146 | Lisp_Object Qinsert_behind_hooks; | ||
| 147 | |||
| 148 | Lisp_Object Qchoice, Qrange, Qleft, Qright; | ||
| 149 | Lisp_Object Qvertical_scroll_bar, Qhorizontal_scroll_bar; | ||
| 150 | static Lisp_Object Qoverwrite_mode, Qfraction; | ||
| 151 | |||
| 152 | static void alloc_buffer_text (struct buffer *, ptrdiff_t); | 120 | static void alloc_buffer_text (struct buffer *, ptrdiff_t); |
| 153 | static void free_buffer_text (struct buffer *b); | 121 | static void free_buffer_text (struct buffer *b); |
| 154 | static struct Lisp_Overlay * copy_overlays (struct buffer *, struct Lisp_Overlay *); | 122 | static struct Lisp_Overlay * copy_overlays (struct buffer *, struct Lisp_Overlay *); |
| @@ -1715,7 +1683,7 @@ cleaning up all windows currently displaying the buffer to be killed. */) | |||
| 1715 | return unbind_to (count, Qt); | 1683 | return unbind_to (count, Qt); |
| 1716 | 1684 | ||
| 1717 | /* Then run the hooks. */ | 1685 | /* Then run the hooks. */ |
| 1718 | Frun_hooks (1, &Qkill_buffer_hook); | 1686 | run_hook (Qkill_buffer_hook); |
| 1719 | unbind_to (count, Qnil); | 1687 | unbind_to (count, Qnil); |
| 1720 | } | 1688 | } |
| 1721 | 1689 | ||
| @@ -2739,7 +2707,7 @@ The first thing this function does is run | |||
| 2739 | the normal hook `change-major-mode-hook'. */) | 2707 | the normal hook `change-major-mode-hook'. */) |
| 2740 | (void) | 2708 | (void) |
| 2741 | { | 2709 | { |
| 2742 | Frun_hooks (1, &Qchange_major_mode_hook); | 2710 | run_hook (Qchange_major_mode_hook); |
| 2743 | 2711 | ||
| 2744 | /* Make sure none of the bindings in local_var_alist | 2712 | /* Make sure none of the bindings in local_var_alist |
| 2745 | remain swapped in, in their symbols. */ | 2713 | remain swapped in, in their symbols. */ |
| @@ -5062,9 +5030,9 @@ init_buffer_once (void) | |||
| 5062 | /* Make sure all markable slots in buffer_defaults | 5030 | /* Make sure all markable slots in buffer_defaults |
| 5063 | are initialized reasonably, so mark_buffer won't choke. */ | 5031 | are initialized reasonably, so mark_buffer won't choke. */ |
| 5064 | reset_buffer (&buffer_defaults); | 5032 | reset_buffer (&buffer_defaults); |
| 5065 | eassert (EQ (BVAR (&buffer_defaults, name), make_number (0))); | 5033 | eassert (NILP (BVAR (&buffer_defaults, name))); |
| 5066 | reset_buffer_local_variables (&buffer_defaults, 1); | 5034 | reset_buffer_local_variables (&buffer_defaults, 1); |
| 5067 | eassert (EQ (BVAR (&buffer_local_symbols, name), make_number (0))); | 5035 | eassert (NILP (BVAR (&buffer_local_symbols, name))); |
| 5068 | reset_buffer (&buffer_local_symbols); | 5036 | reset_buffer (&buffer_local_symbols); |
| 5069 | reset_buffer_local_variables (&buffer_local_symbols, 1); | 5037 | reset_buffer_local_variables (&buffer_local_symbols, 1); |
| 5070 | /* Prevent GC from getting confused. */ | 5038 | /* Prevent GC from getting confused. */ |
diff --git a/src/buffer.h b/src/buffer.h index 284cfa7b4a8..81852cae505 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Header file for the buffer manipulation primitives. | 1 | /* Header file for the buffer manipulation primitives. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1993-1995, 1997-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1986, 1993-1995, 1997-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -1141,12 +1141,6 @@ record_unwind_current_buffer (void) | |||
| 1141 | } while (false) | 1141 | } while (false) |
| 1142 | 1142 | ||
| 1143 | extern Lisp_Object Vbuffer_alist; | 1143 | extern Lisp_Object Vbuffer_alist; |
| 1144 | extern Lisp_Object Qbefore_change_functions; | ||
| 1145 | extern Lisp_Object Qafter_change_functions; | ||
| 1146 | extern Lisp_Object Qfirst_change_hook; | ||
| 1147 | extern Lisp_Object Qpriority, Qbefore_string, Qafter_string; | ||
| 1148 | extern Lisp_Object Qchoice, Qrange, Qleft, Qright; | ||
| 1149 | extern Lisp_Object Qvertical_scroll_bar, Qhorizontal_scroll_bar; | ||
| 1150 | 1144 | ||
| 1151 | /* FOR_EACH_LIVE_BUFFER (LIST_VAR, BUF_VAR) followed by a statement is | 1145 | /* FOR_EACH_LIVE_BUFFER (LIST_VAR, BUF_VAR) followed by a statement is |
| 1152 | a `for' loop which iterates over the buffers from Vbuffer_alist. */ | 1146 | a `for' loop which iterates over the buffers from Vbuffer_alist. */ |
diff --git a/src/bytecode.c b/src/bytecode.c index d3c8b470cc3..b4583676835 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Execution of byte code produced by bytecomp.el. | 1 | /* Execution of byte code produced by bytecomp.el. |
| 2 | Copyright (C) 1985-1988, 1993, 2000-2014 Free Software Foundation, | 2 | Copyright (C) 1985-1988, 1993, 2000-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -69,7 +69,6 @@ by Hallvard: | |||
| 69 | 69 | ||
| 70 | #ifdef BYTE_CODE_METER | 70 | #ifdef BYTE_CODE_METER |
| 71 | 71 | ||
| 72 | Lisp_Object Qbyte_code_meter; | ||
| 73 | #define METER_2(code1, code2) AREF (AREF (Vbyte_code_meter, code1), code2) | 72 | #define METER_2(code1, code2) AREF (AREF (Vbyte_code_meter, code1), code2) |
| 74 | #define METER_1(code) METER_2 (0, code) | 73 | #define METER_1(code) METER_2 (0, code) |
| 75 | 74 | ||
diff --git a/src/callint.c b/src/callint.c index 94676952b25..25955039ac7 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Call a Lisp function interactively. | 1 | /* Call a Lisp function interactively. |
| 2 | Copyright (C) 1985-1986, 1993-1995, 1997, 2000-2014 Free Software | 2 | Copyright (C) 1985-1986, 1993-1995, 1997, 2000-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -28,18 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | #include "window.h" | 28 | #include "window.h" |
| 29 | #include "keymap.h" | 29 | #include "keymap.h" |
| 30 | 30 | ||
| 31 | Lisp_Object Qminus, Qplus; | ||
| 32 | static Lisp_Object Qfuncall_interactively; | ||
| 33 | static Lisp_Object Qcommand_debug_status; | ||
| 34 | static Lisp_Object Qenable_recursive_minibuffers; | ||
| 35 | |||
| 36 | static Lisp_Object Qhandle_shift_selection; | ||
| 37 | static Lisp_Object Qread_number; | ||
| 38 | |||
| 39 | Lisp_Object Qmouse_leave_buffer_hook; | ||
| 40 | |||
| 41 | static Lisp_Object Qlist, Qlet, Qletx, Qsave_excursion, Qif; | ||
| 42 | Lisp_Object Qwhen, Qprogn; | ||
| 43 | static Lisp_Object preserved_fns; | 31 | static Lisp_Object preserved_fns; |
| 44 | 32 | ||
| 45 | /* Marker used within call-interactively to refer to point. */ | 33 | /* Marker used within call-interactively to refer to point. */ |
| @@ -477,7 +465,7 @@ invoke it. If KEYS is omitted or nil, the return value of | |||
| 477 | error ("Attempt to select inactive minibuffer window"); | 465 | error ("Attempt to select inactive minibuffer window"); |
| 478 | 466 | ||
| 479 | /* If the current buffer wants to clean up, let it. */ | 467 | /* If the current buffer wants to clean up, let it. */ |
| 480 | Frun_hooks (1, &Qmouse_leave_buffer_hook); | 468 | run_hook (Qmouse_leave_buffer_hook); |
| 481 | 469 | ||
| 482 | Fselect_window (w, Qnil); | 470 | Fselect_window (w, Qnil); |
| 483 | } | 471 | } |
diff --git a/src/callproc.c b/src/callproc.c index f40ed3244a5..0fdf278073d 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Synchronous subprocess invocation for GNU Emacs. | 1 | /* Synchronous subprocess invocation for GNU Emacs. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1988, 1993-1995, 1999-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1988, 1993-1995, 1999-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
diff --git a/src/casefiddle.c b/src/casefiddle.c index a7477bb64b2..8755353240a 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* GNU Emacs case conversion functions. | 1 | /* GNU Emacs case conversion functions. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985, 1994, 1997-1999, 2001-2014 Free Software Foundation, | 3 | Copyright (C) 1985, 1994, 1997-1999, 2001-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -30,8 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | #include "keymap.h" | 30 | #include "keymap.h" |
| 31 | 31 | ||
| 32 | enum case_action {CASE_UP, CASE_DOWN, CASE_CAPITALIZE, CASE_CAPITALIZE_UP}; | 32 | enum case_action {CASE_UP, CASE_DOWN, CASE_CAPITALIZE, CASE_CAPITALIZE_UP}; |
| 33 | |||
| 34 | Lisp_Object Qidentity; | ||
| 35 | 33 | ||
| 36 | static Lisp_Object | 34 | static Lisp_Object |
| 37 | casify_object (enum case_action flag, Lisp_Object obj) | 35 | casify_object (enum case_action flag, Lisp_Object obj) |
diff --git a/src/casetab.c b/src/casetab.c index aea1f2f0452..b086abc0125 100644 --- a/src/casetab.c +++ b/src/casetab.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* GNU Emacs routines to deal with case tables. | 1 | /* GNU Emacs routines to deal with case tables. |
| 2 | Copyright (C) 1993-1994, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993-1994, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | Author: Howard Gayle | 4 | Author: Howard Gayle |
| 5 | 5 | ||
| @@ -24,7 +24,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 24 | #include "character.h" | 24 | #include "character.h" |
| 25 | #include "buffer.h" | 25 | #include "buffer.h" |
| 26 | 26 | ||
| 27 | static Lisp_Object Qcase_table_p, Qcase_table; | ||
| 28 | Lisp_Object Vascii_downcase_table; | 27 | Lisp_Object Vascii_downcase_table; |
| 29 | static Lisp_Object Vascii_upcase_table; | 28 | static Lisp_Object Vascii_upcase_table; |
| 30 | Lisp_Object Vascii_canon_table; | 29 | Lisp_Object Vascii_canon_table; |
diff --git a/src/category.c b/src/category.c index a4610e4d358..b20493e5949 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* GNU Emacs routines to deal with category tables. | 1 | /* GNU Emacs routines to deal with category tables. |
| 2 | 2 | ||
| 3 | Copyright (C) 1998, 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1998, 2001-2015 Free Software Foundation, Inc. |
| 4 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 4 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 5 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 5 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 6 | National Institute of Advanced Industrial Science and Technology (AIST) | 6 | National Institute of Advanced Industrial Science and Technology (AIST) |
| @@ -53,8 +53,6 @@ bset_category_table (struct buffer *b, Lisp_Object val) | |||
| 53 | 53 | ||
| 54 | For the moment, we are not using this feature. */ | 54 | For the moment, we are not using this feature. */ |
| 55 | static int category_table_version; | 55 | static int category_table_version; |
| 56 | |||
| 57 | static Lisp_Object Qcategory_table, Qcategoryp, Qcategorysetp, Qcategory_table_p; | ||
| 58 | 56 | ||
| 59 | /* Category set staff. */ | 57 | /* Category set staff. */ |
| 60 | 58 | ||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* CCL (Code Conversion Language) interpreter. | 1 | /* CCL (Code Conversion Language) interpreter. |
| 2 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 4 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 5 | National Institute of Advanced Industrial Science and Technology (AIST) | 5 | National Institute of Advanced Industrial Science and Technology (AIST) |
| @@ -34,21 +34,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 34 | #include "ccl.h" | 34 | #include "ccl.h" |
| 35 | #include "coding.h" | 35 | #include "coding.h" |
| 36 | 36 | ||
| 37 | Lisp_Object Qccl, Qcclp; | ||
| 38 | |||
| 39 | /* This symbol is a property which associates with ccl program vector. | ||
| 40 | Ex: (get 'ccl-big5-encoder 'ccl-program) returns ccl program vector. */ | ||
| 41 | static Lisp_Object Qccl_program; | ||
| 42 | |||
| 43 | /* These symbols are properties which associate with code conversion | ||
| 44 | map and their ID respectively. */ | ||
| 45 | static Lisp_Object Qcode_conversion_map; | ||
| 46 | static Lisp_Object Qcode_conversion_map_id; | ||
| 47 | |||
| 48 | /* Symbols of ccl program have this property, a value of the property | ||
| 49 | is an index for Vccl_program_table. */ | ||
| 50 | static Lisp_Object Qccl_program_idx; | ||
| 51 | |||
| 52 | /* Table of registered CCL programs. Each element is a vector of | 37 | /* Table of registered CCL programs. Each element is a vector of |
| 53 | NAME, CCL_PROG, RESOLVEDP, and UPDATEDP, where NAME (symbol) is the | 38 | NAME, CCL_PROG, RESOLVEDP, and UPDATEDP, where NAME (symbol) is the |
| 54 | name of the program, CCL_PROG (vector) is the compiled code of the | 39 | name of the program, CCL_PROG (vector) is the compiled code of the |
| @@ -2297,8 +2282,17 @@ syms_of_ccl (void) | |||
| 2297 | 2282 | ||
| 2298 | DEFSYM (Qccl, "ccl"); | 2283 | DEFSYM (Qccl, "ccl"); |
| 2299 | DEFSYM (Qcclp, "cclp"); | 2284 | DEFSYM (Qcclp, "cclp"); |
| 2285 | |||
| 2286 | /* This symbol is a property which associates with ccl program vector. | ||
| 2287 | Ex: (get 'ccl-big5-encoder 'ccl-program) returns ccl program vector. */ | ||
| 2300 | DEFSYM (Qccl_program, "ccl-program"); | 2288 | DEFSYM (Qccl_program, "ccl-program"); |
| 2289 | |||
| 2290 | /* Symbols of ccl program have this property, a value of the property | ||
| 2291 | is an index for Vccl_program_table. */ | ||
| 2301 | DEFSYM (Qccl_program_idx, "ccl-program-idx"); | 2292 | DEFSYM (Qccl_program_idx, "ccl-program-idx"); |
| 2293 | |||
| 2294 | /* These symbols are properties which associate with code conversion | ||
| 2295 | map and their ID respectively. */ | ||
| 2302 | DEFSYM (Qcode_conversion_map, "code-conversion-map"); | 2296 | DEFSYM (Qcode_conversion_map, "code-conversion-map"); |
| 2303 | DEFSYM (Qcode_conversion_map_id, "code-conversion-map-id"); | 2297 | DEFSYM (Qcode_conversion_map_id, "code-conversion-map-id"); |
| 2304 | 2298 | ||
| @@ -81,8 +81,6 @@ extern bool setup_ccl_program (struct ccl_program *, Lisp_Object); | |||
| 81 | extern void ccl_driver (struct ccl_program *, int *, int *, int, int, | 81 | extern void ccl_driver (struct ccl_program *, int *, int *, int, int, |
| 82 | Lisp_Object); | 82 | Lisp_Object); |
| 83 | 83 | ||
| 84 | extern Lisp_Object Qccl, Qcclp; | ||
| 85 | |||
| 86 | #define CHECK_CCL_PROGRAM(x) \ | 84 | #define CHECK_CCL_PROGRAM(x) \ |
| 87 | do { \ | 85 | do { \ |
| 88 | if (NILP (Fccl_program_p (x))) \ | 86 | if (NILP (Fccl_program_p (x))) \ |
diff --git a/src/character.c b/src/character.c index a8e48dfd774..4a5c7ec3156 100644 --- a/src/character.c +++ b/src/character.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Basic character support. | 1 | /* Basic character support. |
| 2 | 2 | ||
| 3 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 4 | Copyright (C) 1995, 1997, 1998, 2001 Electrotechnical Laboratory, JAPAN. | 4 | Copyright (C) 1995, 1997, 1998, 2001 Electrotechnical Laboratory, JAPAN. |
| 5 | Licensed to the Free Software Foundation. | 5 | Licensed to the Free Software Foundation. |
| 6 | Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 6 | Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| @@ -48,16 +48,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 48 | 48 | ||
| 49 | #endif /* emacs */ | 49 | #endif /* emacs */ |
| 50 | 50 | ||
| 51 | Lisp_Object Qcharacterp; | ||
| 52 | |||
| 53 | static Lisp_Object Qauto_fill_chars; | ||
| 54 | |||
| 55 | /* Char-table of information about which character to unify to which | 51 | /* Char-table of information about which character to unify to which |
| 56 | Unicode character. Mainly used by the macro MAYBE_UNIFY_CHAR. */ | 52 | Unicode character. Mainly used by the macro MAYBE_UNIFY_CHAR. */ |
| 57 | Lisp_Object Vchar_unify_table; | 53 | Lisp_Object Vchar_unify_table; |
| 58 | 54 | ||
| 59 | static Lisp_Object Qchar_script_table; | ||
| 60 | |||
| 61 | 55 | ||
| 62 | 56 | ||
| 63 | /* If character code C has modifier masks, reflect them to the | 57 | /* If character code C has modifier masks, reflect them to the |
diff --git a/src/character.h b/src/character.h index 624f4fff3f0..5043880cb42 100644 --- a/src/character.h +++ b/src/character.h | |||
| @@ -657,7 +657,6 @@ extern ptrdiff_t c_string_width (const unsigned char *, ptrdiff_t, int, | |||
| 657 | extern ptrdiff_t lisp_string_width (Lisp_Object, ptrdiff_t, | 657 | extern ptrdiff_t lisp_string_width (Lisp_Object, ptrdiff_t, |
| 658 | ptrdiff_t *, ptrdiff_t *); | 658 | ptrdiff_t *, ptrdiff_t *); |
| 659 | 659 | ||
| 660 | extern Lisp_Object Qcharacterp; | ||
| 661 | extern Lisp_Object Vchar_unify_table; | 660 | extern Lisp_Object Vchar_unify_table; |
| 662 | extern Lisp_Object string_escape_byte8 (Lisp_Object); | 661 | extern Lisp_Object string_escape_byte8 (Lisp_Object); |
| 663 | 662 | ||
diff --git a/src/charset.c b/src/charset.c index 7fcb1534bc2..ea1480e806a 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Basic character set support. | 1 | /* Basic character set support. |
| 2 | 2 | ||
| 3 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 5 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 6 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 6 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| @@ -66,16 +66,7 @@ struct charset *charset_table; | |||
| 66 | static ptrdiff_t charset_table_size; | 66 | static ptrdiff_t charset_table_size; |
| 67 | static int charset_table_used; | 67 | static int charset_table_used; |
| 68 | 68 | ||
| 69 | Lisp_Object Qcharsetp; | 69 | /* Special charsets corresponding to symbols. */ |
| 70 | |||
| 71 | /* Special charset symbols. */ | ||
| 72 | Lisp_Object Qascii; | ||
| 73 | static Lisp_Object Qeight_bit; | ||
| 74 | static Lisp_Object Qiso_8859_1; | ||
| 75 | static Lisp_Object Qunicode; | ||
| 76 | static Lisp_Object Qemacs; | ||
| 77 | |||
| 78 | /* The corresponding charsets. */ | ||
| 79 | int charset_ascii; | 70 | int charset_ascii; |
| 80 | int charset_eight_bit; | 71 | int charset_eight_bit; |
| 81 | static int charset_iso_8859_1; | 72 | static int charset_iso_8859_1; |
| @@ -88,9 +79,6 @@ int charset_jisx0208_1978; | |||
| 88 | int charset_jisx0208; | 79 | int charset_jisx0208; |
| 89 | int charset_ksc5601; | 80 | int charset_ksc5601; |
| 90 | 81 | ||
| 91 | /* Value of charset attribute `charset-iso-plane'. */ | ||
| 92 | static Lisp_Object Qgl, Qgr; | ||
| 93 | |||
| 94 | /* Charset of unibyte characters. */ | 82 | /* Charset of unibyte characters. */ |
| 95 | int charset_unibyte; | 83 | int charset_unibyte; |
| 96 | 84 | ||
| @@ -2344,12 +2332,14 @@ syms_of_charset (void) | |||
| 2344 | { | 2332 | { |
| 2345 | DEFSYM (Qcharsetp, "charsetp"); | 2333 | DEFSYM (Qcharsetp, "charsetp"); |
| 2346 | 2334 | ||
| 2335 | /* Special charset symbols. */ | ||
| 2347 | DEFSYM (Qascii, "ascii"); | 2336 | DEFSYM (Qascii, "ascii"); |
| 2348 | DEFSYM (Qunicode, "unicode"); | 2337 | DEFSYM (Qunicode, "unicode"); |
| 2349 | DEFSYM (Qemacs, "emacs"); | 2338 | DEFSYM (Qemacs, "emacs"); |
| 2350 | DEFSYM (Qeight_bit, "eight-bit"); | 2339 | DEFSYM (Qeight_bit, "eight-bit"); |
| 2351 | DEFSYM (Qiso_8859_1, "iso-8859-1"); | 2340 | DEFSYM (Qiso_8859_1, "iso-8859-1"); |
| 2352 | 2341 | ||
| 2342 | /* Value of charset attribute `charset-iso-plane'. */ | ||
| 2353 | DEFSYM (Qgl, "gl"); | 2343 | DEFSYM (Qgl, "gl"); |
| 2354 | DEFSYM (Qgr, "gr"); | 2344 | DEFSYM (Qgr, "gr"); |
| 2355 | 2345 | ||
| @@ -2362,10 +2352,6 @@ syms_of_charset (void) | |||
| 2362 | staticpro (&Vemacs_mule_charset_list); | 2352 | staticpro (&Vemacs_mule_charset_list); |
| 2363 | Vemacs_mule_charset_list = Qnil; | 2353 | Vemacs_mule_charset_list = Qnil; |
| 2364 | 2354 | ||
| 2365 | /* Don't staticpro them here. It's done in syms_of_fns. */ | ||
| 2366 | QCtest = intern_c_string (":test"); | ||
| 2367 | Qeq = intern_c_string ("eq"); | ||
| 2368 | |||
| 2369 | staticpro (&Vcharset_hash_table); | 2355 | staticpro (&Vcharset_hash_table); |
| 2370 | { | 2356 | { |
| 2371 | Lisp_Object args[2]; | 2357 | Lisp_Object args[2]; |
diff --git a/src/charset.h b/src/charset.h index 6c6c3e6479f..f6575985a47 100644 --- a/src/charset.h +++ b/src/charset.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Header for charset handler. | 1 | /* Header for charset handler. |
| 2 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 4 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 5 | National Institute of Advanced Industrial Science and Technology (AIST) | 5 | National Institute of Advanced Industrial Science and Technology (AIST) |
| @@ -519,9 +519,6 @@ extern int iso_charset_table[ISO_MAX_DIMENSION][ISO_MAX_CHARS][ISO_MAX_FINAL]; | |||
| 519 | 519 | ||
| 520 | 520 | ||
| 521 | 521 | ||
| 522 | extern Lisp_Object Qcharsetp; | ||
| 523 | |||
| 524 | extern Lisp_Object Qascii; | ||
| 525 | extern int charset_ascii, charset_eight_bit; | 522 | extern int charset_ascii, charset_eight_bit; |
| 526 | extern int charset_unicode; | 523 | extern int charset_unicode; |
| 527 | extern int charset_jisx0201_roman; | 524 | extern int charset_jisx0201_roman; |
diff --git a/src/chartab.c b/src/chartab.c index bfbbf798f0c..013a5be575e 100644 --- a/src/chartab.c +++ b/src/chartab.c | |||
| @@ -57,9 +57,6 @@ static const int chartab_bits[4] = | |||
| 57 | /* Preamble for uniprop (Unicode character property) tables. See the | 57 | /* Preamble for uniprop (Unicode character property) tables. See the |
| 58 | comment of "Unicode character property tables". */ | 58 | comment of "Unicode character property tables". */ |
| 59 | 59 | ||
| 60 | /* Purpose of uniprop tables. */ | ||
| 61 | static Lisp_Object Qchar_code_property_table; | ||
| 62 | |||
| 63 | /* Types of decoder and encoder functions for uniprop values. */ | 60 | /* Types of decoder and encoder functions for uniprop values. */ |
| 64 | typedef Lisp_Object (*uniprop_decoder_t) (Lisp_Object, Lisp_Object); | 61 | typedef Lisp_Object (*uniprop_decoder_t) (Lisp_Object, Lisp_Object); |
| 65 | typedef Lisp_Object (*uniprop_encoder_t) (Lisp_Object, Lisp_Object); | 62 | typedef Lisp_Object (*uniprop_encoder_t) (Lisp_Object, Lisp_Object); |
| @@ -1378,6 +1375,7 @@ CHAR-TABLE must be what returned by `unicode-property-table-internal'. */) | |||
| 1378 | void | 1375 | void |
| 1379 | syms_of_chartab (void) | 1376 | syms_of_chartab (void) |
| 1380 | { | 1377 | { |
| 1378 | /* Purpose of uniprop tables. */ | ||
| 1381 | DEFSYM (Qchar_code_property_table, "char-code-property-table"); | 1379 | DEFSYM (Qchar_code_property_table, "char-code-property-table"); |
| 1382 | 1380 | ||
| 1383 | defsubr (&Smake_char_table); | 1381 | defsubr (&Smake_char_table); |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Cursor motion subroutines for GNU Emacs. | 1 | /* Cursor motion subroutines for GNU Emacs. |
| 2 | Copyright (C) 1985, 1995, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 1995, 2001-2015 Free Software Foundation, Inc. |
| 3 | based primarily on public domain code written by Chris Torek | 3 | based primarily on public domain code written by Chris Torek |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Cursor motion calculation definitions for GNU Emacs | 1 | /* Cursor motion calculation definitions for GNU Emacs |
| 2 | Copyright (C) 1985, 1989, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 1989, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/cmds.c b/src/cmds.c index 9a05218b77b..270fc39cabc 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Simple built-in editing commands. | 1 | /* Simple built-in editing commands. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985, 1993-1998, 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1985, 1993-1998, 2001-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -31,11 +31,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | #include "dispextern.h" | 31 | #include "dispextern.h" |
| 32 | #include "frame.h" | 32 | #include "frame.h" |
| 33 | 33 | ||
| 34 | static Lisp_Object Qkill_forward_chars, Qkill_backward_chars; | ||
| 35 | |||
| 36 | /* A possible value for a buffer's overwrite-mode variable. */ | ||
| 37 | static Lisp_Object Qoverwrite_mode_binary; | ||
| 38 | |||
| 39 | static int internal_self_insert (int, EMACS_INT); | 34 | static int internal_self_insert (int, EMACS_INT); |
| 40 | 35 | ||
| 41 | DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, | 36 | DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, |
| @@ -322,9 +317,6 @@ At the end, it runs `post-self-insert-hook'. */) | |||
| 322 | return 0. A value of 1 indicates this *might* not have been simple. | 317 | return 0. A value of 1 indicates this *might* not have been simple. |
| 323 | A value of 2 means this did things that call for an undo boundary. */ | 318 | A value of 2 means this did things that call for an undo boundary. */ |
| 324 | 319 | ||
| 325 | static Lisp_Object Qexpand_abbrev; | ||
| 326 | static Lisp_Object Qpost_self_insert_hook; | ||
| 327 | |||
| 328 | static int | 320 | static int |
| 329 | internal_self_insert (int c, EMACS_INT n) | 321 | internal_self_insert (int c, EMACS_INT n) |
| 330 | { | 322 | { |
| @@ -507,7 +499,7 @@ internal_self_insert (int c, EMACS_INT n) | |||
| 507 | } | 499 | } |
| 508 | 500 | ||
| 509 | /* Run hooks for electric keys. */ | 501 | /* Run hooks for electric keys. */ |
| 510 | Frun_hooks (1, &Qpost_self_insert_hook); | 502 | run_hook (Qpost_self_insert_hook); |
| 511 | 503 | ||
| 512 | return hairy; | 504 | return hairy; |
| 513 | } | 505 | } |
| @@ -519,7 +511,10 @@ syms_of_cmds (void) | |||
| 519 | { | 511 | { |
| 520 | DEFSYM (Qkill_backward_chars, "kill-backward-chars"); | 512 | DEFSYM (Qkill_backward_chars, "kill-backward-chars"); |
| 521 | DEFSYM (Qkill_forward_chars, "kill-forward-chars"); | 513 | DEFSYM (Qkill_forward_chars, "kill-forward-chars"); |
| 514 | |||
| 515 | /* A possible value for a buffer's overwrite-mode variable. */ | ||
| 522 | DEFSYM (Qoverwrite_mode_binary, "overwrite-mode-binary"); | 516 | DEFSYM (Qoverwrite_mode_binary, "overwrite-mode-binary"); |
| 517 | |||
| 523 | DEFSYM (Qexpand_abbrev, "expand-abbrev"); | 518 | DEFSYM (Qexpand_abbrev, "expand-abbrev"); |
| 524 | DEFSYM (Qpost_self_insert_hook, "post-self-insert-hook"); | 519 | DEFSYM (Qpost_self_insert_hook, "post-self-insert-hook"); |
| 525 | 520 | ||
diff --git a/src/coding.c b/src/coding.c index e4b52f6db48..20c64762160 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Coding system handler (conversion, detection, etc). | 1 | /* Coding system handler (conversion, detection, etc). |
| 2 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 4 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 5 | National Institute of Advanced Industrial Science and Technology (AIST) | 5 | National Institute of Advanced Industrial Science and Technology (AIST) |
| @@ -303,35 +303,6 @@ encode_coding_XXX (struct coding_system *coding) | |||
| 303 | 303 | ||
| 304 | Lisp_Object Vcoding_system_hash_table; | 304 | Lisp_Object Vcoding_system_hash_table; |
| 305 | 305 | ||
| 306 | static Lisp_Object Qcoding_system, Qeol_type; | ||
| 307 | static Lisp_Object Qcoding_aliases; | ||
| 308 | Lisp_Object Qunix, Qdos; | ||
| 309 | static Lisp_Object Qmac; | ||
| 310 | Lisp_Object Qbuffer_file_coding_system; | ||
| 311 | static Lisp_Object Qpost_read_conversion, Qpre_write_conversion; | ||
| 312 | static Lisp_Object Qdefault_char; | ||
| 313 | Lisp_Object Qno_conversion, Qundecided; | ||
| 314 | Lisp_Object Qcharset, Qutf_8; | ||
| 315 | static Lisp_Object Qiso_2022; | ||
| 316 | static Lisp_Object Qutf_16, Qshift_jis, Qbig5; | ||
| 317 | static Lisp_Object Qbig, Qlittle; | ||
| 318 | static Lisp_Object Qcoding_system_history; | ||
| 319 | static Lisp_Object Qvalid_codes; | ||
| 320 | static Lisp_Object QCcategory, QCmnemonic, QCdefault_char; | ||
| 321 | static Lisp_Object QCdecode_translation_table, QCencode_translation_table; | ||
| 322 | static Lisp_Object QCpost_read_conversion, QCpre_write_conversion; | ||
| 323 | static Lisp_Object QCascii_compatible_p; | ||
| 324 | |||
| 325 | Lisp_Object Qcall_process, Qcall_process_region; | ||
| 326 | Lisp_Object Qstart_process, Qopen_network_stream; | ||
| 327 | static Lisp_Object Qtarget_idx; | ||
| 328 | |||
| 329 | static Lisp_Object Qinsufficient_source, Qinvalid_source, Qinterrupted; | ||
| 330 | |||
| 331 | /* If a symbol has this property, evaluate the value to define the | ||
| 332 | symbol as a coding system. */ | ||
| 333 | static Lisp_Object Qcoding_system_define_form; | ||
| 334 | |||
| 335 | /* Format of end-of-line decided by system. This is Qunix on | 306 | /* Format of end-of-line decided by system. This is Qunix on |
| 336 | Unix and Mac, Qdos on DOS/Windows. | 307 | Unix and Mac, Qdos on DOS/Windows. |
| 337 | This has an effect only for external encoding (i.e. for output to | 308 | This has an effect only for external encoding (i.e. for output to |
| @@ -340,17 +311,6 @@ static Lisp_Object system_eol_type; | |||
| 340 | 311 | ||
| 341 | #ifdef emacs | 312 | #ifdef emacs |
| 342 | 313 | ||
| 343 | Lisp_Object Qcoding_system_p, Qcoding_system_error; | ||
| 344 | |||
| 345 | /* Coding system emacs-mule and raw-text are for converting only | ||
| 346 | end-of-line format. */ | ||
| 347 | Lisp_Object Qemacs_mule, Qraw_text; | ||
| 348 | Lisp_Object Qutf_8_emacs; | ||
| 349 | |||
| 350 | #if defined (WINDOWSNT) || defined (CYGWIN) | ||
| 351 | static Lisp_Object Qutf_16le; | ||
| 352 | #endif | ||
| 353 | |||
| 354 | /* Coding-systems are handed between Emacs Lisp programs and C internal | 314 | /* Coding-systems are handed between Emacs Lisp programs and C internal |
| 355 | routines by the following three variables. */ | 315 | routines by the following three variables. */ |
| 356 | /* Coding system to be used to encode text for terminal display when | 316 | /* Coding system to be used to encode text for terminal display when |
| @@ -359,11 +319,6 @@ struct coding_system safe_terminal_coding; | |||
| 359 | 319 | ||
| 360 | #endif /* emacs */ | 320 | #endif /* emacs */ |
| 361 | 321 | ||
| 362 | Lisp_Object Qtranslation_table; | ||
| 363 | Lisp_Object Qtranslation_table_id; | ||
| 364 | static Lisp_Object Qtranslation_table_for_decode; | ||
| 365 | static Lisp_Object Qtranslation_table_for_encode; | ||
| 366 | |||
| 367 | /* Two special coding systems. */ | 322 | /* Two special coding systems. */ |
| 368 | static Lisp_Object Vsjis_coding_system; | 323 | static Lisp_Object Vsjis_coding_system; |
| 369 | static Lisp_Object Vbig5_coding_system; | 324 | static Lisp_Object Vbig5_coding_system; |
| @@ -10903,6 +10858,7 @@ syms_of_coding (void) | |||
| 10903 | 10858 | ||
| 10904 | DEFSYM (Qcoding_system_p, "coding-system-p"); | 10859 | DEFSYM (Qcoding_system_p, "coding-system-p"); |
| 10905 | 10860 | ||
| 10861 | /* Error signaled when there's a problem with detecting a coding system. */ | ||
| 10906 | DEFSYM (Qcoding_system_error, "coding-system-error"); | 10862 | DEFSYM (Qcoding_system_error, "coding-system-error"); |
| 10907 | Fput (Qcoding_system_error, Qerror_conditions, | 10863 | Fput (Qcoding_system_error, Qerror_conditions, |
| 10908 | listn (CONSTYPE_PURE, 2, Qcoding_system_error, Qerror)); | 10864 | listn (CONSTYPE_PURE, 2, Qcoding_system_error, Qerror)); |
| @@ -10917,6 +10873,8 @@ syms_of_coding (void) | |||
| 10917 | 10873 | ||
| 10918 | DEFSYM (Qvalid_codes, "valid-codes"); | 10874 | DEFSYM (Qvalid_codes, "valid-codes"); |
| 10919 | 10875 | ||
| 10876 | /* Coding system emacs-mule and raw-text are for converting only | ||
| 10877 | end-of-line format. */ | ||
| 10920 | DEFSYM (Qemacs_mule, "emacs-mule"); | 10878 | DEFSYM (Qemacs_mule, "emacs-mule"); |
| 10921 | 10879 | ||
| 10922 | DEFSYM (QCcategory, ":category"); | 10880 | DEFSYM (QCcategory, ":category"); |
| @@ -10979,6 +10937,9 @@ syms_of_coding (void) | |||
| 10979 | DEFSYM (Qinsufficient_source, "insufficient-source"); | 10937 | DEFSYM (Qinsufficient_source, "insufficient-source"); |
| 10980 | DEFSYM (Qinvalid_source, "invalid-source"); | 10938 | DEFSYM (Qinvalid_source, "invalid-source"); |
| 10981 | DEFSYM (Qinterrupted, "interrupted"); | 10939 | DEFSYM (Qinterrupted, "interrupted"); |
| 10940 | |||
| 10941 | /* If a symbol has this property, evaluate the value to define the | ||
| 10942 | symbol as a coding system. */ | ||
| 10982 | DEFSYM (Qcoding_system_define_form, "coding-system-define-form"); | 10943 | DEFSYM (Qcoding_system_define_form, "coding-system-define-form"); |
| 10983 | 10944 | ||
| 10984 | defsubr (&Scoding_system_p); | 10945 | defsubr (&Scoding_system_p); |
diff --git a/src/coding.h b/src/coding.h index ffd839f4212..d49d786e6dd 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Header for coding system handler. | 1 | /* Header for coding system handler. |
| 2 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 4 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 5 | National Institute of Advanced Industrial Science and Technology (AIST) | 5 | National Institute of Advanced Industrial Science and Technology (AIST) |
| @@ -763,23 +763,7 @@ extern Lisp_Object from_unicode_buffer (const wchar_t *wstr); | |||
| 763 | extern Lisp_Object preferred_coding_system (void); | 763 | extern Lisp_Object preferred_coding_system (void); |
| 764 | 764 | ||
| 765 | 765 | ||
| 766 | extern Lisp_Object Qutf_8, Qutf_8_emacs; | ||
| 767 | |||
| 768 | extern Lisp_Object Qcoding_category_index; | ||
| 769 | extern Lisp_Object Qcoding_system_p; | ||
| 770 | extern Lisp_Object Qraw_text, Qemacs_mule, Qno_conversion, Qundecided; | ||
| 771 | extern Lisp_Object Qbuffer_file_coding_system; | ||
| 772 | |||
| 773 | extern Lisp_Object Qunix, Qdos; | ||
| 774 | |||
| 775 | extern Lisp_Object Qtranslation_table; | ||
| 776 | extern Lisp_Object Qtranslation_table_id; | ||
| 777 | |||
| 778 | #ifdef emacs | 766 | #ifdef emacs |
| 779 | extern Lisp_Object Qfile_coding_system; | ||
| 780 | extern Lisp_Object Qcall_process, Qcall_process_region; | ||
| 781 | extern Lisp_Object Qstart_process, Qopen_network_stream; | ||
| 782 | extern Lisp_Object Qwrite_region; | ||
| 783 | 767 | ||
| 784 | extern char *emacs_strerror (int); | 768 | extern char *emacs_strerror (int); |
| 785 | 769 | ||
| @@ -789,9 +773,6 @@ extern struct coding_system safe_terminal_coding; | |||
| 789 | 773 | ||
| 790 | #endif | 774 | #endif |
| 791 | 775 | ||
| 792 | /* Error signaled when there's a problem with detecting coding system */ | ||
| 793 | extern Lisp_Object Qcoding_system_error; | ||
| 794 | |||
| 795 | extern char emacs_mule_bytes[256]; | 776 | extern char emacs_mule_bytes[256]; |
| 796 | 777 | ||
| 797 | #endif /* EMACS_CODING_H */ | 778 | #endif /* EMACS_CODING_H */ |
diff --git a/src/commands.h b/src/commands.h index 1a09f683563..19cd2e49890 100644 --- a/src/commands.h +++ b/src/commands.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions needed by most editing commands. | 1 | /* Definitions needed by most editing commands. |
| 2 | Copyright (C) 1985, 1994, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 1994, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/composite.c b/src/composite.c index 0b52a9fcd2b..8ac5ef712c6 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Composite sequence support. | 1 | /* Composite sequence support. |
| 2 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 4 | National Institute of Advanced Industrial Science and Technology (AIST) | 4 | National Institute of Advanced Industrial Science and Technology (AIST) |
| 5 | Registration Number H14PRO021 | 5 | Registration Number H14PRO021 |
| @@ -134,8 +134,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 134 | */ | 134 | */ |
| 135 | 135 | ||
| 136 | 136 | ||
| 137 | Lisp_Object Qcomposition; | ||
| 138 | |||
| 139 | /* Table of pointers to the structure `composition' indexed by | 137 | /* Table of pointers to the structure `composition' indexed by |
| 140 | COMPOSITION-ID. This structure is for storing information about | 138 | COMPOSITION-ID. This structure is for storing information about |
| 141 | each composition except for COMPONENTS-VEC. */ | 139 | each composition except for COMPONENTS-VEC. */ |
| @@ -152,8 +150,6 @@ ptrdiff_t n_compositions; | |||
| 152 | COMPOSITION-ID. */ | 150 | COMPOSITION-ID. */ |
| 153 | Lisp_Object composition_hash_table; | 151 | Lisp_Object composition_hash_table; |
| 154 | 152 | ||
| 155 | static Lisp_Object Qauto_composed; | ||
| 156 | static Lisp_Object Qauto_composition_function; | ||
| 157 | /* Maximum number of characters to look back for | 153 | /* Maximum number of characters to look back for |
| 158 | auto-compositions. */ | 154 | auto-compositions. */ |
| 159 | #define MAX_AUTO_COMPOSITION_LOOKBACK 3 | 155 | #define MAX_AUTO_COMPOSITION_LOOKBACK 3 |
diff --git a/src/composite.h b/src/composite.h index 1080eb0960c..fb9f9eb8655 100644 --- a/src/composite.h +++ b/src/composite.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Header for composite sequence handler. | 1 | /* Header for composite sequence handler. |
| 2 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 3 | Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 4 | National Institute of Advanced Industrial Science and Technology (AIST) | 4 | National Institute of Advanced Industrial Science and Technology (AIST) |
| 5 | Registration Number H14PRO021 | 5 | Registration Number H14PRO021 |
| @@ -190,7 +190,6 @@ extern ptrdiff_t n_compositions; | |||
| 190 | #define CHECK_BORDER (CHECK_HEAD | CHECK_TAIL) | 190 | #define CHECK_BORDER (CHECK_HEAD | CHECK_TAIL) |
| 191 | #define CHECK_ALL (CHECK_BORDER | CHECK_INSIDE) | 191 | #define CHECK_ALL (CHECK_BORDER | CHECK_INSIDE) |
| 192 | 192 | ||
| 193 | extern Lisp_Object Qcomposition; | ||
| 194 | extern Lisp_Object composition_hash_table; | 193 | extern Lisp_Object composition_hash_table; |
| 195 | extern ptrdiff_t get_composition_id (ptrdiff_t, ptrdiff_t, ptrdiff_t, | 194 | extern ptrdiff_t get_composition_id (ptrdiff_t, ptrdiff_t, ptrdiff_t, |
| 196 | Lisp_Object, Lisp_Object); | 195 | Lisp_Object, Lisp_Object); |
diff --git a/src/conf_post.h b/src/conf_post.h index 90f4c6e8382..479d0448775 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* conf_post.h --- configure.ac includes this via AH_BOTTOM | 1 | /* conf_post.h --- configure.ac includes this via AH_BOTTOM |
| 2 | 2 | ||
| 3 | Copyright (C) 1988, 1993-1994, 1999-2002, 2004-2014 Free Software | 3 | Copyright (C) 1988, 1993-1994, 1999-2002, 2004-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
diff --git a/src/cygw32.c b/src/cygw32.c index b7386ab8e1a..03739b1ad23 100644 --- a/src/cygw32.c +++ b/src/cygw32.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Cygwin support routines. | 1 | /* Cygwin support routines. |
| 2 | Copyright (C) 2011-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2011-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/cygw32.h b/src/cygw32.h index 84be609a06c..e14e3d13b8c 100644 --- a/src/cygw32.h +++ b/src/cygw32.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Header for Cygwin support routines. | 1 | /* Header for Cygwin support routines. |
| 2 | Copyright (C) 2011-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2011-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/data.c b/src/data.c index 7151d220b05..820c3ce8407 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Primitive operations on Lisp data types for GNU Emacs Lisp interpreter. | 1 | /* Primitive operations on Lisp data types for GNU Emacs Lisp interpreter. |
| 2 | Copyright (C) 1985-1986, 1988, 1993-1995, 1997-2014 Free Software | 2 | Copyright (C) 1985-1986, 1988, 1993-1995, 1997-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -37,58 +37,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 37 | #include "font.h" | 37 | #include "font.h" |
| 38 | #include "keymap.h" | 38 | #include "keymap.h" |
| 39 | 39 | ||
| 40 | Lisp_Object Qnil, Qt, Qquote, Qlambda, Qunbound; | ||
| 41 | static Lisp_Object Qsubr; | ||
| 42 | Lisp_Object Qerror_conditions, Qerror_message, Qtop_level; | ||
| 43 | Lisp_Object Qerror, Quser_error, Qquit, Qargs_out_of_range; | ||
| 44 | static Lisp_Object Qwrong_length_argument; | ||
| 45 | static Lisp_Object Qwrong_type_argument; | ||
| 46 | Lisp_Object Qvoid_variable, Qvoid_function; | ||
| 47 | static Lisp_Object Qcyclic_function_indirection; | ||
| 48 | static Lisp_Object Qcyclic_variable_indirection; | ||
| 49 | Lisp_Object Qcircular_list; | ||
| 50 | static Lisp_Object Qsetting_constant; | ||
| 51 | Lisp_Object Qinvalid_read_syntax; | ||
| 52 | Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch; | ||
| 53 | Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; | ||
| 54 | Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; | ||
| 55 | Lisp_Object Qtext_read_only; | ||
| 56 | |||
| 57 | Lisp_Object Qintegerp, Qwholenump, Qsymbolp, Qlistp, Qconsp; | ||
| 58 | static Lisp_Object Qnatnump; | ||
| 59 | Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp; | ||
| 60 | Lisp_Object Qchar_or_string_p, Qmarkerp, Qinteger_or_marker_p, Qvectorp; | ||
| 61 | Lisp_Object Qbool_vector_p; | ||
| 62 | Lisp_Object Qbuffer_or_string_p; | ||
| 63 | static Lisp_Object Qkeywordp, Qboundp; | ||
| 64 | Lisp_Object Qfboundp; | ||
| 65 | Lisp_Object Qchar_table_p, Qvector_or_char_table_p; | ||
| 66 | |||
| 67 | Lisp_Object Qcdr; | ||
| 68 | static Lisp_Object Qad_advice_info, Qad_activate_internal; | ||
| 69 | |||
| 70 | static Lisp_Object Qdomain_error, Qsingularity_error, Qunderflow_error; | ||
| 71 | Lisp_Object Qrange_error, Qoverflow_error; | ||
| 72 | |||
| 73 | Lisp_Object Qfloatp; | ||
| 74 | Lisp_Object Qnumberp, Qnumber_or_marker_p; | ||
| 75 | |||
| 76 | Lisp_Object Qinteger, Qsymbol; | ||
| 77 | static Lisp_Object Qcons, Qfloat, Qmisc, Qstring, Qvector; | ||
| 78 | Lisp_Object Qwindow; | ||
| 79 | static Lisp_Object Qoverlay, Qwindow_configuration; | ||
| 80 | static Lisp_Object Qprocess, Qmarker; | ||
| 81 | static Lisp_Object Qcompiled_function, Qframe; | ||
| 82 | Lisp_Object Qbuffer; | ||
| 83 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; | ||
| 84 | static Lisp_Object Qsubrp; | ||
| 85 | static Lisp_Object Qmany, Qunevalled; | ||
| 86 | Lisp_Object Qfont_spec, Qfont_entity, Qfont_object; | ||
| 87 | static Lisp_Object Qdefun; | ||
| 88 | |||
| 89 | Lisp_Object Qinteractive_form; | ||
| 90 | static Lisp_Object Qdefalias_fset_function; | ||
| 91 | |||
| 92 | static void swap_in_symval_forwarding (struct Lisp_Symbol *, | 40 | static void swap_in_symval_forwarding (struct Lisp_Symbol *, |
| 93 | struct Lisp_Buffer_Local_Value *); | 41 | struct Lisp_Buffer_Local_Value *); |
| 94 | 42 | ||
| @@ -3584,10 +3532,6 @@ syms_of_data (void) | |||
| 3584 | PUT_ERROR (Qunderflow_error, Fcons (Qdomain_error, arith_tail), | 3532 | PUT_ERROR (Qunderflow_error, Fcons (Qdomain_error, arith_tail), |
| 3585 | "Arithmetic underflow error"); | 3533 | "Arithmetic underflow error"); |
| 3586 | 3534 | ||
| 3587 | staticpro (&Qnil); | ||
| 3588 | staticpro (&Qt); | ||
| 3589 | staticpro (&Qunbound); | ||
| 3590 | |||
| 3591 | /* Types that type-of returns. */ | 3535 | /* Types that type-of returns. */ |
| 3592 | DEFSYM (Qinteger, "integer"); | 3536 | DEFSYM (Qinteger, "integer"); |
| 3593 | DEFSYM (Qsymbol, "symbol"); | 3537 | DEFSYM (Qsymbol, "symbol"); |
diff --git a/src/dbusbind.c b/src/dbusbind.c index 983b05c4206..3bdec0fa4a6 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Elisp bindings for D-Bus. | 1 | /* Elisp bindings for D-Bus. |
| 2 | Copyright (C) 2007-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2007-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -41,37 +41,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | #endif | 41 | #endif |
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | /* Subroutines. */ | ||
| 45 | static Lisp_Object Qdbus__init_bus; | ||
| 46 | static Lisp_Object Qdbus_get_unique_name; | ||
| 47 | static Lisp_Object Qdbus_message_internal; | ||
| 48 | |||
| 49 | /* D-Bus error symbol. */ | ||
| 50 | static Lisp_Object Qdbus_error; | ||
| 51 | |||
| 52 | /* Lisp symbols of the system and session buses. */ | ||
| 53 | static Lisp_Object QCdbus_system_bus, QCdbus_session_bus; | ||
| 54 | |||
| 55 | /* Lisp symbol for method call timeout. */ | ||
| 56 | static Lisp_Object QCdbus_timeout; | ||
| 57 | |||
| 58 | /* Lisp symbols of D-Bus types. */ | ||
| 59 | static Lisp_Object QCdbus_type_byte, QCdbus_type_boolean; | ||
| 60 | static Lisp_Object QCdbus_type_int16, QCdbus_type_uint16; | ||
| 61 | static Lisp_Object QCdbus_type_int32, QCdbus_type_uint32; | ||
| 62 | static Lisp_Object QCdbus_type_int64, QCdbus_type_uint64; | ||
| 63 | static Lisp_Object QCdbus_type_double, QCdbus_type_string; | ||
| 64 | static Lisp_Object QCdbus_type_object_path, QCdbus_type_signature; | ||
| 65 | #ifdef DBUS_TYPE_UNIX_FD | ||
| 66 | static Lisp_Object QCdbus_type_unix_fd; | ||
| 67 | #endif | ||
| 68 | static Lisp_Object QCdbus_type_array, QCdbus_type_variant; | ||
| 69 | static Lisp_Object QCdbus_type_struct, QCdbus_type_dict_entry; | ||
| 70 | |||
| 71 | /* Lisp symbols of objects in `dbus-registered-objects-table'. */ | ||
| 72 | static Lisp_Object QCdbus_registered_serial, QCdbus_registered_method; | ||
| 73 | static Lisp_Object QCdbus_registered_signal; | ||
| 74 | |||
| 75 | /* Alist of D-Bus buses we are polling for messages. | 44 | /* Alist of D-Bus buses we are polling for messages. |
| 76 | The key is the symbol or string of the bus, and the value is the | 45 | The key is the symbol or string of the bus, and the value is the |
| 77 | connection address. */ | 46 | connection address. */ |
| @@ -1755,15 +1724,21 @@ syms_of_dbusbind (void) | |||
| 1755 | DEFSYM (Qdbus_message_internal, "dbus-message-internal"); | 1724 | DEFSYM (Qdbus_message_internal, "dbus-message-internal"); |
| 1756 | defsubr (&Sdbus_message_internal); | 1725 | defsubr (&Sdbus_message_internal); |
| 1757 | 1726 | ||
| 1727 | /* D-Bus error symbol. */ | ||
| 1758 | DEFSYM (Qdbus_error, "dbus-error"); | 1728 | DEFSYM (Qdbus_error, "dbus-error"); |
| 1759 | Fput (Qdbus_error, Qerror_conditions, | 1729 | Fput (Qdbus_error, Qerror_conditions, |
| 1760 | list2 (Qdbus_error, Qerror)); | 1730 | list2 (Qdbus_error, Qerror)); |
| 1761 | Fput (Qdbus_error, Qerror_message, | 1731 | Fput (Qdbus_error, Qerror_message, |
| 1762 | build_pure_c_string ("D-Bus error")); | 1732 | build_pure_c_string ("D-Bus error")); |
| 1763 | 1733 | ||
| 1734 | /* Lisp symbols of the system and session buses. */ | ||
| 1764 | DEFSYM (QCdbus_system_bus, ":system"); | 1735 | DEFSYM (QCdbus_system_bus, ":system"); |
| 1765 | DEFSYM (QCdbus_session_bus, ":session"); | 1736 | DEFSYM (QCdbus_session_bus, ":session"); |
| 1737 | |||
| 1738 | /* Lisp symbol for method call timeout. */ | ||
| 1766 | DEFSYM (QCdbus_timeout, ":timeout"); | 1739 | DEFSYM (QCdbus_timeout, ":timeout"); |
| 1740 | |||
| 1741 | /* Lisp symbols of D-Bus types. */ | ||
| 1767 | DEFSYM (QCdbus_type_byte, ":byte"); | 1742 | DEFSYM (QCdbus_type_byte, ":byte"); |
| 1768 | DEFSYM (QCdbus_type_boolean, ":boolean"); | 1743 | DEFSYM (QCdbus_type_boolean, ":boolean"); |
| 1769 | DEFSYM (QCdbus_type_int16, ":int16"); | 1744 | DEFSYM (QCdbus_type_int16, ":int16"); |
| @@ -1783,6 +1758,8 @@ syms_of_dbusbind (void) | |||
| 1783 | DEFSYM (QCdbus_type_variant, ":variant"); | 1758 | DEFSYM (QCdbus_type_variant, ":variant"); |
| 1784 | DEFSYM (QCdbus_type_struct, ":struct"); | 1759 | DEFSYM (QCdbus_type_struct, ":struct"); |
| 1785 | DEFSYM (QCdbus_type_dict_entry, ":dict-entry"); | 1760 | DEFSYM (QCdbus_type_dict_entry, ":dict-entry"); |
| 1761 | |||
| 1762 | /* Lisp symbols of objects in `dbus-registered-objects-table'. */ | ||
| 1786 | DEFSYM (QCdbus_registered_serial, ":serial"); | 1763 | DEFSYM (QCdbus_registered_serial, ":serial"); |
| 1787 | DEFSYM (QCdbus_registered_method, ":method"); | 1764 | DEFSYM (QCdbus_registered_method, ":method"); |
| 1788 | DEFSYM (QCdbus_registered_signal, ":signal"); | 1765 | DEFSYM (QCdbus_registered_signal, ":signal"); |
diff --git a/src/decompress.c b/src/decompress.c index f86aa6facbf..b14f0a2cd79 100644 --- a/src/decompress.c +++ b/src/decompress.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Interface to zlib. | 1 | /* Interface to zlib. |
| 2 | Copyright (C) 2013-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2013-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -28,8 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | 28 | ||
| 29 | #include <verify.h> | 29 | #include <verify.h> |
| 30 | 30 | ||
| 31 | static Lisp_Object Qzlib_dll; | ||
| 32 | |||
| 33 | #ifdef WINDOWSNT | 31 | #ifdef WINDOWSNT |
| 34 | # include <windows.h> | 32 | # include <windows.h> |
| 35 | # include "w32.h" | 33 | # include "w32.h" |
diff --git a/src/deps.mk b/src/deps.mk index 3fdbbe6605f..71a5f42d22e 100644 --- a/src/deps.mk +++ b/src/deps.mk | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ### deps.mk --- src/Makefile fragment for GNU Emacs | 1 | ### deps.mk --- src/Makefile fragment for GNU Emacs |
| 2 | 2 | ||
| 3 | ## Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2014 | 3 | ## Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2015 Free Software |
| 4 | ## Free Software Foundation, Inc. | 4 | ## Foundation, Inc. |
| 5 | 5 | ||
| 6 | ## This file is part of GNU Emacs. | 6 | ## This file is part of GNU Emacs. |
| 7 | 7 | ||
diff --git a/src/dired.c b/src/dired.c index 8afba247e61..00f9a5b0765 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Lisp functions for making directory listings. | 1 | /* Lisp functions for making directory listings. |
| 2 | Copyright (C) 1985-1986, 1993-1994, 1999-2014 Free Software | 2 | Copyright (C) 1985-1986, 1993-1994, 1999-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -51,13 +51,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 51 | #include "msdos.h" /* for fstatat */ | 51 | #include "msdos.h" /* for fstatat */ |
| 52 | #endif | 52 | #endif |
| 53 | 53 | ||
| 54 | static Lisp_Object Qdirectory_files; | ||
| 55 | static Lisp_Object Qdirectory_files_and_attributes; | ||
| 56 | static Lisp_Object Qfile_name_completion; | ||
| 57 | static Lisp_Object Qfile_name_all_completions; | ||
| 58 | static Lisp_Object Qfile_attributes; | ||
| 59 | static Lisp_Object Qfile_attributes_lessp; | ||
| 60 | |||
| 61 | static ptrdiff_t scmp (const char *, const char *, ptrdiff_t); | 54 | static ptrdiff_t scmp (const char *, const char *, ptrdiff_t); |
| 62 | static Lisp_Object file_attributes (int, char const *, Lisp_Object); | 55 | static Lisp_Object file_attributes (int, char const *, Lisp_Object); |
| 63 | 56 | ||
| @@ -450,7 +443,6 @@ These are all file names in directory DIRECTORY which begin with FILE. */) | |||
| 450 | } | 443 | } |
| 451 | 444 | ||
| 452 | static int file_name_completion_stat (int, struct dirent *, struct stat *); | 445 | static int file_name_completion_stat (int, struct dirent *, struct stat *); |
| 453 | static Lisp_Object Qdefault_directory; | ||
| 454 | 446 | ||
| 455 | static Lisp_Object | 447 | static Lisp_Object |
| 456 | file_name_completion (Lisp_Object file, Lisp_Object dirname, bool all_flag, | 448 | file_name_completion (Lisp_Object file, Lisp_Object dirname, bool all_flag, |
diff --git a/src/dispextern.h b/src/dispextern.h index 051629641ed..d717473f8c2 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Interface definitions for display code. | 1 | /* Interface definitions for display code. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985, 1993-1994, 1997-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1985, 1993-1994, 1997-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -2907,8 +2907,8 @@ struct redisplay_interface | |||
| 2907 | 2907 | ||
| 2908 | struct image_type | 2908 | struct image_type |
| 2909 | { | 2909 | { |
| 2910 | /* A symbol uniquely identifying the image type, .e.g `jpeg'. */ | 2910 | /* A symbol uniquely identifying the image type, e.g., 'jpeg'. */ |
| 2911 | Lisp_Object *type; | 2911 | struct Lisp_Symbol *type; |
| 2912 | 2912 | ||
| 2913 | /* Check that SPEC is a valid image specification for the given | 2913 | /* Check that SPEC is a valid image specification for the given |
| 2914 | image type. Value is true if SPEC is valid. */ | 2914 | image type. Value is true if SPEC is valid. */ |
| @@ -3222,7 +3222,6 @@ void move_it_in_display_line (struct it *it, | |||
| 3222 | enum move_operation_enum op); | 3222 | enum move_operation_enum op); |
| 3223 | bool in_display_vector_p (struct it *); | 3223 | bool in_display_vector_p (struct it *); |
| 3224 | int frame_mode_line_height (struct frame *); | 3224 | int frame_mode_line_height (struct frame *); |
| 3225 | extern Lisp_Object Qtool_bar; | ||
| 3226 | extern bool redisplaying_p; | 3225 | extern bool redisplaying_p; |
| 3227 | extern bool help_echo_showing_p; | 3226 | extern bool help_echo_showing_p; |
| 3228 | extern Lisp_Object help_echo_string, help_echo_window; | 3227 | extern Lisp_Object help_echo_string, help_echo_window; |
| @@ -3402,7 +3401,6 @@ int face_at_string_position (struct window *w, Lisp_Object string, | |||
| 3402 | int merge_faces (struct frame *, Lisp_Object, int, int); | 3401 | int merge_faces (struct frame *, Lisp_Object, int, int); |
| 3403 | int compute_char_face (struct frame *, int, Lisp_Object); | 3402 | int compute_char_face (struct frame *, int, Lisp_Object); |
| 3404 | void free_all_realized_faces (Lisp_Object); | 3403 | void free_all_realized_faces (Lisp_Object); |
| 3405 | extern Lisp_Object Qforeground_color, Qbackground_color; | ||
| 3406 | extern char unspecified_fg[], unspecified_bg[]; | 3404 | extern char unspecified_fg[], unspecified_bg[]; |
| 3407 | 3405 | ||
| 3408 | /* Defined in xfns.c. */ | 3406 | /* Defined in xfns.c. */ |
| @@ -3492,7 +3490,6 @@ void do_pending_window_change (bool); | |||
| 3492 | void change_frame_size (struct frame *, int, int, bool, bool, bool, bool); | 3490 | void change_frame_size (struct frame *, int, int, bool, bool, bool, bool); |
| 3493 | void init_display (void); | 3491 | void init_display (void); |
| 3494 | void syms_of_display (void); | 3492 | void syms_of_display (void); |
| 3495 | extern Lisp_Object Qredisplay_dont_pause; | ||
| 3496 | extern void spec_glyph_lookup_face (struct window *, GLYPH *); | 3493 | extern void spec_glyph_lookup_face (struct window *, GLYPH *); |
| 3497 | extern void fill_up_frame_row_with_spaces (struct glyph_row *, int); | 3494 | extern void fill_up_frame_row_with_spaces (struct glyph_row *, int); |
| 3498 | 3495 | ||
diff --git a/src/dispnew.c b/src/dispnew.c index 212caa8b7d6..b998e654881 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Updating of data structures for redisplay. | 1 | /* Updating of data structures for redisplay. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1988, 1993-1995, 1997-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1988, 1993-1995, 1997-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -102,8 +102,6 @@ static void set_window_update_flags (struct window *w, bool on_p); | |||
| 102 | 102 | ||
| 103 | bool display_completed; | 103 | bool display_completed; |
| 104 | 104 | ||
| 105 | Lisp_Object Qdisplay_table, Qredisplay_dont_pause; | ||
| 106 | |||
| 107 | /* True means SIGWINCH happened when not safe. */ | 105 | /* True means SIGWINCH happened when not safe. */ |
| 108 | 106 | ||
| 109 | static bool delayed_size_change; | 107 | static bool delayed_size_change; |
| @@ -6191,7 +6189,9 @@ syms_of_display (void) | |||
| 6191 | frame_and_buffer_state = Fmake_vector (make_number (20), Qlambda); | 6189 | frame_and_buffer_state = Fmake_vector (make_number (20), Qlambda); |
| 6192 | staticpro (&frame_and_buffer_state); | 6190 | staticpro (&frame_and_buffer_state); |
| 6193 | 6191 | ||
| 6192 | /* This is the "purpose" slot of a display table. */ | ||
| 6194 | DEFSYM (Qdisplay_table, "display-table"); | 6193 | DEFSYM (Qdisplay_table, "display-table"); |
| 6194 | |||
| 6195 | DEFSYM (Qredisplay_dont_pause, "redisplay-dont-pause"); | 6195 | DEFSYM (Qredisplay_dont_pause, "redisplay-dont-pause"); |
| 6196 | 6196 | ||
| 6197 | DEFVAR_INT ("baud-rate", baud_rate, | 6197 | DEFVAR_INT ("baud-rate", baud_rate, |
diff --git a/src/disptab.h b/src/disptab.h index 81c22b872e4..7afc862312a 100644 --- a/src/disptab.h +++ b/src/disptab.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Things for GLYPHS and glyph tables. | 1 | /* Things for GLYPHS and glyph tables. |
| 2 | Copyright (C) 1993, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -48,9 +48,6 @@ extern struct Lisp_Char_Table *window_display_table (struct window *); | |||
| 48 | /* Defined in indent.c. */ | 48 | /* Defined in indent.c. */ |
| 49 | extern struct Lisp_Char_Table *buffer_display_table (void); | 49 | extern struct Lisp_Char_Table *buffer_display_table (void); |
| 50 | 50 | ||
| 51 | /* This is the `purpose' slot of a display table. */ | ||
| 52 | extern Lisp_Object Qdisplay_table; | ||
| 53 | |||
| 54 | /* Return the current length of the GLYPH table, | 51 | /* Return the current length of the GLYPH table, |
| 55 | or 0 if the table isn't currently valid. */ | 52 | or 0 if the table isn't currently valid. */ |
| 56 | #define GLYPH_TABLE_LENGTH \ | 53 | #define GLYPH_TABLE_LENGTH \ |
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Record indices of function doc strings stored in a file. | 1 | /* Record indices of function doc strings stored in a file. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1993-1995, 1997-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1985-1986, 1993-1995, 1997-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 6 | 7 | ||
| @@ -34,8 +35,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 34 | #include "keyboard.h" | 35 | #include "keyboard.h" |
| 35 | #include "keymap.h" | 36 | #include "keymap.h" |
| 36 | 37 | ||
| 37 | Lisp_Object Qfunction_documentation; | ||
| 38 | |||
| 39 | /* Buffer used for reading from documentation file. */ | 38 | /* Buffer used for reading from documentation file. */ |
| 40 | static char *get_doc_string_buffer; | 39 | static char *get_doc_string_buffer; |
| 41 | static ptrdiff_t get_doc_string_buffer_size; | 40 | static ptrdiff_t get_doc_string_buffer_size; |
diff --git a/src/doprnt.c b/src/doprnt.c index cc4d0e46778..68750f519e6 100644 --- a/src/doprnt.c +++ b/src/doprnt.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Output like sprintf to a buffer of specified size. | 1 | /* Output like sprintf to a buffer of specified size. |
| 2 | Also takes args differently: pass one pointer to the end | 2 | Also takes args differently: pass one pointer to the end |
| 3 | of the format string in addition to the format string itself. | 3 | of the format string in addition to the format string itself. |
| 4 | Copyright (C) 1985, 2001-2014 Free Software Foundation, Inc. | 4 | Copyright (C) 1985, 2001-2015 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
diff --git a/src/dosfns.c b/src/dosfns.c index bdd296bf658..e506e9fbe14 100644 --- a/src/dosfns.c +++ b/src/dosfns.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* MS-DOS specific Lisp utilities. Coded by Manabu Higashida, 1991. | 1 | /* MS-DOS specific Lisp utilities. Coded by Manabu Higashida, 1991. |
| 2 | Major changes May-July 1993 Morten Welinder (only 10% original code left) | 2 | Major changes May-July 1993 Morten Welinder (only 10% original code left) |
| 3 | Copyright (C) 1991, 1993, 1996-1998, 2001-2014 Free Software | 3 | Copyright (C) 1991, 1993, 1996-1998, 2001-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -409,8 +409,6 @@ msdos_stdcolor_idx (const char *name) | |||
| 409 | Lisp_Object | 409 | Lisp_Object |
| 410 | msdos_stdcolor_name (int idx) | 410 | msdos_stdcolor_name (int idx) |
| 411 | { | 411 | { |
| 412 | extern Lisp_Object Qunspecified; | ||
| 413 | |||
| 414 | if (idx == FACE_TTY_DEFAULT_FG_COLOR) | 412 | if (idx == FACE_TTY_DEFAULT_FG_COLOR) |
| 415 | return build_string (unspecified_fg); | 413 | return build_string (unspecified_fg); |
| 416 | else if (idx == FACE_TTY_DEFAULT_BG_COLOR) | 414 | else if (idx == FACE_TTY_DEFAULT_BG_COLOR) |
diff --git a/src/dosfns.h b/src/dosfns.h index f32e6342fc9..1c0d2f755f2 100644 --- a/src/dosfns.h +++ b/src/dosfns.h | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | Coded by Manabu Higashida, 1991. | 2 | Coded by Manabu Higashida, 1991. |
| 3 | Modified by Morten Welinder, 1993-1994. | 3 | Modified by Morten Welinder, 1993-1994. |
| 4 | 4 | ||
| 5 | Copyright (C) 1991, 1994-1995, 1997, 1999, 2001-2014 Free Software | 5 | Copyright (C) 1991, 1994-1995, 1997, 1999, 2001-2015 Free Software |
| 6 | Foundation, Inc. | 6 | Foundation, Inc. |
| 7 | 7 | ||
| 8 | This file is part of GNU Emacs. | 8 | This file is part of GNU Emacs. |
diff --git a/src/editfns.c b/src/editfns.c index 2a7dd9209ae..cd15f6569aa 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Lisp functions pertaining to editing. | 1 | /* Lisp functions pertaining to editing. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1987, 1989, 1993-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1985-1987, 1989, 1993-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -76,16 +76,6 @@ static void update_buffer_properties (ptrdiff_t, ptrdiff_t); | |||
| 76 | # define HAVE_TM_GMTOFF false | 76 | # define HAVE_TM_GMTOFF false |
| 77 | #endif | 77 | #endif |
| 78 | 78 | ||
| 79 | static Lisp_Object Qbuffer_access_fontify_functions; | ||
| 80 | |||
| 81 | /* Symbol for the text property used to mark fields. */ | ||
| 82 | |||
| 83 | Lisp_Object Qfield; | ||
| 84 | |||
| 85 | /* A special value for Qfield properties. */ | ||
| 86 | |||
| 87 | static Lisp_Object Qboundary; | ||
| 88 | |||
| 89 | /* The startup value of the TZ environment variable; null if unset. */ | 79 | /* The startup value of the TZ environment variable; null if unset. */ |
| 90 | static char const *initial_tz; | 80 | static char const *initial_tz; |
| 91 | 81 | ||
| @@ -915,17 +905,11 @@ save_excursion_restore (Lisp_Object info) | |||
| 915 | if (! NILP (tem)) | 905 | if (! NILP (tem)) |
| 916 | { | 906 | { |
| 917 | if (! EQ (omark, nmark)) | 907 | if (! EQ (omark, nmark)) |
| 918 | { | 908 | run_hook (intern ("activate-mark-hook")); |
| 919 | tem = intern ("activate-mark-hook"); | ||
| 920 | Frun_hooks (1, &tem); | ||
| 921 | } | ||
| 922 | } | 909 | } |
| 923 | /* If mark has ceased to be active, run deactivate hook. */ | 910 | /* If mark has ceased to be active, run deactivate hook. */ |
| 924 | else if (! NILP (tem1)) | 911 | else if (! NILP (tem1)) |
| 925 | { | 912 | run_hook (intern ("deactivate-mark-hook")); |
| 926 | tem = intern ("deactivate-mark-hook"); | ||
| 927 | Frun_hooks (1, &tem); | ||
| 928 | } | ||
| 929 | 913 | ||
| 930 | /* If buffer was visible in a window, and a different window was | 914 | /* If buffer was visible in a window, and a different window was |
| 931 | selected, and the old selected window is still showing this | 915 | selected, and the old selected window is still showing this |
| @@ -5009,8 +4993,12 @@ functions if all the text being accessed has this property. */); | |||
| 5009 | defsubr (&Sregion_beginning); | 4993 | defsubr (&Sregion_beginning); |
| 5010 | defsubr (&Sregion_end); | 4994 | defsubr (&Sregion_end); |
| 5011 | 4995 | ||
| 4996 | /* Symbol for the text property used to mark fields. */ | ||
| 5012 | DEFSYM (Qfield, "field"); | 4997 | DEFSYM (Qfield, "field"); |
| 4998 | |||
| 4999 | /* A special value for Qfield properties. */ | ||
| 5013 | DEFSYM (Qboundary, "boundary"); | 5000 | DEFSYM (Qboundary, "boundary"); |
| 5001 | |||
| 5014 | defsubr (&Sfield_beginning); | 5002 | defsubr (&Sfield_beginning); |
| 5015 | defsubr (&Sfield_end); | 5003 | defsubr (&Sfield_end); |
| 5016 | defsubr (&Sfield_string); | 5004 | defsubr (&Sfield_string); |
diff --git a/src/emacs-icon.h b/src/emacs-icon.h index 60d1487e19a..ed4e8709901 100644 --- a/src/emacs-icon.h +++ b/src/emacs-icon.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* XPM */ | 1 | /* XPM */ |
| 2 | /* Emacs icon | 2 | /* Emacs icon |
| 3 | 3 | ||
| 4 | Copyright (C) 2008-2014 Free Software Foundation, Inc. | 4 | Copyright (C) 2008-2015 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | Author: Kentaro Ohkouchi <nanasess@fsm.ne.jp> | 6 | Author: Kentaro Ohkouchi <nanasess@fsm.ne.jp> |
| 7 | 7 | ||
diff --git a/src/emacs.c b/src/emacs.c index b9654d0e03c..d09c3c36c8a 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Fully extensible Emacs, running on Unix, intended for GNU. | 1 | /* Fully extensible Emacs, running on Unix, intended for GNU. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1987, 1993-1995, 1997-1999, 2001-2014 | 3 | Copyright (C) 1985-1987, 1993-1995, 1997-1999, 2001-2015 Free Software |
| 4 | Free Software Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -148,13 +148,6 @@ static bool malloc_using_checking; | |||
| 148 | extern void malloc_enable_thread (void); | 148 | extern void malloc_enable_thread (void); |
| 149 | #endif | 149 | #endif |
| 150 | 150 | ||
| 151 | Lisp_Object Qfile_name_handler_alist; | ||
| 152 | |||
| 153 | Lisp_Object Qrisky_local_variable; | ||
| 154 | |||
| 155 | Lisp_Object Qkill_emacs; | ||
| 156 | static Lisp_Object Qkill_emacs_hook; | ||
| 157 | |||
| 158 | /* If true, Emacs should not attempt to use a window-specific code, | 151 | /* If true, Emacs should not attempt to use a window-specific code, |
| 159 | but instead should use the virtual terminal under which it was started. */ | 152 | but instead should use the virtual terminal under which it was started. */ |
| 160 | bool inhibit_window_system; | 153 | bool inhibit_window_system; |
| @@ -1913,7 +1906,7 @@ all of which are called before Emacs is actually killed. */) | |||
| 1913 | /* Fsignal calls emacs_abort () if it sees that waiting_for_input is | 1906 | /* Fsignal calls emacs_abort () if it sees that waiting_for_input is |
| 1914 | set. */ | 1907 | set. */ |
| 1915 | waiting_for_input = 0; | 1908 | waiting_for_input = 0; |
| 1916 | Frun_hooks (1, &Qkill_emacs_hook); | 1909 | run_hook (Qkill_emacs_hook); |
| 1917 | UNGCPRO; | 1910 | UNGCPRO; |
| 1918 | 1911 | ||
| 1919 | #ifdef HAVE_X_WINDOWS | 1912 | #ifdef HAVE_X_WINDOWS |
diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c index c584dd80e70..abec78fb073 100644 --- a/src/emacsgtkfixed.c +++ b/src/emacsgtkfixed.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* A Gtk Widget that inherits GtkFixed, but can be shrunk. | 1 | /* A Gtk Widget that inherits GtkFixed, but can be shrunk. |
| 2 | This file is only use when compiling with Gtk+ 3. | 2 | This file is only use when compiling with Gtk+ 3. |
| 3 | 3 | ||
| 4 | Copyright (C) 2011-2014 Free Software Foundation, Inc. | 4 | Copyright (C) 2011-2015 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
diff --git a/src/emacsgtkfixed.h b/src/emacsgtkfixed.h index 04cdf25c18e..bcf1cd9072e 100644 --- a/src/emacsgtkfixed.h +++ b/src/emacsgtkfixed.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* A Gtk Widget that inherits GtkFixed, but can be shrunk. | 1 | /* A Gtk Widget that inherits GtkFixed, but can be shrunk. |
| 2 | This file is only use when compiling with Gtk+ 3. | 2 | This file is only use when compiling with Gtk+ 3. |
| 3 | 3 | ||
| 4 | Copyright (C) 2011-2014 Free Software Foundation, Inc. | 4 | Copyright (C) 2011-2015 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
diff --git a/src/epaths.in b/src/epaths.in index 881ea774b2f..66718fd8f74 100644 --- a/src/epaths.in +++ b/src/epaths.in | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Hey Emacs, this is -*- C -*- code! */ | 1 | /* Hey Emacs, this is -*- C -*- code! */ |
| 2 | /* | 2 | /* |
| 3 | Copyright (C) 1993, 1995, 1997, 1999, 2001-2014 Free Software | 3 | Copyright (C) 1993, 1995, 1997, 1999, 2001-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
diff --git a/src/eval.c b/src/eval.c index 8194468a650..7e4b016b236 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Evaluator for GNU Emacs Lisp interpreter. | 1 | /* Evaluator for GNU Emacs Lisp interpreter. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1987, 1993-1995, 1999-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1987, 1993-1995, 1999-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -38,22 +38,6 @@ struct handler *handlerlist; | |||
| 38 | int gcpro_level; | 38 | int gcpro_level; |
| 39 | #endif | 39 | #endif |
| 40 | 40 | ||
| 41 | Lisp_Object Qautoload, Qmacro, Qexit, Qinteractive, Qcommandp; | ||
| 42 | Lisp_Object Qinhibit_quit; | ||
| 43 | Lisp_Object Qand_rest; | ||
| 44 | static Lisp_Object Qand_optional; | ||
| 45 | static Lisp_Object Qinhibit_debugger; | ||
| 46 | static Lisp_Object Qdeclare; | ||
| 47 | Lisp_Object Qinternal_interpreter_environment, Qclosure; | ||
| 48 | |||
| 49 | static Lisp_Object Qdebug; | ||
| 50 | |||
| 51 | /* This holds either the symbol `run-hooks' or nil. | ||
| 52 | It is nil at an early stage of startup, and when Emacs | ||
| 53 | is shutting down. */ | ||
| 54 | |||
| 55 | Lisp_Object Vrun_hooks; | ||
| 56 | |||
| 57 | /* Non-nil means record all fset's and provide's, to be undone | 41 | /* Non-nil means record all fset's and provide's, to be undone |
| 58 | if the file being autoloaded is not fully loaded. | 42 | if the file being autoloaded is not fully loaded. |
| 59 | They are recorded by being consed onto the front of Vautoload_queue: | 43 | They are recorded by being consed onto the front of Vautoload_queue: |
| @@ -61,6 +45,11 @@ Lisp_Object Vrun_hooks; | |||
| 61 | 45 | ||
| 62 | Lisp_Object Vautoload_queue; | 46 | Lisp_Object Vautoload_queue; |
| 63 | 47 | ||
| 48 | /* This holds either the symbol `run-hooks' or nil. | ||
| 49 | It is nil at an early stage of startup, and when Emacs | ||
| 50 | is shutting down. */ | ||
| 51 | Lisp_Object Vrun_hooks; | ||
| 52 | |||
| 64 | /* Current number of specbindings allocated in specpdl, not counting | 53 | /* Current number of specbindings allocated in specpdl, not counting |
| 65 | the dummy entry specpdl[-1]. */ | 54 | the dummy entry specpdl[-1]. */ |
| 66 | 55 | ||
| @@ -2363,14 +2352,10 @@ Instead, use `add-hook' and specify t for the LOCAL argument. | |||
| 2363 | usage: (run-hooks &rest HOOKS) */) | 2352 | usage: (run-hooks &rest HOOKS) */) |
| 2364 | (ptrdiff_t nargs, Lisp_Object *args) | 2353 | (ptrdiff_t nargs, Lisp_Object *args) |
| 2365 | { | 2354 | { |
| 2366 | Lisp_Object hook[1]; | ||
| 2367 | ptrdiff_t i; | 2355 | ptrdiff_t i; |
| 2368 | 2356 | ||
| 2369 | for (i = 0; i < nargs; i++) | 2357 | for (i = 0; i < nargs; i++) |
| 2370 | { | 2358 | run_hook (args[i]); |
| 2371 | hook[0] = args[i]; | ||
| 2372 | run_hook_with_args (1, hook, funcall_nil); | ||
| 2373 | } | ||
| 2374 | 2359 | ||
| 2375 | return Qnil; | 2360 | return Qnil; |
| 2376 | } | 2361 | } |
| @@ -2536,6 +2521,14 @@ run_hook_with_args (ptrdiff_t nargs, Lisp_Object *args, | |||
| 2536 | } | 2521 | } |
| 2537 | } | 2522 | } |
| 2538 | 2523 | ||
| 2524 | /* Run the hook HOOK, giving each function no args. */ | ||
| 2525 | |||
| 2526 | void | ||
| 2527 | run_hook (Lisp_Object hook) | ||
| 2528 | { | ||
| 2529 | Frun_hook_with_args (1, &hook); | ||
| 2530 | } | ||
| 2531 | |||
| 2539 | /* Run the hook HOOK, giving each function the two args ARG1 and ARG2. */ | 2532 | /* Run the hook HOOK, giving each function the two args ARG1 and ARG2. */ |
| 2540 | 2533 | ||
| 2541 | void | 2534 | void |
| @@ -3762,7 +3755,8 @@ alist of active lexical bindings. */); | |||
| 3762 | (Just imagine if someone makes it buffer-local). */ | 3755 | (Just imagine if someone makes it buffer-local). */ |
| 3763 | Funintern (Qinternal_interpreter_environment, Qnil); | 3756 | Funintern (Qinternal_interpreter_environment, Qnil); |
| 3764 | 3757 | ||
| 3765 | DEFSYM (Vrun_hooks, "run-hooks"); | 3758 | Vrun_hooks = intern_c_string ("run-hooks"); |
| 3759 | staticpro (&Vrun_hooks); | ||
| 3766 | 3760 | ||
| 3767 | staticpro (&Vautoload_queue); | 3761 | staticpro (&Vautoload_queue); |
| 3768 | Vautoload_queue = Qnil; | 3762 | Vautoload_queue = Qnil; |
diff --git a/src/fileio.c b/src/fileio.c index 39514ee18e6..15c6f9123a2 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* File IO for GNU Emacs. | 1 | /* File IO for GNU Emacs. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1988, 1993-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1985-1988, 1993-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -113,50 +113,10 @@ static bool auto_save_error_occurred; | |||
| 113 | static bool valid_timestamp_file_system; | 113 | static bool valid_timestamp_file_system; |
| 114 | static dev_t timestamp_file_system; | 114 | static dev_t timestamp_file_system; |
| 115 | 115 | ||
| 116 | /* The symbol bound to coding-system-for-read when | ||
| 117 | insert-file-contents is called for recovering a file. This is not | ||
| 118 | an actual coding system name, but just an indicator to tell | ||
| 119 | insert-file-contents to use `emacs-mule' with a special flag for | ||
| 120 | auto saving and recovering a file. */ | ||
| 121 | static Lisp_Object Qauto_save_coding; | ||
| 122 | |||
| 123 | /* Property name of a file name handler, | ||
| 124 | which gives a list of operations it handles.. */ | ||
| 125 | static Lisp_Object Qoperations; | ||
| 126 | |||
| 127 | /* Lisp functions for translating file formats. */ | ||
| 128 | static Lisp_Object Qformat_decode, Qformat_annotate_function; | ||
| 129 | |||
| 130 | /* Lisp function for setting buffer-file-coding-system and the | ||
| 131 | multibyteness of the current buffer after inserting a file. */ | ||
| 132 | static Lisp_Object Qafter_insert_file_set_coding; | ||
| 133 | |||
| 134 | static Lisp_Object Qwrite_region_annotate_functions; | ||
| 135 | /* Each time an annotation function changes the buffer, the new buffer | 116 | /* Each time an annotation function changes the buffer, the new buffer |
| 136 | is added here. */ | 117 | is added here. */ |
| 137 | static Lisp_Object Vwrite_region_annotation_buffers; | 118 | static Lisp_Object Vwrite_region_annotation_buffers; |
| 138 | 119 | ||
| 139 | static Lisp_Object Qdelete_by_moving_to_trash; | ||
| 140 | |||
| 141 | /* Lisp function for moving files to trash. */ | ||
| 142 | static Lisp_Object Qmove_file_to_trash; | ||
| 143 | |||
| 144 | /* Lisp function for recursively copying directories. */ | ||
| 145 | static Lisp_Object Qcopy_directory; | ||
| 146 | |||
| 147 | /* Lisp function for recursively deleting directories. */ | ||
| 148 | static Lisp_Object Qdelete_directory; | ||
| 149 | |||
| 150 | static Lisp_Object Qsubstitute_env_in_file_name; | ||
| 151 | static Lisp_Object Qget_buffer_window_list; | ||
| 152 | |||
| 153 | Lisp_Object Qfile_error, Qfile_notify_error; | ||
| 154 | static Lisp_Object Qfile_already_exists, Qfile_date_error; | ||
| 155 | static Lisp_Object Qexcl; | ||
| 156 | Lisp_Object Qfile_name_history; | ||
| 157 | |||
| 158 | static Lisp_Object Qcar_less_than_car; | ||
| 159 | |||
| 160 | static bool a_write (int, Lisp_Object, ptrdiff_t, ptrdiff_t, | 120 | static bool a_write (int, Lisp_Object, ptrdiff_t, ptrdiff_t, |
| 161 | Lisp_Object *, struct coding_system *); | 121 | Lisp_Object *, struct coding_system *); |
| 162 | static bool e_write (int, Lisp_Object, ptrdiff_t, ptrdiff_t, | 122 | static bool e_write (int, Lisp_Object, ptrdiff_t, ptrdiff_t, |
| @@ -291,43 +251,6 @@ restore_point_unwind (Lisp_Object location) | |||
| 291 | } | 251 | } |
| 292 | 252 | ||
| 293 | 253 | ||
| 294 | static Lisp_Object Qexpand_file_name; | ||
| 295 | static Lisp_Object Qsubstitute_in_file_name; | ||
| 296 | static Lisp_Object Qdirectory_file_name; | ||
| 297 | static Lisp_Object Qfile_name_directory; | ||
| 298 | static Lisp_Object Qfile_name_nondirectory; | ||
| 299 | static Lisp_Object Qunhandled_file_name_directory; | ||
| 300 | static Lisp_Object Qfile_name_as_directory; | ||
| 301 | static Lisp_Object Qcopy_file; | ||
| 302 | static Lisp_Object Qmake_directory_internal; | ||
| 303 | static Lisp_Object Qmake_directory; | ||
| 304 | static Lisp_Object Qdelete_directory_internal; | ||
| 305 | Lisp_Object Qdelete_file; | ||
| 306 | static Lisp_Object Qrename_file; | ||
| 307 | static Lisp_Object Qadd_name_to_file; | ||
| 308 | static Lisp_Object Qmake_symbolic_link; | ||
| 309 | Lisp_Object Qfile_exists_p; | ||
| 310 | static Lisp_Object Qfile_executable_p; | ||
| 311 | static Lisp_Object Qfile_readable_p; | ||
| 312 | static Lisp_Object Qfile_writable_p; | ||
| 313 | static Lisp_Object Qfile_symlink_p; | ||
| 314 | static Lisp_Object Qaccess_file; | ||
| 315 | Lisp_Object Qfile_directory_p; | ||
| 316 | static Lisp_Object Qfile_regular_p; | ||
| 317 | static Lisp_Object Qfile_accessible_directory_p; | ||
| 318 | static Lisp_Object Qfile_modes; | ||
| 319 | static Lisp_Object Qset_file_modes; | ||
| 320 | static Lisp_Object Qset_file_times; | ||
| 321 | static Lisp_Object Qfile_selinux_context; | ||
| 322 | static Lisp_Object Qset_file_selinux_context; | ||
| 323 | static Lisp_Object Qfile_acl; | ||
| 324 | static Lisp_Object Qset_file_acl; | ||
| 325 | static Lisp_Object Qfile_newer_than_file_p; | ||
| 326 | Lisp_Object Qinsert_file_contents; | ||
| 327 | Lisp_Object Qwrite_region; | ||
| 328 | static Lisp_Object Qverify_visited_file_modtime; | ||
| 329 | static Lisp_Object Qset_visited_file_modtime; | ||
| 330 | |||
| 331 | DEFUN ("find-file-name-handler", Ffind_file_name_handler, | 254 | DEFUN ("find-file-name-handler", Ffind_file_name_handler, |
| 332 | Sfind_file_name_handler, 2, 2, 0, | 255 | Sfind_file_name_handler, 2, 2, 0, |
| 333 | doc: /* Return FILENAME's handler function for OPERATION, if it has one. | 256 | doc: /* Return FILENAME's handler function for OPERATION, if it has one. |
| @@ -4741,8 +4664,8 @@ Optional fifth argument VISIT, if t or a string, means | |||
| 4741 | If VISIT is a string, it is a second file name; | 4664 | If VISIT is a string, it is a second file name; |
| 4742 | the output goes to FILENAME, but the buffer is marked as visiting VISIT. | 4665 | the output goes to FILENAME, but the buffer is marked as visiting VISIT. |
| 4743 | VISIT is also the file name to lock and unlock for clash detection. | 4666 | VISIT is also the file name to lock and unlock for clash detection. |
| 4744 | If VISIT is neither t nor nil nor a string, | 4667 | If VISIT is neither t nor nil nor a string, or if Emacs is in batch mode, |
| 4745 | that means do not display the \"Wrote file\" message. | 4668 | do not display the \"Wrote file\" message. |
| 4746 | The optional sixth arg LOCKNAME, if non-nil, specifies the name to | 4669 | The optional sixth arg LOCKNAME, if non-nil, specifies the name to |
| 4747 | use for locking and unlocking, overriding FILENAME and VISIT. | 4670 | use for locking and unlocking, overriding FILENAME and VISIT. |
| 4748 | The optional seventh arg MUSTBENEW, if non-nil, insists on a check | 4671 | The optional seventh arg MUSTBENEW, if non-nil, insists on a check |
| @@ -5109,7 +5032,7 @@ write_region (Lisp_Object start, Lisp_Object end, Lisp_Object filename, | |||
| 5109 | return Qnil; | 5032 | return Qnil; |
| 5110 | } | 5033 | } |
| 5111 | 5034 | ||
| 5112 | if (!auto_saving) | 5035 | if (!auto_saving && !noninteractive) |
| 5113 | message_with_string ((NUMBERP (append) | 5036 | message_with_string ((NUMBERP (append) |
| 5114 | ? "Updated %s" | 5037 | ? "Updated %s" |
| 5115 | : ! NILP (append) | 5038 | : ! NILP (append) |
| @@ -5866,7 +5789,10 @@ init_fileio (void) | |||
| 5866 | void | 5789 | void |
| 5867 | syms_of_fileio (void) | 5790 | syms_of_fileio (void) |
| 5868 | { | 5791 | { |
| 5792 | /* Property name of a file name handler, | ||
| 5793 | which gives a list of operations it handles. */ | ||
| 5869 | DEFSYM (Qoperations, "operations"); | 5794 | DEFSYM (Qoperations, "operations"); |
| 5795 | |||
| 5870 | DEFSYM (Qexpand_file_name, "expand-file-name"); | 5796 | DEFSYM (Qexpand_file_name, "expand-file-name"); |
| 5871 | DEFSYM (Qsubstitute_in_file_name, "substitute-in-file-name"); | 5797 | DEFSYM (Qsubstitute_in_file_name, "substitute-in-file-name"); |
| 5872 | DEFSYM (Qdirectory_file_name, "directory-file-name"); | 5798 | DEFSYM (Qdirectory_file_name, "directory-file-name"); |
| @@ -5903,6 +5829,12 @@ syms_of_fileio (void) | |||
| 5903 | DEFSYM (Qwrite_region, "write-region"); | 5829 | DEFSYM (Qwrite_region, "write-region"); |
| 5904 | DEFSYM (Qverify_visited_file_modtime, "verify-visited-file-modtime"); | 5830 | DEFSYM (Qverify_visited_file_modtime, "verify-visited-file-modtime"); |
| 5905 | DEFSYM (Qset_visited_file_modtime, "set-visited-file-modtime"); | 5831 | DEFSYM (Qset_visited_file_modtime, "set-visited-file-modtime"); |
| 5832 | |||
| 5833 | /* The symbol bound to coding-system-for-read when | ||
| 5834 | insert-file-contents is called for recovering a file. This is not | ||
| 5835 | an actual coding system name, but just an indicator to tell | ||
| 5836 | insert-file-contents to use `emacs-mule' with a special flag for | ||
| 5837 | auto saving and recovering a file. */ | ||
| 5906 | DEFSYM (Qauto_save_coding, "auto-save-coding"); | 5838 | DEFSYM (Qauto_save_coding, "auto-save-coding"); |
| 5907 | 5839 | ||
| 5908 | DEFSYM (Qfile_name_history, "file-name-history"); | 5840 | DEFSYM (Qfile_name_history, "file-name-history"); |
| @@ -5938,9 +5870,14 @@ On MS-Windows, the value of this variable is largely ignored if | |||
| 5938 | behaves as if file names were encoded in `utf-8'. */); | 5870 | behaves as if file names were encoded in `utf-8'. */); |
| 5939 | Vdefault_file_name_coding_system = Qnil; | 5871 | Vdefault_file_name_coding_system = Qnil; |
| 5940 | 5872 | ||
| 5873 | /* Lisp functions for translating file formats. */ | ||
| 5941 | DEFSYM (Qformat_decode, "format-decode"); | 5874 | DEFSYM (Qformat_decode, "format-decode"); |
| 5942 | DEFSYM (Qformat_annotate_function, "format-annotate-function"); | 5875 | DEFSYM (Qformat_annotate_function, "format-annotate-function"); |
| 5876 | |||
| 5877 | /* Lisp function for setting buffer-file-coding-system and the | ||
| 5878 | multibyteness of the current buffer after inserting a file. */ | ||
| 5943 | DEFSYM (Qafter_insert_file_set_coding, "after-insert-file-set-coding"); | 5879 | DEFSYM (Qafter_insert_file_set_coding, "after-insert-file-set-coding"); |
| 5880 | |||
| 5944 | DEFSYM (Qcar_less_than_car, "car-less-than-car"); | 5881 | DEFSYM (Qcar_less_than_car, "car-less-than-car"); |
| 5945 | 5882 | ||
| 5946 | Fput (Qfile_error, Qerror_conditions, | 5883 | Fput (Qfile_error, Qerror_conditions, |
| @@ -6094,11 +6031,17 @@ When non-nil, certain file deletion commands use the function | |||
| 6094 | This includes interactive calls to `delete-file' and | 6031 | This includes interactive calls to `delete-file' and |
| 6095 | `delete-directory' and the Dired deletion commands. */); | 6032 | `delete-directory' and the Dired deletion commands. */); |
| 6096 | delete_by_moving_to_trash = 0; | 6033 | delete_by_moving_to_trash = 0; |
| 6097 | Qdelete_by_moving_to_trash = intern_c_string ("delete-by-moving-to-trash"); | 6034 | DEFSYM (Qdelete_by_moving_to_trash, "delete-by-moving-to-trash"); |
| 6098 | 6035 | ||
| 6036 | /* Lisp function for moving files to trash. */ | ||
| 6099 | DEFSYM (Qmove_file_to_trash, "move-file-to-trash"); | 6037 | DEFSYM (Qmove_file_to_trash, "move-file-to-trash"); |
| 6038 | |||
| 6039 | /* Lisp function for recursively copying directories. */ | ||
| 6100 | DEFSYM (Qcopy_directory, "copy-directory"); | 6040 | DEFSYM (Qcopy_directory, "copy-directory"); |
| 6041 | |||
| 6042 | /* Lisp function for recursively deleting directories. */ | ||
| 6101 | DEFSYM (Qdelete_directory, "delete-directory"); | 6043 | DEFSYM (Qdelete_directory, "delete-directory"); |
| 6044 | |||
| 6102 | DEFSYM (Qsubstitute_env_in_file_name, "substitute-env-in-file-name"); | 6045 | DEFSYM (Qsubstitute_env_in_file_name, "substitute-env-in-file-name"); |
| 6103 | DEFSYM (Qget_buffer_window_list, "get-buffer-window-list"); | 6046 | DEFSYM (Qget_buffer_window_list, "get-buffer-window-list"); |
| 6104 | 6047 | ||
diff --git a/src/filelock.c b/src/filelock.c index 99215f215e7..8e88435a673 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Lock files for editing. | 1 | /* Lock files for editing. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1987, 1993-1994, 1996, 1998-2014 | 3 | Copyright (C) 1985-1987, 1993-1994, 1996, 1998-2015 Free Software |
| 4 | Free Software Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | Author: Richard King | 6 | Author: Richard King |
| 7 | (according to authors.el) | 7 | (according to authors.el) |
diff --git a/src/firstfile.c b/src/firstfile.c index 0965152422e..aa587924505 100644 --- a/src/firstfile.c +++ b/src/firstfile.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Mark beginning of data space to dump as pure, for GNU Emacs. | 1 | /* Mark beginning of data space to dump as pure, for GNU Emacs. |
| 2 | Copyright (C) 1997, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1997, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/floatfns.c b/src/floatfns.c index 75106a661b7..c68b9bd3a65 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Primitive operations on floating point for GNU Emacs Lisp interpreter. | 1 | /* Primitive operations on floating point for GNU Emacs Lisp interpreter. |
| 2 | 2 | ||
| 3 | Copyright (C) 1988, 1993-1994, 1999, 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1988, 1993-1994, 1999, 2001-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | Author: Wolfgang Rupprecht | 6 | Author: Wolfgang Rupprecht |
| 6 | (according to ack.texi) | 7 | (according to ack.texi) |
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Random utility Lisp functions. | 1 | /* Random utility Lisp functions. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1987, 1993-1995, 1997-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1987, 1993-1995, 1997-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -41,16 +41,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | #include "xterm.h" | 41 | #include "xterm.h" |
| 42 | #endif | 42 | #endif |
| 43 | 43 | ||
| 44 | Lisp_Object Qstring_lessp; | ||
| 45 | static Lisp_Object Qstring_collate_lessp, Qstring_collate_equalp; | ||
| 46 | static Lisp_Object Qprovide, Qrequire; | ||
| 47 | static Lisp_Object Qyes_or_no_p_history; | ||
| 48 | Lisp_Object Qcursor_in_echo_area; | ||
| 49 | static Lisp_Object Qwidget_type; | ||
| 50 | static Lisp_Object Qcodeset, Qdays, Qmonths, Qpaper; | ||
| 51 | |||
| 52 | static Lisp_Object Qmd5, Qsha1, Qsha224, Qsha256, Qsha384, Qsha512; | ||
| 53 | |||
| 54 | static void sort_vector_copy (Lisp_Object, ptrdiff_t, | 44 | static void sort_vector_copy (Lisp_Object, ptrdiff_t, |
| 55 | Lisp_Object [restrict], Lisp_Object [restrict]); | 45 | Lisp_Object [restrict], Lisp_Object [restrict]); |
| 56 | static bool internal_equal (Lisp_Object, Lisp_Object, int, bool, Lisp_Object); | 46 | static bool internal_equal (Lisp_Object, Lisp_Object, int, bool, Lisp_Object); |
| @@ -2788,8 +2778,6 @@ advisable. */) | |||
| 2788 | return ret; | 2778 | return ret; |
| 2789 | } | 2779 | } |
| 2790 | 2780 | ||
| 2791 | static Lisp_Object Qsubfeatures; | ||
| 2792 | |||
| 2793 | DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0, | 2781 | DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0, |
| 2794 | doc: /* Return t if FEATURE is present in this Emacs. | 2782 | doc: /* Return t if FEATURE is present in this Emacs. |
| 2795 | 2783 | ||
| @@ -2808,8 +2796,6 @@ SUBFEATURE can be used to check a specific subfeature of FEATURE. */) | |||
| 2808 | return (NILP (tem)) ? Qnil : Qt; | 2796 | return (NILP (tem)) ? Qnil : Qt; |
| 2809 | } | 2797 | } |
| 2810 | 2798 | ||
| 2811 | static Lisp_Object Qfuncall; | ||
| 2812 | |||
| 2813 | DEFUN ("provide", Fprovide, Sprovide, 1, 2, 0, | 2799 | DEFUN ("provide", Fprovide, Sprovide, 1, 2, 0, |
| 2814 | doc: /* Announce that FEATURE is a feature of the current Emacs. | 2800 | doc: /* Announce that FEATURE is a feature of the current Emacs. |
| 2815 | The optional argument SUBFEATURES should be a list of symbols listing | 2801 | The optional argument SUBFEATURES should be a list of symbols listing |
| @@ -3596,14 +3582,6 @@ base64_decode_1 (const char *from, char *to, ptrdiff_t length, | |||
| 3596 | 3582 | ||
| 3597 | static struct Lisp_Hash_Table *weak_hash_tables; | 3583 | static struct Lisp_Hash_Table *weak_hash_tables; |
| 3598 | 3584 | ||
| 3599 | /* Various symbols. */ | ||
| 3600 | |||
| 3601 | static Lisp_Object Qhash_table_p; | ||
| 3602 | static Lisp_Object Qkey, Qvalue, Qeql; | ||
| 3603 | Lisp_Object Qeq, Qequal; | ||
| 3604 | Lisp_Object QCtest, QCsize, QCrehash_size, QCrehash_threshold, QCweakness; | ||
| 3605 | static Lisp_Object Qhash_table_test, Qkey_or_value, Qkey_and_value; | ||
| 3606 | |||
| 3607 | 3585 | ||
| 3608 | /*********************************************************************** | 3586 | /*********************************************************************** |
| 3609 | Utilities | 3587 | Utilities |
diff --git a/src/font.c b/src/font.c index d10d2280a5b..60134b1de5b 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* font.c -- "Font" primitives. | 1 | /* font.c -- "Font" primitives. |
| 2 | 2 | ||
| 3 | Copyright (C) 2006-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2006-2015 Free Software Foundation, Inc. |
| 4 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 | 4 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 |
| 5 | National Institute of Advanced Industrial Science and Technology (AIST) | 5 | National Institute of Advanced Industrial Science and Technology (AIST) |
| 6 | Registration Number H13PRO009 | 6 | Registration Number H13PRO009 |
| @@ -41,16 +41,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | #include TERM_HEADER | 41 | #include TERM_HEADER |
| 42 | #endif /* HAVE_WINDOW_SYSTEM */ | 42 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 43 | 43 | ||
| 44 | Lisp_Object Qopentype; | ||
| 45 | |||
| 46 | /* Important character set strings. */ | ||
| 47 | Lisp_Object Qascii_0, Qiso8859_1, Qiso10646_1, Qunicode_bmp, Qunicode_sip; | ||
| 48 | |||
| 49 | #define DEFAULT_ENCODING Qiso8859_1 | 44 | #define DEFAULT_ENCODING Qiso8859_1 |
| 50 | 45 | ||
| 51 | /* Unicode category `Cf'. */ | ||
| 52 | static Lisp_Object QCf; | ||
| 53 | |||
| 54 | /* Vector of Vfont_weight_table, Vfont_slant_table, and Vfont_width_table. */ | 46 | /* Vector of Vfont_weight_table, Vfont_slant_table, and Vfont_width_table. */ |
| 55 | static Lisp_Object font_style_table; | 47 | static Lisp_Object font_style_table; |
| 56 | 48 | ||
| @@ -110,21 +102,6 @@ static const struct table_entry width_table[] = | |||
| 110 | { 200, { "ultra-expanded", "ultraexpanded", "wide" }} | 102 | { 200, { "ultra-expanded", "ultraexpanded", "wide" }} |
| 111 | }; | 103 | }; |
| 112 | 104 | ||
| 113 | Lisp_Object QCfoundry; | ||
| 114 | static Lisp_Object QCadstyle, QCregistry; | ||
| 115 | /* Symbols representing keys of font extra info. */ | ||
| 116 | Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript, QCavgwidth; | ||
| 117 | Lisp_Object QCantialias, QCfont_entity; | ||
| 118 | static Lisp_Object QCfc_unknown_spec; | ||
| 119 | /* Symbols representing values of font spacing property. */ | ||
| 120 | static Lisp_Object Qc, Qm, Qd; | ||
| 121 | Lisp_Object Qp; | ||
| 122 | /* Special ADSTYLE properties to avoid fonts used for Latin | ||
| 123 | characters; used in xfont.c and ftfont.c. */ | ||
| 124 | Lisp_Object Qja, Qko; | ||
| 125 | |||
| 126 | static Lisp_Object QCuser_spec; | ||
| 127 | |||
| 128 | /* Alist of font registry symbols and the corresponding charset | 105 | /* Alist of font registry symbols and the corresponding charset |
| 129 | information. The information is retrieved from | 106 | information. The information is retrieved from |
| 130 | Vfont_encoding_alist on demand. | 107 | Vfont_encoding_alist on demand. |
| @@ -309,7 +286,7 @@ font_intern_prop (const char *str, ptrdiff_t len, bool force_symbol) | |||
| 309 | return tem; | 286 | return tem; |
| 310 | name = make_specified_string (str, nchars, len, | 287 | name = make_specified_string (str, nchars, len, |
| 311 | len != nchars && len == nbytes); | 288 | len != nchars && len == nbytes); |
| 312 | return intern_driver (name, obarray, XINT (tem)); | 289 | return intern_driver (name, obarray, tem); |
| 313 | } | 290 | } |
| 314 | 291 | ||
| 315 | /* Return a pixel size of font-spec SPEC on frame F. */ | 292 | /* Return a pixel size of font-spec SPEC on frame F. */ |
| @@ -663,29 +640,29 @@ font_prop_validate_otf (Lisp_Object prop, Lisp_Object val) | |||
| 663 | static const struct | 640 | static const struct |
| 664 | { | 641 | { |
| 665 | /* Pointer to the key symbol. */ | 642 | /* Pointer to the key symbol. */ |
| 666 | Lisp_Object *key; | 643 | struct Lisp_Symbol *key; |
| 667 | /* Function to validate PROP's value VAL, or NULL if any value is | 644 | /* Function to validate PROP's value VAL, or NULL if any value is |
| 668 | ok. The value is VAL or its regularized value if VAL is valid, | 645 | ok. The value is VAL or its regularized value if VAL is valid, |
| 669 | and Qerror if not. */ | 646 | and Qerror if not. */ |
| 670 | Lisp_Object (*validator) (Lisp_Object prop, Lisp_Object val); | 647 | Lisp_Object (*validator) (Lisp_Object prop, Lisp_Object val); |
| 671 | } font_property_table[] = | 648 | } font_property_table[] = |
| 672 | { { &QCtype, font_prop_validate_symbol }, | 649 | { { XSYMBOL_INIT (QCtype), font_prop_validate_symbol }, |
| 673 | { &QCfoundry, font_prop_validate_symbol }, | 650 | { XSYMBOL_INIT (QCfoundry), font_prop_validate_symbol }, |
| 674 | { &QCfamily, font_prop_validate_symbol }, | 651 | { XSYMBOL_INIT (QCfamily), font_prop_validate_symbol }, |
| 675 | { &QCadstyle, font_prop_validate_symbol }, | 652 | { XSYMBOL_INIT (QCadstyle), font_prop_validate_symbol }, |
| 676 | { &QCregistry, font_prop_validate_symbol }, | 653 | { XSYMBOL_INIT (QCregistry), font_prop_validate_symbol }, |
| 677 | { &QCweight, font_prop_validate_style }, | 654 | { XSYMBOL_INIT (QCweight), font_prop_validate_style }, |
| 678 | { &QCslant, font_prop_validate_style }, | 655 | { XSYMBOL_INIT (QCslant), font_prop_validate_style }, |
| 679 | { &QCwidth, font_prop_validate_style }, | 656 | { XSYMBOL_INIT (QCwidth), font_prop_validate_style }, |
| 680 | { &QCsize, font_prop_validate_non_neg }, | 657 | { XSYMBOL_INIT (QCsize), font_prop_validate_non_neg }, |
| 681 | { &QCdpi, font_prop_validate_non_neg }, | 658 | { XSYMBOL_INIT (QCdpi), font_prop_validate_non_neg }, |
| 682 | { &QCspacing, font_prop_validate_spacing }, | 659 | { XSYMBOL_INIT (QCspacing), font_prop_validate_spacing }, |
| 683 | { &QCavgwidth, font_prop_validate_non_neg }, | 660 | { XSYMBOL_INIT (QCavgwidth), font_prop_validate_non_neg }, |
| 684 | /* The order of the above entries must match with enum | 661 | /* The order of the above entries must match with enum |
| 685 | font_property_index. */ | 662 | font_property_index. */ |
| 686 | { &QClang, font_prop_validate_symbol }, | 663 | { XSYMBOL_INIT (QClang), font_prop_validate_symbol }, |
| 687 | { &QCscript, font_prop_validate_symbol }, | 664 | { XSYMBOL_INIT (QCscript), font_prop_validate_symbol }, |
| 688 | { &QCotf, font_prop_validate_otf } | 665 | { XSYMBOL_INIT (QCotf), font_prop_validate_otf } |
| 689 | }; | 666 | }; |
| 690 | 667 | ||
| 691 | /* Return an index number of font property KEY or -1 if KEY is not an | 668 | /* Return an index number of font property KEY or -1 if KEY is not an |
| @@ -697,7 +674,7 @@ get_font_prop_index (Lisp_Object key) | |||
| 697 | int i; | 674 | int i; |
| 698 | 675 | ||
| 699 | for (i = 0; i < ARRAYELTS (font_property_table); i++) | 676 | for (i = 0; i < ARRAYELTS (font_property_table); i++) |
| 700 | if (EQ (key, *font_property_table[i].key)) | 677 | if (EQ (key, make_lisp_symbol (font_property_table[i].key))) |
| 701 | return i; | 678 | return i; |
| 702 | return -1; | 679 | return -1; |
| 703 | } | 680 | } |
| @@ -714,7 +691,7 @@ font_prop_validate (int idx, Lisp_Object prop, Lisp_Object val) | |||
| 714 | if (NILP (val)) | 691 | if (NILP (val)) |
| 715 | return val; | 692 | return val; |
| 716 | if (NILP (prop)) | 693 | if (NILP (prop)) |
| 717 | prop = *font_property_table[idx].key; | 694 | prop = make_lisp_symbol (font_property_table[idx].key); |
| 718 | else | 695 | else |
| 719 | { | 696 | { |
| 720 | idx = get_font_prop_index (prop); | 697 | idx = get_font_prop_index (prop); |
| @@ -5169,19 +5146,21 @@ syms_of_font (void) | |||
| 5169 | 5146 | ||
| 5170 | DEFSYM (Qopentype, "opentype"); | 5147 | DEFSYM (Qopentype, "opentype"); |
| 5171 | 5148 | ||
| 5149 | /* Important character set symbols. */ | ||
| 5172 | DEFSYM (Qascii_0, "ascii-0"); | 5150 | DEFSYM (Qascii_0, "ascii-0"); |
| 5173 | DEFSYM (Qiso8859_1, "iso8859-1"); | 5151 | DEFSYM (Qiso8859_1, "iso8859-1"); |
| 5174 | DEFSYM (Qiso10646_1, "iso10646-1"); | 5152 | DEFSYM (Qiso10646_1, "iso10646-1"); |
| 5175 | DEFSYM (Qunicode_bmp, "unicode-bmp"); | 5153 | DEFSYM (Qunicode_bmp, "unicode-bmp"); |
| 5176 | DEFSYM (Qunicode_sip, "unicode-sip"); | 5154 | DEFSYM (Qunicode_sip, "unicode-sip"); |
| 5177 | 5155 | ||
| 5156 | /* Unicode category `Cf'. */ | ||
| 5178 | DEFSYM (QCf, "Cf"); | 5157 | DEFSYM (QCf, "Cf"); |
| 5179 | 5158 | ||
| 5159 | /* Symbols representing keys of font extra info. */ | ||
| 5180 | DEFSYM (QCotf, ":otf"); | 5160 | DEFSYM (QCotf, ":otf"); |
| 5181 | DEFSYM (QClang, ":lang"); | 5161 | DEFSYM (QClang, ":lang"); |
| 5182 | DEFSYM (QCscript, ":script"); | 5162 | DEFSYM (QCscript, ":script"); |
| 5183 | DEFSYM (QCantialias, ":antialias"); | 5163 | DEFSYM (QCantialias, ":antialias"); |
| 5184 | |||
| 5185 | DEFSYM (QCfoundry, ":foundry"); | 5164 | DEFSYM (QCfoundry, ":foundry"); |
| 5186 | DEFSYM (QCadstyle, ":adstyle"); | 5165 | DEFSYM (QCadstyle, ":adstyle"); |
| 5187 | DEFSYM (QCregistry, ":registry"); | 5166 | DEFSYM (QCregistry, ":registry"); |
| @@ -5192,11 +5171,14 @@ syms_of_font (void) | |||
| 5192 | DEFSYM (QCfont_entity, ":font-entity"); | 5171 | DEFSYM (QCfont_entity, ":font-entity"); |
| 5193 | DEFSYM (QCfc_unknown_spec, ":fc-unknown-spec"); | 5172 | DEFSYM (QCfc_unknown_spec, ":fc-unknown-spec"); |
| 5194 | 5173 | ||
| 5174 | /* Symbols representing values of font spacing property. */ | ||
| 5195 | DEFSYM (Qc, "c"); | 5175 | DEFSYM (Qc, "c"); |
| 5196 | DEFSYM (Qm, "m"); | 5176 | DEFSYM (Qm, "m"); |
| 5197 | DEFSYM (Qp, "p"); | 5177 | DEFSYM (Qp, "p"); |
| 5198 | DEFSYM (Qd, "d"); | 5178 | DEFSYM (Qd, "d"); |
| 5199 | 5179 | ||
| 5180 | /* Special ADSTYLE properties to avoid fonts used for Latin | ||
| 5181 | characters; used in xfont.c and ftfont.c. */ | ||
| 5200 | DEFSYM (Qja, "ja"); | 5182 | DEFSYM (Qja, "ja"); |
| 5201 | DEFSYM (Qko, "ko"); | 5183 | DEFSYM (Qko, "ko"); |
| 5202 | 5184 | ||
diff --git a/src/font.h b/src/font.h index 52783419ebe..d12ae2c09bb 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* font.h -- Interface definition for font handling. | 1 | /* font.h -- Interface definition for font handling. |
| 2 | Copyright (C) 2006-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2006-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 | 3 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 |
| 4 | National Institute of Advanced Industrial Science and Technology (AIST) | 4 | National Institute of Advanced Industrial Science and Technology (AIST) |
| 5 | Registration Number H13PRO009 | 5 | Registration Number H13PRO009 |
| @@ -56,7 +56,6 @@ INLINE_HEADER_BEGIN | |||
| 56 | Note: Only the method `open' of a font-driver can create this | 56 | Note: Only the method `open' of a font-driver can create this |
| 57 | object, and it should never be modified by Lisp. */ | 57 | object, and it should never be modified by Lisp. */ |
| 58 | 58 | ||
| 59 | extern Lisp_Object Qfont_spec, Qfont_entity, Qfont_object; | ||
| 60 | 59 | ||
| 61 | /* An enumerator for each font property. This is used as an index to | 60 | /* An enumerator for each font property. This is used as an index to |
| 62 | the vector of FONT-SPEC and FONT-ENTITY. | 61 | the vector of FONT-SPEC and FONT-ENTITY. |
| @@ -239,17 +238,6 @@ enum font_property_index | |||
| 239 | #define FONT_BASE(f) ((f)->ascent) | 238 | #define FONT_BASE(f) ((f)->ascent) |
| 240 | #define FONT_DESCENT(f) ((f)->descent) | 239 | #define FONT_DESCENT(f) ((f)->descent) |
| 241 | 240 | ||
| 242 | extern Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript; | ||
| 243 | extern Lisp_Object QCavgwidth, QCantialias, QCfont_entity; | ||
| 244 | extern Lisp_Object Qp; | ||
| 245 | |||
| 246 | |||
| 247 | /* Important character set symbols. */ | ||
| 248 | extern Lisp_Object Qascii_0; | ||
| 249 | extern Lisp_Object Qiso8859_1, Qiso10646_1, Qunicode_bmp, Qunicode_sip; | ||
| 250 | |||
| 251 | /* Special ADSTYLE properties to avoid fonts used for Latin characters. */ | ||
| 252 | extern Lisp_Object Qja, Qko; | ||
| 253 | 241 | ||
| 254 | /* Structure for a font-spec. */ | 242 | /* Structure for a font-spec. */ |
| 255 | 243 | ||
| @@ -791,7 +779,6 @@ extern struct font_driver xfont_driver; | |||
| 791 | extern void syms_of_xfont (void); | 779 | extern void syms_of_xfont (void); |
| 792 | extern void syms_of_ftxfont (void); | 780 | extern void syms_of_ftxfont (void); |
| 793 | #ifdef HAVE_XFT | 781 | #ifdef HAVE_XFT |
| 794 | extern Lisp_Object Qxft; | ||
| 795 | extern struct font_driver xftfont_driver; | 782 | extern struct font_driver xftfont_driver; |
| 796 | extern void syms_of_xftfont (void); | 783 | extern void syms_of_xftfont (void); |
| 797 | #endif | 784 | #endif |
| @@ -808,7 +795,6 @@ extern struct font_driver uniscribe_font_driver; | |||
| 808 | extern void syms_of_w32font (void); | 795 | extern void syms_of_w32font (void); |
| 809 | #endif /* HAVE_NTGUI */ | 796 | #endif /* HAVE_NTGUI */ |
| 810 | #ifdef HAVE_NS | 797 | #ifdef HAVE_NS |
| 811 | extern Lisp_Object Qfontsize; | ||
| 812 | extern struct font_driver nsfont_driver; | 798 | extern struct font_driver nsfont_driver; |
| 813 | extern void syms_of_nsfont (void); | 799 | extern void syms_of_nsfont (void); |
| 814 | extern void syms_of_macfont (void); | 800 | extern void syms_of_macfont (void); |
| @@ -818,8 +804,6 @@ extern void syms_of_macfont (void); | |||
| 818 | #define FONT_DEBUG | 804 | #define FONT_DEBUG |
| 819 | #endif | 805 | #endif |
| 820 | 806 | ||
| 821 | extern Lisp_Object QCfoundry; | ||
| 822 | |||
| 823 | extern void font_add_log (const char *, Lisp_Object, Lisp_Object); | 807 | extern void font_add_log (const char *, Lisp_Object, Lisp_Object); |
| 824 | extern void font_deferred_log (const char *, Lisp_Object, Lisp_Object); | 808 | extern void font_deferred_log (const char *, Lisp_Object, Lisp_Object); |
| 825 | 809 | ||
diff --git a/src/fontset.c b/src/fontset.c index ac50be1c925..b257da117b6 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Fontset handler. | 1 | /* Fontset handler. |
| 2 | 2 | ||
| 3 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 4 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 4 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 5 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 5 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 6 | National Institute of Advanced Industrial Science and Technology (AIST) | 6 | National Institute of Advanced Industrial Science and Technology (AIST) |
| @@ -152,11 +152,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 152 | 152 | ||
| 153 | /********** VARIABLES and FUNCTION PROTOTYPES **********/ | 153 | /********** VARIABLES and FUNCTION PROTOTYPES **********/ |
| 154 | 154 | ||
| 155 | static Lisp_Object Qfontset; | ||
| 156 | static Lisp_Object Qfontset_info; | ||
| 157 | static Lisp_Object Qprepend, Qappend; | ||
| 158 | Lisp_Object Qlatin; | ||
| 159 | |||
| 160 | /* Vector containing all fontsets. */ | 155 | /* Vector containing all fontsets. */ |
| 161 | static Lisp_Object Vfontset_table; | 156 | static Lisp_Object Vfontset_table; |
| 162 | 157 | ||
diff --git a/src/fontset.h b/src/fontset.h index 884244e6e61..610394431e1 100644 --- a/src/fontset.h +++ b/src/fontset.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Header for fontset handler. | 1 | /* Header for fontset handler. |
| 2 | Copyright (C) 1998, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1998, 2001-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 4 | 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 5 | National Institute of Advanced Industrial Science and Technology (AIST) | 5 | National Institute of Advanced Industrial Science and Technology (AIST) |
| @@ -36,7 +36,6 @@ extern int fontset_from_font (Lisp_Object); | |||
| 36 | extern int fs_query_fontset (Lisp_Object, int); | 36 | extern int fs_query_fontset (Lisp_Object, int); |
| 37 | extern Lisp_Object list_fontsets (struct frame *, Lisp_Object, int); | 37 | extern Lisp_Object list_fontsets (struct frame *, Lisp_Object, int); |
| 38 | 38 | ||
| 39 | extern Lisp_Object Qlatin; | ||
| 40 | extern Lisp_Object fontset_name (int); | 39 | extern Lisp_Object fontset_name (int); |
| 41 | extern Lisp_Object fontset_ascii (int); | 40 | extern Lisp_Object fontset_ascii (int); |
| 42 | 41 | ||
diff --git a/src/frame.c b/src/frame.c index 82a85bc48e6..fb9bf2e9cbb 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Generic frame functions. | 1 | /* Generic frame functions. |
| 2 | 2 | ||
| 3 | Copyright (C) 1993-1995, 1997, 1999-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1993-1995, 1997, 1999-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -55,76 +55,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 55 | #include "widget.h" | 55 | #include "widget.h" |
| 56 | #endif | 56 | #endif |
| 57 | 57 | ||
| 58 | #ifdef HAVE_NS | ||
| 59 | Lisp_Object Qns_parse_geometry; | ||
| 60 | #endif | ||
| 61 | |||
| 62 | Lisp_Object Qframep, Qframe_live_p; | ||
| 63 | Lisp_Object Qicon, Qmodeline; | ||
| 64 | Lisp_Object Qonly, Qnone; | ||
| 65 | Lisp_Object Qx, Qw32, Qpc, Qns; | ||
| 66 | Lisp_Object Qvisible; | ||
| 67 | Lisp_Object Qdisplay_type; | ||
| 68 | static Lisp_Object Qbackground_mode; | ||
| 69 | Lisp_Object Qnoelisp; | ||
| 70 | |||
| 71 | static Lisp_Object Qx_frame_parameter; | ||
| 72 | Lisp_Object Qx_resource_name; | ||
| 73 | Lisp_Object Qterminal; | ||
| 74 | |||
| 75 | /* Frame parameters (set or reported). */ | ||
| 76 | |||
| 77 | Lisp_Object Qauto_raise, Qauto_lower; | ||
| 78 | Lisp_Object Qborder_color, Qborder_width; | ||
| 79 | Lisp_Object Qcursor_color, Qcursor_type; | ||
| 80 | Lisp_Object Qheight, Qwidth; | ||
| 81 | Lisp_Object Qicon_left, Qicon_top, Qicon_type, Qicon_name; | ||
| 82 | Lisp_Object Qtooltip; | ||
| 83 | Lisp_Object Qinternal_border_width; | ||
| 84 | Lisp_Object Qright_divider_width, Qbottom_divider_width; | ||
| 85 | Lisp_Object Qmouse_color; | ||
| 86 | Lisp_Object Qminibuffer; | ||
| 87 | Lisp_Object Qscroll_bar_width, Qvertical_scroll_bars; | ||
| 88 | Lisp_Object Qscroll_bar_height, Qhorizontal_scroll_bars; | ||
| 89 | Lisp_Object Qvisibility; | ||
| 90 | Lisp_Object Qscroll_bar_foreground, Qscroll_bar_background; | ||
| 91 | Lisp_Object Qscreen_gamma; | ||
| 92 | Lisp_Object Qline_spacing; | ||
| 93 | static Lisp_Object Quser_position, Quser_size; | ||
| 94 | Lisp_Object Qwait_for_wm; | ||
| 95 | static Lisp_Object Qwindow_id; | ||
| 96 | #ifdef HAVE_X_WINDOWS | ||
| 97 | static Lisp_Object Qouter_window_id; | ||
| 98 | #endif | ||
| 99 | Lisp_Object Qparent_id; | ||
| 100 | Lisp_Object Qtitle, Qname; | ||
| 101 | static Lisp_Object Qexplicit_name; | ||
| 102 | Lisp_Object Qunsplittable; | ||
| 103 | Lisp_Object Qmenu_bar_lines, Qtool_bar_lines, Qtool_bar_position; | ||
| 104 | Lisp_Object Qleft_fringe, Qright_fringe; | ||
| 105 | Lisp_Object Qbuffer_predicate; | ||
| 106 | static Lisp_Object Qbuffer_list, Qburied_buffer_list; | ||
| 107 | Lisp_Object Qtty_color_mode; | ||
| 108 | Lisp_Object Qtty, Qtty_type; | ||
| 109 | |||
| 110 | Lisp_Object Qfullscreen, Qfullwidth, Qfullheight, Qfullboth, Qmaximized; | ||
| 111 | Lisp_Object Qsticky; | ||
| 112 | Lisp_Object Qfont_backend; | ||
| 113 | Lisp_Object Qalpha; | ||
| 114 | |||
| 115 | Lisp_Object Qface_set_after_frame_default; | ||
| 116 | |||
| 117 | static Lisp_Object Qfocus_in_hook; | ||
| 118 | static Lisp_Object Qfocus_out_hook; | ||
| 119 | static Lisp_Object Qdelete_frame_functions; | ||
| 120 | static Lisp_Object Qframe_windows_min_size; | ||
| 121 | static Lisp_Object Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource; | ||
| 122 | |||
| 123 | Lisp_Object Qframe_position, Qframe_outer_size, Qframe_inner_size; | ||
| 124 | Lisp_Object Qexternal_border_size, Qtitle_height; | ||
| 125 | Lisp_Object Qmenu_bar_external, Qmenu_bar_size; | ||
| 126 | Lisp_Object Qtool_bar_external, Qtool_bar_size; | ||
| 127 | |||
| 128 | /* The currently selected frame. */ | 58 | /* The currently selected frame. */ |
| 129 | 59 | ||
| 130 | Lisp_Object selected_frame; | 60 | Lisp_Object selected_frame; |
| @@ -334,10 +264,22 @@ predicates which report frame's specific UI-related capabilities. */) | |||
| 334 | return type; | 264 | return type; |
| 335 | } | 265 | } |
| 336 | 266 | ||
| 267 | /* Placeholder used by temacs -nw before window.el is loaded. */ | ||
| 268 | DEFUN ("frame-windows-min-size", Fframe_windows_min_size, | ||
| 269 | Sframe_windows_min_size, 4, 4, 0, | ||
| 270 | doc: /* */) | ||
| 271 | (Lisp_Object frame, Lisp_Object horizontal, | ||
| 272 | Lisp_Object ignore, Lisp_Object pixelwise) | ||
| 273 | { | ||
| 274 | return make_number (0); | ||
| 275 | } | ||
| 276 | |||
| 337 | static int | 277 | static int |
| 338 | frame_windows_min_size (Lisp_Object frame, Lisp_Object horizontal, Lisp_Object ignore, Lisp_Object pixelwise) | 278 | frame_windows_min_size (Lisp_Object frame, Lisp_Object horizontal, |
| 279 | Lisp_Object ignore, Lisp_Object pixelwise) | ||
| 339 | { | 280 | { |
| 340 | return XINT (call4 (Qframe_windows_min_size, frame, horizontal, ignore, pixelwise)); | 281 | return XINT (call4 (Qframe_windows_min_size, frame, horizontal, |
| 282 | ignore, pixelwise)); | ||
| 341 | } | 283 | } |
| 342 | 284 | ||
| 343 | 285 | ||
| @@ -1209,7 +1151,7 @@ to that frame. */) | |||
| 1209 | { | 1151 | { |
| 1210 | /* Preserve prefix arg that the command loop just cleared. */ | 1152 | /* Preserve prefix arg that the command loop just cleared. */ |
| 1211 | kset_prefix_arg (current_kboard, Vcurrent_prefix_arg); | 1153 | kset_prefix_arg (current_kboard, Vcurrent_prefix_arg); |
| 1212 | Frun_hooks (1, &Qmouse_leave_buffer_hook); | 1154 | run_hook (Qmouse_leave_buffer_hook); |
| 1213 | /* `switch-frame' implies a focus in. */ | 1155 | /* `switch-frame' implies a focus in. */ |
| 1214 | call1 (intern ("handle-focus-in"), event); | 1156 | call1 (intern ("handle-focus-in"), event); |
| 1215 | return do_switch_frame (event, 0, 0, Qnil); | 1157 | return do_switch_frame (event, 0, 0, Qnil); |
| @@ -2983,48 +2925,48 @@ or bottommost possible position (that stays within the screen). */) | |||
| 2983 | 2925 | ||
| 2984 | struct frame_parm_table { | 2926 | struct frame_parm_table { |
| 2985 | const char *name; | 2927 | const char *name; |
| 2986 | Lisp_Object *variable; | 2928 | struct Lisp_Symbol *sym; |
| 2987 | }; | 2929 | }; |
| 2988 | 2930 | ||
| 2989 | static const struct frame_parm_table frame_parms[] = | 2931 | static const struct frame_parm_table frame_parms[] = |
| 2990 | { | 2932 | { |
| 2991 | {"auto-raise", &Qauto_raise}, | 2933 | {"auto-raise", XSYMBOL_INIT (Qauto_raise)}, |
| 2992 | {"auto-lower", &Qauto_lower}, | 2934 | {"auto-lower", XSYMBOL_INIT (Qauto_lower)}, |
| 2993 | {"background-color", 0}, | 2935 | {"background-color", 0}, |
| 2994 | {"border-color", &Qborder_color}, | 2936 | {"border-color", XSYMBOL_INIT (Qborder_color)}, |
| 2995 | {"border-width", &Qborder_width}, | 2937 | {"border-width", XSYMBOL_INIT (Qborder_width)}, |
| 2996 | {"cursor-color", &Qcursor_color}, | 2938 | {"cursor-color", XSYMBOL_INIT (Qcursor_color)}, |
| 2997 | {"cursor-type", &Qcursor_type}, | 2939 | {"cursor-type", XSYMBOL_INIT (Qcursor_type)}, |
| 2998 | {"font", 0}, | 2940 | {"font", 0}, |
| 2999 | {"foreground-color", 0}, | 2941 | {"foreground-color", 0}, |
| 3000 | {"icon-name", &Qicon_name}, | 2942 | {"icon-name", XSYMBOL_INIT (Qicon_name)}, |
| 3001 | {"icon-type", &Qicon_type}, | 2943 | {"icon-type", XSYMBOL_INIT (Qicon_type)}, |
| 3002 | {"internal-border-width", &Qinternal_border_width}, | 2944 | {"internal-border-width", XSYMBOL_INIT (Qinternal_border_width)}, |
| 3003 | {"right-divider-width", &Qright_divider_width}, | 2945 | {"right-divider-width", XSYMBOL_INIT (Qright_divider_width)}, |
| 3004 | {"bottom-divider-width", &Qbottom_divider_width}, | 2946 | {"bottom-divider-width", XSYMBOL_INIT (Qbottom_divider_width)}, |
| 3005 | {"menu-bar-lines", &Qmenu_bar_lines}, | 2947 | {"menu-bar-lines", XSYMBOL_INIT (Qmenu_bar_lines)}, |
| 3006 | {"mouse-color", &Qmouse_color}, | 2948 | {"mouse-color", XSYMBOL_INIT (Qmouse_color)}, |
| 3007 | {"name", &Qname}, | 2949 | {"name", XSYMBOL_INIT (Qname)}, |
| 3008 | {"scroll-bar-width", &Qscroll_bar_width}, | 2950 | {"scroll-bar-width", XSYMBOL_INIT (Qscroll_bar_width)}, |
| 3009 | {"scroll-bar-height", &Qscroll_bar_height}, | 2951 | {"scroll-bar-height", XSYMBOL_INIT (Qscroll_bar_height)}, |
| 3010 | {"title", &Qtitle}, | 2952 | {"title", XSYMBOL_INIT (Qtitle)}, |
| 3011 | {"unsplittable", &Qunsplittable}, | 2953 | {"unsplittable", XSYMBOL_INIT (Qunsplittable)}, |
| 3012 | {"vertical-scroll-bars", &Qvertical_scroll_bars}, | 2954 | {"vertical-scroll-bars", XSYMBOL_INIT (Qvertical_scroll_bars)}, |
| 3013 | {"horizontal-scroll-bars", &Qhorizontal_scroll_bars}, | 2955 | {"horizontal-scroll-bars", XSYMBOL_INIT (Qhorizontal_scroll_bars)}, |
| 3014 | {"visibility", &Qvisibility}, | 2956 | {"visibility", XSYMBOL_INIT (Qvisibility)}, |
| 3015 | {"tool-bar-lines", &Qtool_bar_lines}, | 2957 | {"tool-bar-lines", XSYMBOL_INIT (Qtool_bar_lines)}, |
| 3016 | {"scroll-bar-foreground", &Qscroll_bar_foreground}, | 2958 | {"scroll-bar-foreground", XSYMBOL_INIT (Qscroll_bar_foreground)}, |
| 3017 | {"scroll-bar-background", &Qscroll_bar_background}, | 2959 | {"scroll-bar-background", XSYMBOL_INIT (Qscroll_bar_background)}, |
| 3018 | {"screen-gamma", &Qscreen_gamma}, | 2960 | {"screen-gamma", XSYMBOL_INIT (Qscreen_gamma)}, |
| 3019 | {"line-spacing", &Qline_spacing}, | 2961 | {"line-spacing", XSYMBOL_INIT (Qline_spacing)}, |
| 3020 | {"left-fringe", &Qleft_fringe}, | 2962 | {"left-fringe", XSYMBOL_INIT (Qleft_fringe)}, |
| 3021 | {"right-fringe", &Qright_fringe}, | 2963 | {"right-fringe", XSYMBOL_INIT (Qright_fringe)}, |
| 3022 | {"wait-for-wm", &Qwait_for_wm}, | 2964 | {"wait-for-wm", XSYMBOL_INIT (Qwait_for_wm)}, |
| 3023 | {"fullscreen", &Qfullscreen}, | 2965 | {"fullscreen", XSYMBOL_INIT (Qfullscreen)}, |
| 3024 | {"font-backend", &Qfont_backend}, | 2966 | {"font-backend", XSYMBOL_INIT (Qfont_backend)}, |
| 3025 | {"alpha", &Qalpha}, | 2967 | {"alpha", XSYMBOL_INIT (Qalpha)}, |
| 3026 | {"sticky", &Qsticky}, | 2968 | {"sticky", XSYMBOL_INIT (Qsticky)}, |
| 3027 | {"tool-bar-position", &Qtool_bar_position}, | 2969 | {"tool-bar-position", XSYMBOL_INIT (Qtool_bar_position)}, |
| 3028 | }; | 2970 | }; |
| 3029 | 2971 | ||
| 3030 | #ifdef HAVE_WINDOW_SYSTEM | 2972 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -3219,7 +3161,7 @@ x_set_frame_parameters (struct frame *f, Lisp_Object alist) | |||
| 3219 | 3161 | ||
| 3220 | if ((width_change && width != FRAME_TEXT_WIDTH (f)) | 3162 | if ((width_change && width != FRAME_TEXT_WIDTH (f)) |
| 3221 | || (height_change && height != FRAME_TEXT_HEIGHT (f)) | 3163 | || (height_change && height != FRAME_TEXT_HEIGHT (f)) |
| 3222 | || f->new_height || f->new_width) | 3164 | || (f->can_x_set_window_size && (f->new_height || f->new_width))) |
| 3223 | { | 3165 | { |
| 3224 | /* If necessary provide default values for HEIGHT and WIDTH. Do | 3166 | /* If necessary provide default values for HEIGHT and WIDTH. Do |
| 3225 | that here since otherwise a size change implied by an | 3167 | that here since otherwise a size change implied by an |
| @@ -4842,17 +4784,49 @@ syms_of_frame (void) | |||
| 4842 | DEFSYM (Qns_parse_geometry, "ns-parse-geometry"); | 4784 | DEFSYM (Qns_parse_geometry, "ns-parse-geometry"); |
| 4843 | #endif | 4785 | #endif |
| 4844 | 4786 | ||
| 4787 | DEFSYM (Qalpha, "alpha"); | ||
| 4788 | DEFSYM (Qauto_lower, "auto-lower"); | ||
| 4789 | DEFSYM (Qauto_raise, "auto-raise"); | ||
| 4790 | DEFSYM (Qborder_color, "border-color"); | ||
| 4791 | DEFSYM (Qborder_width, "border-width"); | ||
| 4792 | DEFSYM (Qbottom_divider_width, "bottom-divider-width"); | ||
| 4793 | DEFSYM (Qcursor_color, "cursor-color"); | ||
| 4794 | DEFSYM (Qcursor_type, "cursor-type"); | ||
| 4795 | DEFSYM (Qfont_backend, "font-backend"); | ||
| 4796 | DEFSYM (Qfullscreen, "fullscreen"); | ||
| 4797 | DEFSYM (Qhorizontal_scroll_bars, "horizontal-scroll-bars"); | ||
| 4798 | DEFSYM (Qicon_name, "icon-name"); | ||
| 4799 | DEFSYM (Qicon_type, "icon-type"); | ||
| 4800 | DEFSYM (Qinternal_border_width, "internal-border-width"); | ||
| 4801 | DEFSYM (Qleft_fringe, "left-fringe"); | ||
| 4802 | DEFSYM (Qline_spacing, "line-spacing"); | ||
| 4803 | DEFSYM (Qmenu_bar_lines, "menu-bar-lines"); | ||
| 4804 | DEFSYM (Qmouse_color, "mouse-color"); | ||
| 4805 | DEFSYM (Qname, "name"); | ||
| 4806 | DEFSYM (Qright_divider_width, "right-divider-width"); | ||
| 4807 | DEFSYM (Qright_fringe, "right-fringe"); | ||
| 4808 | DEFSYM (Qscreen_gamma, "screen-gamma"); | ||
| 4809 | DEFSYM (Qscroll_bar_background, "scroll-bar-background"); | ||
| 4810 | DEFSYM (Qscroll_bar_foreground, "scroll-bar-foreground"); | ||
| 4811 | DEFSYM (Qscroll_bar_height, "scroll-bar-height"); | ||
| 4812 | DEFSYM (Qscroll_bar_width, "scroll-bar-width"); | ||
| 4813 | DEFSYM (Qsticky, "sticky"); | ||
| 4814 | DEFSYM (Qtitle, "title"); | ||
| 4815 | DEFSYM (Qtool_bar_lines, "tool-bar-lines"); | ||
| 4816 | DEFSYM (Qtool_bar_position, "tool-bar-position"); | ||
| 4817 | DEFSYM (Qunsplittable, "unsplittable"); | ||
| 4818 | DEFSYM (Qvertical_scroll_bars, "vertical-scroll-bars"); | ||
| 4819 | DEFSYM (Qvisibility, "visibility"); | ||
| 4820 | DEFSYM (Qwait_for_wm, "wait-for-wm"); | ||
| 4821 | |||
| 4845 | { | 4822 | { |
| 4846 | int i; | 4823 | int i; |
| 4847 | 4824 | ||
| 4848 | for (i = 0; i < ARRAYELTS (frame_parms); i++) | 4825 | for (i = 0; i < ARRAYELTS (frame_parms); i++) |
| 4849 | { | 4826 | { |
| 4850 | Lisp_Object v = intern_c_string (frame_parms[i].name); | 4827 | Lisp_Object v = (frame_parms[i].sym |
| 4851 | if (frame_parms[i].variable) | 4828 | ? make_lisp_symbol (frame_parms[i].sym) |
| 4852 | { | 4829 | : intern_c_string (frame_parms[i].name)); |
| 4853 | *frame_parms[i].variable = v; | ||
| 4854 | staticpro (frame_parms[i].variable); | ||
| 4855 | } | ||
| 4856 | Fput (v, Qx_frame_parameter, make_number (i)); | 4830 | Fput (v, Qx_frame_parameter, make_number (i)); |
| 4857 | } | 4831 | } |
| 4858 | } | 4832 | } |
| @@ -5081,6 +5055,7 @@ even if this option is non-nil. */); | |||
| 5081 | defsubr (&Sframep); | 5055 | defsubr (&Sframep); |
| 5082 | defsubr (&Sframe_live_p); | 5056 | defsubr (&Sframe_live_p); |
| 5083 | defsubr (&Swindow_system); | 5057 | defsubr (&Swindow_system); |
| 5058 | defsubr (&Sframe_windows_min_size); | ||
| 5084 | defsubr (&Smake_terminal_frame); | 5059 | defsubr (&Smake_terminal_frame); |
| 5085 | defsubr (&Shandle_switch_frame); | 5060 | defsubr (&Shandle_switch_frame); |
| 5086 | defsubr (&Sselect_frame); | 5061 | defsubr (&Sselect_frame); |
diff --git a/src/frame.h b/src/frame.h index 1aa88042ad3..d1ed4d4a67e 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Define frame-object for GNU Emacs. | 1 | /* Define frame-object for GNU Emacs. |
| 2 | Copyright (C) 1993-1994, 1999-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993-1994, 1999-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -1095,11 +1095,6 @@ SET_FRAME_VISIBLE (struct frame *f, int v) | |||
| 1095 | (f)->iconified = (eassert (0 <= (i) && (i) <= 1), (i)) | 1095 | (f)->iconified = (eassert (0 <= (i) && (i) <= 1), (i)) |
| 1096 | 1096 | ||
| 1097 | extern Lisp_Object selected_frame; | 1097 | extern Lisp_Object selected_frame; |
| 1098 | extern Lisp_Object Qframep, Qframe_live_p; | ||
| 1099 | extern Lisp_Object Qtty, Qtty_type; | ||
| 1100 | extern Lisp_Object Qtty_color_mode; | ||
| 1101 | extern Lisp_Object Qterminal; | ||
| 1102 | extern Lisp_Object Qnoelisp; | ||
| 1103 | 1098 | ||
| 1104 | extern struct frame *decode_window_system_frame (Lisp_Object); | 1099 | extern struct frame *decode_window_system_frame (Lisp_Object); |
| 1105 | extern struct frame *decode_live_frame (Lisp_Object); | 1100 | extern struct frame *decode_live_frame (Lisp_Object); |
| @@ -1344,51 +1339,6 @@ extern Lisp_Object Vframe_list; | |||
| 1344 | Frame Parameters | 1339 | Frame Parameters |
| 1345 | ***********************************************************************/ | 1340 | ***********************************************************************/ |
| 1346 | 1341 | ||
| 1347 | extern Lisp_Object Qauto_raise, Qauto_lower; | ||
| 1348 | extern Lisp_Object Qborder_color, Qborder_width; | ||
| 1349 | extern Lisp_Object Qbuffer_predicate; | ||
| 1350 | extern Lisp_Object Qcursor_color, Qcursor_type; | ||
| 1351 | extern Lisp_Object Qfont; | ||
| 1352 | extern Lisp_Object Qicon, Qicon_name, Qicon_type, Qicon_left, Qicon_top; | ||
| 1353 | extern Lisp_Object Qinternal_border_width; | ||
| 1354 | extern Lisp_Object Qright_divider_width, Qbottom_divider_width; | ||
| 1355 | extern Lisp_Object Qtooltip; | ||
| 1356 | extern Lisp_Object Qmenu_bar_lines, Qtool_bar_lines, Qtool_bar_position; | ||
| 1357 | extern Lisp_Object Qmouse_color; | ||
| 1358 | extern Lisp_Object Qname, Qtitle; | ||
| 1359 | extern Lisp_Object Qparent_id; | ||
| 1360 | extern Lisp_Object Qunsplittable, Qvisibility; | ||
| 1361 | extern Lisp_Object Qscroll_bar_width, Qvertical_scroll_bars; | ||
| 1362 | extern Lisp_Object Qscroll_bar_height, Qhorizontal_scroll_bars; | ||
| 1363 | extern Lisp_Object Qscroll_bar_foreground, Qscroll_bar_background; | ||
| 1364 | extern Lisp_Object Qscreen_gamma; | ||
| 1365 | extern Lisp_Object Qline_spacing; | ||
| 1366 | extern Lisp_Object Qwait_for_wm; | ||
| 1367 | extern Lisp_Object Qfullscreen; | ||
| 1368 | extern Lisp_Object Qfullwidth, Qfullheight, Qfullboth, Qmaximized; | ||
| 1369 | extern Lisp_Object Qsticky; | ||
| 1370 | extern Lisp_Object Qfont_backend; | ||
| 1371 | extern Lisp_Object Qalpha; | ||
| 1372 | |||
| 1373 | extern Lisp_Object Qleft_fringe, Qright_fringe; | ||
| 1374 | extern Lisp_Object Qheight, Qwidth; | ||
| 1375 | extern Lisp_Object Qminibuffer, Qmodeline; | ||
| 1376 | extern Lisp_Object Qx, Qw32, Qpc, Qns; | ||
| 1377 | extern Lisp_Object Qvisible; | ||
| 1378 | extern Lisp_Object Qdisplay_type; | ||
| 1379 | |||
| 1380 | extern Lisp_Object Qx_resource_name; | ||
| 1381 | |||
| 1382 | extern Lisp_Object Qtop, Qbox, Qbottom; | ||
| 1383 | extern Lisp_Object Qdisplay; | ||
| 1384 | |||
| 1385 | extern Lisp_Object Qframe_position, Qframe_outer_size, Qframe_inner_size; | ||
| 1386 | extern Lisp_Object Qexternal_border_size, Qtitle_height; | ||
| 1387 | extern Lisp_Object Qmenu_bar_external, Qmenu_bar_size; | ||
| 1388 | extern Lisp_Object Qtool_bar_external, Qtool_bar_size; | ||
| 1389 | |||
| 1390 | extern Lisp_Object Qrun_hook_with_args; | ||
| 1391 | |||
| 1392 | #ifdef HAVE_WINDOW_SYSTEM | 1342 | #ifdef HAVE_WINDOW_SYSTEM |
| 1393 | 1343 | ||
| 1394 | /* The class of this X application. */ | 1344 | /* The class of this X application. */ |
| @@ -1399,7 +1349,6 @@ extern void x_set_scroll_bar_default_height (struct frame *); | |||
| 1399 | extern void x_set_offset (struct frame *, int, int, int); | 1349 | extern void x_set_offset (struct frame *, int, int, int); |
| 1400 | extern void x_wm_set_size_hint (struct frame *f, long flags, bool user_position); | 1350 | extern void x_wm_set_size_hint (struct frame *f, long flags, bool user_position); |
| 1401 | extern Lisp_Object x_new_font (struct frame *, Lisp_Object, int); | 1351 | extern Lisp_Object x_new_font (struct frame *, Lisp_Object, int); |
| 1402 | extern Lisp_Object Qface_set_after_frame_default; | ||
| 1403 | extern void x_set_frame_parameters (struct frame *, Lisp_Object); | 1352 | extern void x_set_frame_parameters (struct frame *, Lisp_Object); |
| 1404 | extern void x_set_fullscreen (struct frame *, Lisp_Object, Lisp_Object); | 1353 | extern void x_set_fullscreen (struct frame *, Lisp_Object, Lisp_Object); |
| 1405 | extern void x_set_line_spacing (struct frame *, Lisp_Object, Lisp_Object); | 1354 | extern void x_set_line_spacing (struct frame *, Lisp_Object, Lisp_Object); |
diff --git a/src/fringe.c b/src/fringe.c index 3c0e883b2e9..c7262d19336 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Fringe handling (split from xdisp.c). | 1 | /* Fringe handling (split from xdisp.c). |
| 2 | Copyright (C) 1985-1988, 1993-1995, 1997-2014 Free Software | 2 | Copyright (C) 1985-1988, 1993-1995, 1997-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -65,10 +65,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 65 | must specify physical bitmap symbols. | 65 | must specify physical bitmap symbols. |
| 66 | */ | 66 | */ |
| 67 | 67 | ||
| 68 | static Lisp_Object Qtruncation, Qcontinuation, Qoverlay_arrow; | ||
| 69 | static Lisp_Object Qempty_line, Qtop_bottom; | ||
| 70 | static Lisp_Object Qhollow_small; | ||
| 71 | |||
| 72 | enum fringe_bitmap_align | 68 | enum fringe_bitmap_align |
| 73 | { | 69 | { |
| 74 | ALIGN_BITMAP_CENTER = 0, | 70 | ALIGN_BITMAP_CENTER = 0, |
diff --git a/src/ftfont.c b/src/ftfont.c index 4c12ef5d3af..9707b6c1b71 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* ftfont.c -- FreeType font driver. | 1 | /* ftfont.c -- FreeType font driver. |
| 2 | Copyright (C) 2006-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2006-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 | 3 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 |
| 4 | National Institute of Advanced Industrial Science and Technology (AIST) | 4 | National Institute of Advanced Industrial Science and Technology (AIST) |
| 5 | Registration Number H13PRO009 | 5 | Registration Number H13PRO009 |
| @@ -38,12 +38,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 38 | #include "font.h" | 38 | #include "font.h" |
| 39 | #include "ftfont.h" | 39 | #include "ftfont.h" |
| 40 | 40 | ||
| 41 | /* Symbolic type of this font-driver. */ | ||
| 42 | static Lisp_Object Qfreetype; | ||
| 43 | |||
| 44 | /* Fontconfig's generic families and their aliases. */ | ||
| 45 | static Lisp_Object Qmonospace, Qsans_serif, Qserif, Qmono, Qsans, Qsans__serif; | ||
| 46 | |||
| 47 | /* Flag to tell if FcInit is already called or not. */ | 41 | /* Flag to tell if FcInit is already called or not. */ |
| 48 | static bool fc_initialized; | 42 | static bool fc_initialized; |
| 49 | 43 | ||
| @@ -2667,7 +2661,10 @@ ftfont_filter_properties (Lisp_Object font, Lisp_Object alist) | |||
| 2667 | void | 2661 | void |
| 2668 | syms_of_ftfont (void) | 2662 | syms_of_ftfont (void) |
| 2669 | { | 2663 | { |
| 2664 | /* Symbolic type of this font-driver. */ | ||
| 2670 | DEFSYM (Qfreetype, "freetype"); | 2665 | DEFSYM (Qfreetype, "freetype"); |
| 2666 | |||
| 2667 | /* Fontconfig's generic families and their aliases. */ | ||
| 2671 | DEFSYM (Qmonospace, "monospace"); | 2668 | DEFSYM (Qmonospace, "monospace"); |
| 2672 | DEFSYM (Qsans_serif, "sans-serif"); | 2669 | DEFSYM (Qsans_serif, "sans-serif"); |
| 2673 | DEFSYM (Qserif, "serif"); | 2670 | DEFSYM (Qserif, "serif"); |
diff --git a/src/ftxfont.c b/src/ftxfont.c index 7e4608b9b85..cd2bf3e7415 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* ftxfont.c -- FreeType font driver on X (without using XFT). | 1 | /* ftxfont.c -- FreeType font driver on X (without using XFT). |
| 2 | Copyright (C) 2006-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2006-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 | 3 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 |
| 4 | National Institute of Advanced Industrial Science and Technology (AIST) | 4 | National Institute of Advanced Industrial Science and Technology (AIST) |
| 5 | Registration Number H13PRO009 | 5 | Registration Number H13PRO009 |
| @@ -35,8 +35,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 35 | 35 | ||
| 36 | /* FTX font driver. */ | 36 | /* FTX font driver. */ |
| 37 | 37 | ||
| 38 | static Lisp_Object Qftx; | ||
| 39 | |||
| 40 | struct font_driver ftxfont_driver; | 38 | struct font_driver ftxfont_driver; |
| 41 | 39 | ||
| 42 | struct ftxfont_frame_data | 40 | struct ftxfont_frame_data |
diff --git a/src/getpagesize.h b/src/getpagesize.h index 496bf214aaa..75dd99f4c27 100644 --- a/src/getpagesize.h +++ b/src/getpagesize.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Emulate getpagesize on systems that lack it. | 1 | /* Emulate getpagesize on systems that lack it. |
| 2 | Copyright (C) 1986, 1992, 1995, 2001-2014 Free Software Foundation, | 2 | Copyright (C) 1986, 1992, 1995, 2001-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
diff --git a/src/gfilenotify.c b/src/gfilenotify.c index 9882f27d33a..fe25ce9353e 100644 --- a/src/gfilenotify.c +++ b/src/gfilenotify.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Filesystem notifications support with glib API. | 1 | /* Filesystem notifications support with glib API. |
| 2 | Copyright (C) 2013-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2013-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -29,24 +29,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | #include "process.h" | 29 | #include "process.h" |
| 30 | 30 | ||
| 31 | 31 | ||
| 32 | /* Subroutines. */ | ||
| 33 | static Lisp_Object Qgfile_add_watch; | ||
| 34 | static Lisp_Object Qgfile_rm_watch; | ||
| 35 | |||
| 36 | /* Filter objects. */ | ||
| 37 | static Lisp_Object Qwatch_mounts; /* G_FILE_MONITOR_WATCH_MOUNTS */ | ||
| 38 | static Lisp_Object Qsend_moved; /* G_FILE_MONITOR_SEND_MOVED */ | ||
| 39 | |||
| 40 | /* Event types. */ | ||
| 41 | static Lisp_Object Qchanged; /* G_FILE_MONITOR_EVENT_CHANGED */ | ||
| 42 | static Lisp_Object Qchanges_done_hint; /* G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT */ | ||
| 43 | static Lisp_Object Qdeleted; /* G_FILE_MONITOR_EVENT_DELETED */ | ||
| 44 | static Lisp_Object Qcreated; /* G_FILE_MONITOR_EVENT_CREATED */ | ||
| 45 | static Lisp_Object Qattribute_changed; /* G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED */ | ||
| 46 | static Lisp_Object Qpre_unmount; /* G_FILE_MONITOR_EVENT_PRE_UNMOUNT */ | ||
| 47 | static Lisp_Object Qunmounted; /* G_FILE_MONITOR_EVENT_UNMOUNTED */ | ||
| 48 | static Lisp_Object Qmoved; /* G_FILE_MONITOR_EVENT_MOVED */ | ||
| 49 | |||
| 50 | static Lisp_Object watch_list; | 32 | static Lisp_Object watch_list; |
| 51 | 33 | ||
| 52 | /* This is the callback function for arriving signals from | 34 | /* This is the callback function for arriving signals from |
| @@ -258,23 +240,27 @@ globals_of_gfilenotify (void) | |||
| 258 | void | 240 | void |
| 259 | syms_of_gfilenotify (void) | 241 | syms_of_gfilenotify (void) |
| 260 | { | 242 | { |
| 261 | |||
| 262 | DEFSYM (Qgfile_add_watch, "gfile-add-watch"); | 243 | DEFSYM (Qgfile_add_watch, "gfile-add-watch"); |
| 263 | defsubr (&Sgfile_add_watch); | 244 | defsubr (&Sgfile_add_watch); |
| 264 | 245 | ||
| 265 | DEFSYM (Qgfile_rm_watch, "gfile-rm-watch"); | 246 | DEFSYM (Qgfile_rm_watch, "gfile-rm-watch"); |
| 266 | defsubr (&Sgfile_rm_watch); | 247 | defsubr (&Sgfile_rm_watch); |
| 267 | 248 | ||
| 268 | DEFSYM (Qwatch_mounts, "watch-mounts"); | 249 | /* Filter objects. */ |
| 269 | DEFSYM (Qsend_moved, "send-moved"); | 250 | DEFSYM (Qwatch_mounts, "watch-mounts"); /* G_FILE_MONITOR_WATCH_MOUNTS */ |
| 270 | DEFSYM (Qchanged, "changed"); | 251 | DEFSYM (Qsend_moved, "send-moved"); /* G_FILE_MONITOR_SEND_MOVED */ |
| 252 | |||
| 253 | /* Event types. */ | ||
| 254 | DEFSYM (Qchanged, "changed"); /* G_FILE_MONITOR_EVENT_CHANGED */ | ||
| 271 | DEFSYM (Qchanges_done_hint, "changes-done-hint"); | 255 | DEFSYM (Qchanges_done_hint, "changes-done-hint"); |
| 272 | DEFSYM (Qdeleted, "deleted"); | 256 | /* G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT */ |
| 273 | DEFSYM (Qcreated, "created"); | 257 | DEFSYM (Qdeleted, "deleted"); /* G_FILE_MONITOR_EVENT_DELETED */ |
| 258 | DEFSYM (Qcreated, "created"); /* G_FILE_MONITOR_EVENT_CREATED */ | ||
| 274 | DEFSYM (Qattribute_changed, "attribute-changed"); | 259 | DEFSYM (Qattribute_changed, "attribute-changed"); |
| 275 | DEFSYM (Qpre_unmount, "pre-unmount"); | 260 | /* G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED */ |
| 276 | DEFSYM (Qunmounted, "unmounted"); | 261 | DEFSYM (Qpre_unmount, "pre-unmount"); /* G_FILE_MONITOR_EVENT_PRE_UNMOUNT */ |
| 277 | DEFSYM (Qmoved, "moved"); | 262 | DEFSYM (Qunmounted, "unmounted"); /* G_FILE_MONITOR_EVENT_UNMOUNTED */ |
| 263 | DEFSYM (Qmoved, "moved"); /* G_FILE_MONITOR_EVENT_MOVED */ | ||
| 278 | 264 | ||
| 279 | staticpro (&watch_list); | 265 | staticpro (&watch_list); |
| 280 | 266 | ||
diff --git a/src/gmalloc.c b/src/gmalloc.c index 3456ff0ec6f..a88f4ab75e0 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Declarations for `malloc' and friends. | 1 | /* Declarations for `malloc' and friends. |
| 2 | Copyright (C) 1990-1993, 1995-1996, 1999, 2002-2007, 2013-2014 Free | 2 | Copyright (C) 1990-1993, 1995-1996, 1999, 2002-2007, 2013-2015 Free |
| 3 | Software Foundation, Inc. | 3 | Software Foundation, Inc. |
| 4 | Written May 1989 by Mike Haertel. | 4 | Written May 1989 by Mike Haertel. |
| 5 | 5 | ||
diff --git a/src/gnutls.c b/src/gnutls.c index f945778cc91..75fe6149a55 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* GnuTLS glue for GNU Emacs. | 1 | /* GnuTLS glue for GNU Emacs. |
| 2 | Copyright (C) 2010-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2010-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -35,28 +35,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 35 | 35 | ||
| 36 | static bool emacs_gnutls_handle_error (gnutls_session_t, int); | 36 | static bool emacs_gnutls_handle_error (gnutls_session_t, int); |
| 37 | 37 | ||
| 38 | static Lisp_Object Qgnutls_dll; | ||
| 39 | static Lisp_Object Qgnutls_code; | ||
| 40 | static Lisp_Object Qgnutls_anon, Qgnutls_x509pki; | ||
| 41 | static Lisp_Object Qgnutls_e_interrupted, Qgnutls_e_again, | ||
| 42 | Qgnutls_e_invalid_session, Qgnutls_e_not_ready_for_handshake; | ||
| 43 | static bool gnutls_global_initialized; | 38 | static bool gnutls_global_initialized; |
| 44 | 39 | ||
| 45 | /* The following are for the property list of `gnutls-boot'. */ | ||
| 46 | static Lisp_Object QCgnutls_bootprop_priority; | ||
| 47 | static Lisp_Object QCgnutls_bootprop_trustfiles; | ||
| 48 | static Lisp_Object QCgnutls_bootprop_keylist; | ||
| 49 | static Lisp_Object QCgnutls_bootprop_crlfiles; | ||
| 50 | static Lisp_Object QCgnutls_bootprop_callbacks; | ||
| 51 | static Lisp_Object QCgnutls_bootprop_loglevel; | ||
| 52 | static Lisp_Object QCgnutls_bootprop_hostname; | ||
| 53 | static Lisp_Object QCgnutls_bootprop_min_prime_bits; | ||
| 54 | static Lisp_Object QCgnutls_bootprop_verify_flags; | ||
| 55 | static Lisp_Object QCgnutls_bootprop_verify_error; | ||
| 56 | |||
| 57 | /* Callback keys for `gnutls-boot'. Unused currently. */ | ||
| 58 | static Lisp_Object QCgnutls_bootprop_callbacks_verify; | ||
| 59 | |||
| 60 | static void gnutls_log_function (int, const char *); | 40 | static void gnutls_log_function (int, const char *); |
| 61 | static void gnutls_log_function2 (int, const char *, const char *); | 41 | static void gnutls_log_function2 (int, const char *, const char *); |
| 62 | #ifdef HAVE_GNUTLS3 | 42 | #ifdef HAVE_GNUTLS3 |
| @@ -1656,13 +1636,14 @@ syms_of_gnutls (void) | |||
| 1656 | DEFSYM (Qgnutls_code, "gnutls-code"); | 1636 | DEFSYM (Qgnutls_code, "gnutls-code"); |
| 1657 | DEFSYM (Qgnutls_anon, "gnutls-anon"); | 1637 | DEFSYM (Qgnutls_anon, "gnutls-anon"); |
| 1658 | DEFSYM (Qgnutls_x509pki, "gnutls-x509pki"); | 1638 | DEFSYM (Qgnutls_x509pki, "gnutls-x509pki"); |
| 1639 | |||
| 1640 | /* The following are for the property list of 'gnutls-boot'. */ | ||
| 1659 | DEFSYM (QCgnutls_bootprop_hostname, ":hostname"); | 1641 | DEFSYM (QCgnutls_bootprop_hostname, ":hostname"); |
| 1660 | DEFSYM (QCgnutls_bootprop_priority, ":priority"); | 1642 | DEFSYM (QCgnutls_bootprop_priority, ":priority"); |
| 1661 | DEFSYM (QCgnutls_bootprop_trustfiles, ":trustfiles"); | 1643 | DEFSYM (QCgnutls_bootprop_trustfiles, ":trustfiles"); |
| 1662 | DEFSYM (QCgnutls_bootprop_keylist, ":keylist"); | 1644 | DEFSYM (QCgnutls_bootprop_keylist, ":keylist"); |
| 1663 | DEFSYM (QCgnutls_bootprop_crlfiles, ":crlfiles"); | 1645 | DEFSYM (QCgnutls_bootprop_crlfiles, ":crlfiles"); |
| 1664 | DEFSYM (QCgnutls_bootprop_callbacks, ":callbacks"); | 1646 | DEFSYM (QCgnutls_bootprop_callbacks, ":callbacks"); |
| 1665 | DEFSYM (QCgnutls_bootprop_callbacks_verify, "verify"); | ||
| 1666 | DEFSYM (QCgnutls_bootprop_min_prime_bits, ":min-prime-bits"); | 1647 | DEFSYM (QCgnutls_bootprop_min_prime_bits, ":min-prime-bits"); |
| 1667 | DEFSYM (QCgnutls_bootprop_loglevel, ":loglevel"); | 1648 | DEFSYM (QCgnutls_bootprop_loglevel, ":loglevel"); |
| 1668 | DEFSYM (QCgnutls_bootprop_verify_flags, ":verify-flags"); | 1649 | DEFSYM (QCgnutls_bootprop_verify_flags, ":verify-flags"); |
diff --git a/src/gnutls.h b/src/gnutls.h index 8a18976cf1b..fd696820aec 100644 --- a/src/gnutls.h +++ b/src/gnutls.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* GnuTLS glue for GNU Emacs. | 1 | /* GnuTLS glue for GNU Emacs. |
| 2 | Copyright (C) 2010-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2010-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/gtkutil.c b/src/gtkutil.c index f61cbc2c85c..bedac8451e2 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Functions for creating and updating GTK widgets. | 1 | /* Functions for creating and updating GTK widgets. |
| 2 | 2 | ||
| 3 | Copyright (C) 2003-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2003-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
diff --git a/src/gtkutil.h b/src/gtkutil.h index 594c7a7382b..7d712c92e0d 100644 --- a/src/gtkutil.h +++ b/src/gtkutil.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Definitions and headers for GTK widgets. | 1 | /* Definitions and headers for GTK widgets. |
| 2 | 2 | ||
| 3 | Copyright (C) 2003-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2003-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
diff --git a/src/image.c b/src/image.c index 4cba8863b88..addb932f834 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Functions for image support on window system. | 1 | /* Functions for image support on window system. |
| 2 | 2 | ||
| 3 | Copyright (C) 1989, 1992-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1989, 1992-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -86,12 +86,6 @@ typedef struct w32_bitmap_record Bitmap_Record; | |||
| 86 | #define x_defined_color w32_defined_color | 86 | #define x_defined_color w32_defined_color |
| 87 | #define DefaultDepthOfScreen(screen) (one_w32_display_info.n_cbits) | 87 | #define DefaultDepthOfScreen(screen) (one_w32_display_info.n_cbits) |
| 88 | 88 | ||
| 89 | /* Versions of libpng, libgif, and libjpeg that we were compiled with, | ||
| 90 | or -1 if no PNG/GIF support was compiled in. This is tested by | ||
| 91 | w32-win.el to correctly set up the alist used to search for the | ||
| 92 | respective image libraries. */ | ||
| 93 | Lisp_Object Qlibpng_version, Qlibgif_version, Qlibjpeg_version; | ||
| 94 | |||
| 95 | #endif /* HAVE_NTGUI */ | 89 | #endif /* HAVE_NTGUI */ |
| 96 | 90 | ||
| 97 | #ifdef HAVE_NS | 91 | #ifdef HAVE_NS |
| @@ -110,11 +104,6 @@ typedef struct ns_bitmap_record Bitmap_Record; | |||
| 110 | #define DefaultDepthOfScreen(screen) x_display_list->n_planes | 104 | #define DefaultDepthOfScreen(screen) x_display_list->n_planes |
| 111 | #endif /* HAVE_NS */ | 105 | #endif /* HAVE_NS */ |
| 112 | 106 | ||
| 113 | |||
| 114 | /* The symbol `postscript' identifying images of this type. */ | ||
| 115 | |||
| 116 | static Lisp_Object Qpostscript; | ||
| 117 | |||
| 118 | static void x_disable_image (struct frame *, struct image *); | 107 | static void x_disable_image (struct frame *, struct image *); |
| 119 | static void x_edge_detection (struct frame *, struct image *, Lisp_Object, | 108 | static void x_edge_detection (struct frame *, struct image *, Lisp_Object, |
| 120 | Lisp_Object); | 109 | Lisp_Object); |
| @@ -126,8 +115,6 @@ static void free_color_table (void); | |||
| 126 | static unsigned long *colors_in_color_table (int *n); | 115 | static unsigned long *colors_in_color_table (int *n); |
| 127 | #endif | 116 | #endif |
| 128 | 117 | ||
| 129 | static Lisp_Object QCmax_width, QCmax_height; | ||
| 130 | |||
| 131 | /* Code to deal with bitmaps. Bitmaps are referenced by their bitmap | 118 | /* Code to deal with bitmaps. Bitmaps are referenced by their bitmap |
| 132 | id, which is just an int that this section returns. Bitmaps are | 119 | id, which is just an int that this section returns. Bitmaps are |
| 133 | reference counted so they can be shared among frames. | 120 | reference counted so they can be shared among frames. |
| @@ -537,24 +524,6 @@ x_create_bitmap_mask (struct frame *f, ptrdiff_t id) | |||
| 537 | 524 | ||
| 538 | static struct image_type *image_types; | 525 | static struct image_type *image_types; |
| 539 | 526 | ||
| 540 | /* The symbol `xbm' which is used as the type symbol for XBM images. */ | ||
| 541 | |||
| 542 | static Lisp_Object Qxbm; | ||
| 543 | |||
| 544 | /* Keywords. */ | ||
| 545 | |||
| 546 | Lisp_Object QCascent, QCmargin, QCrelief; | ||
| 547 | Lisp_Object QCconversion; | ||
| 548 | static Lisp_Object QCheuristic_mask; | ||
| 549 | static Lisp_Object QCcolor_symbols; | ||
| 550 | static Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask, QCgeometry; | ||
| 551 | static Lisp_Object QCcrop, QCrotation; | ||
| 552 | |||
| 553 | /* Other symbols. */ | ||
| 554 | |||
| 555 | static Lisp_Object Qcount, Qextension_data, Qdelay; | ||
| 556 | static Lisp_Object Qlaplace, Qemboss, Qedge_detection, Qheuristic; | ||
| 557 | |||
| 558 | /* Forward function prototypes. */ | 527 | /* Forward function prototypes. */ |
| 559 | 528 | ||
| 560 | static struct image_type *lookup_image_type (Lisp_Object); | 529 | static struct image_type *lookup_image_type (Lisp_Object); |
| @@ -579,27 +548,28 @@ static struct image_type * | |||
| 579 | define_image_type (struct image_type *type) | 548 | define_image_type (struct image_type *type) |
| 580 | { | 549 | { |
| 581 | struct image_type *p = NULL; | 550 | struct image_type *p = NULL; |
| 582 | Lisp_Object target_type = *type->type; | 551 | struct Lisp_Symbol *new_type = type->type; |
| 583 | bool type_valid = 1; | 552 | bool type_valid = 1; |
| 584 | 553 | ||
| 585 | block_input (); | 554 | block_input (); |
| 586 | 555 | ||
| 587 | for (p = image_types; p; p = p->next) | 556 | for (p = image_types; p; p = p->next) |
| 588 | if (EQ (*p->type, target_type)) | 557 | if (p->type == new_type) |
| 589 | goto done; | 558 | goto done; |
| 590 | 559 | ||
| 591 | if (type->init) | 560 | if (type->init) |
| 592 | { | 561 | { |
| 593 | #if defined HAVE_NTGUI && defined WINDOWSNT | 562 | #if defined HAVE_NTGUI && defined WINDOWSNT |
| 594 | /* If we failed to load the library before, don't try again. */ | 563 | /* If we failed to load the library before, don't try again. */ |
| 595 | Lisp_Object tested = Fassq (target_type, Vlibrary_cache); | 564 | Lisp_Object tested = Fassq (make_lisp_symbol (new_type), Vlibrary_cache); |
| 596 | if (CONSP (tested) && NILP (XCDR (tested))) | 565 | if (CONSP (tested) && NILP (XCDR (tested))) |
| 597 | type_valid = 0; | 566 | type_valid = 0; |
| 598 | else | 567 | else |
| 599 | #endif | 568 | #endif |
| 600 | { | 569 | { |
| 601 | type_valid = type->init (); | 570 | type_valid = type->init (); |
| 602 | CACHE_IMAGE_TYPE (target_type, type_valid ? Qt : Qnil); | 571 | CACHE_IMAGE_TYPE (make_lisp_symbol (new_type), |
| 572 | type_valid ? Qt : Qnil); | ||
| 603 | } | 573 | } |
| 604 | } | 574 | } |
| 605 | 575 | ||
| @@ -1777,7 +1747,7 @@ lookup_image (struct frame *f, Lisp_Object spec) | |||
| 1777 | 1747 | ||
| 1778 | /* Do image transformations and compute masks, unless we | 1748 | /* Do image transformations and compute masks, unless we |
| 1779 | don't have the image yet. */ | 1749 | don't have the image yet. */ |
| 1780 | if (!EQ (*img->type->type, Qpostscript)) | 1750 | if (!EQ (make_lisp_symbol (img->type->type), Qpostscript)) |
| 1781 | postprocess_image (f, img); | 1751 | postprocess_image (f, img); |
| 1782 | } | 1752 | } |
| 1783 | 1753 | ||
| @@ -2362,7 +2332,7 @@ static const struct image_keyword xbm_format[XBM_LAST] = | |||
| 2362 | 2332 | ||
| 2363 | static struct image_type xbm_type = | 2333 | static struct image_type xbm_type = |
| 2364 | { | 2334 | { |
| 2365 | &Qxbm, | 2335 | XSYMBOL_INIT (Qxbm), |
| 2366 | xbm_image_p, | 2336 | xbm_image_p, |
| 2367 | xbm_load, | 2337 | xbm_load, |
| 2368 | x_clear_image, | 2338 | x_clear_image, |
| @@ -3121,9 +3091,6 @@ static bool xpm_load (struct frame *f, struct image *img); | |||
| 3121 | #endif /* HAVE_XPM */ | 3091 | #endif /* HAVE_XPM */ |
| 3122 | 3092 | ||
| 3123 | #if defined (HAVE_XPM) || defined (HAVE_NS) | 3093 | #if defined (HAVE_XPM) || defined (HAVE_NS) |
| 3124 | /* The symbol `xpm' identifying XPM-format images. */ | ||
| 3125 | |||
| 3126 | static Lisp_Object Qxpm; | ||
| 3127 | 3094 | ||
| 3128 | /* Indices of image specification fields in xpm_format, below. */ | 3095 | /* Indices of image specification fields in xpm_format, below. */ |
| 3129 | 3096 | ||
| @@ -3171,7 +3138,7 @@ static bool init_xpm_functions (void); | |||
| 3171 | 3138 | ||
| 3172 | static struct image_type xpm_type = | 3139 | static struct image_type xpm_type = |
| 3173 | { | 3140 | { |
| 3174 | &Qxpm, | 3141 | XSYMBOL_INIT (Qxpm), |
| 3175 | xpm_image_p, | 3142 | xpm_image_p, |
| 3176 | xpm_load, | 3143 | xpm_load, |
| 3177 | x_clear_image, | 3144 | x_clear_image, |
| @@ -5059,10 +5026,6 @@ x_build_heuristic_mask (struct frame *f, struct image *img, Lisp_Object how) | |||
| 5059 | static bool pbm_image_p (Lisp_Object object); | 5026 | static bool pbm_image_p (Lisp_Object object); |
| 5060 | static bool pbm_load (struct frame *f, struct image *img); | 5027 | static bool pbm_load (struct frame *f, struct image *img); |
| 5061 | 5028 | ||
| 5062 | /* The symbol `pbm' identifying images of this type. */ | ||
| 5063 | |||
| 5064 | static Lisp_Object Qpbm; | ||
| 5065 | |||
| 5066 | /* Indices of image specification fields in gs_format, below. */ | 5029 | /* Indices of image specification fields in gs_format, below. */ |
| 5067 | 5030 | ||
| 5068 | enum pbm_keyword_index | 5031 | enum pbm_keyword_index |
| @@ -5103,7 +5066,7 @@ static const struct image_keyword pbm_format[PBM_LAST] = | |||
| 5103 | 5066 | ||
| 5104 | static struct image_type pbm_type = | 5067 | static struct image_type pbm_type = |
| 5105 | { | 5068 | { |
| 5106 | &Qpbm, | 5069 | XSYMBOL_INIT (Qpbm), |
| 5107 | pbm_image_p, | 5070 | pbm_image_p, |
| 5108 | pbm_load, | 5071 | pbm_load, |
| 5109 | x_clear_image, | 5072 | x_clear_image, |
| @@ -5446,10 +5409,6 @@ pbm_load (struct frame *f, struct image *img) | |||
| 5446 | static bool png_image_p (Lisp_Object object); | 5409 | static bool png_image_p (Lisp_Object object); |
| 5447 | static bool png_load (struct frame *f, struct image *img); | 5410 | static bool png_load (struct frame *f, struct image *img); |
| 5448 | 5411 | ||
| 5449 | /* The symbol `png' identifying images of this type. */ | ||
| 5450 | |||
| 5451 | static Lisp_Object Qpng; | ||
| 5452 | |||
| 5453 | /* Indices of image specification fields in png_format, below. */ | 5412 | /* Indices of image specification fields in png_format, below. */ |
| 5454 | 5413 | ||
| 5455 | enum png_keyword_index | 5414 | enum png_keyword_index |
| @@ -5494,7 +5453,7 @@ static bool init_png_functions (void); | |||
| 5494 | 5453 | ||
| 5495 | static struct image_type png_type = | 5454 | static struct image_type png_type = |
| 5496 | { | 5455 | { |
| 5497 | &Qpng, | 5456 | XSYMBOL_INIT (Qpng), |
| 5498 | png_image_p, | 5457 | png_image_p, |
| 5499 | png_load, | 5458 | png_load, |
| 5500 | x_clear_image, | 5459 | x_clear_image, |
| @@ -6102,10 +6061,6 @@ png_load (struct frame *f, struct image *img) | |||
| 6102 | static bool jpeg_image_p (Lisp_Object object); | 6061 | static bool jpeg_image_p (Lisp_Object object); |
| 6103 | static bool jpeg_load (struct frame *f, struct image *img); | 6062 | static bool jpeg_load (struct frame *f, struct image *img); |
| 6104 | 6063 | ||
| 6105 | /* The symbol `jpeg' identifying images of this type. */ | ||
| 6106 | |||
| 6107 | static Lisp_Object Qjpeg; | ||
| 6108 | |||
| 6109 | /* Indices of image specification fields in gs_format, below. */ | 6064 | /* Indices of image specification fields in gs_format, below. */ |
| 6110 | 6065 | ||
| 6111 | enum jpeg_keyword_index | 6066 | enum jpeg_keyword_index |
| @@ -6150,7 +6105,7 @@ static bool init_jpeg_functions (void); | |||
| 6150 | 6105 | ||
| 6151 | static struct image_type jpeg_type = | 6106 | static struct image_type jpeg_type = |
| 6152 | { | 6107 | { |
| 6153 | &Qjpeg, | 6108 | XSYMBOL_INIT (Qjpeg), |
| 6154 | jpeg_image_p, | 6109 | jpeg_image_p, |
| 6155 | jpeg_load, | 6110 | jpeg_load, |
| 6156 | x_clear_image, | 6111 | x_clear_image, |
| @@ -6704,10 +6659,6 @@ jpeg_load (struct frame *f, struct image *img) | |||
| 6704 | static bool tiff_image_p (Lisp_Object object); | 6659 | static bool tiff_image_p (Lisp_Object object); |
| 6705 | static bool tiff_load (struct frame *f, struct image *img); | 6660 | static bool tiff_load (struct frame *f, struct image *img); |
| 6706 | 6661 | ||
| 6707 | /* The symbol `tiff' identifying images of this type. */ | ||
| 6708 | |||
| 6709 | static Lisp_Object Qtiff; | ||
| 6710 | |||
| 6711 | /* Indices of image specification fields in tiff_format, below. */ | 6662 | /* Indices of image specification fields in tiff_format, below. */ |
| 6712 | 6663 | ||
| 6713 | enum tiff_keyword_index | 6664 | enum tiff_keyword_index |
| @@ -6754,7 +6705,7 @@ static bool init_tiff_functions (void); | |||
| 6754 | 6705 | ||
| 6755 | static struct image_type tiff_type = | 6706 | static struct image_type tiff_type = |
| 6756 | { | 6707 | { |
| 6757 | &Qtiff, | 6708 | XSYMBOL_INIT (Qtiff), |
| 6758 | tiff_image_p, | 6709 | tiff_image_p, |
| 6759 | tiff_load, | 6710 | tiff_load, |
| 6760 | x_clear_image, | 6711 | x_clear_image, |
| @@ -7167,10 +7118,6 @@ static bool gif_image_p (Lisp_Object object); | |||
| 7167 | static bool gif_load (struct frame *f, struct image *img); | 7118 | static bool gif_load (struct frame *f, struct image *img); |
| 7168 | static void gif_clear_image (struct frame *f, struct image *img); | 7119 | static void gif_clear_image (struct frame *f, struct image *img); |
| 7169 | 7120 | ||
| 7170 | /* The symbol `gif' identifying images of this type. */ | ||
| 7171 | |||
| 7172 | static Lisp_Object Qgif; | ||
| 7173 | |||
| 7174 | /* Indices of image specification fields in gif_format, below. */ | 7121 | /* Indices of image specification fields in gif_format, below. */ |
| 7175 | 7122 | ||
| 7176 | enum gif_keyword_index | 7123 | enum gif_keyword_index |
| @@ -7217,7 +7164,7 @@ static bool init_gif_functions (void); | |||
| 7217 | 7164 | ||
| 7218 | static struct image_type gif_type = | 7165 | static struct image_type gif_type = |
| 7219 | { | 7166 | { |
| 7220 | &Qgif, | 7167 | XSYMBOL_INIT (Qgif), |
| 7221 | gif_image_p, | 7168 | gif_image_p, |
| 7222 | gif_load, | 7169 | gif_load, |
| 7223 | gif_clear_image, | 7170 | gif_clear_image, |
| @@ -7841,8 +7788,6 @@ compute_image_size (size_t width, size_t height, | |||
| 7841 | *d_height = desired_height; | 7788 | *d_height = desired_height; |
| 7842 | } | 7789 | } |
| 7843 | 7790 | ||
| 7844 | static Lisp_Object Qimagemagick; | ||
| 7845 | |||
| 7846 | static bool imagemagick_image_p (Lisp_Object); | 7791 | static bool imagemagick_image_p (Lisp_Object); |
| 7847 | static bool imagemagick_load (struct frame *, struct image *); | 7792 | static bool imagemagick_load (struct frame *, struct image *); |
| 7848 | static void imagemagick_clear_image (struct frame *, struct image *); | 7793 | static void imagemagick_clear_image (struct frame *, struct image *); |
| @@ -7906,7 +7851,7 @@ static bool init_imagemagick_functions (void); | |||
| 7906 | 7851 | ||
| 7907 | static struct image_type imagemagick_type = | 7852 | static struct image_type imagemagick_type = |
| 7908 | { | 7853 | { |
| 7909 | &Qimagemagick, | 7854 | XSYMBOL_INIT (Qimagemagick), |
| 7910 | imagemagick_image_p, | 7855 | imagemagick_image_p, |
| 7911 | imagemagick_load, | 7856 | imagemagick_load, |
| 7912 | imagemagick_clear_image, | 7857 | imagemagick_clear_image, |
| @@ -8632,10 +8577,6 @@ static bool svg_load (struct frame *f, struct image *img); | |||
| 8632 | static bool svg_load_image (struct frame *, struct image *, | 8577 | static bool svg_load_image (struct frame *, struct image *, |
| 8633 | unsigned char *, ptrdiff_t, char *); | 8578 | unsigned char *, ptrdiff_t, char *); |
| 8634 | 8579 | ||
| 8635 | /* The symbol `svg' identifying images of this type. */ | ||
| 8636 | |||
| 8637 | static Lisp_Object Qsvg; | ||
| 8638 | |||
| 8639 | /* Indices of image specification fields in svg_format, below. */ | 8580 | /* Indices of image specification fields in svg_format, below. */ |
| 8640 | 8581 | ||
| 8641 | enum svg_keyword_index | 8582 | enum svg_keyword_index |
| @@ -8682,7 +8623,7 @@ static bool init_svg_functions (void); | |||
| 8682 | 8623 | ||
| 8683 | static struct image_type svg_type = | 8624 | static struct image_type svg_type = |
| 8684 | { | 8625 | { |
| 8685 | &Qsvg, | 8626 | XSYMBOL_INIT (Qsvg), |
| 8686 | svg_image_p, | 8627 | svg_image_p, |
| 8687 | svg_load, | 8628 | svg_load, |
| 8688 | x_clear_image, | 8629 | x_clear_image, |
| @@ -8737,8 +8678,6 @@ DEF_DLL_FN (void, g_type_init, (void)); | |||
| 8737 | DEF_DLL_FN (void, g_object_unref, (gpointer)); | 8678 | DEF_DLL_FN (void, g_object_unref, (gpointer)); |
| 8738 | DEF_DLL_FN (void, g_error_free, (GError *)); | 8679 | DEF_DLL_FN (void, g_error_free, (GError *)); |
| 8739 | 8680 | ||
| 8740 | Lisp_Object Qgdk_pixbuf, Qglib, Qgobject; | ||
| 8741 | |||
| 8742 | static bool | 8681 | static bool |
| 8743 | init_svg_functions (void) | 8682 | init_svg_functions (void) |
| 8744 | { | 8683 | { |
| @@ -9056,10 +8995,6 @@ static bool gs_image_p (Lisp_Object object); | |||
| 9056 | static bool gs_load (struct frame *f, struct image *img); | 8995 | static bool gs_load (struct frame *f, struct image *img); |
| 9057 | static void gs_clear_image (struct frame *f, struct image *img); | 8996 | static void gs_clear_image (struct frame *f, struct image *img); |
| 9058 | 8997 | ||
| 9059 | /* Keyword symbols. */ | ||
| 9060 | |||
| 9061 | static Lisp_Object QCloader, QCbounding_box, QCpt_width, QCpt_height; | ||
| 9062 | |||
| 9063 | /* Indices of image specification fields in gs_format, below. */ | 8998 | /* Indices of image specification fields in gs_format, below. */ |
| 9064 | 8999 | ||
| 9065 | enum gs_keyword_index | 9000 | enum gs_keyword_index |
| @@ -9104,7 +9039,7 @@ static const struct image_keyword gs_format[GS_LAST] = | |||
| 9104 | 9039 | ||
| 9105 | static struct image_type gs_type = | 9040 | static struct image_type gs_type = |
| 9106 | { | 9041 | { |
| 9107 | &Qpostscript, | 9042 | XSYMBOL_INIT (Qpostscript), |
| 9108 | gs_image_p, | 9043 | gs_image_p, |
| 9109 | gs_load, | 9044 | gs_load, |
| 9110 | gs_clear_image, | 9045 | gs_clear_image, |
| @@ -9479,10 +9414,12 @@ as a ratio to the frame height and width. If the value is | |||
| 9479 | non-numeric, there is no explicit limit on the size of images. */); | 9414 | non-numeric, there is no explicit limit on the size of images. */); |
| 9480 | Vmax_image_size = make_float (MAX_IMAGE_SIZE); | 9415 | Vmax_image_size = make_float (MAX_IMAGE_SIZE); |
| 9481 | 9416 | ||
| 9417 | /* Other symbols. */ | ||
| 9482 | DEFSYM (Qcount, "count"); | 9418 | DEFSYM (Qcount, "count"); |
| 9483 | DEFSYM (Qextension_data, "extension-data"); | 9419 | DEFSYM (Qextension_data, "extension-data"); |
| 9484 | DEFSYM (Qdelay, "delay"); | 9420 | DEFSYM (Qdelay, "delay"); |
| 9485 | 9421 | ||
| 9422 | /* Keywords. */ | ||
| 9486 | DEFSYM (QCascent, ":ascent"); | 9423 | DEFSYM (QCascent, ":ascent"); |
| 9487 | DEFSYM (QCmargin, ":margin"); | 9424 | DEFSYM (QCmargin, ":margin"); |
| 9488 | DEFSYM (QCrelief, ":relief"); | 9425 | DEFSYM (QCrelief, ":relief"); |
| @@ -9497,6 +9434,7 @@ non-numeric, there is no explicit limit on the size of images. */); | |||
| 9497 | DEFSYM (QCcolor_adjustment, ":color-adjustment"); | 9434 | DEFSYM (QCcolor_adjustment, ":color-adjustment"); |
| 9498 | DEFSYM (QCmask, ":mask"); | 9435 | DEFSYM (QCmask, ":mask"); |
| 9499 | 9436 | ||
| 9437 | /* Other symbols. */ | ||
| 9500 | DEFSYM (Qlaplace, "laplace"); | 9438 | DEFSYM (Qlaplace, "laplace"); |
| 9501 | DEFSYM (Qemboss, "emboss"); | 9439 | DEFSYM (Qemboss, "emboss"); |
| 9502 | DEFSYM (Qedge_detection, "edge-detection"); | 9440 | DEFSYM (Qedge_detection, "edge-detection"); |
| @@ -9514,6 +9452,10 @@ non-numeric, there is no explicit limit on the size of images. */); | |||
| 9514 | #endif /* HAVE_GHOSTSCRIPT */ | 9452 | #endif /* HAVE_GHOSTSCRIPT */ |
| 9515 | 9453 | ||
| 9516 | #ifdef HAVE_NTGUI | 9454 | #ifdef HAVE_NTGUI |
| 9455 | /* Versions of libpng, libgif, and libjpeg that we were compiled with, | ||
| 9456 | or -1 if no PNG/GIF support was compiled in. This is tested by | ||
| 9457 | w32-win.el to correctly set up the alist used to search for the | ||
| 9458 | respective image libraries. */ | ||
| 9517 | DEFSYM (Qlibpng_version, "libpng-version"); | 9459 | DEFSYM (Qlibpng_version, "libpng-version"); |
| 9518 | Fset (Qlibpng_version, | 9460 | Fset (Qlibpng_version, |
| 9519 | #if HAVE_PNG | 9461 | #if HAVE_PNG |
diff --git a/src/indent.c b/src/indent.c index 04f5d6cfa4a..589aeb9c005 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Indentation functions. | 1 | /* Indentation functions. |
| 2 | Copyright (C) 1985-1988, 1993-1995, 1998, 2000-2014 Free Software | 2 | Copyright (C) 1985-1988, 1993-1995, 1998, 2000-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
diff --git a/src/indent.h b/src/indent.h index 6bee4aeac5e..cece9e4f33b 100644 --- a/src/indent.h +++ b/src/indent.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions for interface to indent.c | 1 | /* Definitions for interface to indent.c |
| 2 | Copyright (C) 1985-1986, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1985-1986, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/inotify.c b/src/inotify.c index c55b1303fce..eddad73e8f7 100644 --- a/src/inotify.c +++ b/src/inotify.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Inotify support for Emacs | 1 | /* Inotify support for Emacs |
| 2 | 2 | ||
| 3 | Copyright (C) 2012-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2012-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -29,34 +29,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | #include "frame.h" /* Required for termhooks.h. */ | 29 | #include "frame.h" /* Required for termhooks.h. */ |
| 30 | #include "termhooks.h" | 30 | #include "termhooks.h" |
| 31 | 31 | ||
| 32 | static Lisp_Object Qaccess; /* IN_ACCESS */ | ||
| 33 | static Lisp_Object Qattrib; /* IN_ATTRIB */ | ||
| 34 | static Lisp_Object Qclose_write; /* IN_CLOSE_WRITE */ | ||
| 35 | static Lisp_Object Qclose_nowrite; /* IN_CLOSE_NOWRITE */ | ||
| 36 | static Lisp_Object Qcreate; /* IN_CREATE */ | ||
| 37 | static Lisp_Object Qdelete; /* IN_DELETE */ | ||
| 38 | static Lisp_Object Qdelete_self; /* IN_DELETE_SELF */ | ||
| 39 | static Lisp_Object Qmodify; /* IN_MODIFY */ | ||
| 40 | static Lisp_Object Qmove_self; /* IN_MOVE_SELF */ | ||
| 41 | static Lisp_Object Qmoved_from; /* IN_MOVED_FROM */ | ||
| 42 | static Lisp_Object Qmoved_to; /* IN_MOVED_TO */ | ||
| 43 | static Lisp_Object Qopen; /* IN_OPEN */ | ||
| 44 | |||
| 45 | static Lisp_Object Qall_events; /* IN_ALL_EVENTS */ | ||
| 46 | static Lisp_Object Qmove; /* IN_MOVE */ | ||
| 47 | static Lisp_Object Qclose; /* IN_CLOSE */ | ||
| 48 | |||
| 49 | static Lisp_Object Qdont_follow; /* IN_DONT_FOLLOW */ | ||
| 50 | static Lisp_Object Qexcl_unlink; /* IN_EXCL_UNLINK */ | ||
| 51 | static Lisp_Object Qmask_add; /* IN_MASK_ADD */ | ||
| 52 | static Lisp_Object Qoneshot; /* IN_ONESHOT */ | ||
| 53 | static Lisp_Object Qonlydir; /* IN_ONLYDIR */ | ||
| 54 | |||
| 55 | static Lisp_Object Qignored; /* IN_IGNORED */ | ||
| 56 | static Lisp_Object Qisdir; /* IN_ISDIR */ | ||
| 57 | static Lisp_Object Qq_overflow; /* IN_Q_OVERFLOW */ | ||
| 58 | static Lisp_Object Qunmount; /* IN_UNMOUNT */ | ||
| 59 | |||
| 60 | #include <sys/inotify.h> | 32 | #include <sys/inotify.h> |
| 61 | #include <sys/ioctl.h> | 33 | #include <sys/ioctl.h> |
| 62 | 34 | ||
| @@ -398,33 +370,34 @@ See inotify_rm_watch(2) for more information. | |||
| 398 | void | 370 | void |
| 399 | syms_of_inotify (void) | 371 | syms_of_inotify (void) |
| 400 | { | 372 | { |
| 401 | DEFSYM (Qaccess, "access"); | 373 | DEFSYM (Qaccess, "access"); /* IN_ACCESS */ |
| 402 | DEFSYM (Qattrib, "attrib"); | 374 | DEFSYM (Qattrib, "attrib"); /* IN_ATTRIB */ |
| 403 | DEFSYM (Qclose_write, "close-write"); | 375 | DEFSYM (Qclose_write, "close-write"); /* IN_CLOSE_WRITE */ |
| 404 | DEFSYM (Qclose_nowrite, "close-nowrite"); | 376 | DEFSYM (Qclose_nowrite, "close-nowrite"); |
| 405 | DEFSYM (Qcreate, "create"); | 377 | /* IN_CLOSE_NOWRITE */ |
| 406 | DEFSYM (Qdelete, "delete"); | 378 | DEFSYM (Qcreate, "create"); /* IN_CREATE */ |
| 407 | DEFSYM (Qdelete_self, "delete-self"); | 379 | DEFSYM (Qdelete, "delete"); /* IN_DELETE */ |
| 408 | DEFSYM (Qmodify, "modify"); | 380 | DEFSYM (Qdelete_self, "delete-self"); /* IN_DELETE_SELF */ |
| 409 | DEFSYM (Qmove_self, "move-self"); | 381 | DEFSYM (Qmodify, "modify"); /* IN_MODIFY */ |
| 410 | DEFSYM (Qmoved_from, "moved-from"); | 382 | DEFSYM (Qmove_self, "move-self"); /* IN_MOVE_SELF */ |
| 411 | DEFSYM (Qmoved_to, "moved-to"); | 383 | DEFSYM (Qmoved_from, "moved-from"); /* IN_MOVED_FROM */ |
| 412 | DEFSYM (Qopen, "open"); | 384 | DEFSYM (Qmoved_to, "moved-to"); /* IN_MOVED_TO */ |
| 413 | 385 | DEFSYM (Qopen, "open"); /* IN_OPEN */ | |
| 414 | DEFSYM (Qall_events, "all-events"); | 386 | |
| 415 | DEFSYM (Qmove, "move"); | 387 | DEFSYM (Qall_events, "all-events"); /* IN_ALL_EVENTS */ |
| 416 | DEFSYM (Qclose, "close"); | 388 | DEFSYM (Qmove, "move"); /* IN_MOVE */ |
| 417 | 389 | DEFSYM (Qclose, "close"); /* IN_CLOSE */ | |
| 418 | DEFSYM (Qdont_follow, "dont-follow"); | 390 | |
| 419 | DEFSYM (Qexcl_unlink, "excl-unlink"); | 391 | DEFSYM (Qdont_follow, "dont-follow"); /* IN_DONT_FOLLOW */ |
| 420 | DEFSYM (Qmask_add, "mask-add"); | 392 | DEFSYM (Qexcl_unlink, "excl-unlink"); /* IN_EXCL_UNLINK */ |
| 421 | DEFSYM (Qoneshot, "oneshot"); | 393 | DEFSYM (Qmask_add, "mask-add"); /* IN_MASK_ADD */ |
| 422 | DEFSYM (Qonlydir, "onlydir"); | 394 | DEFSYM (Qoneshot, "oneshot"); /* IN_ONESHOT */ |
| 423 | 395 | DEFSYM (Qonlydir, "onlydir"); /* IN_ONLYDIR */ | |
| 424 | DEFSYM (Qignored, "ignored"); | 396 | |
| 425 | DEFSYM (Qisdir, "isdir"); | 397 | DEFSYM (Qignored, "ignored"); /* IN_IGNORED */ |
| 426 | DEFSYM (Qq_overflow, "q-overflow"); | 398 | DEFSYM (Qisdir, "isdir"); /* IN_ISDIR */ |
| 427 | DEFSYM (Qunmount, "unmount"); | 399 | DEFSYM (Qq_overflow, "q-overflow"); /* IN_Q_OVERFLOW */ |
| 400 | DEFSYM (Qunmount, "unmount"); /* IN_UNMOUNT */ | ||
| 428 | 401 | ||
| 429 | defsubr (&Sinotify_add_watch); | 402 | defsubr (&Sinotify_add_watch); |
| 430 | defsubr (&Sinotify_rm_watch); | 403 | defsubr (&Sinotify_rm_watch); |
diff --git a/src/insdel.c b/src/insdel.c index 7b4ee3b7b06..4463721b897 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Buffer insertion/deletion and gap motion for GNU Emacs. | 1 | /* Buffer insertion/deletion and gap motion for GNU Emacs. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1993-1995, 1997-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1985-1986, 1993-1995, 1997-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 6 | 7 | ||
| @@ -51,8 +52,6 @@ static Lisp_Object combine_after_change_list; | |||
| 51 | /* Buffer which combine_after_change_list is about. */ | 52 | /* Buffer which combine_after_change_list is about. */ |
| 52 | static Lisp_Object combine_after_change_buffer; | 53 | static Lisp_Object combine_after_change_buffer; |
| 53 | 54 | ||
| 54 | Lisp_Object Qinhibit_modification_hooks; | ||
| 55 | |||
| 56 | static void signal_before_change (ptrdiff_t, ptrdiff_t, ptrdiff_t *); | 55 | static void signal_before_change (ptrdiff_t, ptrdiff_t, ptrdiff_t *); |
| 57 | 56 | ||
| 58 | /* Also used in marker.c to enable expensive marker checks. */ | 57 | /* Also used in marker.c to enable expensive marker checks. */ |
| @@ -1780,8 +1779,6 @@ modify_text (ptrdiff_t start, ptrdiff_t end) | |||
| 1780 | bset_point_before_scroll (current_buffer, Qnil); | 1779 | bset_point_before_scroll (current_buffer, Qnil); |
| 1781 | } | 1780 | } |
| 1782 | 1781 | ||
| 1783 | Lisp_Object Qregion_extract_function; | ||
| 1784 | |||
| 1785 | /* Check that it is okay to modify the buffer between START and END, | 1782 | /* Check that it is okay to modify the buffer between START and END, |
| 1786 | which are char positions. | 1783 | which are char positions. |
| 1787 | 1784 | ||
| @@ -1994,7 +1991,7 @@ signal_before_change (ptrdiff_t start_int, ptrdiff_t end_int, | |||
| 1994 | { | 1991 | { |
| 1995 | PRESERVE_VALUE; | 1992 | PRESERVE_VALUE; |
| 1996 | PRESERVE_START_END; | 1993 | PRESERVE_START_END; |
| 1997 | Frun_hooks (1, &Qfirst_change_hook); | 1994 | run_hook (Qfirst_change_hook); |
| 1998 | } | 1995 | } |
| 1999 | 1996 | ||
| 2000 | /* Now run the before-change-functions if any. */ | 1997 | /* Now run the before-change-functions if any. */ |
diff --git a/src/intervals.c b/src/intervals.c index 842e0c20c42..78e0f50f6fe 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Code for doing intervals. | 1 | /* Code for doing intervals. |
| 2 | Copyright (C) 1993-1995, 1997-1998, 2001-2014 Free Software | 2 | Copyright (C) 1993-1995, 1997-1998, 2001-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
diff --git a/src/intervals.h b/src/intervals.h index bd1f49dc383..b2260d002e6 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions and global variables for intervals. | 1 | /* Definitions and global variables for intervals. |
| 2 | Copyright (C) 1993-1994, 2000-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993-1994, 2000-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -271,21 +271,7 @@ extern INTERVAL interval_of (ptrdiff_t, Lisp_Object); | |||
| 271 | /* Defined in xdisp.c. */ | 271 | /* Defined in xdisp.c. */ |
| 272 | extern int invisible_p (Lisp_Object, Lisp_Object); | 272 | extern int invisible_p (Lisp_Object, Lisp_Object); |
| 273 | 273 | ||
| 274 | /* Declared in textprop.c. */ | 274 | /* Defined in textprop.c. */ |
| 275 | |||
| 276 | /* Types of hooks. */ | ||
| 277 | extern Lisp_Object Qpoint_left; | ||
| 278 | extern Lisp_Object Qpoint_entered; | ||
| 279 | extern Lisp_Object Qmodification_hooks; | ||
| 280 | extern Lisp_Object Qcategory; | ||
| 281 | extern Lisp_Object Qlocal_map; | ||
| 282 | |||
| 283 | /* Visual properties text (including strings) may have. */ | ||
| 284 | extern Lisp_Object Qinvisible, Qintangible; | ||
| 285 | |||
| 286 | /* Sticky properties. */ | ||
| 287 | extern Lisp_Object Qfront_sticky, Qrear_nonsticky; | ||
| 288 | |||
| 289 | extern Lisp_Object copy_text_properties (Lisp_Object, Lisp_Object, | 275 | extern Lisp_Object copy_text_properties (Lisp_Object, Lisp_Object, |
| 290 | Lisp_Object, Lisp_Object, | 276 | Lisp_Object, Lisp_Object, |
| 291 | Lisp_Object, Lisp_Object); | 277 | Lisp_Object, Lisp_Object); |
diff --git a/src/keyboard.c b/src/keyboard.c index 5b66050aa92..c177c804bad 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Keyboard and mouse input; editor command loop. | 1 | /* Keyboard and mouse input; editor command loop. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1989, 1993-1997, 1999-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1985-1989, 1993-1997, 1999-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 6 | 7 | ||
| @@ -87,11 +88,6 @@ static KBOARD *all_kboards; | |||
| 87 | /* True in the single-kboard state, false in the any-kboard state. */ | 88 | /* True in the single-kboard state, false in the any-kboard state. */ |
| 88 | static bool single_kboard; | 89 | static bool single_kboard; |
| 89 | 90 | ||
| 90 | /* Non-nil disable property on a command means | ||
| 91 | do not execute it; call disabled-command-function's value instead. */ | ||
| 92 | Lisp_Object Qdisabled; | ||
| 93 | static Lisp_Object Qdisabled_command_function; | ||
| 94 | |||
| 95 | #define NUM_RECENT_KEYS (300) | 91 | #define NUM_RECENT_KEYS (300) |
| 96 | 92 | ||
| 97 | /* Index for storing next element into recent_keys. */ | 93 | /* Index for storing next element into recent_keys. */ |
| @@ -231,42 +227,11 @@ static ptrdiff_t last_point_position; | |||
| 231 | 'volatile' here. */ | 227 | 'volatile' here. */ |
| 232 | Lisp_Object internal_last_event_frame; | 228 | Lisp_Object internal_last_event_frame; |
| 233 | 229 | ||
| 234 | static Lisp_Object Qgui_set_selection, Qhandle_switch_frame; | ||
| 235 | static Lisp_Object Qhandle_select_window; | ||
| 236 | Lisp_Object QPRIMARY; | ||
| 237 | |||
| 238 | static Lisp_Object Qself_insert_command; | ||
| 239 | static Lisp_Object Qforward_char; | ||
| 240 | static Lisp_Object Qbackward_char; | ||
| 241 | Lisp_Object Qundefined; | ||
| 242 | static Lisp_Object Qtimer_event_handler; | ||
| 243 | |||
| 244 | /* `read_key_sequence' stores here the command definition of the | 230 | /* `read_key_sequence' stores here the command definition of the |
| 245 | key sequence that it reads. */ | 231 | key sequence that it reads. */ |
| 246 | static Lisp_Object read_key_sequence_cmd; | 232 | static Lisp_Object read_key_sequence_cmd; |
| 247 | static Lisp_Object read_key_sequence_remapped; | 233 | static Lisp_Object read_key_sequence_remapped; |
| 248 | 234 | ||
| 249 | static Lisp_Object Qinput_method_function; | ||
| 250 | |||
| 251 | static Lisp_Object Qdeactivate_mark; | ||
| 252 | |||
| 253 | Lisp_Object Qrecompute_lucid_menubar, Qactivate_menubar_hook; | ||
| 254 | |||
| 255 | static Lisp_Object Qecho_area_clear_hook; | ||
| 256 | |||
| 257 | /* Hooks to run before and after each command. */ | ||
| 258 | static Lisp_Object Qpre_command_hook; | ||
| 259 | static Lisp_Object Qpost_command_hook; | ||
| 260 | |||
| 261 | static Lisp_Object Qdeferred_action_function; | ||
| 262 | |||
| 263 | static Lisp_Object Qdelayed_warnings_hook; | ||
| 264 | |||
| 265 | static Lisp_Object Qinput_method_exit_on_first_char; | ||
| 266 | static Lisp_Object Qinput_method_use_echo_area; | ||
| 267 | |||
| 268 | static Lisp_Object Qhelp_form_show; | ||
| 269 | |||
| 270 | /* File in which we write all commands we read. */ | 235 | /* File in which we write all commands we read. */ |
| 271 | static FILE *dribble; | 236 | static FILE *dribble; |
| 272 | 237 | ||
| @@ -345,83 +310,12 @@ static struct input_event * volatile kbd_store_ptr; | |||
| 345 | dequeuing functions? Such a flag could be screwed up by interrupts | 310 | dequeuing functions? Such a flag could be screwed up by interrupts |
| 346 | at inopportune times. */ | 311 | at inopportune times. */ |
| 347 | 312 | ||
| 348 | /* Symbols to head events. */ | ||
| 349 | static Lisp_Object Qmouse_movement; | ||
| 350 | static Lisp_Object Qscroll_bar_movement; | ||
| 351 | Lisp_Object Qswitch_frame; | ||
| 352 | static Lisp_Object Qfocus_in, Qfocus_out; | ||
| 353 | static Lisp_Object Qdelete_frame; | ||
| 354 | static Lisp_Object Qiconify_frame; | ||
| 355 | static Lisp_Object Qmake_frame_visible; | ||
| 356 | static Lisp_Object Qselect_window; | ||
| 357 | Lisp_Object Qhelp_echo; | ||
| 358 | |||
| 359 | static Lisp_Object Qmouse_fixup_help_message; | ||
| 360 | |||
| 361 | /* Symbols to denote kinds of events. */ | ||
| 362 | static Lisp_Object Qfunction_key; | ||
| 363 | Lisp_Object Qmouse_click; | ||
| 364 | #ifdef HAVE_NTGUI | ||
| 365 | Lisp_Object Qlanguage_change; | ||
| 366 | #endif | ||
| 367 | static Lisp_Object Qdrag_n_drop; | ||
| 368 | static Lisp_Object Qsave_session; | ||
| 369 | #ifdef HAVE_DBUS | ||
| 370 | static Lisp_Object Qdbus_event; | ||
| 371 | #endif | ||
| 372 | #ifdef USE_FILE_NOTIFY | ||
| 373 | static Lisp_Object Qfile_notify; | ||
| 374 | #endif /* USE_FILE_NOTIFY */ | ||
| 375 | static Lisp_Object Qconfig_changed_event; | ||
| 376 | |||
| 377 | /* Lisp_Object Qmouse_movement; - also an event header */ | ||
| 378 | |||
| 379 | /* Properties of event headers. */ | ||
| 380 | Lisp_Object Qevent_kind; | ||
| 381 | static Lisp_Object Qevent_symbol_elements; | ||
| 382 | |||
| 383 | /* Menu and tool bar item parts. */ | ||
| 384 | static Lisp_Object Qmenu_enable; | ||
| 385 | static Lisp_Object QCenable, QCvisible, QChelp, QCkeys, QCkey_sequence; | ||
| 386 | Lisp_Object QCfilter; | ||
| 387 | |||
| 388 | /* Non-nil disable property on a command means | ||
| 389 | do not execute it; call disabled-command-function's value instead. */ | ||
| 390 | Lisp_Object QCtoggle, QCradio; | ||
| 391 | static Lisp_Object QCbutton, QClabel; | ||
| 392 | |||
| 393 | static Lisp_Object QCvert_only; | ||
| 394 | |||
| 395 | /* An event header symbol HEAD may have a property named | ||
| 396 | Qevent_symbol_element_mask, which is of the form (BASE MODIFIERS); | ||
| 397 | BASE is the base, unmodified version of HEAD, and MODIFIERS is the | ||
| 398 | mask of modifiers applied to it. If present, this is used to help | ||
| 399 | speed up parse_modifiers. */ | ||
| 400 | Lisp_Object Qevent_symbol_element_mask; | ||
| 401 | |||
| 402 | /* An unmodified event header BASE may have a property named | ||
| 403 | Qmodifier_cache, which is an alist mapping modifier masks onto | ||
| 404 | modified versions of BASE. If present, this helps speed up | ||
| 405 | apply_modifiers. */ | ||
| 406 | static Lisp_Object Qmodifier_cache; | ||
| 407 | |||
| 408 | /* Symbols to use for parts of windows. */ | ||
| 409 | Lisp_Object Qmode_line; | ||
| 410 | Lisp_Object Qvertical_line; | ||
| 411 | Lisp_Object Qright_divider, Qbottom_divider; | ||
| 412 | Lisp_Object Qmenu_bar; | ||
| 413 | |||
| 414 | static Lisp_Object Qecho_keystrokes; | ||
| 415 | |||
| 416 | static void recursive_edit_unwind (Lisp_Object buffer); | 313 | static void recursive_edit_unwind (Lisp_Object buffer); |
| 417 | static Lisp_Object command_loop (void); | 314 | static Lisp_Object command_loop (void); |
| 418 | static Lisp_Object Qcommand_execute; | ||
| 419 | 315 | ||
| 420 | static void echo_now (void); | 316 | static void echo_now (void); |
| 421 | static ptrdiff_t echo_length (void); | 317 | static ptrdiff_t echo_length (void); |
| 422 | 318 | ||
| 423 | static Lisp_Object Qpolling_period; | ||
| 424 | |||
| 425 | /* Incremented whenever a timer is run. */ | 319 | /* Incremented whenever a timer is run. */ |
| 426 | unsigned timers_run; | 320 | unsigned timers_run; |
| 427 | 321 | ||
| @@ -1712,10 +1606,7 @@ command_loop_1 (void) | |||
| 1712 | } | 1606 | } |
| 1713 | 1607 | ||
| 1714 | if (current_buffer != prev_buffer || MODIFF != prev_modiff) | 1608 | if (current_buffer != prev_buffer || MODIFF != prev_modiff) |
| 1715 | { | 1609 | run_hook (intern ("activate-mark-hook")); |
| 1716 | Lisp_Object hook = intern ("activate-mark-hook"); | ||
| 1717 | Frun_hooks (1, &hook); | ||
| 1718 | } | ||
| 1719 | } | 1610 | } |
| 1720 | 1611 | ||
| 1721 | Vsaved_region_selection = Qnil; | 1612 | Vsaved_region_selection = Qnil; |
| @@ -5277,22 +5168,17 @@ static const char *const lispy_drag_n_drop_names[] = | |||
| 5277 | "drag-n-drop" | 5168 | "drag-n-drop" |
| 5278 | }; | 5169 | }; |
| 5279 | 5170 | ||
| 5280 | /* Scroll bar parts. */ | ||
| 5281 | static Lisp_Object Qabove_handle, Qhandle, Qbelow_handle; | ||
| 5282 | static Lisp_Object Qbefore_handle, Qhorizontal_handle, Qafter_handle; | ||
| 5283 | Lisp_Object Qup, Qdown, Qtop, Qbottom; | ||
| 5284 | static Lisp_Object Qleftmost, Qrightmost; | ||
| 5285 | static Lisp_Object Qend_scroll; | ||
| 5286 | static Lisp_Object Qratio; | ||
| 5287 | |||
| 5288 | /* An array of scroll bar parts, indexed by an enum scroll_bar_part value. | 5171 | /* An array of scroll bar parts, indexed by an enum scroll_bar_part value. |
| 5289 | Note that Qnil corresponds to scroll_bar_nowhere and should not appear | 5172 | Note that Qnil corresponds to scroll_bar_nowhere and should not appear |
| 5290 | in Lisp events. */ | 5173 | in Lisp events. */ |
| 5291 | static Lisp_Object *const scroll_bar_parts[] = { | 5174 | static struct Lisp_Symbol *const scroll_bar_parts[] = { |
| 5292 | &Qnil, &Qabove_handle, &Qhandle, &Qbelow_handle, | 5175 | XSYMBOL_INIT (Qnil), XSYMBOL_INIT (Qabove_handle), XSYMBOL_INIT (Qhandle), |
| 5293 | &Qup, &Qdown, &Qtop, &Qbottom, &Qend_scroll, &Qratio, | 5176 | XSYMBOL_INIT (Qbelow_handle), XSYMBOL_INIT (Qup), XSYMBOL_INIT (Qdown), |
| 5294 | &Qbefore_handle, &Qhorizontal_handle, &Qafter_handle, | 5177 | XSYMBOL_INIT (Qtop), XSYMBOL_INIT (Qbottom), XSYMBOL_INIT (Qend_scroll), |
| 5295 | &Qleft, &Qright, &Qleftmost, &Qrightmost, &Qend_scroll, &Qratio | 5178 | XSYMBOL_INIT (Qratio), XSYMBOL_INIT (Qbefore_handle), |
| 5179 | XSYMBOL_INIT (Qhorizontal_handle), XSYMBOL_INIT (Qafter_handle), | ||
| 5180 | XSYMBOL_INIT (Qleft), XSYMBOL_INIT (Qright), XSYMBOL_INIT (Qleftmost), | ||
| 5181 | XSYMBOL_INIT (Qrightmost), XSYMBOL_INIT (Qend_scroll), XSYMBOL_INIT (Qratio) | ||
| 5296 | }; | 5182 | }; |
| 5297 | 5183 | ||
| 5298 | /* A vector, indexed by button number, giving the down-going location | 5184 | /* A vector, indexed by button number, giving the down-going location |
| @@ -5565,7 +5451,8 @@ static Lisp_Object | |||
| 5565 | make_scroll_bar_position (struct input_event *ev, Lisp_Object type) | 5451 | make_scroll_bar_position (struct input_event *ev, Lisp_Object type) |
| 5566 | { | 5452 | { |
| 5567 | return list5 (ev->frame_or_window, type, Fcons (ev->x, ev->y), | 5453 | return list5 (ev->frame_or_window, type, Fcons (ev->x, ev->y), |
| 5568 | make_number (ev->timestamp), *scroll_bar_parts[ev->part]); | 5454 | make_number (ev->timestamp), |
| 5455 | make_lisp_symbol (scroll_bar_parts[ev->part])); | ||
| 5569 | } | 5456 | } |
| 5570 | 5457 | ||
| 5571 | /* Given a struct input_event, build the lisp event which represents | 5458 | /* Given a struct input_event, build the lisp event which represents |
| @@ -6204,7 +6091,7 @@ make_lispy_movement (struct frame *frame, Lisp_Object bar_window, enum scroll_ba | |||
| 6204 | { | 6091 | { |
| 6205 | Lisp_Object part_sym; | 6092 | Lisp_Object part_sym; |
| 6206 | 6093 | ||
| 6207 | part_sym = *scroll_bar_parts[(int) part]; | 6094 | part_sym = make_lisp_symbol (scroll_bar_parts[part]); |
| 6208 | return list2 (Qscroll_bar_movement, | 6095 | return list2 (Qscroll_bar_movement, |
| 6209 | list5 (bar_window, | 6096 | list5 (bar_window, |
| 6210 | Qvertical_scroll_bar, | 6097 | Qvertical_scroll_bar, |
| @@ -8068,11 +7955,6 @@ static Lisp_Object tool_bar_item_properties; | |||
| 8068 | 7955 | ||
| 8069 | static int ntool_bar_items; | 7956 | static int ntool_bar_items; |
| 8070 | 7957 | ||
| 8071 | /* The symbols `:image' and `:rtl'. */ | ||
| 8072 | |||
| 8073 | static Lisp_Object QCimage; | ||
| 8074 | static Lisp_Object QCrtl; | ||
| 8075 | |||
| 8076 | /* Function prototypes. */ | 7958 | /* Function prototypes. */ |
| 8077 | 7959 | ||
| 8078 | static void init_tool_bar_items (Lisp_Object); | 7960 | static void init_tool_bar_items (Lisp_Object); |
| @@ -10331,7 +10213,6 @@ On such systems, Emacs starts a subshell instead of suspending. */) | |||
| 10331 | int old_height, old_width; | 10213 | int old_height, old_width; |
| 10332 | int width, height; | 10214 | int width, height; |
| 10333 | struct gcpro gcpro1; | 10215 | struct gcpro gcpro1; |
| 10334 | Lisp_Object hook; | ||
| 10335 | 10216 | ||
| 10336 | if (tty_list && tty_list->next) | 10217 | if (tty_list && tty_list->next) |
| 10337 | error ("There are other tty frames open; close them before suspending Emacs"); | 10218 | error ("There are other tty frames open; close them before suspending Emacs"); |
| @@ -10339,9 +10220,7 @@ On such systems, Emacs starts a subshell instead of suspending. */) | |||
| 10339 | if (!NILP (stuffstring)) | 10220 | if (!NILP (stuffstring)) |
| 10340 | CHECK_STRING (stuffstring); | 10221 | CHECK_STRING (stuffstring); |
| 10341 | 10222 | ||
| 10342 | /* Run the functions in suspend-hook. */ | 10223 | run_hook (intern ("suspend-hook")); |
| 10343 | hook = intern ("suspend-hook"); | ||
| 10344 | Frun_hooks (1, &hook); | ||
| 10345 | 10224 | ||
| 10346 | GCPRO1 (stuffstring); | 10225 | GCPRO1 (stuffstring); |
| 10347 | get_tty_size (fileno (CURTTY ()->input), &old_width, &old_height); | 10226 | get_tty_size (fileno (CURTTY ()->input), &old_width, &old_height); |
| @@ -10365,9 +10244,7 @@ On such systems, Emacs starts a subshell instead of suspending. */) | |||
| 10365 | height - FRAME_MENU_BAR_LINES (SELECTED_FRAME ()), | 10244 | height - FRAME_MENU_BAR_LINES (SELECTED_FRAME ()), |
| 10366 | 0, 0, 0, 0); | 10245 | 0, 0, 0, 0); |
| 10367 | 10246 | ||
| 10368 | /* Run suspend-resume-hook. */ | 10247 | run_hook (intern ("suspend-resume-hook")); |
| 10369 | hook = intern ("suspend-resume-hook"); | ||
| 10370 | Frun_hooks (1, &hook); | ||
| 10371 | 10248 | ||
| 10372 | UNGCPRO; | 10249 | UNGCPRO; |
| 10373 | return Qnil; | 10250 | return Qnil; |
| @@ -11111,26 +10988,30 @@ init_keyboard (void) | |||
| 11111 | #endif | 10988 | #endif |
| 11112 | } | 10989 | } |
| 11113 | 10990 | ||
| 11114 | /* This type's only use is in syms_of_keyboard, to initialize the | 10991 | /* This type's only use is in syms_of_keyboard, to put properties on the |
| 11115 | event header symbols and put properties on them. */ | 10992 | event header symbols. */ |
| 11116 | struct event_head { | 10993 | struct event_head { |
| 11117 | Lisp_Object *var; | 10994 | struct Lisp_Symbol *var; |
| 11118 | const char *name; | 10995 | struct Lisp_Symbol *kind; |
| 11119 | Lisp_Object *kind; | ||
| 11120 | }; | 10996 | }; |
| 11121 | 10997 | ||
| 10998 | |||
| 10999 | |||
| 11122 | static const struct event_head head_table[] = { | 11000 | static const struct event_head head_table[] = { |
| 11123 | {&Qmouse_movement, "mouse-movement", &Qmouse_movement}, | 11001 | {XSYMBOL_INIT (Qmouse_movement), XSYMBOL_INIT (Qmouse_movement)}, |
| 11124 | {&Qscroll_bar_movement, "scroll-bar-movement", &Qmouse_movement}, | 11002 | {XSYMBOL_INIT (Qscroll_bar_movement), XSYMBOL_INIT (Qmouse_movement)}, |
| 11125 | {&Qswitch_frame, "switch-frame", &Qswitch_frame}, | 11003 | |
| 11126 | {&Qfocus_in, "focus-in", &Qfocus_in}, | 11004 | /* Some of the event heads. */ |
| 11127 | {&Qfocus_out, "focus-out", &Qfocus_out}, | 11005 | {XSYMBOL_INIT (Qswitch_frame), XSYMBOL_INIT (Qswitch_frame)}, |
| 11128 | {&Qdelete_frame, "delete-frame", &Qdelete_frame}, | 11006 | |
| 11129 | {&Qiconify_frame, "iconify-frame", &Qiconify_frame}, | 11007 | {XSYMBOL_INIT (Qfocus_in), XSYMBOL_INIT (Qfocus_in)}, |
| 11130 | {&Qmake_frame_visible, "make-frame-visible", &Qmake_frame_visible}, | 11008 | {XSYMBOL_INIT (Qfocus_out), XSYMBOL_INIT (Qfocus_out)}, |
| 11009 | {XSYMBOL_INIT (Qdelete_frame), XSYMBOL_INIT (Qdelete_frame)}, | ||
| 11010 | {XSYMBOL_INIT (Qiconify_frame), XSYMBOL_INIT (Qiconify_frame)}, | ||
| 11011 | {XSYMBOL_INIT (Qmake_frame_visible), XSYMBOL_INIT (Qmake_frame_visible)}, | ||
| 11131 | /* `select-window' should be handled just like `switch-frame' | 11012 | /* `select-window' should be handled just like `switch-frame' |
| 11132 | in read_key_sequence. */ | 11013 | in read_key_sequence. */ |
| 11133 | {&Qselect_window, "select-window", &Qswitch_frame} | 11014 | {XSYMBOL_INIT (Qselect_window), XSYMBOL_INIT (Qswitch_frame)} |
| 11134 | }; | 11015 | }; |
| 11135 | 11016 | ||
| 11136 | void | 11017 | void |
| @@ -11169,17 +11050,29 @@ syms_of_keyboard (void) | |||
| 11169 | DEFSYM (Qself_insert_command, "self-insert-command"); | 11050 | DEFSYM (Qself_insert_command, "self-insert-command"); |
| 11170 | DEFSYM (Qforward_char, "forward-char"); | 11051 | DEFSYM (Qforward_char, "forward-char"); |
| 11171 | DEFSYM (Qbackward_char, "backward-char"); | 11052 | DEFSYM (Qbackward_char, "backward-char"); |
| 11053 | |||
| 11054 | /* Non-nil disable property on a command means do not execute it; | ||
| 11055 | call disabled-command-function's value instead. */ | ||
| 11172 | DEFSYM (Qdisabled, "disabled"); | 11056 | DEFSYM (Qdisabled, "disabled"); |
| 11057 | |||
| 11173 | DEFSYM (Qundefined, "undefined"); | 11058 | DEFSYM (Qundefined, "undefined"); |
| 11059 | |||
| 11060 | /* Hooks to run before and after each command. */ | ||
| 11174 | DEFSYM (Qpre_command_hook, "pre-command-hook"); | 11061 | DEFSYM (Qpre_command_hook, "pre-command-hook"); |
| 11175 | DEFSYM (Qpost_command_hook, "post-command-hook"); | 11062 | DEFSYM (Qpost_command_hook, "post-command-hook"); |
| 11063 | |||
| 11176 | DEFSYM (Qdeferred_action_function, "deferred-action-function"); | 11064 | DEFSYM (Qdeferred_action_function, "deferred-action-function"); |
| 11177 | DEFSYM (Qdelayed_warnings_hook, "delayed-warnings-hook"); | 11065 | DEFSYM (Qdelayed_warnings_hook, "delayed-warnings-hook"); |
| 11178 | DEFSYM (Qfunction_key, "function-key"); | 11066 | DEFSYM (Qfunction_key, "function-key"); |
| 11067 | |||
| 11068 | /* The values of Qevent_kind properties. */ | ||
| 11179 | DEFSYM (Qmouse_click, "mouse-click"); | 11069 | DEFSYM (Qmouse_click, "mouse-click"); |
| 11070 | |||
| 11180 | DEFSYM (Qdrag_n_drop, "drag-n-drop"); | 11071 | DEFSYM (Qdrag_n_drop, "drag-n-drop"); |
| 11181 | DEFSYM (Qsave_session, "save-session"); | 11072 | DEFSYM (Qsave_session, "save-session"); |
| 11182 | DEFSYM (Qconfig_changed_event, "config-changed-event"); | 11073 | DEFSYM (Qconfig_changed_event, "config-changed-event"); |
| 11074 | |||
| 11075 | /* Menu and tool bar item parts. */ | ||
| 11183 | DEFSYM (Qmenu_enable, "menu-enable"); | 11076 | DEFSYM (Qmenu_enable, "menu-enable"); |
| 11184 | 11077 | ||
| 11185 | #ifdef HAVE_NTGUI | 11078 | #ifdef HAVE_NTGUI |
| @@ -11194,6 +11087,7 @@ syms_of_keyboard (void) | |||
| 11194 | DEFSYM (Qfile_notify, "file-notify"); | 11087 | DEFSYM (Qfile_notify, "file-notify"); |
| 11195 | #endif /* USE_FILE_NOTIFY */ | 11088 | #endif /* USE_FILE_NOTIFY */ |
| 11196 | 11089 | ||
| 11090 | /* Menu and tool bar item parts. */ | ||
| 11197 | DEFSYM (QCenable, ":enable"); | 11091 | DEFSYM (QCenable, ":enable"); |
| 11198 | DEFSYM (QCvisible, ":visible"); | 11092 | DEFSYM (QCvisible, ":visible"); |
| 11199 | DEFSYM (QChelp, ":help"); | 11093 | DEFSYM (QChelp, ":help"); |
| @@ -11201,14 +11095,16 @@ syms_of_keyboard (void) | |||
| 11201 | DEFSYM (QCbutton, ":button"); | 11095 | DEFSYM (QCbutton, ":button"); |
| 11202 | DEFSYM (QCkeys, ":keys"); | 11096 | DEFSYM (QCkeys, ":keys"); |
| 11203 | DEFSYM (QCkey_sequence, ":key-sequence"); | 11097 | DEFSYM (QCkey_sequence, ":key-sequence"); |
| 11098 | |||
| 11099 | /* Non-nil disable property on a command means | ||
| 11100 | do not execute it; call disabled-command-function's value instead. */ | ||
| 11204 | DEFSYM (QCtoggle, ":toggle"); | 11101 | DEFSYM (QCtoggle, ":toggle"); |
| 11205 | DEFSYM (QCradio, ":radio"); | 11102 | DEFSYM (QCradio, ":radio"); |
| 11206 | DEFSYM (QClabel, ":label"); | 11103 | DEFSYM (QClabel, ":label"); |
| 11207 | DEFSYM (QCvert_only, ":vert-only"); | 11104 | DEFSYM (QCvert_only, ":vert-only"); |
| 11208 | 11105 | ||
| 11209 | DEFSYM (Qmode_line, "mode-line"); | 11106 | /* Symbols to use for parts of windows. */ |
| 11210 | DEFSYM (Qvertical_line, "vertical-line"); | 11107 | DEFSYM (Qvertical_line, "vertical-line"); |
| 11211 | DEFSYM (Qmenu_bar, "menu-bar"); | ||
| 11212 | DEFSYM (Qright_divider, "right-divider"); | 11108 | DEFSYM (Qright_divider, "right-divider"); |
| 11213 | DEFSYM (Qbottom_divider, "bottom-divider"); | 11109 | DEFSYM (Qbottom_divider, "bottom-divider"); |
| 11214 | 11110 | ||
| @@ -11231,9 +11127,21 @@ syms_of_keyboard (void) | |||
| 11231 | DEFSYM (Qleftmost, "leftmost"); | 11127 | DEFSYM (Qleftmost, "leftmost"); |
| 11232 | DEFSYM (Qrightmost, "rightmost"); | 11128 | DEFSYM (Qrightmost, "rightmost"); |
| 11233 | 11129 | ||
| 11130 | /* Properties of event headers. */ | ||
| 11234 | DEFSYM (Qevent_kind, "event-kind"); | 11131 | DEFSYM (Qevent_kind, "event-kind"); |
| 11235 | DEFSYM (Qevent_symbol_elements, "event-symbol-elements"); | 11132 | DEFSYM (Qevent_symbol_elements, "event-symbol-elements"); |
| 11133 | |||
| 11134 | /* An event header symbol HEAD may have a property named | ||
| 11135 | Qevent_symbol_element_mask, which is of the form (BASE MODIFIERS); | ||
| 11136 | BASE is the base, unmodified version of HEAD, and MODIFIERS is the | ||
| 11137 | mask of modifiers applied to it. If present, this is used to help | ||
| 11138 | speed up parse_modifiers. */ | ||
| 11236 | DEFSYM (Qevent_symbol_element_mask, "event-symbol-element-mask"); | 11139 | DEFSYM (Qevent_symbol_element_mask, "event-symbol-element-mask"); |
| 11140 | |||
| 11141 | /* An unmodified event header BASE may have a property named | ||
| 11142 | Qmodifier_cache, which is an alist mapping modifier masks onto | ||
| 11143 | modified versions of BASE. If present, this helps speed up | ||
| 11144 | apply_modifiers. */ | ||
| 11237 | DEFSYM (Qmodifier_cache, "modifier-cache"); | 11145 | DEFSYM (Qmodifier_cache, "modifier-cache"); |
| 11238 | 11146 | ||
| 11239 | DEFSYM (Qrecompute_lucid_menubar, "recompute-lucid-menubar"); | 11147 | DEFSYM (Qrecompute_lucid_menubar, "recompute-lucid-menubar"); |
| @@ -11242,7 +11150,10 @@ syms_of_keyboard (void) | |||
| 11242 | DEFSYM (Qpolling_period, "polling-period"); | 11150 | DEFSYM (Qpolling_period, "polling-period"); |
| 11243 | 11151 | ||
| 11244 | DEFSYM (Qgui_set_selection, "gui-set-selection"); | 11152 | DEFSYM (Qgui_set_selection, "gui-set-selection"); |
| 11153 | |||
| 11154 | /* The primary selection. */ | ||
| 11245 | DEFSYM (QPRIMARY, "PRIMARY"); | 11155 | DEFSYM (QPRIMARY, "PRIMARY"); |
| 11156 | |||
| 11246 | DEFSYM (Qhandle_switch_frame, "handle-switch-frame"); | 11157 | DEFSYM (Qhandle_switch_frame, "handle-switch-frame"); |
| 11247 | DEFSYM (Qhandle_select_window, "handle-select-window"); | 11158 | DEFSYM (Qhandle_select_window, "handle-select-window"); |
| 11248 | 11159 | ||
| @@ -11257,17 +11168,26 @@ syms_of_keyboard (void) | |||
| 11257 | Fset (Qinput_method_exit_on_first_char, Qnil); | 11168 | Fset (Qinput_method_exit_on_first_char, Qnil); |
| 11258 | Fset (Qinput_method_use_echo_area, Qnil); | 11169 | Fset (Qinput_method_use_echo_area, Qnil); |
| 11259 | 11170 | ||
| 11171 | /* Symbols to head events. */ | ||
| 11172 | DEFSYM (Qmouse_movement, "mouse-movement"); | ||
| 11173 | DEFSYM (Qscroll_bar_movement, "scroll-bar-movement"); | ||
| 11174 | DEFSYM (Qswitch_frame, "switch-frame"); | ||
| 11175 | DEFSYM (Qfocus_in, "focus-in"); | ||
| 11176 | DEFSYM (Qfocus_out, "focus-out"); | ||
| 11177 | DEFSYM (Qdelete_frame, "delete-frame"); | ||
| 11178 | DEFSYM (Qiconify_frame, "iconify-frame"); | ||
| 11179 | DEFSYM (Qmake_frame_visible, "make-frame-visible"); | ||
| 11180 | DEFSYM (Qselect_window, "select-window"); | ||
| 11260 | { | 11181 | { |
| 11261 | int i; | 11182 | int i; |
| 11262 | int len = ARRAYELTS (head_table); | ||
| 11263 | 11183 | ||
| 11264 | for (i = 0; i < len; i++) | 11184 | for (i = 0; i < ARRAYELTS (head_table); i++) |
| 11265 | { | 11185 | { |
| 11266 | const struct event_head *p = &head_table[i]; | 11186 | const struct event_head *p = &head_table[i]; |
| 11267 | *p->var = intern_c_string (p->name); | 11187 | Lisp_Object var = make_lisp_symbol (p->var); |
| 11268 | staticpro (p->var); | 11188 | Lisp_Object kind = make_lisp_symbol (p->kind); |
| 11269 | Fput (*p->var, Qevent_kind, *p->kind); | 11189 | Fput (var, Qevent_kind, kind); |
| 11270 | Fput (*p->var, Qevent_symbol_elements, list1 (*p->var)); | 11190 | Fput (var, Qevent_symbol_elements, list1 (var)); |
| 11271 | } | 11191 | } |
| 11272 | } | 11192 | } |
| 11273 | 11193 | ||
| @@ -11593,13 +11513,13 @@ with no modifiers; thus, setting `extra-keyboard-modifiers' to zero | |||
| 11593 | cancels any modification. */); | 11513 | cancels any modification. */); |
| 11594 | extra_keyboard_modifiers = 0; | 11514 | extra_keyboard_modifiers = 0; |
| 11595 | 11515 | ||
| 11516 | DEFSYM (Qdeactivate_mark, "deactivate-mark"); | ||
| 11596 | DEFVAR_LISP ("deactivate-mark", Vdeactivate_mark, | 11517 | DEFVAR_LISP ("deactivate-mark", Vdeactivate_mark, |
| 11597 | doc: /* If an editing command sets this to t, deactivate the mark afterward. | 11518 | doc: /* If an editing command sets this to t, deactivate the mark afterward. |
| 11598 | The command loop sets this to nil before each command, | 11519 | The command loop sets this to nil before each command, |
| 11599 | and tests the value when the command returns. | 11520 | and tests the value when the command returns. |
| 11600 | Buffer modification stores t in this variable. */); | 11521 | Buffer modification stores t in this variable. */); |
| 11601 | Vdeactivate_mark = Qnil; | 11522 | Vdeactivate_mark = Qnil; |
| 11602 | DEFSYM (Qdeactivate_mark, "deactivate-mark"); | ||
| 11603 | Fmake_variable_buffer_local (Qdeactivate_mark); | 11523 | Fmake_variable_buffer_local (Qdeactivate_mark); |
| 11604 | 11524 | ||
| 11605 | DEFVAR_LISP ("pre-command-hook", Vpre_command_hook, | 11525 | DEFVAR_LISP ("pre-command-hook", Vpre_command_hook, |
diff --git a/src/keyboard.h b/src/keyboard.h index da83b9b01ed..0ce6d184482 100644 --- a/src/keyboard.h +++ b/src/keyboard.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Declarations useful when processing input. | 1 | /* Declarations useful when processing input. |
| 2 | Copyright (C) 1985-1987, 1993, 2001-2014 Free Software Foundation, | 2 | Copyright (C) 1985-1987, 1993, 2001-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -248,8 +248,6 @@ extern ptrdiff_t this_command_key_count; | |||
| 248 | generated by the next character. */ | 248 | generated by the next character. */ |
| 249 | extern Lisp_Object internal_last_event_frame; | 249 | extern Lisp_Object internal_last_event_frame; |
| 250 | 250 | ||
| 251 | extern Lisp_Object Qrecompute_lucid_menubar, Qactivate_menubar_hook; | ||
| 252 | |||
| 253 | /* This holds a Lisp vector that holds the properties of a single | 251 | /* This holds a Lisp vector that holds the properties of a single |
| 254 | menu item while decoding it in parse_menu_item. | 252 | menu item while decoding it in parse_menu_item. |
| 255 | Using a Lisp vector to hold this information while we decode it | 253 | Using a Lisp vector to hold this information while we decode it |
| @@ -387,25 +385,10 @@ extern void unuse_menu_items (void); | |||
| 387 | #define POSN_INBUFFER_P(posn) (NILP (POSN_STRING (posn))) | 385 | #define POSN_INBUFFER_P(posn) (NILP (POSN_STRING (posn))) |
| 388 | #define POSN_BUFFER_POSN(posn) (Fnth (make_number (5), (posn))) | 386 | #define POSN_BUFFER_POSN(posn) (Fnth (make_number (5), (posn))) |
| 389 | 387 | ||
| 390 | /* Some of the event heads. */ | ||
| 391 | extern Lisp_Object Qswitch_frame; | ||
| 392 | |||
| 393 | /* Properties on event heads. */ | ||
| 394 | extern Lisp_Object Qevent_kind; | ||
| 395 | |||
| 396 | /* The values of Qevent_kind properties. */ | ||
| 397 | extern Lisp_Object Qmouse_click; | ||
| 398 | |||
| 399 | extern Lisp_Object Qhelp_echo; | ||
| 400 | |||
| 401 | /* Getting the kind of an event head. */ | 388 | /* Getting the kind of an event head. */ |
| 402 | #define EVENT_HEAD_KIND(event_head) \ | 389 | #define EVENT_HEAD_KIND(event_head) \ |
| 403 | (Fget ((event_head), Qevent_kind)) | 390 | (Fget ((event_head), Qevent_kind)) |
| 404 | 391 | ||
| 405 | /* Symbols to use for non-text mouse positions. */ | ||
| 406 | extern Lisp_Object Qmode_line, Qvertical_line, Qheader_line; | ||
| 407 | extern Lisp_Object Qright_divider, Qbottom_divider; | ||
| 408 | |||
| 409 | /* True while doing kbd input. */ | 392 | /* True while doing kbd input. */ |
| 410 | extern bool waiting_for_input; | 393 | extern bool waiting_for_input; |
| 411 | 394 | ||
| @@ -415,9 +398,6 @@ extern struct timespec *input_available_clear_time; | |||
| 415 | 398 | ||
| 416 | extern bool ignore_mouse_drag_p; | 399 | extern bool ignore_mouse_drag_p; |
| 417 | 400 | ||
| 418 | /* The primary selection. */ | ||
| 419 | extern Lisp_Object QPRIMARY; | ||
| 420 | |||
| 421 | extern Lisp_Object parse_modifiers (Lisp_Object); | 401 | extern Lisp_Object parse_modifiers (Lisp_Object); |
| 422 | extern Lisp_Object reorder_modifiers (Lisp_Object); | 402 | extern Lisp_Object reorder_modifiers (Lisp_Object); |
| 423 | extern Lisp_Object read_char (int, Lisp_Object, Lisp_Object, | 403 | extern Lisp_Object read_char (int, Lisp_Object, Lisp_Object, |
| @@ -428,17 +408,6 @@ extern int parse_solitary_modifier (Lisp_Object symbol); | |||
| 428 | /* This is like Vthis_command, except that commands never set it. */ | 408 | /* This is like Vthis_command, except that commands never set it. */ |
| 429 | extern Lisp_Object real_this_command; | 409 | extern Lisp_Object real_this_command; |
| 430 | 410 | ||
| 431 | /* Non-nil disable property on a command means | ||
| 432 | do not execute it; call disabled-command-function's value instead. */ | ||
| 433 | extern Lisp_Object QCtoggle, QCradio; | ||
| 434 | |||
| 435 | /* An event header symbol HEAD may have a property named | ||
| 436 | Qevent_symbol_element_mask, which is of the form (BASE MODIFIERS); | ||
| 437 | BASE is the base, unmodified version of HEAD, and MODIFIERS is the | ||
| 438 | mask of modifiers applied to it. If present, this is used to help | ||
| 439 | speed up parse_modifiers. */ | ||
| 440 | extern Lisp_Object Qevent_symbol_element_mask; | ||
| 441 | |||
| 442 | extern int quit_char; | 411 | extern int quit_char; |
| 443 | 412 | ||
| 444 | extern unsigned int timers_run; | 413 | extern unsigned int timers_run; |
diff --git a/src/keymap.c b/src/keymap.c index c7c7d196c22..9c7b4d29a3e 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Manipulation of keymaps | 1 | /* Manipulation of keymaps |
| 2 | Copyright (C) 1985-1988, 1993-1995, 1998-2014 Free Software | 2 | Copyright (C) 1985-1988, 1993-1995, 1998-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -76,12 +76,6 @@ Lisp_Object control_x_map; /* The keymap used for globally bound | |||
| 76 | bindings when spaces are not encouraged | 76 | bindings when spaces are not encouraged |
| 77 | in the minibuf. */ | 77 | in the minibuf. */ |
| 78 | 78 | ||
| 79 | /* Keymap used for minibuffers when doing completion. */ | ||
| 80 | /* Keymap used for minibuffers when doing completion and require a match. */ | ||
| 81 | static Lisp_Object Qkeymapp, Qnon_ascii; | ||
| 82 | Lisp_Object Qkeymap, Qmenu_item, Qremap; | ||
| 83 | static Lisp_Object QCadvertised_binding; | ||
| 84 | |||
| 85 | /* Alist of elements like (DEL . "\d"). */ | 79 | /* Alist of elements like (DEL . "\d"). */ |
| 86 | static Lisp_Object exclude_keys; | 80 | static Lisp_Object exclude_keys; |
| 87 | 81 | ||
| @@ -654,8 +648,6 @@ map_keymap (Lisp_Object map, map_keymap_function_t fun, Lisp_Object args, | |||
| 654 | UNGCPRO; | 648 | UNGCPRO; |
| 655 | } | 649 | } |
| 656 | 650 | ||
| 657 | static Lisp_Object Qkeymap_canonicalize; | ||
| 658 | |||
| 659 | /* Same as map_keymap, but does it right, properly eliminating duplicate | 651 | /* Same as map_keymap, but does it right, properly eliminating duplicate |
| 660 | bindings due to inheritance. */ | 652 | bindings due to inheritance. */ |
| 661 | void | 653 | void |
| @@ -1998,7 +1990,6 @@ then the value includes only maps for prefixes that start with PREFIX. */) | |||
| 1998 | } | 1990 | } |
| 1999 | return maps; | 1991 | return maps; |
| 2000 | } | 1992 | } |
| 2001 | static Lisp_Object Qsingle_key_description, Qkey_description; | ||
| 2002 | 1993 | ||
| 2003 | /* This function cannot GC. */ | 1994 | /* This function cannot GC. */ |
| 2004 | 1995 | ||
| @@ -3734,12 +3725,15 @@ be preferred. */); | |||
| 3734 | Vwhere_is_preferred_modifier = Qnil; | 3725 | Vwhere_is_preferred_modifier = Qnil; |
| 3735 | where_is_preferred_modifier = 0; | 3726 | where_is_preferred_modifier = 0; |
| 3736 | 3727 | ||
| 3728 | DEFSYM (Qmenu_bar, "menu-bar"); | ||
| 3729 | DEFSYM (Qmode_line, "mode-line"); | ||
| 3730 | |||
| 3737 | staticpro (&Vmouse_events); | 3731 | staticpro (&Vmouse_events); |
| 3738 | Vmouse_events = listn (CONSTYPE_PURE, 9, | 3732 | Vmouse_events = listn (CONSTYPE_PURE, 9, |
| 3739 | intern_c_string ("menu-bar"), | 3733 | Qmenu_bar, |
| 3740 | intern_c_string ("tool-bar"), | 3734 | intern_c_string ("tool-bar"), |
| 3741 | intern_c_string ("header-line"), | 3735 | intern_c_string ("header-line"), |
| 3742 | intern_c_string ("mode-line"), | 3736 | Qmode_line, |
| 3743 | intern_c_string ("mouse-1"), | 3737 | intern_c_string ("mouse-1"), |
| 3744 | intern_c_string ("mouse-2"), | 3738 | intern_c_string ("mouse-2"), |
| 3745 | intern_c_string ("mouse-3"), | 3739 | intern_c_string ("mouse-3"), |
| @@ -3748,6 +3742,9 @@ be preferred. */); | |||
| 3748 | 3742 | ||
| 3749 | DEFSYM (Qsingle_key_description, "single-key-description"); | 3743 | DEFSYM (Qsingle_key_description, "single-key-description"); |
| 3750 | DEFSYM (Qkey_description, "key-description"); | 3744 | DEFSYM (Qkey_description, "key-description"); |
| 3745 | |||
| 3746 | /* Keymap used for minibuffers when doing completion. */ | ||
| 3747 | /* Keymap used for minibuffers when doing completion and require a match. */ | ||
| 3751 | DEFSYM (Qkeymapp, "keymapp"); | 3748 | DEFSYM (Qkeymapp, "keymapp"); |
| 3752 | DEFSYM (Qnon_ascii, "non-ascii"); | 3749 | DEFSYM (Qnon_ascii, "non-ascii"); |
| 3753 | DEFSYM (Qmenu_item, "menu-item"); | 3750 | DEFSYM (Qmenu_item, "menu-item"); |
diff --git a/src/keymap.h b/src/keymap.h index b01886dfa61..215dd3f289f 100644 --- a/src/keymap.h +++ b/src/keymap.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Functions to manipulate keymaps. | 1 | /* Functions to manipulate keymaps. |
| 2 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -30,9 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | #define KEY_DESCRIPTION_SIZE ((2 * 6) + 1 + (CHARACTERBITS / 3) + 1 + 1) | 30 | #define KEY_DESCRIPTION_SIZE ((2 * 6) + 1 + (CHARACTERBITS / 3) + 1 + 1) |
| 31 | 31 | ||
| 32 | #define KEYMAPP(m) (!NILP (get_keymap (m, false, false))) | 32 | #define KEYMAPP(m) (!NILP (get_keymap (m, false, false))) |
| 33 | extern Lisp_Object Qkeymap, Qmenu_bar; | ||
| 34 | extern Lisp_Object Qremap; | ||
| 35 | extern Lisp_Object Qmenu_item; | ||
| 36 | extern Lisp_Object current_global_map; | 33 | extern Lisp_Object current_global_map; |
| 37 | extern char *push_key_description (EMACS_INT, char *); | 34 | extern char *push_key_description (EMACS_INT, char *); |
| 38 | extern Lisp_Object access_keymap (Lisp_Object, Lisp_Object, bool, bool, bool); | 35 | extern Lisp_Object access_keymap (Lisp_Object, Lisp_Object, bool, bool, bool); |
diff --git a/src/lastfile.c b/src/lastfile.c index 84b28b0311b..1c8e1f33b5c 100644 --- a/src/lastfile.c +++ b/src/lastfile.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Mark end of data space to dump as pure, for GNU Emacs. | 1 | /* Mark end of data space to dump as pure, for GNU Emacs. |
| 2 | Copyright (C) 1985, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/lisp.h b/src/lisp.h index 3a6d247f6d5..1f18b5e0775 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Fundamental definitions for GNU Emacs Lisp interpreter. | 1 | /* Fundamental definitions for GNU Emacs Lisp interpreter. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1987, 1993-1995, 1997-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1987, 1993-1995, 1997-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -354,9 +354,11 @@ error !; | |||
| 354 | #define lisp_h_XCONS(a) \ | 354 | #define lisp_h_XCONS(a) \ |
| 355 | (eassert (CONSP (a)), (struct Lisp_Cons *) XUNTAG (a, Lisp_Cons)) | 355 | (eassert (CONSP (a)), (struct Lisp_Cons *) XUNTAG (a, Lisp_Cons)) |
| 356 | #define lisp_h_XHASH(a) XUINT (a) | 356 | #define lisp_h_XHASH(a) XUINT (a) |
| 357 | #define lisp_h_XPNTR(a) ((void *) (intptr_t) (XLI (a) & VALMASK)) | 357 | #define lisp_h_XPNTR(a) \ |
| 358 | (SYMBOLP (a) ? XSYMBOL (a) : (void *) ((intptr_t) (XLI (a) & VALMASK))) | ||
| 358 | #define lisp_h_XSYMBOL(a) \ | 359 | #define lisp_h_XSYMBOL(a) \ |
| 359 | (eassert (SYMBOLP (a)), (struct Lisp_Symbol *) XUNTAG (a, Lisp_Symbol)) | 360 | (eassert (SYMBOLP (a)), \ |
| 361 | (struct Lisp_Symbol *) XUNTAGBASE (a, Lisp_Symbol, lispsym)) | ||
| 360 | #ifndef GC_CHECK_CONS_LIST | 362 | #ifndef GC_CHECK_CONS_LIST |
| 361 | # define lisp_h_check_cons_list() ((void) 0) | 363 | # define lisp_h_check_cons_list() ((void) 0) |
| 362 | #endif | 364 | #endif |
| @@ -366,7 +368,9 @@ error !; | |||
| 366 | # define lisp_h_XFASTINT(a) XINT (a) | 368 | # define lisp_h_XFASTINT(a) XINT (a) |
| 367 | # define lisp_h_XINT(a) (XLI (a) >> INTTYPEBITS) | 369 | # define lisp_h_XINT(a) (XLI (a) >> INTTYPEBITS) |
| 368 | # define lisp_h_XTYPE(a) ((enum Lisp_Type) (XLI (a) & ~VALMASK)) | 370 | # define lisp_h_XTYPE(a) ((enum Lisp_Type) (XLI (a) & ~VALMASK)) |
| 369 | # define lisp_h_XUNTAG(a, type) ((void *) (XLI (a) - (type))) | 371 | # define lisp_h_XUNTAG(a, type) XUNTAGBASE (a, type, 0) |
| 372 | # define lisp_h_XUNTAGBASE(a, type, base) \ | ||
| 373 | ((void *) ((char *) (base) - (type) + (intptr_t) XLI (a))) | ||
| 370 | #endif | 374 | #endif |
| 371 | 375 | ||
| 372 | /* When compiling via gcc -O0, define the key operations as macros, as | 376 | /* When compiling via gcc -O0, define the key operations as macros, as |
| @@ -408,6 +412,7 @@ error !; | |||
| 408 | # define XINT(a) lisp_h_XINT (a) | 412 | # define XINT(a) lisp_h_XINT (a) |
| 409 | # define XTYPE(a) lisp_h_XTYPE (a) | 413 | # define XTYPE(a) lisp_h_XTYPE (a) |
| 410 | # define XUNTAG(a, type) lisp_h_XUNTAG (a, type) | 414 | # define XUNTAG(a, type) lisp_h_XUNTAG (a, type) |
| 415 | # define XUNTAGBASE(a, type, base) lisp_h_XUNTAGBASE (a, type, base) | ||
| 411 | # endif | 416 | # endif |
| 412 | #endif | 417 | #endif |
| 413 | 418 | ||
| @@ -447,20 +452,20 @@ error !; | |||
| 447 | 452 | ||
| 448 | enum Lisp_Type | 453 | enum Lisp_Type |
| 449 | { | 454 | { |
| 450 | /* Integer. XINT (obj) is the integer value. */ | ||
| 451 | Lisp_Int0 = 0, | ||
| 452 | Lisp_Int1 = USE_LSB_TAG ? 1 << INTTYPEBITS : 1, | ||
| 453 | |||
| 454 | /* Symbol. XSYMBOL (object) points to a struct Lisp_Symbol. */ | 455 | /* Symbol. XSYMBOL (object) points to a struct Lisp_Symbol. */ |
| 455 | Lisp_Symbol = 2, | 456 | Lisp_Symbol = 0, |
| 456 | 457 | ||
| 457 | /* Miscellaneous. XMISC (object) points to a union Lisp_Misc, | 458 | /* Miscellaneous. XMISC (object) points to a union Lisp_Misc, |
| 458 | whose first member indicates the subtype. */ | 459 | whose first member indicates the subtype. */ |
| 459 | Lisp_Misc = 3, | 460 | Lisp_Misc = 1, |
| 461 | |||
| 462 | /* Integer. XINT (obj) is the integer value. */ | ||
| 463 | Lisp_Int0 = 2, | ||
| 464 | Lisp_Int1 = USE_LSB_TAG ? 6 : 3, | ||
| 460 | 465 | ||
| 461 | /* String. XSTRING (object) points to a struct Lisp_String. | 466 | /* String. XSTRING (object) points to a struct Lisp_String. |
| 462 | The length of the string, and its contents, are stored therein. */ | 467 | The length of the string, and its contents, are stored therein. */ |
| 463 | Lisp_String = USE_LSB_TAG ? 1 : 1 << INTTYPEBITS, | 468 | Lisp_String = 4, |
| 464 | 469 | ||
| 465 | /* Vector of Lisp objects, or something resembling it. | 470 | /* Vector of Lisp objects, or something resembling it. |
| 466 | XVECTOR (object) points to a struct Lisp_Vector, which contains | 471 | XVECTOR (object) points to a struct Lisp_Vector, which contains |
| @@ -469,7 +474,7 @@ enum Lisp_Type | |||
| 469 | Lisp_Vectorlike = 5, | 474 | Lisp_Vectorlike = 5, |
| 470 | 475 | ||
| 471 | /* Cons. XCONS (object) points to a struct Lisp_Cons. */ | 476 | /* Cons. XCONS (object) points to a struct Lisp_Cons. */ |
| 472 | Lisp_Cons = 6, | 477 | Lisp_Cons = USE_LSB_TAG ? 3 : 6, |
| 473 | 478 | ||
| 474 | Lisp_Float = 7 | 479 | Lisp_Float = 7 |
| 475 | }; | 480 | }; |
| @@ -562,7 +567,7 @@ enum Lisp_Fwd_Type | |||
| 562 | 567 | ||
| 563 | typedef struct { EMACS_INT i; } Lisp_Object; | 568 | typedef struct { EMACS_INT i; } Lisp_Object; |
| 564 | 569 | ||
| 565 | #define LISP_INITIALLY_ZERO {0} | 570 | #define LISP_INITIALLY(i) {i} |
| 566 | 571 | ||
| 567 | #undef CHECK_LISP_OBJECT_TYPE | 572 | #undef CHECK_LISP_OBJECT_TYPE |
| 568 | enum CHECK_LISP_OBJECT_TYPE { CHECK_LISP_OBJECT_TYPE = true }; | 573 | enum CHECK_LISP_OBJECT_TYPE { CHECK_LISP_OBJECT_TYPE = true }; |
| @@ -571,9 +576,11 @@ enum CHECK_LISP_OBJECT_TYPE { CHECK_LISP_OBJECT_TYPE = true }; | |||
| 571 | /* If a struct type is not wanted, define Lisp_Object as just a number. */ | 576 | /* If a struct type is not wanted, define Lisp_Object as just a number. */ |
| 572 | 577 | ||
| 573 | typedef EMACS_INT Lisp_Object; | 578 | typedef EMACS_INT Lisp_Object; |
| 574 | #define LISP_INITIALLY_ZERO 0 | 579 | #define LISP_INITIALLY(i) (i) |
| 575 | enum CHECK_LISP_OBJECT_TYPE { CHECK_LISP_OBJECT_TYPE = false }; | 580 | enum CHECK_LISP_OBJECT_TYPE { CHECK_LISP_OBJECT_TYPE = false }; |
| 576 | #endif /* CHECK_LISP_OBJECT_TYPE */ | 581 | #endif /* CHECK_LISP_OBJECT_TYPE */ |
| 582 | |||
| 583 | #define LISP_INITIALLY_ZERO LISP_INITIALLY (0) | ||
| 577 | 584 | ||
| 578 | /* Forward declarations. */ | 585 | /* Forward declarations. */ |
| 579 | 586 | ||
| @@ -604,18 +611,14 @@ INLINE bool (SYMBOLP) (Lisp_Object); | |||
| 604 | INLINE bool (VECTORLIKEP) (Lisp_Object); | 611 | INLINE bool (VECTORLIKEP) (Lisp_Object); |
| 605 | INLINE bool WINDOWP (Lisp_Object); | 612 | INLINE bool WINDOWP (Lisp_Object); |
| 606 | INLINE struct Lisp_Save_Value *XSAVE_VALUE (Lisp_Object); | 613 | INLINE struct Lisp_Save_Value *XSAVE_VALUE (Lisp_Object); |
| 614 | INLINE struct Lisp_Symbol *(XSYMBOL) (Lisp_Object); | ||
| 615 | INLINE void *(XUNTAGBASE) (Lisp_Object, int, void *); | ||
| 607 | 616 | ||
| 608 | /* Defined in chartab.c. */ | 617 | /* Defined in chartab.c. */ |
| 609 | extern Lisp_Object char_table_ref (Lisp_Object, int); | 618 | extern Lisp_Object char_table_ref (Lisp_Object, int); |
| 610 | extern void char_table_set (Lisp_Object, int, Lisp_Object); | 619 | extern void char_table_set (Lisp_Object, int, Lisp_Object); |
| 611 | 620 | ||
| 612 | /* Defined in data.c. */ | 621 | /* Defined in data.c. */ |
| 613 | extern Lisp_Object Qarrayp, Qbufferp, Qbuffer_or_string_p, Qchar_table_p; | ||
| 614 | extern Lisp_Object Qconsp, Qfloatp, Qintegerp, Qlambda, Qlistp, Qmarkerp, Qnil; | ||
| 615 | extern Lisp_Object Qnumberp, Qstringp, Qsymbolp, Qt, Qvectorp; | ||
| 616 | extern Lisp_Object Qbool_vector_p; | ||
| 617 | extern Lisp_Object Qvector_or_char_table_p, Qwholenump; | ||
| 618 | extern Lisp_Object Qwindow; | ||
| 619 | extern _Noreturn Lisp_Object wrong_type_argument (Lisp_Object, Lisp_Object); | 622 | extern _Noreturn Lisp_Object wrong_type_argument (Lisp_Object, Lisp_Object); |
| 620 | extern _Noreturn void wrong_choice (Lisp_Object, Lisp_Object); | 623 | extern _Noreturn void wrong_choice (Lisp_Object, Lisp_Object); |
| 621 | 624 | ||
| @@ -625,22 +628,120 @@ extern bool might_dump; | |||
| 625 | Used during startup to detect startup of dumped Emacs. */ | 628 | Used during startup to detect startup of dumped Emacs. */ |
| 626 | extern bool initialized; | 629 | extern bool initialized; |
| 627 | 630 | ||
| 628 | /* Defined in eval.c. */ | ||
| 629 | extern Lisp_Object Qautoload; | ||
| 630 | |||
| 631 | /* Defined in floatfns.c. */ | 631 | /* Defined in floatfns.c. */ |
| 632 | extern double extract_float (Lisp_Object); | 632 | extern double extract_float (Lisp_Object); |
| 633 | 633 | ||
| 634 | /* Defined in process.c. */ | 634 | |
| 635 | extern Lisp_Object Qprocessp; | 635 | /* Interned state of a symbol. */ |
| 636 | |||
| 637 | enum symbol_interned | ||
| 638 | { | ||
| 639 | SYMBOL_UNINTERNED = 0, | ||
| 640 | SYMBOL_INTERNED = 1, | ||
| 641 | SYMBOL_INTERNED_IN_INITIAL_OBARRAY = 2 | ||
| 642 | }; | ||
| 636 | 643 | ||
| 637 | /* Defined in window.c. */ | 644 | enum symbol_redirect |
| 638 | extern Lisp_Object Qwindowp; | 645 | { |
| 646 | SYMBOL_PLAINVAL = 4, | ||
| 647 | SYMBOL_VARALIAS = 1, | ||
| 648 | SYMBOL_LOCALIZED = 2, | ||
| 649 | SYMBOL_FORWARDED = 3 | ||
| 650 | }; | ||
| 651 | |||
| 652 | struct Lisp_Symbol | ||
| 653 | { | ||
| 654 | bool_bf gcmarkbit : 1; | ||
| 655 | |||
| 656 | /* Indicates where the value can be found: | ||
| 657 | 0 : it's a plain var, the value is in the `value' field. | ||
| 658 | 1 : it's a varalias, the value is really in the `alias' symbol. | ||
| 659 | 2 : it's a localized var, the value is in the `blv' object. | ||
| 660 | 3 : it's a forwarding variable, the value is in `forward'. */ | ||
| 661 | ENUM_BF (symbol_redirect) redirect : 3; | ||
| 662 | |||
| 663 | /* Non-zero means symbol is constant, i.e. changing its value | ||
| 664 | should signal an error. If the value is 3, then the var | ||
| 665 | can be changed, but only by `defconst'. */ | ||
| 666 | unsigned constant : 2; | ||
| 667 | |||
| 668 | /* Interned state of the symbol. This is an enumerator from | ||
| 669 | enum symbol_interned. */ | ||
| 670 | unsigned interned : 2; | ||
| 671 | |||
| 672 | /* True means that this variable has been explicitly declared | ||
| 673 | special (with `defvar' etc), and shouldn't be lexically bound. */ | ||
| 674 | bool_bf declared_special : 1; | ||
| 675 | |||
| 676 | /* True if pointed to from purespace and hence can't be GC'd. */ | ||
| 677 | bool_bf pinned : 1; | ||
| 678 | |||
| 679 | /* The symbol's name, as a Lisp string. */ | ||
| 680 | Lisp_Object name; | ||
| 681 | |||
| 682 | /* Value of the symbol or Qunbound if unbound. Which alternative of the | ||
| 683 | union is used depends on the `redirect' field above. */ | ||
| 684 | union { | ||
| 685 | Lisp_Object value; | ||
| 686 | struct Lisp_Symbol *alias; | ||
| 687 | struct Lisp_Buffer_Local_Value *blv; | ||
| 688 | union Lisp_Fwd *fwd; | ||
| 689 | } val; | ||
| 690 | |||
| 691 | /* Function value of the symbol or Qnil if not fboundp. */ | ||
| 692 | Lisp_Object function; | ||
| 693 | |||
| 694 | /* The symbol's property list. */ | ||
| 695 | Lisp_Object plist; | ||
| 696 | |||
| 697 | /* Next symbol in obarray bucket, if the symbol is interned. */ | ||
| 698 | struct Lisp_Symbol *next; | ||
| 699 | }; | ||
| 700 | |||
| 701 | /* Declare a Lisp-callable function. The MAXARGS parameter has the same | ||
| 702 | meaning as in the DEFUN macro, and is used to construct a prototype. */ | ||
| 703 | /* We can use the same trick as in the DEFUN macro to generate the | ||
| 704 | appropriate prototype. */ | ||
| 705 | #define EXFUN(fnname, maxargs) \ | ||
| 706 | extern Lisp_Object fnname DEFUN_ARGS_ ## maxargs | ||
| 707 | |||
| 708 | /* Note that the weird token-substitution semantics of ANSI C makes | ||
| 709 | this work for MANY and UNEVALLED. */ | ||
| 710 | #define DEFUN_ARGS_MANY (ptrdiff_t, Lisp_Object *) | ||
| 711 | #define DEFUN_ARGS_UNEVALLED (Lisp_Object) | ||
| 712 | #define DEFUN_ARGS_0 (void) | ||
| 713 | #define DEFUN_ARGS_1 (Lisp_Object) | ||
| 714 | #define DEFUN_ARGS_2 (Lisp_Object, Lisp_Object) | ||
| 715 | #define DEFUN_ARGS_3 (Lisp_Object, Lisp_Object, Lisp_Object) | ||
| 716 | #define DEFUN_ARGS_4 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object) | ||
| 717 | #define DEFUN_ARGS_5 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, \ | ||
| 718 | Lisp_Object) | ||
| 719 | #define DEFUN_ARGS_6 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, \ | ||
| 720 | Lisp_Object, Lisp_Object) | ||
| 721 | #define DEFUN_ARGS_7 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, \ | ||
| 722 | Lisp_Object, Lisp_Object, Lisp_Object) | ||
| 723 | #define DEFUN_ARGS_8 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, \ | ||
| 724 | Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object) | ||
| 725 | |||
| 726 | /* Yield an integer that contains TAG along with PTR. */ | ||
| 727 | #define TAG_PTR(tag, ptr) \ | ||
| 728 | ((USE_LSB_TAG ? (tag) : (EMACS_UINT) (tag) << VALBITS) + (uintptr_t) (ptr)) | ||
| 729 | |||
| 730 | /* Yield an integer that tags PTR as a symbol. */ | ||
| 731 | #define TAG_SYMPTR(ptr) \ | ||
| 732 | TAG_PTR (Lisp_Symbol, (char *) (ptr) - (char *) (USE_LSB_TAG ? lispsym : 0)) | ||
| 733 | |||
| 734 | /* Declare extern constants for Lisp symbols. These can be helpful | ||
| 735 | when using a debugger like GDB, on older platforms where the debug | ||
| 736 | format does not represent C macros. Athough these symbols are | ||
| 737 | useless on modern platforms, they don't hurt performance all that much. */ | ||
| 738 | #define DEFINE_LISP_SYMBOL_BEGIN(name) \ | ||
| 739 | DEFINE_GDB_SYMBOL_BEGIN (Lisp_Object, name) | ||
| 740 | #define DEFINE_LISP_SYMBOL_END(name) \ | ||
| 741 | DEFINE_GDB_SYMBOL_END (LISP_INITIALLY (TAG_SYMPTR (name))) | ||
| 742 | |||
| 743 | #include "globals.h" | ||
| 639 | 744 | ||
| 640 | /* Defined in xdisp.c. */ | ||
| 641 | extern Lisp_Object Qimage; | ||
| 642 | extern Lisp_Object Qfontification_functions; | ||
| 643 | |||
| 644 | /* Convert a Lisp_Object to the corresponding EMACS_INT and vice versa. | 745 | /* Convert a Lisp_Object to the corresponding EMACS_INT and vice versa. |
| 645 | At the machine level, these operations are no-ops. */ | 746 | At the machine level, these operations are no-ops. */ |
| 646 | LISP_MACRO_DEFUN (XLI, EMACS_INT, (Lisp_Object o), (o)) | 747 | LISP_MACRO_DEFUN (XLI, EMACS_INT, (Lisp_Object o), (o)) |
| @@ -728,6 +829,8 @@ LISP_MACRO_DEFUN (XINT, EMACS_INT, (Lisp_Object a), (a)) | |||
| 728 | LISP_MACRO_DEFUN (XFASTINT, EMACS_INT, (Lisp_Object a), (a)) | 829 | LISP_MACRO_DEFUN (XFASTINT, EMACS_INT, (Lisp_Object a), (a)) |
| 729 | LISP_MACRO_DEFUN (XTYPE, enum Lisp_Type, (Lisp_Object a), (a)) | 830 | LISP_MACRO_DEFUN (XTYPE, enum Lisp_Type, (Lisp_Object a), (a)) |
| 730 | LISP_MACRO_DEFUN (XUNTAG, void *, (Lisp_Object a, int type), (a, type)) | 831 | LISP_MACRO_DEFUN (XUNTAG, void *, (Lisp_Object a, int type), (a, type)) |
| 832 | LISP_MACRO_DEFUN (XUNTAGBASE, void *, (Lisp_Object a, int type, void *base), | ||
| 833 | (a, type, base)) | ||
| 731 | 834 | ||
| 732 | #else /* ! USE_LSB_TAG */ | 835 | #else /* ! USE_LSB_TAG */ |
| 733 | 836 | ||
| @@ -788,16 +891,21 @@ XTYPE (Lisp_Object a) | |||
| 788 | return USE_LSB_TAG ? i & ~VALMASK : i >> VALBITS; | 891 | return USE_LSB_TAG ? i & ~VALMASK : i >> VALBITS; |
| 789 | } | 892 | } |
| 790 | 893 | ||
| 894 | /* Extract A's pointer value, assuming A's type is TYPE. | ||
| 895 | If USE_LSB_TAG, add BASE to A's pointer value while extracting. */ | ||
| 896 | INLINE void * | ||
| 897 | XUNTAGBASE (Lisp_Object a, int type, void *base) | ||
| 898 | { | ||
| 899 | char *b = USE_LSB_TAG ? base : 0; | ||
| 900 | intptr_t i = USE_LSB_TAG ? XLI (a) - type : XLI (a) & VALMASK; | ||
| 901 | return b + i; | ||
| 902 | } | ||
| 903 | |||
| 791 | /* Extract A's pointer value, assuming A's type is TYPE. */ | 904 | /* Extract A's pointer value, assuming A's type is TYPE. */ |
| 792 | INLINE void * | 905 | INLINE void * |
| 793 | XUNTAG (Lisp_Object a, int type) | 906 | XUNTAG (Lisp_Object a, int type) |
| 794 | { | 907 | { |
| 795 | if (USE_LSB_TAG) | 908 | return XUNTAGBASE (a, type, 0); |
| 796 | { | ||
| 797 | intptr_t i = XLI (a) - type; | ||
| 798 | return (void *) i; | ||
| 799 | } | ||
| 800 | return XPNTR (a); | ||
| 801 | } | 909 | } |
| 802 | 910 | ||
| 803 | #endif /* ! USE_LSB_TAG */ | 911 | #endif /* ! USE_LSB_TAG */ |
| @@ -861,6 +969,10 @@ XSTRING (Lisp_Object a) | |||
| 861 | 969 | ||
| 862 | LISP_MACRO_DEFUN (XSYMBOL, struct Lisp_Symbol *, (Lisp_Object a), (a)) | 970 | LISP_MACRO_DEFUN (XSYMBOL, struct Lisp_Symbol *, (Lisp_Object a), (a)) |
| 863 | 971 | ||
| 972 | /* XSYMBOL_INIT (Qfoo) is like XSYMBOL (Qfoo), except it is valid in | ||
| 973 | static initializers, and SYM must be a C-defined symbol. */ | ||
| 974 | #define XSYMBOL_INIT(sym) a##sym | ||
| 975 | |||
| 864 | INLINE struct Lisp_Float * | 976 | INLINE struct Lisp_Float * |
| 865 | XFLOAT (Lisp_Object a) | 977 | XFLOAT (Lisp_Object a) |
| 866 | { | 978 | { |
| @@ -930,14 +1042,21 @@ XBOOL_VECTOR (Lisp_Object a) | |||
| 930 | INLINE Lisp_Object | 1042 | INLINE Lisp_Object |
| 931 | make_lisp_ptr (void *ptr, enum Lisp_Type type) | 1043 | make_lisp_ptr (void *ptr, enum Lisp_Type type) |
| 932 | { | 1044 | { |
| 933 | EMACS_UINT utype = type; | 1045 | Lisp_Object a = XIL (TAG_PTR (type, ptr)); |
| 934 | EMACS_UINT typebits = USE_LSB_TAG ? type : utype << VALBITS; | ||
| 935 | Lisp_Object a = XIL (typebits | (uintptr_t) ptr); | ||
| 936 | eassert (XTYPE (a) == type && XUNTAG (a, type) == ptr); | 1046 | eassert (XTYPE (a) == type && XUNTAG (a, type) == ptr); |
| 937 | return a; | 1047 | return a; |
| 938 | } | 1048 | } |
| 939 | 1049 | ||
| 940 | INLINE Lisp_Object | 1050 | INLINE Lisp_Object |
| 1051 | make_lisp_symbol (struct Lisp_Symbol *sym) | ||
| 1052 | { | ||
| 1053 | Lisp_Object a = XIL (TAG_SYMPTR (sym)); | ||
| 1054 | eassert (XTYPE (a) == Lisp_Symbol | ||
| 1055 | && XUNTAGBASE (a, Lisp_Symbol, lispsym) == sym); | ||
| 1056 | return a; | ||
| 1057 | } | ||
| 1058 | |||
| 1059 | INLINE Lisp_Object | ||
| 941 | make_lisp_proc (struct Lisp_Process *p) | 1060 | make_lisp_proc (struct Lisp_Process *p) |
| 942 | { | 1061 | { |
| 943 | return make_lisp_ptr (p, Lisp_Vectorlike); | 1062 | return make_lisp_ptr (p, Lisp_Vectorlike); |
| @@ -948,7 +1067,7 @@ make_lisp_proc (struct Lisp_Process *p) | |||
| 948 | #define XSETCONS(a, b) ((a) = make_lisp_ptr (b, Lisp_Cons)) | 1067 | #define XSETCONS(a, b) ((a) = make_lisp_ptr (b, Lisp_Cons)) |
| 949 | #define XSETVECTOR(a, b) ((a) = make_lisp_ptr (b, Lisp_Vectorlike)) | 1068 | #define XSETVECTOR(a, b) ((a) = make_lisp_ptr (b, Lisp_Vectorlike)) |
| 950 | #define XSETSTRING(a, b) ((a) = make_lisp_ptr (b, Lisp_String)) | 1069 | #define XSETSTRING(a, b) ((a) = make_lisp_ptr (b, Lisp_String)) |
| 951 | #define XSETSYMBOL(a, b) ((a) = make_lisp_ptr (b, Lisp_Symbol)) | 1070 | #define XSETSYMBOL(a, b) ((a) = make_lisp_symbol (b)) |
| 952 | #define XSETFLOAT(a, b) ((a) = make_lisp_ptr (b, Lisp_Float)) | 1071 | #define XSETFLOAT(a, b) ((a) = make_lisp_ptr (b, Lisp_Float)) |
| 953 | #define XSETMISC(a, b) ((a) = make_lisp_ptr (b, Lisp_Misc)) | 1072 | #define XSETMISC(a, b) ((a) = make_lisp_ptr (b, Lisp_Misc)) |
| 954 | 1073 | ||
| @@ -1555,72 +1674,6 @@ verify ((offsetof (struct Lisp_Sub_Char_Table, contents) | |||
| 1555 | Symbols | 1674 | Symbols |
| 1556 | ***********************************************************************/ | 1675 | ***********************************************************************/ |
| 1557 | 1676 | ||
| 1558 | /* Interned state of a symbol. */ | ||
| 1559 | |||
| 1560 | enum symbol_interned | ||
| 1561 | { | ||
| 1562 | SYMBOL_UNINTERNED = 0, | ||
| 1563 | SYMBOL_INTERNED = 1, | ||
| 1564 | SYMBOL_INTERNED_IN_INITIAL_OBARRAY = 2 | ||
| 1565 | }; | ||
| 1566 | |||
| 1567 | enum symbol_redirect | ||
| 1568 | { | ||
| 1569 | SYMBOL_PLAINVAL = 4, | ||
| 1570 | SYMBOL_VARALIAS = 1, | ||
| 1571 | SYMBOL_LOCALIZED = 2, | ||
| 1572 | SYMBOL_FORWARDED = 3 | ||
| 1573 | }; | ||
| 1574 | |||
| 1575 | struct Lisp_Symbol | ||
| 1576 | { | ||
| 1577 | bool_bf gcmarkbit : 1; | ||
| 1578 | |||
| 1579 | /* Indicates where the value can be found: | ||
| 1580 | 0 : it's a plain var, the value is in the `value' field. | ||
| 1581 | 1 : it's a varalias, the value is really in the `alias' symbol. | ||
| 1582 | 2 : it's a localized var, the value is in the `blv' object. | ||
| 1583 | 3 : it's a forwarding variable, the value is in `forward'. */ | ||
| 1584 | ENUM_BF (symbol_redirect) redirect : 3; | ||
| 1585 | |||
| 1586 | /* Non-zero means symbol is constant, i.e. changing its value | ||
| 1587 | should signal an error. If the value is 3, then the var | ||
| 1588 | can be changed, but only by `defconst'. */ | ||
| 1589 | unsigned constant : 2; | ||
| 1590 | |||
| 1591 | /* Interned state of the symbol. This is an enumerator from | ||
| 1592 | enum symbol_interned. */ | ||
| 1593 | unsigned interned : 2; | ||
| 1594 | |||
| 1595 | /* True means that this variable has been explicitly declared | ||
| 1596 | special (with `defvar' etc), and shouldn't be lexically bound. */ | ||
| 1597 | bool_bf declared_special : 1; | ||
| 1598 | |||
| 1599 | /* True if pointed to from purespace and hence can't be GC'd. */ | ||
| 1600 | bool_bf pinned : 1; | ||
| 1601 | |||
| 1602 | /* The symbol's name, as a Lisp string. */ | ||
| 1603 | Lisp_Object name; | ||
| 1604 | |||
| 1605 | /* Value of the symbol or Qunbound if unbound. Which alternative of the | ||
| 1606 | union is used depends on the `redirect' field above. */ | ||
| 1607 | union { | ||
| 1608 | Lisp_Object value; | ||
| 1609 | struct Lisp_Symbol *alias; | ||
| 1610 | struct Lisp_Buffer_Local_Value *blv; | ||
| 1611 | union Lisp_Fwd *fwd; | ||
| 1612 | } val; | ||
| 1613 | |||
| 1614 | /* Function value of the symbol or Qnil if not fboundp. */ | ||
| 1615 | Lisp_Object function; | ||
| 1616 | |||
| 1617 | /* The symbol's property list. */ | ||
| 1618 | Lisp_Object plist; | ||
| 1619 | |||
| 1620 | /* Next symbol in obarray bucket, if the symbol is interned. */ | ||
| 1621 | struct Lisp_Symbol *next; | ||
| 1622 | }; | ||
| 1623 | |||
| 1624 | /* Value is name of symbol. */ | 1677 | /* Value is name of symbol. */ |
| 1625 | 1678 | ||
| 1626 | LISP_MACRO_DEFUN (SYMBOL_VAL, Lisp_Object, (struct Lisp_Symbol *sym), (sym)) | 1679 | LISP_MACRO_DEFUN (SYMBOL_VAL, Lisp_Object, (struct Lisp_Symbol *sym), (sym)) |
| @@ -1694,8 +1747,9 @@ SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P (Lisp_Object sym) | |||
| 1694 | 1747 | ||
| 1695 | LISP_MACRO_DEFUN (SYMBOL_CONSTANT_P, int, (Lisp_Object sym), (sym)) | 1748 | LISP_MACRO_DEFUN (SYMBOL_CONSTANT_P, int, (Lisp_Object sym), (sym)) |
| 1696 | 1749 | ||
| 1697 | #define DEFSYM(sym, name) \ | 1750 | /* Placeholder for make-docfile to process. The actual symbol |
| 1698 | do { (sym) = intern_c_string ((name)); staticpro (&(sym)); } while (false) | 1751 | definition is done by lread.c's defsym. */ |
| 1752 | #define DEFSYM(sym, name) /* empty */ | ||
| 1699 | 1753 | ||
| 1700 | 1754 | ||
| 1701 | /*********************************************************************** | 1755 | /*********************************************************************** |
| @@ -2689,24 +2743,6 @@ CHECK_NUMBER_CDR (Lisp_Object x) | |||
| 2689 | Lisp_Object fnname | 2743 | Lisp_Object fnname |
| 2690 | #endif | 2744 | #endif |
| 2691 | 2745 | ||
| 2692 | /* Note that the weird token-substitution semantics of ANSI C makes | ||
| 2693 | this work for MANY and UNEVALLED. */ | ||
| 2694 | #define DEFUN_ARGS_MANY (ptrdiff_t, Lisp_Object *) | ||
| 2695 | #define DEFUN_ARGS_UNEVALLED (Lisp_Object) | ||
| 2696 | #define DEFUN_ARGS_0 (void) | ||
| 2697 | #define DEFUN_ARGS_1 (Lisp_Object) | ||
| 2698 | #define DEFUN_ARGS_2 (Lisp_Object, Lisp_Object) | ||
| 2699 | #define DEFUN_ARGS_3 (Lisp_Object, Lisp_Object, Lisp_Object) | ||
| 2700 | #define DEFUN_ARGS_4 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object) | ||
| 2701 | #define DEFUN_ARGS_5 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, \ | ||
| 2702 | Lisp_Object) | ||
| 2703 | #define DEFUN_ARGS_6 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, \ | ||
| 2704 | Lisp_Object, Lisp_Object) | ||
| 2705 | #define DEFUN_ARGS_7 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, \ | ||
| 2706 | Lisp_Object, Lisp_Object, Lisp_Object) | ||
| 2707 | #define DEFUN_ARGS_8 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, \ | ||
| 2708 | Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object) | ||
| 2709 | |||
| 2710 | /* True if OBJ is a Lisp function. */ | 2746 | /* True if OBJ is a Lisp function. */ |
| 2711 | INLINE bool | 2747 | INLINE bool |
| 2712 | FUNCTIONP (Lisp_Object obj) | 2748 | FUNCTIONP (Lisp_Object obj) |
| @@ -3255,15 +3291,6 @@ extern int gcpro_level; | |||
| 3255 | 3291 | ||
| 3256 | void staticpro (Lisp_Object *); | 3292 | void staticpro (Lisp_Object *); |
| 3257 | 3293 | ||
| 3258 | /* Declare a Lisp-callable function. The MAXARGS parameter has the same | ||
| 3259 | meaning as in the DEFUN macro, and is used to construct a prototype. */ | ||
| 3260 | /* We can use the same trick as in the DEFUN macro to generate the | ||
| 3261 | appropriate prototype. */ | ||
| 3262 | #define EXFUN(fnname, maxargs) \ | ||
| 3263 | extern Lisp_Object fnname DEFUN_ARGS_ ## maxargs | ||
| 3264 | |||
| 3265 | #include "globals.h" | ||
| 3266 | |||
| 3267 | /* Forward declarations for prototypes. */ | 3294 | /* Forward declarations for prototypes. */ |
| 3268 | struct window; | 3295 | struct window; |
| 3269 | struct frame; | 3296 | struct frame; |
| @@ -3382,30 +3409,6 @@ set_sub_char_table_contents (Lisp_Object table, ptrdiff_t idx, Lisp_Object val) | |||
| 3382 | } | 3409 | } |
| 3383 | 3410 | ||
| 3384 | /* Defined in data.c. */ | 3411 | /* Defined in data.c. */ |
| 3385 | extern Lisp_Object Qquote, Qunbound; | ||
| 3386 | extern Lisp_Object Qerror_conditions, Qerror_message, Qtop_level; | ||
| 3387 | extern Lisp_Object Qerror, Qquit, Qargs_out_of_range; | ||
| 3388 | extern Lisp_Object Qvoid_variable, Qvoid_function; | ||
| 3389 | extern Lisp_Object Qinvalid_read_syntax; | ||
| 3390 | extern Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch; | ||
| 3391 | extern Lisp_Object Quser_error, Qend_of_file, Qarith_error, Qmark_inactive; | ||
| 3392 | extern Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; | ||
| 3393 | extern Lisp_Object Qtext_read_only; | ||
| 3394 | extern Lisp_Object Qinteractive_form; | ||
| 3395 | extern Lisp_Object Qcircular_list; | ||
| 3396 | extern Lisp_Object Qsequencep; | ||
| 3397 | extern Lisp_Object Qchar_or_string_p, Qinteger_or_marker_p; | ||
| 3398 | extern Lisp_Object Qfboundp; | ||
| 3399 | |||
| 3400 | extern Lisp_Object Qcdr; | ||
| 3401 | |||
| 3402 | extern Lisp_Object Qrange_error, Qoverflow_error; | ||
| 3403 | |||
| 3404 | extern Lisp_Object Qnumber_or_marker_p; | ||
| 3405 | |||
| 3406 | extern Lisp_Object Qbuffer, Qinteger, Qsymbol; | ||
| 3407 | |||
| 3408 | /* Defined in data.c. */ | ||
| 3409 | extern Lisp_Object indirect_function (Lisp_Object); | 3412 | extern Lisp_Object indirect_function (Lisp_Object); |
| 3410 | extern Lisp_Object find_symbol_value (Lisp_Object); | 3413 | extern Lisp_Object find_symbol_value (Lisp_Object); |
| 3411 | enum Arith_Comparison { | 3414 | enum Arith_Comparison { |
| @@ -3461,7 +3464,6 @@ extern void syms_of_cmds (void); | |||
| 3461 | extern void keys_of_cmds (void); | 3464 | extern void keys_of_cmds (void); |
| 3462 | 3465 | ||
| 3463 | /* Defined in coding.c. */ | 3466 | /* Defined in coding.c. */ |
| 3464 | extern Lisp_Object Qcharset; | ||
| 3465 | extern Lisp_Object detect_coding_system (const unsigned char *, ptrdiff_t, | 3467 | extern Lisp_Object detect_coding_system (const unsigned char *, ptrdiff_t, |
| 3466 | ptrdiff_t, bool, bool, Lisp_Object); | 3468 | ptrdiff_t, bool, bool, Lisp_Object); |
| 3467 | extern void init_coding (void); | 3469 | extern void init_coding (void); |
| @@ -3485,14 +3487,10 @@ extern void init_syntax_once (void); | |||
| 3485 | extern void syms_of_syntax (void); | 3487 | extern void syms_of_syntax (void); |
| 3486 | 3488 | ||
| 3487 | /* Defined in fns.c. */ | 3489 | /* Defined in fns.c. */ |
| 3488 | extern Lisp_Object QCrehash_size, QCrehash_threshold; | ||
| 3489 | enum { NEXT_ALMOST_PRIME_LIMIT = 11 }; | 3490 | enum { NEXT_ALMOST_PRIME_LIMIT = 11 }; |
| 3490 | extern EMACS_INT next_almost_prime (EMACS_INT) ATTRIBUTE_CONST; | 3491 | extern EMACS_INT next_almost_prime (EMACS_INT) ATTRIBUTE_CONST; |
| 3491 | extern Lisp_Object larger_vector (Lisp_Object, ptrdiff_t, ptrdiff_t); | 3492 | extern Lisp_Object larger_vector (Lisp_Object, ptrdiff_t, ptrdiff_t); |
| 3492 | extern void sweep_weak_hash_tables (void); | 3493 | extern void sweep_weak_hash_tables (void); |
| 3493 | extern Lisp_Object Qcursor_in_echo_area; | ||
| 3494 | extern Lisp_Object Qstring_lessp; | ||
| 3495 | extern Lisp_Object QCsize, QCtest, QCweakness, Qequal, Qeq; | ||
| 3496 | EMACS_UINT hash_string (char const *, ptrdiff_t); | 3494 | EMACS_UINT hash_string (char const *, ptrdiff_t); |
| 3497 | EMACS_UINT sxhash (Lisp_Object, int); | 3495 | EMACS_UINT sxhash (Lisp_Object, int); |
| 3498 | Lisp_Object make_hash_table (struct hash_table_test, Lisp_Object, Lisp_Object, | 3496 | Lisp_Object make_hash_table (struct hash_table_test, Lisp_Object, Lisp_Object, |
| @@ -3532,15 +3530,11 @@ extern void init_fringe_once (void); | |||
| 3532 | #endif /* HAVE_WINDOW_SYSTEM */ | 3530 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 3533 | 3531 | ||
| 3534 | /* Defined in image.c. */ | 3532 | /* Defined in image.c. */ |
| 3535 | extern Lisp_Object QCascent, QCmargin, QCrelief; | ||
| 3536 | extern Lisp_Object QCconversion; | ||
| 3537 | extern int x_bitmap_mask (struct frame *, ptrdiff_t); | 3533 | extern int x_bitmap_mask (struct frame *, ptrdiff_t); |
| 3538 | extern void reset_image_types (void); | 3534 | extern void reset_image_types (void); |
| 3539 | extern void syms_of_image (void); | 3535 | extern void syms_of_image (void); |
| 3540 | 3536 | ||
| 3541 | /* Defined in insdel.c. */ | 3537 | /* Defined in insdel.c. */ |
| 3542 | extern Lisp_Object Qinhibit_modification_hooks; | ||
| 3543 | extern Lisp_Object Qregion_extract_function; | ||
| 3544 | extern void move_gap_both (ptrdiff_t, ptrdiff_t); | 3538 | extern void move_gap_both (ptrdiff_t, ptrdiff_t); |
| 3545 | extern _Noreturn void buffer_overflow (void); | 3539 | extern _Noreturn void buffer_overflow (void); |
| 3546 | extern void make_gap (ptrdiff_t); | 3540 | extern void make_gap (ptrdiff_t); |
| @@ -3595,18 +3589,6 @@ extern Lisp_Object Vwindow_system; | |||
| 3595 | extern Lisp_Object sit_for (Lisp_Object, bool, int); | 3589 | extern Lisp_Object sit_for (Lisp_Object, bool, int); |
| 3596 | 3590 | ||
| 3597 | /* Defined in xdisp.c. */ | 3591 | /* Defined in xdisp.c. */ |
| 3598 | extern Lisp_Object Qinhibit_point_motion_hooks; | ||
| 3599 | extern Lisp_Object Qinhibit_redisplay; | ||
| 3600 | extern Lisp_Object Qmenu_bar_update_hook; | ||
| 3601 | extern Lisp_Object Qwindow_scroll_functions; | ||
| 3602 | extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | ||
| 3603 | extern Lisp_Object Qtext, Qboth, Qboth_horiz, Qtext_image_horiz; | ||
| 3604 | extern Lisp_Object Qspace, Qcenter, QCalign_to; | ||
| 3605 | extern Lisp_Object Qbar, Qhbar, Qhollow; | ||
| 3606 | extern Lisp_Object Qleft_margin, Qright_margin; | ||
| 3607 | extern Lisp_Object QCdata, QCfile; | ||
| 3608 | extern Lisp_Object QCmap; | ||
| 3609 | extern Lisp_Object Qrisky_local_variable; | ||
| 3610 | extern bool noninteractive_need_newline; | 3592 | extern bool noninteractive_need_newline; |
| 3611 | extern Lisp_Object echo_area_buffer[2]; | 3593 | extern Lisp_Object echo_area_buffer[2]; |
| 3612 | extern void add_to_log (const char *, Lisp_Object, Lisp_Object); | 3594 | extern void add_to_log (const char *, Lisp_Object, Lisp_Object); |
| @@ -3740,8 +3722,6 @@ build_string (const char *str) | |||
| 3740 | 3722 | ||
| 3741 | extern Lisp_Object pure_cons (Lisp_Object, Lisp_Object); | 3723 | extern Lisp_Object pure_cons (Lisp_Object, Lisp_Object); |
| 3742 | extern void make_byte_code (struct Lisp_Vector *); | 3724 | extern void make_byte_code (struct Lisp_Vector *); |
| 3743 | extern Lisp_Object Qautomatic_gc; | ||
| 3744 | extern Lisp_Object Qchar_table_extra_slots; | ||
| 3745 | extern struct Lisp_Vector *allocate_vector (EMACS_INT); | 3725 | extern struct Lisp_Vector *allocate_vector (EMACS_INT); |
| 3746 | 3726 | ||
| 3747 | /* Make an uninitialized vector for SIZE objects. NOTE: you must | 3727 | /* Make an uninitialized vector for SIZE objects. NOTE: you must |
| @@ -3845,11 +3825,8 @@ extern void syms_of_chartab (void); | |||
| 3845 | /* Defined in print.c. */ | 3825 | /* Defined in print.c. */ |
| 3846 | extern Lisp_Object Vprin1_to_string_buffer; | 3826 | extern Lisp_Object Vprin1_to_string_buffer; |
| 3847 | extern void debug_print (Lisp_Object) EXTERNALLY_VISIBLE; | 3827 | extern void debug_print (Lisp_Object) EXTERNALLY_VISIBLE; |
| 3848 | extern Lisp_Object Qstandard_output; | ||
| 3849 | extern Lisp_Object Qexternal_debugging_output; | ||
| 3850 | extern void temp_output_buffer_setup (const char *); | 3828 | extern void temp_output_buffer_setup (const char *); |
| 3851 | extern int print_level; | 3829 | extern int print_level; |
| 3852 | extern Lisp_Object Qprint_escape_newlines; | ||
| 3853 | extern void write_string (const char *, int); | 3830 | extern void write_string (const char *, int); |
| 3854 | extern void print_error_message (Lisp_Object, Lisp_Object, const char *, | 3831 | extern void print_error_message (Lisp_Object, Lisp_Object, const char *, |
| 3855 | Lisp_Object); | 3832 | Lisp_Object); |
| @@ -3873,13 +3850,11 @@ extern ptrdiff_t evxprintf (char **, ptrdiff_t *, char const *, ptrdiff_t, | |||
| 3873 | ATTRIBUTE_FORMAT_PRINTF (5, 0); | 3850 | ATTRIBUTE_FORMAT_PRINTF (5, 0); |
| 3874 | 3851 | ||
| 3875 | /* Defined in lread.c. */ | 3852 | /* Defined in lread.c. */ |
| 3876 | extern Lisp_Object Qsize, Qvariable_documentation, Qstandard_input; | ||
| 3877 | extern Lisp_Object Qbackquote, Qcomma, Qcomma_at, Qcomma_dot, Qfunction; | ||
| 3878 | extern Lisp_Object Qlexical_binding; | ||
| 3879 | extern Lisp_Object check_obarray (Lisp_Object); | 3853 | extern Lisp_Object check_obarray (Lisp_Object); |
| 3880 | extern Lisp_Object intern_1 (const char *, ptrdiff_t); | 3854 | extern Lisp_Object intern_1 (const char *, ptrdiff_t); |
| 3881 | extern Lisp_Object intern_c_string_1 (const char *, ptrdiff_t); | 3855 | extern Lisp_Object intern_c_string_1 (const char *, ptrdiff_t); |
| 3882 | extern Lisp_Object intern_driver (Lisp_Object, Lisp_Object, ptrdiff_t); | 3856 | extern Lisp_Object intern_driver (Lisp_Object, Lisp_Object, Lisp_Object); |
| 3857 | extern void init_symbol (Lisp_Object, Lisp_Object); | ||
| 3883 | extern Lisp_Object oblookup (Lisp_Object, const char *, ptrdiff_t, ptrdiff_t); | 3858 | extern Lisp_Object oblookup (Lisp_Object, const char *, ptrdiff_t, ptrdiff_t); |
| 3884 | INLINE void | 3859 | INLINE void |
| 3885 | LOADHIST_ATTACH (Lisp_Object x) | 3860 | LOADHIST_ATTACH (Lisp_Object x) |
| @@ -3911,10 +3886,8 @@ intern_c_string (const char *str) | |||
| 3911 | 3886 | ||
| 3912 | /* Defined in eval.c. */ | 3887 | /* Defined in eval.c. */ |
| 3913 | extern EMACS_INT lisp_eval_depth; | 3888 | extern EMACS_INT lisp_eval_depth; |
| 3914 | extern Lisp_Object Qexit, Qinteractive, Qcommandp, Qmacro; | ||
| 3915 | extern Lisp_Object Qinhibit_quit, Qinternal_interpreter_environment, Qclosure; | ||
| 3916 | extern Lisp_Object Qand_rest; | ||
| 3917 | extern Lisp_Object Vautoload_queue; | 3889 | extern Lisp_Object Vautoload_queue; |
| 3890 | extern Lisp_Object Vrun_hooks; | ||
| 3918 | extern Lisp_Object Vsignaling_function; | 3891 | extern Lisp_Object Vsignaling_function; |
| 3919 | extern Lisp_Object inhibit_lisp_code; | 3892 | extern Lisp_Object inhibit_lisp_code; |
| 3920 | extern struct handler *handlerlist; | 3893 | extern struct handler *handlerlist; |
| @@ -3926,7 +3899,7 @@ extern struct handler *handlerlist; | |||
| 3926 | call1 (Vrun_hooks, Qmy_funny_hook); | 3899 | call1 (Vrun_hooks, Qmy_funny_hook); |
| 3927 | 3900 | ||
| 3928 | should no longer be used. */ | 3901 | should no longer be used. */ |
| 3929 | extern Lisp_Object Vrun_hooks; | 3902 | extern void run_hook (Lisp_Object); |
| 3930 | extern void run_hook_with_args_2 (Lisp_Object, Lisp_Object, Lisp_Object); | 3903 | extern void run_hook_with_args_2 (Lisp_Object, Lisp_Object, Lisp_Object); |
| 3931 | extern Lisp_Object run_hook_with_args (ptrdiff_t nargs, Lisp_Object *args, | 3904 | extern Lisp_Object run_hook_with_args (ptrdiff_t nargs, Lisp_Object *args, |
| 3932 | Lisp_Object (*funcall) | 3905 | Lisp_Object (*funcall) |
| @@ -3987,7 +3960,6 @@ extern bool let_shadows_global_binding_p (Lisp_Object symbol); | |||
| 3987 | 3960 | ||
| 3988 | 3961 | ||
| 3989 | /* Defined in editfns.c. */ | 3962 | /* Defined in editfns.c. */ |
| 3990 | extern Lisp_Object Qfield; | ||
| 3991 | extern void insert1 (Lisp_Object); | 3963 | extern void insert1 (Lisp_Object); |
| 3992 | extern Lisp_Object format2 (const char *, Lisp_Object, Lisp_Object); | 3964 | extern Lisp_Object format2 (const char *, Lisp_Object, Lisp_Object); |
| 3993 | extern Lisp_Object save_excursion_save (void); | 3965 | extern Lisp_Object save_excursion_save (void); |
| @@ -4034,12 +4006,6 @@ extern void syms_of_marker (void); | |||
| 4034 | 4006 | ||
| 4035 | /* Defined in fileio.c. */ | 4007 | /* Defined in fileio.c. */ |
| 4036 | 4008 | ||
| 4037 | extern Lisp_Object Qfile_error; | ||
| 4038 | extern Lisp_Object Qfile_notify_error; | ||
| 4039 | extern Lisp_Object Qfile_exists_p; | ||
| 4040 | extern Lisp_Object Qfile_directory_p; | ||
| 4041 | extern Lisp_Object Qinsert_file_contents; | ||
| 4042 | extern Lisp_Object Qfile_name_history; | ||
| 4043 | extern Lisp_Object expand_and_dir_to_file (Lisp_Object, Lisp_Object); | 4009 | extern Lisp_Object expand_and_dir_to_file (Lisp_Object, Lisp_Object); |
| 4044 | extern Lisp_Object write_region (Lisp_Object, Lisp_Object, Lisp_Object, | 4010 | extern Lisp_Object write_region (Lisp_Object, Lisp_Object, Lisp_Object, |
| 4045 | Lisp_Object, Lisp_Object, Lisp_Object, | 4011 | Lisp_Object, Lisp_Object, Lisp_Object, |
| @@ -4056,7 +4022,6 @@ extern bool file_accessible_directory_p (Lisp_Object); | |||
| 4056 | extern void init_fileio (void); | 4022 | extern void init_fileio (void); |
| 4057 | extern void syms_of_fileio (void); | 4023 | extern void syms_of_fileio (void); |
| 4058 | extern Lisp_Object make_temp_name (Lisp_Object, bool); | 4024 | extern Lisp_Object make_temp_name (Lisp_Object, bool); |
| 4059 | extern Lisp_Object Qdelete_file; | ||
| 4060 | 4025 | ||
| 4061 | /* Defined in search.c. */ | 4026 | /* Defined in search.c. */ |
| 4062 | extern void shrink_regexp_cache (void); | 4027 | extern void shrink_regexp_cache (void); |
| @@ -4086,7 +4051,6 @@ extern void clear_regexp_cache (void); | |||
| 4086 | 4051 | ||
| 4087 | /* Defined in minibuf.c. */ | 4052 | /* Defined in minibuf.c. */ |
| 4088 | 4053 | ||
| 4089 | extern Lisp_Object Qcompletion_ignore_case; | ||
| 4090 | extern Lisp_Object Vminibuffer_list; | 4054 | extern Lisp_Object Vminibuffer_list; |
| 4091 | extern Lisp_Object last_minibuf_string; | 4055 | extern Lisp_Object last_minibuf_string; |
| 4092 | extern Lisp_Object get_minibuffer (EMACS_INT); | 4056 | extern Lisp_Object get_minibuffer (EMACS_INT); |
| @@ -4095,15 +4059,10 @@ extern void syms_of_minibuf (void); | |||
| 4095 | 4059 | ||
| 4096 | /* Defined in callint.c. */ | 4060 | /* Defined in callint.c. */ |
| 4097 | 4061 | ||
| 4098 | extern Lisp_Object Qminus, Qplus; | ||
| 4099 | extern Lisp_Object Qprogn; | ||
| 4100 | extern Lisp_Object Qwhen; | ||
| 4101 | extern Lisp_Object Qmouse_leave_buffer_hook; | ||
| 4102 | extern void syms_of_callint (void); | 4062 | extern void syms_of_callint (void); |
| 4103 | 4063 | ||
| 4104 | /* Defined in casefiddle.c. */ | 4064 | /* Defined in casefiddle.c. */ |
| 4105 | 4065 | ||
| 4106 | extern Lisp_Object Qidentity; | ||
| 4107 | extern void syms_of_casefiddle (void); | 4066 | extern void syms_of_casefiddle (void); |
| 4108 | extern void keys_of_casefiddle (void); | 4067 | extern void keys_of_casefiddle (void); |
| 4109 | 4068 | ||
| @@ -4117,8 +4076,6 @@ extern void syms_of_casetab (void); | |||
| 4117 | extern Lisp_Object echo_message_buffer; | 4076 | extern Lisp_Object echo_message_buffer; |
| 4118 | extern struct kboard *echo_kboard; | 4077 | extern struct kboard *echo_kboard; |
| 4119 | extern void cancel_echoing (void); | 4078 | extern void cancel_echoing (void); |
| 4120 | extern Lisp_Object Qdisabled, QCfilter; | ||
| 4121 | extern Lisp_Object Qup, Qdown; | ||
| 4122 | extern Lisp_Object last_undo_boundary; | 4079 | extern Lisp_Object last_undo_boundary; |
| 4123 | extern bool input_pending; | 4080 | extern bool input_pending; |
| 4124 | #ifdef HAVE_STACK_OVERFLOW_HANDLING | 4081 | #ifdef HAVE_STACK_OVERFLOW_HANDLING |
| @@ -4152,7 +4109,6 @@ extern bool indented_beyond_p (ptrdiff_t, ptrdiff_t, EMACS_INT); | |||
| 4152 | extern void syms_of_indent (void); | 4109 | extern void syms_of_indent (void); |
| 4153 | 4110 | ||
| 4154 | /* Defined in frame.c. */ | 4111 | /* Defined in frame.c. */ |
| 4155 | extern Lisp_Object Qonly, Qnone; | ||
| 4156 | extern void store_frame_param (struct frame *, Lisp_Object, Lisp_Object); | 4112 | extern void store_frame_param (struct frame *, Lisp_Object, Lisp_Object); |
| 4157 | extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object); | 4113 | extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object); |
| 4158 | extern Lisp_Object do_switch_frame (Lisp_Object, int, int, Lisp_Object); | 4114 | extern Lisp_Object do_switch_frame (Lisp_Object, int, int, Lisp_Object); |
| @@ -4168,9 +4124,7 @@ extern bool display_arg; | |||
| 4168 | #endif | 4124 | #endif |
| 4169 | extern Lisp_Object decode_env_path (const char *, const char *, bool); | 4125 | extern Lisp_Object decode_env_path (const char *, const char *, bool); |
| 4170 | extern Lisp_Object empty_unibyte_string, empty_multibyte_string; | 4126 | extern Lisp_Object empty_unibyte_string, empty_multibyte_string; |
| 4171 | extern Lisp_Object Qfile_name_handler_alist; | ||
| 4172 | extern _Noreturn void terminate_due_to_signal (int, int); | 4127 | extern _Noreturn void terminate_due_to_signal (int, int); |
| 4173 | extern Lisp_Object Qkill_emacs; | ||
| 4174 | #ifdef WINDOWSNT | 4128 | #ifdef WINDOWSNT |
| 4175 | extern Lisp_Object Vlibrary_cache; | 4129 | extern Lisp_Object Vlibrary_cache; |
| 4176 | #endif | 4130 | #endif |
| @@ -4205,7 +4159,6 @@ extern bool inhibit_window_system; | |||
| 4205 | extern bool running_asynch_code; | 4159 | extern bool running_asynch_code; |
| 4206 | 4160 | ||
| 4207 | /* Defined in process.c. */ | 4161 | /* Defined in process.c. */ |
| 4208 | extern Lisp_Object QCtype, Qlocal; | ||
| 4209 | extern void kill_buffer_processes (Lisp_Object); | 4162 | extern void kill_buffer_processes (Lisp_Object); |
| 4210 | extern int wait_reading_process_output (intmax_t, int, int, bool, Lisp_Object, | 4163 | extern int wait_reading_process_output (intmax_t, int, int, bool, Lisp_Object, |
| 4211 | struct Lisp_Process *, int); | 4164 | struct Lisp_Process *, int); |
| @@ -4241,7 +4194,6 @@ extern void set_initial_environment (void); | |||
| 4241 | extern void syms_of_callproc (void); | 4194 | extern void syms_of_callproc (void); |
| 4242 | 4195 | ||
| 4243 | /* Defined in doc.c. */ | 4196 | /* Defined in doc.c. */ |
| 4244 | extern Lisp_Object Qfunction_documentation; | ||
| 4245 | extern Lisp_Object read_doc_string (Lisp_Object); | 4197 | extern Lisp_Object read_doc_string (Lisp_Object); |
| 4246 | extern Lisp_Object get_doc_string (Lisp_Object, bool, bool); | 4198 | extern Lisp_Object get_doc_string (Lisp_Object, bool, bool); |
| 4247 | extern void syms_of_doc (void); | 4199 | extern void syms_of_doc (void); |
| @@ -4262,8 +4214,6 @@ extern void init_macros (void); | |||
| 4262 | extern void syms_of_macros (void); | 4214 | extern void syms_of_macros (void); |
| 4263 | 4215 | ||
| 4264 | /* Defined in undo.c. */ | 4216 | /* Defined in undo.c. */ |
| 4265 | extern Lisp_Object Qapply; | ||
| 4266 | extern Lisp_Object Qinhibit_read_only; | ||
| 4267 | extern void truncate_undo_list (struct buffer *); | 4217 | extern void truncate_undo_list (struct buffer *); |
| 4268 | extern void record_insert (ptrdiff_t, ptrdiff_t); | 4218 | extern void record_insert (ptrdiff_t, ptrdiff_t); |
| 4269 | extern void record_delete (ptrdiff_t, Lisp_Object, bool); | 4219 | extern void record_delete (ptrdiff_t, Lisp_Object, bool); |
| @@ -4273,11 +4223,8 @@ extern void record_property_change (ptrdiff_t, ptrdiff_t, | |||
| 4273 | Lisp_Object, Lisp_Object, | 4223 | Lisp_Object, Lisp_Object, |
| 4274 | Lisp_Object); | 4224 | Lisp_Object); |
| 4275 | extern void syms_of_undo (void); | 4225 | extern void syms_of_undo (void); |
| 4276 | /* Defined in textprop.c. */ | ||
| 4277 | extern Lisp_Object Qmouse_face; | ||
| 4278 | extern Lisp_Object Qinsert_in_front_hooks, Qinsert_behind_hooks; | ||
| 4279 | extern Lisp_Object Qminibuffer_prompt; | ||
| 4280 | 4226 | ||
| 4227 | /* Defined in textprop.c. */ | ||
| 4281 | extern void report_interval_modification (Lisp_Object, Lisp_Object); | 4228 | extern void report_interval_modification (Lisp_Object, Lisp_Object); |
| 4282 | 4229 | ||
| 4283 | /* Defined in menu.c. */ | 4230 | /* Defined in menu.c. */ |
| @@ -4361,9 +4308,6 @@ extern void init_font (void); | |||
| 4361 | #ifdef HAVE_WINDOW_SYSTEM | 4308 | #ifdef HAVE_WINDOW_SYSTEM |
| 4362 | /* Defined in fontset.c. */ | 4309 | /* Defined in fontset.c. */ |
| 4363 | extern void syms_of_fontset (void); | 4310 | extern void syms_of_fontset (void); |
| 4364 | |||
| 4365 | /* Defined in xfns.c, w32fns.c, or macfns.c. */ | ||
| 4366 | extern Lisp_Object Qfont_param; | ||
| 4367 | #endif | 4311 | #endif |
| 4368 | 4312 | ||
| 4369 | /* Defined in gfilenotify.c */ | 4313 | /* Defined in gfilenotify.c */ |
| @@ -4383,16 +4327,6 @@ extern void syms_of_w32notify (void); | |||
| 4383 | #endif | 4327 | #endif |
| 4384 | 4328 | ||
| 4385 | /* Defined in xfaces.c. */ | 4329 | /* Defined in xfaces.c. */ |
| 4386 | extern Lisp_Object Qdefault, Qfringe; | ||
| 4387 | extern Lisp_Object Qscroll_bar, Qcursor; | ||
| 4388 | extern Lisp_Object Qmode_line_inactive; | ||
| 4389 | extern Lisp_Object Qface; | ||
| 4390 | extern Lisp_Object Qnormal; | ||
| 4391 | extern Lisp_Object QCfamily, QCweight, QCslant; | ||
| 4392 | extern Lisp_Object QCheight, QCname, QCwidth, QCforeground, QCbackground; | ||
| 4393 | extern Lisp_Object Qextra_light, Qlight, Qsemi_light, Qsemi_bold; | ||
| 4394 | extern Lisp_Object Qbold, Qextra_bold, Qultra_bold; | ||
| 4395 | extern Lisp_Object Qoblique, Qitalic; | ||
| 4396 | extern Lisp_Object Vface_alternative_font_family_alist; | 4330 | extern Lisp_Object Vface_alternative_font_family_alist; |
| 4397 | extern Lisp_Object Vface_alternative_font_registry_alist; | 4331 | extern Lisp_Object Vface_alternative_font_registry_alist; |
| 4398 | extern void syms_of_xfaces (void); | 4332 | extern void syms_of_xfaces (void); |
diff --git a/src/lisp.mk b/src/lisp.mk index 675df2b66e6..a9deb2b53d9 100644 --- a/src/lisp.mk +++ b/src/lisp.mk | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ### lisp.mk --- src/Makefile fragment for GNU Emacs | 1 | ### lisp.mk --- src/Makefile fragment for GNU Emacs |
| 2 | 2 | ||
| 3 | ## Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2014 Free Software | 3 | ## Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2015 Free Software |
| 4 | ## Foundation, Inc. | 4 | ## Foundation, Inc. |
| 5 | 5 | ||
| 6 | ## This file is part of GNU Emacs. | 6 | ## This file is part of GNU Emacs. |
diff --git a/src/lread.c b/src/lread.c index afa47aafb86..324052462fe 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Lisp parsing and input streams. | 1 | /* Lisp parsing and input streams. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1989, 1993-1995, 1997-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1989, 1993-1995, 1997-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -18,6 +18,8 @@ GNU General Public License for more details. | |||
| 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
| 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 20 | 20 | ||
| 21 | /* Tell globals.h to define tables needed by init_obarray. */ | ||
| 22 | #define DEFINE_SYMBOLS | ||
| 21 | 23 | ||
| 22 | #include <config.h> | 24 | #include <config.h> |
| 23 | #include "sysstdio.h" | 25 | #include "sysstdio.h" |
| @@ -64,32 +66,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 64 | #define file_tell ftell | 66 | #define file_tell ftell |
| 65 | #endif | 67 | #endif |
| 66 | 68 | ||
| 67 | /* Hash table read constants. */ | ||
| 68 | static Lisp_Object Qhash_table, Qdata; | ||
| 69 | static Lisp_Object Qtest; | ||
| 70 | Lisp_Object Qsize; | ||
| 71 | static Lisp_Object Qweakness; | ||
| 72 | static Lisp_Object Qrehash_size; | ||
| 73 | static Lisp_Object Qrehash_threshold; | ||
| 74 | |||
| 75 | static Lisp_Object Qread_char, Qget_file_char, Qcurrent_load_list; | ||
| 76 | Lisp_Object Qstandard_input; | ||
| 77 | Lisp_Object Qvariable_documentation; | ||
| 78 | static Lisp_Object Qascii_character, Qload, Qload_file_name; | ||
| 79 | Lisp_Object Qbackquote, Qcomma, Qcomma_at, Qcomma_dot, Qfunction; | ||
| 80 | static Lisp_Object Qinhibit_file_name_operation; | ||
| 81 | static Lisp_Object Qeval_buffer_list; | ||
| 82 | Lisp_Object Qlexical_binding; | ||
| 83 | static Lisp_Object Qfile_truename, Qdo_after_load_evaluation; /* ACM 2006/5/16 */ | ||
| 84 | |||
| 85 | /* Used instead of Qget_file_char while loading *.elc files compiled | ||
| 86 | by Emacs 21 or older. */ | ||
| 87 | static Lisp_Object Qget_emacs_mule_file_char; | ||
| 88 | |||
| 89 | static Lisp_Object Qload_force_doc_strings; | ||
| 90 | |||
| 91 | static Lisp_Object Qload_in_progress; | ||
| 92 | |||
| 93 | /* The association list of objects read with the #n=object form. | 69 | /* The association list of objects read with the #n=object form. |
| 94 | Each member of the list has the form (n . object), and is used to | 70 | Each member of the list has the form (n . object), and is used to |
| 95 | look up the object for the corresponding #n# construct. | 71 | look up the object for the corresponding #n# construct. |
| @@ -133,7 +109,6 @@ static file_offset prev_saved_doc_string_position; | |||
| 133 | Fread initializes this to false, so we need not specbind it | 109 | Fread initializes this to false, so we need not specbind it |
| 134 | or worry about what happens to it when there is an error. */ | 110 | or worry about what happens to it when there is an error. */ |
| 135 | static bool new_backquote_flag; | 111 | static bool new_backquote_flag; |
| 136 | static Lisp_Object Qold_style_backquotes; | ||
| 137 | 112 | ||
| 138 | /* A list of file names for files being loaded in Fload. Used to | 113 | /* A list of file names for files being loaded in Fload. Used to |
| 139 | check for recursive loads. */ | 114 | check for recursive loads. */ |
| @@ -1430,8 +1405,6 @@ directories, make sure the PREDICATE function returns `dir-ok' for them. */) | |||
| 1430 | return file; | 1405 | return file; |
| 1431 | } | 1406 | } |
| 1432 | 1407 | ||
| 1433 | static Lisp_Object Qdir_ok; | ||
| 1434 | |||
| 1435 | /* Search for a file whose name is STR, looking in directories | 1408 | /* Search for a file whose name is STR, looking in directories |
| 1436 | in the Lisp list PATH, and trying suffixes from SUFFIX. | 1409 | in the Lisp list PATH, and trying suffixes from SUFFIX. |
| 1437 | On success, return a file descriptor (or 1 or -2 as described below). | 1410 | On success, return a file descriptor (or 1 or -2 as described below). |
| @@ -3792,30 +3765,38 @@ check_obarray (Lisp_Object obarray) | |||
| 3792 | return obarray; | 3765 | return obarray; |
| 3793 | } | 3766 | } |
| 3794 | 3767 | ||
| 3795 | /* Intern a symbol with name STRING in OBARRAY using bucket INDEX. */ | 3768 | /* Intern symbol SYM in OBARRAY using bucket INDEX. */ |
| 3796 | 3769 | ||
| 3797 | Lisp_Object | 3770 | static Lisp_Object |
| 3798 | intern_driver (Lisp_Object string, Lisp_Object obarray, ptrdiff_t index) | 3771 | intern_sym (Lisp_Object sym, Lisp_Object obarray, Lisp_Object index) |
| 3799 | { | 3772 | { |
| 3800 | Lisp_Object *ptr, sym = Fmake_symbol (string); | 3773 | Lisp_Object *ptr; |
| 3801 | 3774 | ||
| 3802 | XSYMBOL (sym)->interned = (EQ (obarray, initial_obarray) | 3775 | XSYMBOL (sym)->interned = (EQ (obarray, initial_obarray) |
| 3803 | ? SYMBOL_INTERNED_IN_INITIAL_OBARRAY | 3776 | ? SYMBOL_INTERNED_IN_INITIAL_OBARRAY |
| 3804 | : SYMBOL_INTERNED); | 3777 | : SYMBOL_INTERNED); |
| 3805 | 3778 | ||
| 3806 | if ((SREF (string, 0) == ':') && EQ (obarray, initial_obarray)) | 3779 | if (SREF (SYMBOL_NAME (sym), 0) == ':' && EQ (obarray, initial_obarray)) |
| 3807 | { | 3780 | { |
| 3808 | XSYMBOL (sym)->constant = 1; | 3781 | XSYMBOL (sym)->constant = 1; |
| 3809 | XSYMBOL (sym)->redirect = SYMBOL_PLAINVAL; | 3782 | XSYMBOL (sym)->redirect = SYMBOL_PLAINVAL; |
| 3810 | SET_SYMBOL_VAL (XSYMBOL (sym), sym); | 3783 | SET_SYMBOL_VAL (XSYMBOL (sym), sym); |
| 3811 | } | 3784 | } |
| 3812 | 3785 | ||
| 3813 | ptr = aref_addr (obarray, index); | 3786 | ptr = aref_addr (obarray, XINT (index)); |
| 3814 | set_symbol_next (sym, SYMBOLP (*ptr) ? XSYMBOL (*ptr) : NULL); | 3787 | set_symbol_next (sym, SYMBOLP (*ptr) ? XSYMBOL (*ptr) : NULL); |
| 3815 | *ptr = sym; | 3788 | *ptr = sym; |
| 3816 | return sym; | 3789 | return sym; |
| 3817 | } | 3790 | } |
| 3818 | 3791 | ||
| 3792 | /* Intern a symbol with name STRING in OBARRAY using bucket INDEX. */ | ||
| 3793 | |||
| 3794 | Lisp_Object | ||
| 3795 | intern_driver (Lisp_Object string, Lisp_Object obarray, Lisp_Object index) | ||
| 3796 | { | ||
| 3797 | return intern_sym (Fmake_symbol (string), obarray, index); | ||
| 3798 | } | ||
| 3799 | |||
| 3819 | /* Intern the C string STR: return a symbol with that name, | 3800 | /* Intern the C string STR: return a symbol with that name, |
| 3820 | interned in the current obarray. */ | 3801 | interned in the current obarray. */ |
| 3821 | 3802 | ||
| @@ -3826,7 +3807,7 @@ intern_1 (const char *str, ptrdiff_t len) | |||
| 3826 | Lisp_Object tem = oblookup (obarray, str, len, len); | 3807 | Lisp_Object tem = oblookup (obarray, str, len, len); |
| 3827 | 3808 | ||
| 3828 | return SYMBOLP (tem) ? tem : intern_driver (make_string (str, len), | 3809 | return SYMBOLP (tem) ? tem : intern_driver (make_string (str, len), |
| 3829 | obarray, XINT (tem)); | 3810 | obarray, tem); |
| 3830 | } | 3811 | } |
| 3831 | 3812 | ||
| 3832 | Lisp_Object | 3813 | Lisp_Object |
| @@ -3840,10 +3821,27 @@ intern_c_string_1 (const char *str, ptrdiff_t len) | |||
| 3840 | /* Creating a non-pure string from a string literal not implemented yet. | 3821 | /* Creating a non-pure string from a string literal not implemented yet. |
| 3841 | We could just use make_string here and live with the extra copy. */ | 3822 | We could just use make_string here and live with the extra copy. */ |
| 3842 | eassert (!NILP (Vpurify_flag)); | 3823 | eassert (!NILP (Vpurify_flag)); |
| 3843 | tem = intern_driver (make_pure_c_string (str, len), obarray, XINT (tem)); | 3824 | tem = intern_driver (make_pure_c_string (str, len), obarray, tem); |
| 3844 | } | 3825 | } |
| 3845 | return tem; | 3826 | return tem; |
| 3846 | } | 3827 | } |
| 3828 | |||
| 3829 | static void | ||
| 3830 | define_symbol (Lisp_Object sym, char const *str) | ||
| 3831 | { | ||
| 3832 | ptrdiff_t len = strlen (str); | ||
| 3833 | Lisp_Object string = make_pure_c_string (str, len); | ||
| 3834 | init_symbol (sym, string); | ||
| 3835 | |||
| 3836 | /* Qunbound is uninterned, so that it's not confused with any symbol | ||
| 3837 | 'unbound' created by a Lisp program. */ | ||
| 3838 | if (! EQ (sym, Qunbound)) | ||
| 3839 | { | ||
| 3840 | Lisp_Object bucket = oblookup (initial_obarray, str, len, len); | ||
| 3841 | eassert (INTEGERP (bucket)); | ||
| 3842 | intern_sym (sym, initial_obarray, bucket); | ||
| 3843 | } | ||
| 3844 | } | ||
| 3847 | 3845 | ||
| 3848 | DEFUN ("intern", Fintern, Sintern, 1, 2, 0, | 3846 | DEFUN ("intern", Fintern, Sintern, 1, 2, 0, |
| 3849 | doc: /* Return the canonical symbol whose name is STRING. | 3847 | doc: /* Return the canonical symbol whose name is STRING. |
| @@ -3859,8 +3857,8 @@ it defaults to the value of `obarray'. */) | |||
| 3859 | 3857 | ||
| 3860 | tem = oblookup (obarray, SSDATA (string), SCHARS (string), SBYTES (string)); | 3858 | tem = oblookup (obarray, SSDATA (string), SCHARS (string), SBYTES (string)); |
| 3861 | if (!SYMBOLP (tem)) | 3859 | if (!SYMBOLP (tem)) |
| 3862 | tem = intern_driver (NILP (Vpurify_flag) ? string | 3860 | tem = intern_driver (NILP (Vpurify_flag) ? string : Fpurecopy (string), |
| 3863 | : Fpurecopy (string), obarray, XINT (tem)); | 3861 | obarray, tem); |
| 3864 | return tem; | 3862 | return tem; |
| 3865 | } | 3863 | } |
| 3866 | 3864 | ||
| @@ -4059,24 +4057,17 @@ init_obarray (void) | |||
| 4059 | initial_obarray = Vobarray; | 4057 | initial_obarray = Vobarray; |
| 4060 | staticpro (&initial_obarray); | 4058 | staticpro (&initial_obarray); |
| 4061 | 4059 | ||
| 4062 | Qunbound = Fmake_symbol (build_pure_c_string ("unbound")); | 4060 | for (int i = 0; i < ARRAYELTS (lispsym); i++) |
| 4063 | /* Set temporary dummy values to Qnil and Vpurify_flag to satisfy the | 4061 | define_symbol (make_lisp_symbol (&lispsym[i]), defsym_name[i]); |
| 4064 | NILP (Vpurify_flag) check in intern_c_string. */ | 4062 | |
| 4065 | Qnil = make_number (-1); Vpurify_flag = make_number (1); | 4063 | DEFSYM (Qunbound, "unbound"); |
| 4066 | Qnil = intern_c_string ("nil"); | 4064 | |
| 4067 | 4065 | DEFSYM (Qnil, "nil"); | |
| 4068 | /* Fmake_symbol inits fields of new symbols with Qunbound and Qnil, | ||
| 4069 | so those two need to be fixed manually. */ | ||
| 4070 | SET_SYMBOL_VAL (XSYMBOL (Qunbound), Qunbound); | ||
| 4071 | set_symbol_function (Qunbound, Qnil); | ||
| 4072 | set_symbol_plist (Qunbound, Qnil); | ||
| 4073 | SET_SYMBOL_VAL (XSYMBOL (Qnil), Qnil); | 4066 | SET_SYMBOL_VAL (XSYMBOL (Qnil), Qnil); |
| 4074 | XSYMBOL (Qnil)->constant = 1; | 4067 | XSYMBOL (Qnil)->constant = 1; |
| 4075 | XSYMBOL (Qnil)->declared_special = true; | 4068 | XSYMBOL (Qnil)->declared_special = true; |
| 4076 | set_symbol_plist (Qnil, Qnil); | ||
| 4077 | set_symbol_function (Qnil, Qnil); | ||
| 4078 | 4069 | ||
| 4079 | Qt = intern_c_string ("t"); | 4070 | DEFSYM (Qt, "t"); |
| 4080 | SET_SYMBOL_VAL (XSYMBOL (Qt), Qt); | 4071 | SET_SYMBOL_VAL (XSYMBOL (Qt), Qt); |
| 4081 | XSYMBOL (Qt)->constant = 1; | 4072 | XSYMBOL (Qt)->constant = 1; |
| 4082 | XSYMBOL (Qt)->declared_special = true; | 4073 | XSYMBOL (Qt)->declared_special = true; |
| @@ -4729,7 +4720,11 @@ that are loaded before your customizations are read! */); | |||
| 4729 | DEFSYM (Qstandard_input, "standard-input"); | 4720 | DEFSYM (Qstandard_input, "standard-input"); |
| 4730 | DEFSYM (Qread_char, "read-char"); | 4721 | DEFSYM (Qread_char, "read-char"); |
| 4731 | DEFSYM (Qget_file_char, "get-file-char"); | 4722 | DEFSYM (Qget_file_char, "get-file-char"); |
| 4723 | |||
| 4724 | /* Used instead of Qget_file_char while loading *.elc files compiled | ||
| 4725 | by Emacs 21 or older. */ | ||
| 4732 | DEFSYM (Qget_emacs_mule_file_char, "get-emacs-mule-file-char"); | 4726 | DEFSYM (Qget_emacs_mule_file_char, "get-emacs-mule-file-char"); |
| 4727 | |||
| 4733 | DEFSYM (Qload_force_doc_strings, "load-force-doc-strings"); | 4728 | DEFSYM (Qload_force_doc_strings, "load-force-doc-strings"); |
| 4734 | 4729 | ||
| 4735 | DEFSYM (Qbackquote, "`"); | 4730 | DEFSYM (Qbackquote, "`"); |
diff --git a/src/macfont.h b/src/macfont.h index e6e45ab152c..f311577f051 100644 --- a/src/macfont.h +++ b/src/macfont.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Interface definition for Mac OSX Core text font backend. | 1 | /* Interface definition for Mac OSX Core text font backend. |
| 2 | Copyright (C) 2009-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2009-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/macfont.m b/src/macfont.m index 70548390583..f569934128f 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Font driver on Mac OSX Core text. | 1 | /* Font driver on Mac OSX Core text. |
| 2 | Copyright (C) 2009-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2009-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -40,9 +40,6 @@ Original author: YAMAMOTO Mitsuharu | |||
| 40 | 40 | ||
| 41 | static struct font_driver macfont_driver; | 41 | static struct font_driver macfont_driver; |
| 42 | 42 | ||
| 43 | /* Core Text, for Mac OS X. */ | ||
| 44 | static Lisp_Object Qmac_ct; | ||
| 45 | |||
| 46 | static double mac_ctfont_get_advance_width_for_glyph (CTFontRef, CGGlyph); | 43 | static double mac_ctfont_get_advance_width_for_glyph (CTFontRef, CGGlyph); |
| 47 | static CGRect mac_ctfont_get_bounding_rect_for_glyph (CTFontRef, CGGlyph); | 44 | static CGRect mac_ctfont_get_bounding_rect_for_glyph (CTFontRef, CGGlyph); |
| 48 | static CFArrayRef mac_ctfont_create_available_families (void); | 45 | static CFArrayRef mac_ctfont_create_available_families (void); |
| @@ -69,18 +66,6 @@ static CGGlyph mac_ctfont_get_glyph_for_cid (CTFontRef, | |||
| 69 | CGFontIndex); | 66 | CGFontIndex); |
| 70 | #endif | 67 | #endif |
| 71 | 68 | ||
| 72 | /* The font property key specifying the font design destination. The | ||
| 73 | value is an unsigned integer code: 0 for WYSIWYG, and 1 for Video | ||
| 74 | text. (See the documentation of X Logical Font Description | ||
| 75 | Conventions.) In the Mac font driver, 1 means the screen font is | ||
| 76 | used for calculating some glyph metrics. You can see the | ||
| 77 | difference with Monaco 8pt or 9pt, for example. */ | ||
| 78 | static Lisp_Object QCdestination; | ||
| 79 | |||
| 80 | /* The boolean-valued font property key specifying the use of | ||
| 81 | leading. */ | ||
| 82 | static Lisp_Object QCminspace; | ||
| 83 | |||
| 84 | struct macfont_metrics; | 69 | struct macfont_metrics; |
| 85 | 70 | ||
| 86 | /* The actual structure for Mac font that can be cast to struct font. */ | 71 | /* The actual structure for Mac font that can be cast to struct font. */ |
| @@ -3927,10 +3912,19 @@ syms_of_macfont (void) | |||
| 3927 | { | 3912 | { |
| 3928 | static struct font_driver mac_font_driver; | 3913 | static struct font_driver mac_font_driver; |
| 3929 | 3914 | ||
| 3915 | /* Core Text, for Mac OS X. */ | ||
| 3930 | DEFSYM (Qmac_ct, "mac-ct"); | 3916 | DEFSYM (Qmac_ct, "mac-ct"); |
| 3931 | macfont_driver.type = Qmac_ct; | 3917 | macfont_driver.type = Qmac_ct; |
| 3932 | register_font_driver (&macfont_driver, NULL); | 3918 | register_font_driver (&macfont_driver, NULL); |
| 3933 | 3919 | ||
| 3920 | /* The font property key specifying the font design destination. The | ||
| 3921 | value is an unsigned integer code: 0 for WYSIWYG, and 1 for Video | ||
| 3922 | text. (See the documentation of X Logical Font Description | ||
| 3923 | Conventions.) In the Mac font driver, 1 means the screen font is | ||
| 3924 | used for calculating some glyph metrics. You can see the | ||
| 3925 | difference with Monaco 8pt or 9pt, for example. */ | ||
| 3934 | DEFSYM (QCdestination, ":destination"); | 3926 | DEFSYM (QCdestination, ":destination"); |
| 3927 | |||
| 3928 | /* The boolean-valued font property key specifying the use of leading. */ | ||
| 3935 | DEFSYM (QCminspace, ":minspace"); | 3929 | DEFSYM (QCminspace, ":minspace"); |
| 3936 | } | 3930 | } |
diff --git a/src/macros.c b/src/macros.c index c3d26d0d5c2..e5b8ab70870 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Keyboard macros. | 1 | /* Keyboard macros. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1993, 2000-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1985-1986, 1993, 2000-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -28,9 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | #include "window.h" | 28 | #include "window.h" |
| 29 | #include "keyboard.h" | 29 | #include "keyboard.h" |
| 30 | 30 | ||
| 31 | static Lisp_Object Qexecute_kbd_macro; | ||
| 32 | static Lisp_Object Qkbd_macro_termination_hook; | ||
| 33 | |||
| 34 | /* Number of successful iterations so far | 31 | /* Number of successful iterations so far |
| 35 | for innermost keyboard macro. | 32 | for innermost keyboard macro. |
| 36 | This is not bound at each level, | 33 | This is not bound at each level, |
| @@ -280,7 +277,7 @@ pop_kbd_macro (Lisp_Object info) | |||
| 280 | tem = XCDR (info); | 277 | tem = XCDR (info); |
| 281 | executing_kbd_macro_index = XINT (XCAR (tem)); | 278 | executing_kbd_macro_index = XINT (XCAR (tem)); |
| 282 | Vreal_this_command = XCDR (tem); | 279 | Vreal_this_command = XCDR (tem); |
| 283 | Frun_hooks (1, &Qkbd_macro_termination_hook); | 280 | run_hook (Qkbd_macro_termination_hook); |
| 284 | } | 281 | } |
| 285 | 282 | ||
| 286 | DEFUN ("execute-kbd-macro", Fexecute_kbd_macro, Sexecute_kbd_macro, 1, 3, 0, | 283 | DEFUN ("execute-kbd-macro", Fexecute_kbd_macro, Sexecute_kbd_macro, 1, 3, 0, |
diff --git a/src/macros.h b/src/macros.h index c43c813b353..eab8041e72d 100644 --- a/src/macros.h +++ b/src/macros.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions for keyboard macro interpretation in GNU Emacs. | 1 | /* Definitions for keyboard macro interpretation in GNU Emacs. |
| 2 | Copyright (C) 1985, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/makefile.w32-in b/src/makefile.w32-in index ab7f3056d33..795b55a7c43 100644 --- a/src/makefile.w32-in +++ b/src/makefile.w32-in | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # -*- Makefile -*- for GNU Emacs on the Microsoft Windows API. | 1 | # -*- Makefile -*- for GNU Emacs on the Microsoft Windows API. |
| 2 | # Copyright (C) 2000-2014 Free Software Foundation, Inc. | 2 | # Copyright (C) 2000-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | # This file is part of GNU Emacs. | 4 | # This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/marker.c b/src/marker.c index d377efbc4fa..73928ba194f 100644 --- a/src/marker.c +++ b/src/marker.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Markers: examining, setting and deleting. | 1 | /* Markers: examining, setting and deleting. |
| 2 | Copyright (C) 1985, 1997-1998, 2001-2014 Free Software Foundation, | 2 | Copyright (C) 1985, 1997-1998, 2001-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
diff --git a/src/menu.c b/src/menu.c index 61163ae0216..5a8ea34242f 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Platform-independent code for terminal communications. | 1 | /* Platform-independent code for terminal communications. |
| 2 | 2 | ||
| 3 | Copyright (C) 1986, 1988, 1993-1994, 1996, 1999-2014 Free Software | 3 | Copyright (C) 1986, 1988, 1993-1994, 1996, 1999-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
diff --git a/src/menu.h b/src/menu.h index 4dd7f17dca6..de586a5e101 100644 --- a/src/menu.h +++ b/src/menu.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Functions to manipulate menus. | 1 | /* Functions to manipulate menus. |
| 2 | Copyright (C) 2008-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2008-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -22,10 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | #include "systime.h" /* for Time */ | 22 | #include "systime.h" /* for Time */ |
| 23 | #include "../lwlib/lwlib-widget.h" | 23 | #include "../lwlib/lwlib-widget.h" |
| 24 | 24 | ||
| 25 | #ifdef HAVE_NTGUI | ||
| 26 | extern Lisp_Object Qunsupported__w32_dialog; | ||
| 27 | #endif | ||
| 28 | |||
| 29 | /* Bit fields used by terminal-specific menu_show_hook. */ | 25 | /* Bit fields used by terminal-specific menu_show_hook. */ |
| 30 | 26 | ||
| 31 | enum { | 27 | enum { |
diff --git a/src/minibuf.c b/src/minibuf.c index 27b5f7b7f36..07f489258e1 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Minibuffer input and completion. | 1 | /* Minibuffer input and completion. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1993-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1985-1986, 1993-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -54,37 +54,10 @@ static Lisp_Object minibuf_save_list; | |||
| 54 | 54 | ||
| 55 | EMACS_INT minibuf_level; | 55 | EMACS_INT minibuf_level; |
| 56 | 56 | ||
| 57 | /* The maximum length of a minibuffer history. */ | ||
| 58 | |||
| 59 | static Lisp_Object Qhistory_length; | ||
| 60 | |||
| 61 | /* Fread_minibuffer leaves the input here as a string. */ | 57 | /* Fread_minibuffer leaves the input here as a string. */ |
| 62 | 58 | ||
| 63 | Lisp_Object last_minibuf_string; | 59 | Lisp_Object last_minibuf_string; |
| 64 | 60 | ||
| 65 | static Lisp_Object Qminibuffer_history, Qbuffer_name_history; | ||
| 66 | |||
| 67 | static Lisp_Object Qread_file_name_internal; | ||
| 68 | |||
| 69 | /* Normal hooks for entry to and exit from minibuffer. */ | ||
| 70 | |||
| 71 | static Lisp_Object Qminibuffer_setup_hook; | ||
| 72 | static Lisp_Object Qminibuffer_exit_hook; | ||
| 73 | |||
| 74 | Lisp_Object Qcompletion_ignore_case; | ||
| 75 | static Lisp_Object Qminibuffer_completion_table; | ||
| 76 | static Lisp_Object Qminibuffer_completion_predicate; | ||
| 77 | static Lisp_Object Qminibuffer_completion_confirm; | ||
| 78 | static Lisp_Object Qcustom_variable_p; | ||
| 79 | |||
| 80 | static Lisp_Object Qminibuffer_default; | ||
| 81 | |||
| 82 | static Lisp_Object Qcurrent_input_method, Qactivate_input_method; | ||
| 83 | |||
| 84 | static Lisp_Object Qcase_fold_search; | ||
| 85 | |||
| 86 | static Lisp_Object Qread_expression_history; | ||
| 87 | |||
| 88 | /* Prompt to display in front of the mini-buffer contents. */ | 61 | /* Prompt to display in front of the mini-buffer contents. */ |
| 89 | 62 | ||
| 90 | static Lisp_Object minibuf_prompt; | 63 | static Lisp_Object minibuf_prompt; |
| @@ -699,7 +672,7 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt, | |||
| 699 | if (STRINGP (input_method) && !NILP (Ffboundp (Qactivate_input_method))) | 672 | if (STRINGP (input_method) && !NILP (Ffboundp (Qactivate_input_method))) |
| 700 | call1 (Qactivate_input_method, input_method); | 673 | call1 (Qactivate_input_method, input_method); |
| 701 | 674 | ||
| 702 | Frun_hooks (1, &Qminibuffer_setup_hook); | 675 | run_hook (Qminibuffer_setup_hook); |
| 703 | 676 | ||
| 704 | /* Don't allow the user to undo past this point. */ | 677 | /* Don't allow the user to undo past this point. */ |
| 705 | bset_undo_list (current_buffer, Qnil); | 678 | bset_undo_list (current_buffer, Qnil); |
| @@ -1821,8 +1794,6 @@ the values STRING, PREDICATE and `lambda'. */) | |||
| 1821 | return Qt; | 1794 | return Qt; |
| 1822 | } | 1795 | } |
| 1823 | 1796 | ||
| 1824 | static Lisp_Object Qmetadata; | ||
| 1825 | |||
| 1826 | DEFUN ("internal-complete-buffer", Finternal_complete_buffer, Sinternal_complete_buffer, 3, 3, 0, | 1797 | DEFUN ("internal-complete-buffer", Finternal_complete_buffer, Sinternal_complete_buffer, 3, 3, 0, |
| 1827 | doc: /* Perform completion on buffer names. | 1798 | doc: /* Perform completion on buffer names. |
| 1828 | STRING and PREDICATE have the same meanings as in `try-completion', | 1799 | STRING and PREDICATE have the same meanings as in `try-completion', |
| @@ -1956,9 +1927,14 @@ syms_of_minibuf (void) | |||
| 1956 | Fset (Qbuffer_name_history, Qnil); | 1927 | Fset (Qbuffer_name_history, Qnil); |
| 1957 | 1928 | ||
| 1958 | DEFSYM (Qcustom_variable_p, "custom-variable-p"); | 1929 | DEFSYM (Qcustom_variable_p, "custom-variable-p"); |
| 1930 | |||
| 1931 | /* Normal hooks for entry to and exit from minibuffer. */ | ||
| 1959 | DEFSYM (Qminibuffer_setup_hook, "minibuffer-setup-hook"); | 1932 | DEFSYM (Qminibuffer_setup_hook, "minibuffer-setup-hook"); |
| 1960 | DEFSYM (Qminibuffer_exit_hook, "minibuffer-exit-hook"); | 1933 | DEFSYM (Qminibuffer_exit_hook, "minibuffer-exit-hook"); |
| 1934 | |||
| 1935 | /* The maximum length of a minibuffer history. */ | ||
| 1961 | DEFSYM (Qhistory_length, "history-length"); | 1936 | DEFSYM (Qhistory_length, "history-length"); |
| 1937 | |||
| 1962 | DEFSYM (Qcurrent_input_method, "current-input-method"); | 1938 | DEFSYM (Qcurrent_input_method, "current-input-method"); |
| 1963 | DEFSYM (Qactivate_input_method, "activate-input-method"); | 1939 | DEFSYM (Qactivate_input_method, "activate-input-method"); |
| 1964 | DEFSYM (Qcase_fold_search, "case-fold-search"); | 1940 | DEFSYM (Qcase_fold_search, "case-fold-search"); |
diff --git a/src/msdos.c b/src/msdos.c index 14c2624114d..3c2277e6955 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* MS-DOS specific C utilities. -*- coding: cp850 -*- | 1 | /* MS-DOS specific C utilities. -*- coding: cp850 -*- |
| 2 | 2 | ||
| 3 | Copyright (C) 1993-1997, 1999-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1993-1997, 1999-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
diff --git a/src/msdos.h b/src/msdos.h index e863c7cea4e..1e37599d75f 100644 --- a/src/msdos.h +++ b/src/msdos.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* MS-DOS specific C utilities, interface. | 1 | /* MS-DOS specific C utilities, interface. |
| 2 | Copyright (C) 1993, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/nsfns.m b/src/nsfns.m index 578ec12588c..828ee88e635 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Functions for the NeXT/Open/GNUstep and MacOSX window system. | 1 | /* Functions for the NeXT/Open/GNUstep and MacOSX window system. |
| 2 | 2 | ||
| 3 | Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2014 Free Software | 3 | Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -61,35 +61,6 @@ int fns_trace_num = 1; | |||
| 61 | 61 | ||
| 62 | extern NSArray *ns_send_types, *ns_return_types, *ns_drag_types; | 62 | extern NSArray *ns_send_types, *ns_return_types, *ns_drag_types; |
| 63 | 63 | ||
| 64 | extern Lisp_Object Qforeground_color; | ||
| 65 | extern Lisp_Object Qbackground_color; | ||
| 66 | extern Lisp_Object Qcursor_color; | ||
| 67 | extern Lisp_Object Qinternal_border_width; | ||
| 68 | extern Lisp_Object Qvisibility; | ||
| 69 | extern Lisp_Object Qcursor_type; | ||
| 70 | extern Lisp_Object Qicon_type; | ||
| 71 | extern Lisp_Object Qicon_name; | ||
| 72 | extern Lisp_Object Qicon_left; | ||
| 73 | extern Lisp_Object Qicon_top; | ||
| 74 | extern Lisp_Object Qtop; | ||
| 75 | extern Lisp_Object Qdisplay; | ||
| 76 | extern Lisp_Object Qvertical_scroll_bars; | ||
| 77 | extern Lisp_Object Qhorizontal_scroll_bars; | ||
| 78 | extern Lisp_Object Qauto_raise; | ||
| 79 | extern Lisp_Object Qauto_lower; | ||
| 80 | extern Lisp_Object Qbox; | ||
| 81 | extern Lisp_Object Qscroll_bar_width; | ||
| 82 | extern Lisp_Object Qscroll_bar_height; | ||
| 83 | extern Lisp_Object Qx_resource_name; | ||
| 84 | extern Lisp_Object Qface_set_after_frame_default; | ||
| 85 | extern Lisp_Object Qunderline, Qundefined; | ||
| 86 | extern Lisp_Object Qheight, Qminibuffer, Qname, Qonly, Qwidth; | ||
| 87 | extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle; | ||
| 88 | |||
| 89 | |||
| 90 | Lisp_Object Qbuffered; | ||
| 91 | Lisp_Object Qfontsize; | ||
| 92 | |||
| 93 | EmacsTooltip *ns_tooltip = nil; | 64 | EmacsTooltip *ns_tooltip = nil; |
| 94 | 65 | ||
| 95 | /* Need forward declaration here to preserve organizational integrity of file */ | 66 | /* Need forward declaration here to preserve organizational integrity of file */ |
diff --git a/src/nsfont.m b/src/nsfont.m index 13c7b0bce2c..f5e89d32bfc 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Font back-end driver for the NeXT/Open/GNUstep and MacOSX window system. | 1 | /* Font back-end driver for the NeXT/Open/GNUstep and MacOSX window system. |
| 2 | See font.h | 2 | See font.h |
| 3 | Copyright (C) 2006-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2006-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -45,11 +45,6 @@ Author: Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 45 | #define NSFONT_TRACE 0 | 45 | #define NSFONT_TRACE 0 |
| 46 | #define LCD_SMOOTHING_MARGIN 2 | 46 | #define LCD_SMOOTHING_MARGIN 2 |
| 47 | 47 | ||
| 48 | extern Lisp_Object Qns; | ||
| 49 | extern Lisp_Object Qnormal, Qbold, Qitalic; | ||
| 50 | static Lisp_Object Qapple, Qroman, Qmedium; | ||
| 51 | static Lisp_Object Qcondensed, Qexpanded; | ||
| 52 | extern Lisp_Object Qappend; | ||
| 53 | extern float ns_antialias_threshold; | 48 | extern float ns_antialias_threshold; |
| 54 | 49 | ||
| 55 | 50 | ||
| @@ -1493,7 +1488,7 @@ ns_glyph_metrics (struct nsfont_info *font_info, unsigned char block) | |||
| 1493 | characterIndex: (NSUInteger)charIndex | 1488 | characterIndex: (NSUInteger)charIndex |
| 1494 | { | 1489 | { |
| 1495 | len = glyphIndex+length; | 1490 | len = glyphIndex+length; |
| 1496 | for (i =glyphIndex; i<len; i++) | 1491 | for (i =glyphIndex; i<len; i++) |
| 1497 | cglyphs[i] = glyphs[i-glyphIndex]; | 1492 | cglyphs[i] = glyphs[i-glyphIndex]; |
| 1498 | if (len > maxGlyph) | 1493 | if (len > maxGlyph) |
| 1499 | maxGlyph = len; | 1494 | maxGlyph = len; |
diff --git a/src/nsgui.h b/src/nsgui.h index 0f963f69e2b..498eb7f87f5 100644 --- a/src/nsgui.h +++ b/src/nsgui.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions and headers for communication on the NeXT/Open/GNUstep API. | 1 | /* Definitions and headers for communication on the NeXT/Open/GNUstep API. |
| 2 | Copyright (C) 1995, 2005, 2008-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1995, 2005, 2008-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/nsimage.m b/src/nsimage.m index d5c06477f8b..f37ad38ad1e 100644 --- a/src/nsimage.m +++ b/src/nsimage.m | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Image support for the NeXT/Open/GNUstep and MacOSX window system. | 1 | /* Image support for the NeXT/Open/GNUstep and MacOSX window system. |
| 2 | Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2014 Free Software | 2 | Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -34,8 +34,6 @@ GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 34 | #include "nsterm.h" | 34 | #include "nsterm.h" |
| 35 | #include "frame.h" | 35 | #include "frame.h" |
| 36 | 36 | ||
| 37 | extern Lisp_Object QCfile, QCdata; | ||
| 38 | |||
| 39 | /* call tracing */ | 37 | /* call tracing */ |
| 40 | #if 0 | 38 | #if 0 |
| 41 | int image_trace_num = 0; | 39 | int image_trace_num = 0; |
diff --git a/src/nsmenu.m b/src/nsmenu.m index ffd1e4db78a..26fe26e5e0d 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* NeXT/Open/GNUstep and MacOSX Cocoa menu and toolbar module. | 1 | /* NeXT/Open/GNUstep and MacOSX Cocoa menu and toolbar module. |
| 2 | Copyright (C) 2007-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2007-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -59,12 +59,6 @@ int menu_trace_num = 0; | |||
| 59 | #include "nsmenu_common.c" | 59 | #include "nsmenu_common.c" |
| 60 | #endif | 60 | #endif |
| 61 | 61 | ||
| 62 | extern Lisp_Object Qundefined, Qmenu_enable, Qmenu_bar_update_hook; | ||
| 63 | extern Lisp_Object QCtoggle, QCradio; | ||
| 64 | |||
| 65 | Lisp_Object Qdebug_on_next_call; | ||
| 66 | extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | ||
| 67 | |||
| 68 | extern long context_menu_value; | 62 | extern long context_menu_value; |
| 69 | EmacsMenu *mainMenu, *svcsMenu, *dockMenu; | 63 | EmacsMenu *mainMenu, *svcsMenu, *dockMenu; |
| 70 | 64 | ||
diff --git a/src/nsselect.m b/src/nsselect.m index 8863bd27f16..1544b16dc9d 100644 --- a/src/nsselect.m +++ b/src/nsselect.m | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* NeXT/Open/GNUstep / MacOSX Cocoa selection processing for emacs. | 1 | /* NeXT/Open/GNUstep / MacOSX Cocoa selection processing for emacs. |
| 2 | Copyright (C) 1993-1994, 2005-2006, 2008-2014 Free Software | 2 | Copyright (C) 1993-1994, 2005-2006, 2008-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -34,8 +34,6 @@ GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 34 | #include "termhooks.h" | 34 | #include "termhooks.h" |
| 35 | #include "keyboard.h" | 35 | #include "keyboard.h" |
| 36 | 36 | ||
| 37 | static Lisp_Object QCLIPBOARD, QSECONDARY, QTEXT, QFILE_NAME; | ||
| 38 | |||
| 39 | static Lisp_Object Vselection_alist; | 37 | static Lisp_Object Vselection_alist; |
| 40 | 38 | ||
| 41 | /* NSGeneralPboard is pretty much analogous to X11 CLIPBOARD */ | 39 | /* NSGeneralPboard is pretty much analogous to X11 CLIPBOARD */ |
diff --git a/src/nsterm.h b/src/nsterm.h index c3841a40f59..9035ee1a328 100644 --- a/src/nsterm.h +++ b/src/nsterm.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions and headers for communication with NeXT/Open/GNUstep API. | 1 | /* Definitions and headers for communication with NeXT/Open/GNUstep API. |
| 2 | Copyright (C) 1989, 1993, 2005, 2008-2014 Free Software Foundation, | 2 | Copyright (C) 1989, 1993, 2005, 2008-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -792,7 +792,6 @@ struct glyph_string; | |||
| 792 | void ns_dump_glyphstring (struct glyph_string *s); | 792 | void ns_dump_glyphstring (struct glyph_string *s); |
| 793 | 793 | ||
| 794 | /* Implemented in nsterm, published in or needed from nsfns. */ | 794 | /* Implemented in nsterm, published in or needed from nsfns. */ |
| 795 | extern Lisp_Object Qfontsize; | ||
| 796 | extern Lisp_Object ns_list_fonts (struct frame *f, Lisp_Object pattern, | 795 | extern Lisp_Object ns_list_fonts (struct frame *f, Lisp_Object pattern, |
| 797 | int size, int maxnames); | 796 | int size, int maxnames); |
| 798 | extern void ns_clear_frame (struct frame *f); | 797 | extern void ns_clear_frame (struct frame *f); |
diff --git a/src/nsterm.m b/src/nsterm.m index 7f4b8b2608a..bf3192bf432 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* NeXT/Open/GNUstep / MacOSX communication module. | 1 | /* NeXT/Open/GNUstep / MacOSX communication module. |
| 2 | 2 | ||
| 3 | Copyright (C) 1989, 1993-1994, 2005-2006, 2008-2014 Free Software | 3 | Copyright (C) 1989, 1993-1994, 2005-2006, 2008-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -225,14 +225,6 @@ static unsigned convert_ns_to_X_keysym[] = | |||
| 225 | 0x1B, 0x1B /* escape */ | 225 | 0x1B, 0x1B /* escape */ |
| 226 | }; | 226 | }; |
| 227 | 227 | ||
| 228 | static Lisp_Object Qmodifier_value; | ||
| 229 | Lisp_Object Qalt, Qcontrol, Qhyper, Qmeta, Qsuper; | ||
| 230 | extern Lisp_Object Qcursor_color, Qcursor_type, Qns; | ||
| 231 | |||
| 232 | static Lisp_Object QUTF8_STRING; | ||
| 233 | static Lisp_Object Qcocoa, Qgnustep; | ||
| 234 | static Lisp_Object Qfile, Qurl; | ||
| 235 | |||
| 236 | /* On OS X picks up the default NSGlobalDomain AppleAntiAliasingThreshold, | 228 | /* On OS X picks up the default NSGlobalDomain AppleAntiAliasingThreshold, |
| 237 | the maximum font size to NOT antialias. On GNUstep there is currently | 229 | the maximum font size to NOT antialias. On GNUstep there is currently |
| 238 | no way to control this behavior. */ | 230 | no way to control this behavior. */ |
| @@ -1412,15 +1404,8 @@ x_set_window_size (struct frame *f, | |||
| 1412 | [view setBoundsOrigin: origin]; | 1404 | [view setBoundsOrigin: origin]; |
| 1413 | } | 1405 | } |
| 1414 | 1406 | ||
| 1415 | change_frame_size (f, width, height, 0, 1, 0, pixelwise); | 1407 | [view updateFrameSize: NO]; |
| 1416 | /* SET_FRAME_GARBAGED (f); // this short-circuits expose call in drawRect */ | ||
| 1417 | |||
| 1418 | mark_window_cursors_off (XWINDOW (f->root_window)); | ||
| 1419 | cancel_mouse_face (f); | ||
| 1420 | |||
| 1421 | unblock_input (); | 1408 | unblock_input (); |
| 1422 | |||
| 1423 | do_pending_window_change (0); | ||
| 1424 | } | 1409 | } |
| 1425 | 1410 | ||
| 1426 | 1411 | ||
diff --git a/src/print.c b/src/print.c index 7723b98348a..f26837055f2 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Lisp object printing and output streams. | 1 | /* Lisp object printing and output streams. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1988, 1993-1995, 1997-2014 Free Software | 3 | Copyright (C) 1985-1986, 1988, 1993-1995, 1997-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -37,14 +37,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 37 | #include "termhooks.h" /* For struct terminal. */ | 37 | #include "termhooks.h" /* For struct terminal. */ |
| 38 | #include "font.h" | 38 | #include "font.h" |
| 39 | 39 | ||
| 40 | Lisp_Object Qstandard_output; | ||
| 41 | |||
| 42 | static Lisp_Object Qtemp_buffer_setup_hook; | ||
| 43 | |||
| 44 | /* These are used to print like we read. */ | ||
| 45 | |||
| 46 | static Lisp_Object Qfloat_output_format; | ||
| 47 | |||
| 48 | #include <float.h> | 40 | #include <float.h> |
| 49 | #include <ftoastr.h> | 41 | #include <ftoastr.h> |
| 50 | 42 | ||
| @@ -72,9 +64,6 @@ static ptrdiff_t print_buffer_pos; | |||
| 72 | /* Bytes stored in print_buffer. */ | 64 | /* Bytes stored in print_buffer. */ |
| 73 | static ptrdiff_t print_buffer_pos_byte; | 65 | static ptrdiff_t print_buffer_pos_byte; |
| 74 | 66 | ||
| 75 | Lisp_Object Qprint_escape_newlines; | ||
| 76 | static Lisp_Object Qprint_escape_multibyte, Qprint_escape_nonascii; | ||
| 77 | |||
| 78 | /* Vprint_number_table is a table, that keeps objects that are going to | 67 | /* Vprint_number_table is a table, that keeps objects that are going to |
| 79 | be printed, to allow use of #n= and #n# to express sharing. | 68 | be printed, to allow use of #n= and #n# to express sharing. |
| 80 | For any given object, the table can give the following values: | 69 | For any given object, the table can give the following values: |
| @@ -507,7 +496,7 @@ temp_output_buffer_setup (const char *bufname) | |||
| 507 | Ferase_buffer (); | 496 | Ferase_buffer (); |
| 508 | XSETBUFFER (buf, current_buffer); | 497 | XSETBUFFER (buf, current_buffer); |
| 509 | 498 | ||
| 510 | Frun_hooks (1, &Qtemp_buffer_setup_hook); | 499 | run_hook (Qtemp_buffer_setup_hook); |
| 511 | 500 | ||
| 512 | unbind_to (count, Qnil); | 501 | unbind_to (count, Qnil); |
| 513 | 502 | ||
| @@ -716,10 +705,6 @@ is used instead. */) | |||
| 716 | return object; | 705 | return object; |
| 717 | } | 706 | } |
| 718 | 707 | ||
| 719 | /* The subroutine object for external-debugging-output is kept here | ||
| 720 | for the convenience of the debugger. */ | ||
| 721 | Lisp_Object Qexternal_debugging_output; | ||
| 722 | |||
| 723 | DEFUN ("external-debugging-output", Fexternal_debugging_output, Sexternal_debugging_output, 1, 1, 0, | 708 | DEFUN ("external-debugging-output", Fexternal_debugging_output, Sexternal_debugging_output, 1, 1, 0, |
| 724 | doc: /* Write CHARACTER to stderr. | 709 | doc: /* Write CHARACTER to stderr. |
| 725 | You can call print while debugging emacs, and pass it this function | 710 | You can call print while debugging emacs, and pass it this function |
| @@ -2220,7 +2205,10 @@ print_interval (INTERVAL interval, Lisp_Object printcharfun) | |||
| 2220 | void | 2205 | void |
| 2221 | init_print_once (void) | 2206 | init_print_once (void) |
| 2222 | { | 2207 | { |
| 2208 | /* The subroutine object for external-debugging-output is kept here | ||
| 2209 | for the convenience of the debugger. */ | ||
| 2223 | DEFSYM (Qexternal_debugging_output, "external-debugging-output"); | 2210 | DEFSYM (Qexternal_debugging_output, "external-debugging-output"); |
| 2211 | |||
| 2224 | defsubr (&Sexternal_debugging_output); | 2212 | defsubr (&Sexternal_debugging_output); |
| 2225 | } | 2213 | } |
| 2226 | 2214 | ||
diff --git a/src/process.c b/src/process.c index c58ae3efd28..9015383b8b5 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Asynchronous subprocess control for GNU Emacs. | 1 | /* Asynchronous subprocess control for GNU Emacs. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1988, 1993-1996, 1998-1999, 2001-2014 | 3 | Copyright (C) 1985-1988, 1993-1996, 1998-1999, 2001-2015 Free Software |
| 4 | Free Software Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -140,12 +140,6 @@ extern int sys_select (int, fd_set *, fd_set *, fd_set *, | |||
| 140 | #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) | 140 | #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) |
| 141 | # pragma GCC diagnostic ignored "-Wstrict-overflow" | 141 | # pragma GCC diagnostic ignored "-Wstrict-overflow" |
| 142 | #endif | 142 | #endif |
| 143 | |||
| 144 | Lisp_Object Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname, Qtpgid; | ||
| 145 | Lisp_Object Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcstime; | ||
| 146 | Lisp_Object Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs; | ||
| 147 | Lisp_Object Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtime, Qctime; | ||
| 148 | Lisp_Object QCname, QCtype; | ||
| 149 | 143 | ||
| 150 | /* True if keyboard input is on hold, zero otherwise. */ | 144 | /* True if keyboard input is on hold, zero otherwise. */ |
| 151 | 145 | ||
| @@ -191,27 +185,6 @@ process_socket (int domain, int type, int protocol) | |||
| 191 | # define socket(domain, type, protocol) process_socket (domain, type, protocol) | 185 | # define socket(domain, type, protocol) process_socket (domain, type, protocol) |
| 192 | #endif | 186 | #endif |
| 193 | 187 | ||
| 194 | Lisp_Object Qprocessp; | ||
| 195 | static Lisp_Object Qrun, Qstop, Qsignal; | ||
| 196 | static Lisp_Object Qopen, Qclosed, Qconnect, Qfailed, Qlisten; | ||
| 197 | Lisp_Object Qlocal; | ||
| 198 | static Lisp_Object Qipv4, Qdatagram, Qseqpacket; | ||
| 199 | static Lisp_Object Qreal, Qnetwork, Qserial; | ||
| 200 | #ifdef AF_INET6 | ||
| 201 | static Lisp_Object Qipv6; | ||
| 202 | #endif | ||
| 203 | static Lisp_Object QCport, QCprocess; | ||
| 204 | Lisp_Object QCspeed; | ||
| 205 | Lisp_Object QCbytesize, QCstopbits, QCparity, Qodd, Qeven; | ||
| 206 | Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary; | ||
| 207 | static Lisp_Object QCbuffer, QChost, QCservice; | ||
| 208 | static Lisp_Object QClocal, QCremote, QCcoding; | ||
| 209 | static Lisp_Object QCserver, QCnowait, QCnoquery, QCstop; | ||
| 210 | static Lisp_Object QCsentinel, QClog, QCoptions, QCplist; | ||
| 211 | static Lisp_Object Qlast_nonmenu_event; | ||
| 212 | static Lisp_Object Qinternal_default_process_sentinel; | ||
| 213 | static Lisp_Object Qinternal_default_process_filter; | ||
| 214 | |||
| 215 | #define NETCONN_P(p) (EQ (XPROCESS (p)->type, Qnetwork)) | 188 | #define NETCONN_P(p) (EQ (XPROCESS (p)->type, Qnetwork)) |
| 216 | #define NETCONN1_P(p) (EQ (p->type, Qnetwork)) | 189 | #define NETCONN1_P(p) (EQ (p->type, Qnetwork)) |
| 217 | #define SERIALCONN_P(p) (EQ (XPROCESS (p)->type, Qserial)) | 190 | #define SERIALCONN_P(p) (EQ (XPROCESS (p)->type, Qserial)) |
| @@ -7228,10 +7201,7 @@ syms_of_process (void) | |||
| 7228 | DEFSYM (Qsignal, "signal"); | 7201 | DEFSYM (Qsignal, "signal"); |
| 7229 | 7202 | ||
| 7230 | /* Qexit is already staticpro'd by syms_of_eval; don't staticpro it | 7203 | /* Qexit is already staticpro'd by syms_of_eval; don't staticpro it |
| 7231 | here again. | 7204 | here again. */ |
| 7232 | |||
| 7233 | Qexit = intern_c_string ("exit"); | ||
| 7234 | staticpro (&Qexit); */ | ||
| 7235 | 7205 | ||
| 7236 | DEFSYM (Qopen, "open"); | 7206 | DEFSYM (Qopen, "open"); |
| 7237 | DEFSYM (Qclosed, "closed"); | 7207 | DEFSYM (Qclosed, "closed"); |
diff --git a/src/process.h b/src/process.h index 56c0f6d6302..7803672d61a 100644 --- a/src/process.h +++ b/src/process.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions for asynchronous process control in GNU Emacs. | 1 | /* Definitions for asynchronous process control in GNU Emacs. |
| 2 | Copyright (C) 1985, 1994, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 1994, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -197,15 +197,6 @@ pset_gnutls_cred_type (struct Lisp_Process *p, Lisp_Object val) | |||
| 197 | when exiting. */ | 197 | when exiting. */ |
| 198 | extern bool inhibit_sentinels; | 198 | extern bool inhibit_sentinels; |
| 199 | 199 | ||
| 200 | extern Lisp_Object Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname; | ||
| 201 | extern Lisp_Object Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime; | ||
| 202 | extern Lisp_Object Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs; | ||
| 203 | extern Lisp_Object Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime; | ||
| 204 | extern Lisp_Object Qtime, Qctime; | ||
| 205 | extern Lisp_Object QCspeed; | ||
| 206 | extern Lisp_Object QCbytesize, QCstopbits, QCparity, Qodd, Qeven; | ||
| 207 | extern Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary; | ||
| 208 | |||
| 209 | /* Exit statuses for GNU programs that exec other programs. */ | 200 | /* Exit statuses for GNU programs that exec other programs. */ |
| 210 | enum | 201 | enum |
| 211 | { | 202 | { |
diff --git a/src/profiler.c b/src/profiler.c index 919aabc92af..1b49afe0331 100644 --- a/src/profiler.c +++ b/src/profiler.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Profiler implementation. | 1 | /* Profiler implementation. |
| 2 | 2 | ||
| 3 | Copyright (C) 2012-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2012-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -35,7 +35,6 @@ saturated_add (EMACS_INT a, EMACS_INT b) | |||
| 35 | 35 | ||
| 36 | typedef struct Lisp_Hash_Table log_t; | 36 | typedef struct Lisp_Hash_Table log_t; |
| 37 | 37 | ||
| 38 | static Lisp_Object Qprofiler_backtrace_equal; | ||
| 39 | static struct hash_table_test hashtest_profiler; | 38 | static struct hash_table_test hashtest_profiler; |
| 40 | 39 | ||
| 41 | static Lisp_Object | 40 | static Lisp_Object |
diff --git a/src/puresize.h b/src/puresize.h index 376b11cf75b..b72fb6c03f9 100644 --- a/src/puresize.h +++ b/src/puresize.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* How much read-only Lisp storage a dumped Emacs needs. | 1 | /* How much read-only Lisp storage a dumped Emacs needs. |
| 2 | Copyright (C) 1993, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/ralloc.c b/src/ralloc.c index e63ed34c89b..fb5087d4068 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Block-relocating memory allocator. | 1 | /* Block-relocating memory allocator. |
| 2 | Copyright (C) 1993, 1995, 2000-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993, 1995, 2000-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/regex.c b/src/regex.c index 85266458917..41fe3fa8088 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 0.12. (Implements POSIX draft P1003.2/D11.2, except for some of the | 2 | 0.12. (Implements POSIX draft P1003.2/D11.2, except for some of the |
| 3 | internationalization features.) | 3 | internationalization features.) |
| 4 | 4 | ||
| 5 | Copyright (C) 1993-2014 Free Software Foundation, Inc. | 5 | Copyright (C) 1993-2015 Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | This program is free software; you can redistribute it and/or modify | 7 | This program is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by | 8 | it under the terms of the GNU General Public License as published by |
diff --git a/src/regex.h b/src/regex.h index 0e25723a85e..3dfecf0a7e5 100644 --- a/src/regex.h +++ b/src/regex.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Definitions for data structures and routines for the regular | 1 | /* Definitions for data structures and routines for the regular |
| 2 | expression library, version 0.12. | 2 | expression library, version 0.12. |
| 3 | 3 | ||
| 4 | Copyright (C) 1985, 1989-1993, 1995, 2000-2014 Free Software | 4 | Copyright (C) 1985, 1989-1993, 1995, 2000-2015 Free Software |
| 5 | Foundation, Inc. | 5 | Foundation, Inc. |
| 6 | 6 | ||
| 7 | This program is free software; you can redistribute it and/or modify | 7 | This program is free software; you can redistribute it and/or modify |
diff --git a/src/region-cache.c b/src/region-cache.c index 1123a0fb755..937f3d09aaf 100644 --- a/src/region-cache.c +++ b/src/region-cache.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Caching facts about regions of the buffer, for optimization. | 1 | /* Caching facts about regions of the buffer, for optimization. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1989, 1993, 1995, 2001-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1989, 1993, 1995, 2001-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
diff --git a/src/region-cache.h b/src/region-cache.h index 4b9d519fcb0..1f336cebaf7 100644 --- a/src/region-cache.h +++ b/src/region-cache.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Header file: Caching facts about regions of the buffer, for optimization. | 1 | /* Header file: Caching facts about regions of the buffer, for optimization. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1993, 1995, 2001-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1986, 1993, 1995, 2001-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
diff --git a/src/scroll.c b/src/scroll.c index 7cb683c4577..ad7f0f7eced 100644 --- a/src/scroll.c +++ b/src/scroll.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Calculate what line insertion or deletion to do, and do it | 1 | /* Calculate what line insertion or deletion to do, and do it |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1990, 1993-1994, 2001-2014 Free Software | 3 | Copyright (C) 1985-1986, 1990, 1993-1994, 2001-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
diff --git a/src/search.c b/src/search.c index c6ae9d7e922..0252542a361 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* String search routines for GNU Emacs. | 1 | /* String search routines for GNU Emacs. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1987, 1993-1994, 1997-1999, 2001-2014 Free Software | 3 | Copyright (C) 1985-1987, 1993-1994, 1997-1999, 2001-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -84,12 +84,6 @@ static struct re_registers search_regs; | |||
| 84 | Qnil if no searching has been done yet. */ | 84 | Qnil if no searching has been done yet. */ |
| 85 | static Lisp_Object last_thing_searched; | 85 | static Lisp_Object last_thing_searched; |
| 86 | 86 | ||
| 87 | /* Error condition signaled when regexp compile_pattern fails. */ | ||
| 88 | static Lisp_Object Qinvalid_regexp; | ||
| 89 | |||
| 90 | /* Error condition used for failing searches. */ | ||
| 91 | static Lisp_Object Qsearch_failed; | ||
| 92 | |||
| 93 | static void set_search_regs (ptrdiff_t, ptrdiff_t); | 87 | static void set_search_regs (ptrdiff_t, ptrdiff_t); |
| 94 | static void save_search_regs (void); | 88 | static void save_search_regs (void); |
| 95 | static EMACS_INT simple_search (EMACS_INT, unsigned char *, ptrdiff_t, | 89 | static EMACS_INT simple_search (EMACS_INT, unsigned char *, ptrdiff_t, |
| @@ -3329,7 +3323,10 @@ syms_of_search (void) | |||
| 3329 | } | 3323 | } |
| 3330 | searchbuf_head = &searchbufs[0]; | 3324 | searchbuf_head = &searchbufs[0]; |
| 3331 | 3325 | ||
| 3326 | /* Error condition used for failing searches. */ | ||
| 3332 | DEFSYM (Qsearch_failed, "search-failed"); | 3327 | DEFSYM (Qsearch_failed, "search-failed"); |
| 3328 | |||
| 3329 | /* Error condition signaled when regexp compile_pattern fails. */ | ||
| 3333 | DEFSYM (Qinvalid_regexp, "invalid-regexp"); | 3330 | DEFSYM (Qinvalid_regexp, "invalid-regexp"); |
| 3334 | 3331 | ||
| 3335 | Fput (Qsearch_failed, Qerror_conditions, | 3332 | Fput (Qsearch_failed, Qerror_conditions, |
diff --git a/src/sheap.c b/src/sheap.c index 956faa36aa1..58a6a0b1cd3 100644 --- a/src/sheap.c +++ b/src/sheap.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* simulate `sbrk' with an array in .bss, for `unexec' support for Cygwin; | 1 | /* simulate `sbrk' with an array in .bss, for `unexec' support for Cygwin; |
| 2 | complete rewrite of xemacs Cygwin `unexec' code | 2 | complete rewrite of xemacs Cygwin `unexec' code |
| 3 | 3 | ||
| 4 | Copyright (C) 2004-2014 Free Software Foundation, Inc. | 4 | Copyright (C) 2004-2015 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
diff --git a/src/sound.c b/src/sound.c index b49348f1256..6f7e2adecc9 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* sound.c -- sound support. | 1 | /* sound.c -- sound support. |
| 2 | 2 | ||
| 3 | Copyright (C) 1998-1999, 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1998-1999, 2001-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -99,12 +99,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 99 | 99 | ||
| 100 | /* BEGIN: Common Definitions */ | 100 | /* BEGIN: Common Definitions */ |
| 101 | 101 | ||
| 102 | /* Symbols. */ | ||
| 103 | |||
| 104 | static Lisp_Object QCvolume, QCdevice; | ||
| 105 | static Lisp_Object Qsound; | ||
| 106 | static Lisp_Object Qplay_sound_functions; | ||
| 107 | |||
| 108 | /* Indices of attributes in a sound attributes vector. */ | 102 | /* Indices of attributes in a sound attributes vector. */ |
| 109 | 103 | ||
| 110 | enum sound_attr | 104 | enum sound_attr |
diff --git a/src/syntax.c b/src/syntax.c index dc84ca69fb7..2f821564294 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* GNU Emacs routines to deal with syntax tables; also word and list parsing. | 1 | /* GNU Emacs routines to deal with syntax tables; also word and list parsing. |
| 2 | Copyright (C) 1985, 1987, 1993-1995, 1997-1999, 2001-2014 Free | 2 | Copyright (C) 1985, 1987, 1993-1995, 1997-1999, 2001-2015 Free |
| 3 | Software Foundation, Inc. | 3 | Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -137,9 +137,6 @@ enum | |||
| 137 | ST_STRING_STYLE = 256 + 2 | 137 | ST_STRING_STYLE = 256 + 2 |
| 138 | }; | 138 | }; |
| 139 | 139 | ||
| 140 | static Lisp_Object Qsyntax_table_p; | ||
| 141 | static Lisp_Object Qsyntax_table, Qscan_error; | ||
| 142 | |||
| 143 | /* This is the internal form of the parse state used in parse-partial-sexp. */ | 140 | /* This is the internal form of the parse state used in parse-partial-sexp. */ |
| 144 | 141 | ||
| 145 | struct lisp_parse_state | 142 | struct lisp_parse_state |
| @@ -3500,11 +3497,6 @@ init_syntax_once (void) | |||
| 3500 | /* This has to be done here, before we call Fmake_char_table. */ | 3497 | /* This has to be done here, before we call Fmake_char_table. */ |
| 3501 | DEFSYM (Qsyntax_table, "syntax-table"); | 3498 | DEFSYM (Qsyntax_table, "syntax-table"); |
| 3502 | 3499 | ||
| 3503 | /* This variable is DEFSYMed in alloc.c and not initialized yet, so | ||
| 3504 | intern it here. NOTE: you must guarantee that init_syntax_once | ||
| 3505 | is called before all other users of this variable. */ | ||
| 3506 | Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots"); | ||
| 3507 | |||
| 3508 | /* Create objects which can be shared among syntax tables. */ | 3500 | /* Create objects which can be shared among syntax tables. */ |
| 3509 | Vsyntax_code_object = make_uninit_vector (Smax); | 3501 | Vsyntax_code_object = make_uninit_vector (Smax); |
| 3510 | for (i = 0; i < Smax; i++) | 3502 | for (i = 0; i < Smax; i++) |
diff --git a/src/syntax.h b/src/syntax.h index 549ca4a828e..bfcb87168ba 100644 --- a/src/syntax.h +++ b/src/syntax.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Declarations having to do with GNU Emacs syntax tables. | 1 | /* Declarations having to do with GNU Emacs syntax tables. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985, 1993-1994, 1997-1998, 2001-2014 Free Software | 3 | Copyright (C) 1985, 1993-1994, 1997-1998, 2001-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
diff --git a/src/sysdep.c b/src/sysdep.c index 7158f38dba2..a2bda96192f 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Interfaces to system-dependent kernel and library entries. | 1 | /* Interfaces to system-dependent kernel and library entries. |
| 2 | Copyright (C) 1985-1988, 1993-1995, 1999-2014 Free Software | 2 | Copyright (C) 1985-1988, 1993-1995, 1999-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
diff --git a/src/sysselect.h b/src/sysselect.h index db6438ed1f8..54f90fb3965 100644 --- a/src/sysselect.h +++ b/src/sysselect.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* sysselect.h - System-dependent definitions for the select function. | 1 | /* sysselect.h - System-dependent definitions for the select function. |
| 2 | Copyright (C) 1995, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1995, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/syssignal.h b/src/syssignal.h index 3fd9730e665..b536eb501b8 100644 --- a/src/syssignal.h +++ b/src/syssignal.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* syssignal.h - System-dependent definitions for signals. | 1 | /* syssignal.h - System-dependent definitions for signals. |
| 2 | 2 | ||
| 3 | Copyright (C) 1993, 1999, 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1993, 1999, 2001-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
diff --git a/src/systime.h b/src/systime.h index e0f7eec7977..1d3a4ba2914 100644 --- a/src/systime.h +++ b/src/systime.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* systime.h - System-dependent definitions for time manipulations. | 1 | /* systime.h - System-dependent definitions for time manipulations. |
| 2 | Copyright (C) 1993-1994, 2002-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993-1994, 2002-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/systty.h b/src/systty.h index a29c4933d7b..3a461565e5d 100644 --- a/src/systty.h +++ b/src/systty.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* systty.h - System-dependent definitions for terminals. | 1 | /* systty.h - System-dependent definitions for terminals. |
| 2 | Copyright (C) 1993-1994, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993-1994, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/syswait.h b/src/syswait.h index 9c8cbd51f00..58918222e5e 100644 --- a/src/syswait.h +++ b/src/syswait.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Define wait system call interface for Emacs. | 1 | /* Define wait system call interface for Emacs. |
| 2 | Copyright (C) 1993-1995, 2000-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993-1995, 2000-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/term.c b/src/term.c index bcb83e5891d..d48bf7b6eaf 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Terminal control module for terminals described by TERMCAP | 1 | /* Terminal control module for terminals described by TERMCAP |
| 2 | Copyright (C) 1985-1987, 1993-1995, 1998, 2000-2014 Free Software | 2 | Copyright (C) 1985-1987, 1993-1995, 1998, 2000-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -130,9 +130,6 @@ enum no_color_bit | |||
| 130 | 130 | ||
| 131 | static int max_frame_cols; | 131 | static int max_frame_cols; |
| 132 | 132 | ||
| 133 | static Lisp_Object Qtty_mode_set_strings; | ||
| 134 | static Lisp_Object Qtty_mode_reset_strings; | ||
| 135 | |||
| 136 | 133 | ||
| 137 | 134 | ||
| 138 | #ifdef HAVE_GPM | 135 | #ifdef HAVE_GPM |
| @@ -1736,7 +1733,7 @@ produce_composite_glyph (struct it *it) | |||
| 1736 | { | 1733 | { |
| 1737 | struct composition *cmp = composition_table[it->cmp_it.id]; | 1734 | struct composition *cmp = composition_table[it->cmp_it.id]; |
| 1738 | 1735 | ||
| 1739 | it->pixel_width = cmp->pixel_width; | 1736 | it->pixel_width = cmp->width; |
| 1740 | } | 1737 | } |
| 1741 | else | 1738 | else |
| 1742 | { | 1739 | { |
| @@ -2710,12 +2707,6 @@ static const char *menu_help_message, *prev_menu_help_message; | |||
| 2710 | last menu help message. */ | 2707 | last menu help message. */ |
| 2711 | static int menu_help_paneno, menu_help_itemno; | 2708 | static int menu_help_paneno, menu_help_itemno; |
| 2712 | 2709 | ||
| 2713 | static Lisp_Object Qtty_menu_navigation_map, Qtty_menu_exit; | ||
| 2714 | static Lisp_Object Qtty_menu_prev_item, Qtty_menu_next_item; | ||
| 2715 | static Lisp_Object Qtty_menu_next_menu, Qtty_menu_prev_menu; | ||
| 2716 | static Lisp_Object Qtty_menu_select, Qtty_menu_ignore; | ||
| 2717 | static Lisp_Object Qtty_menu_mouse_movement; | ||
| 2718 | |||
| 2719 | typedef struct tty_menu_struct | 2710 | typedef struct tty_menu_struct |
| 2720 | { | 2711 | { |
| 2721 | int count; | 2712 | int count; |
diff --git a/src/termcap.c b/src/termcap.c index 26c6de06f88..394b4056eb3 100644 --- a/src/termcap.c +++ b/src/termcap.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Work-alike for termcap, plus extra features. | 1 | /* Work-alike for termcap, plus extra features. |
| 2 | Copyright (C) 1985-1986, 1993-1995, 2000-2008, 2011, 2013-2014 Free | 2 | Copyright (C) 1985-1986, 1993-1995, 2000-2008, 2011, 2013-2015 Free |
| 3 | Software Foundation, Inc. | 3 | Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
diff --git a/src/termchar.h b/src/termchar.h index f22581a222a..d8066d7b2b3 100644 --- a/src/termchar.h +++ b/src/termchar.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Flags and parameters describing terminal's characteristics. | 1 | /* Flags and parameters describing terminal's characteristics. |
| 2 | Copyright (C) 1985-1986, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1985-1986, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/termhooks.h b/src/termhooks.h index 137e77ac2ef..3cafc437e59 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Parameters and display hooks for terminal devices. | 1 | /* Parameters and display hooks for terminal devices. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1993-1994, 2001-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1986, 1993-1994, 2001-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
diff --git a/src/terminal.c b/src/terminal.c index 0cd6a0bf602..92befd28543 100644 --- a/src/terminal.c +++ b/src/terminal.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Functions related to terminal devices. | 1 | /* Functions related to terminal devices. |
| 2 | Copyright (C) 2005-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2005-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -37,10 +37,6 @@ static int next_terminal_id; | |||
| 37 | /* The initial terminal device, created by initial_term_init. */ | 37 | /* The initial terminal device, created by initial_term_init. */ |
| 38 | struct terminal *initial_terminal; | 38 | struct terminal *initial_terminal; |
| 39 | 39 | ||
| 40 | Lisp_Object Qrun_hook_with_args; | ||
| 41 | static Lisp_Object Qterminal_live_p; | ||
| 42 | static Lisp_Object Qdelete_terminal_functions; | ||
| 43 | |||
| 44 | static void delete_initial_terminal (struct terminal *); | 40 | static void delete_initial_terminal (struct terminal *); |
| 45 | 41 | ||
| 46 | /* This setter is used only in this file, so it can be private. */ | 42 | /* This setter is used only in this file, so it can be private. */ |
diff --git a/src/terminfo.c b/src/terminfo.c index e03a42f2e5e..c4538419bab 100644 --- a/src/terminfo.c +++ b/src/terminfo.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Interface from Emacs to terminfo. | 1 | /* Interface from Emacs to terminfo. |
| 2 | Copyright (C) 1985-1986, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1985-1986, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/termopts.h b/src/termopts.h index ad13583688d..c54d392ddaf 100644 --- a/src/termopts.h +++ b/src/termopts.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Flags and parameters describing user options for handling the terminal. | 1 | /* Flags and parameters describing user options for handling the terminal. |
| 2 | Copyright (C) 1985-1986, 1990, 2001-2014 Free Software Foundation, | 2 | Copyright (C) 1985-1986, 1990, 2001-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
diff --git a/src/textprop.c b/src/textprop.c index 7ecac62be98..35f22bf454e 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Interface code for dealing with text properties. | 1 | /* Interface code for dealing with text properties. |
| 2 | Copyright (C) 1993-1995, 1997, 1999-2014 Free Software Foundation, | 2 | Copyright (C) 1993-1995, 1997, 1999-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -44,21 +44,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 44 | is enforced by the subrs installing properties onto the intervals. */ | 44 | is enforced by the subrs installing properties onto the intervals. */ |
| 45 | 45 | ||
| 46 | 46 | ||
| 47 | /* Types of hooks. */ | ||
| 48 | static Lisp_Object Qmouse_left; | ||
| 49 | static Lisp_Object Qmouse_entered; | ||
| 50 | Lisp_Object Qpoint_left; | ||
| 51 | Lisp_Object Qpoint_entered; | ||
| 52 | Lisp_Object Qcategory; | ||
| 53 | Lisp_Object Qlocal_map; | ||
| 54 | |||
| 55 | /* Visual properties text (including strings) may have. */ | ||
| 56 | static Lisp_Object Qforeground, Qbackground, Qunderline; | ||
| 57 | Lisp_Object Qfont; | ||
| 58 | static Lisp_Object Qstipple; | ||
| 59 | Lisp_Object Qinvisible, Qintangible, Qmouse_face; | ||
| 60 | static Lisp_Object Qread_only; | ||
| 61 | Lisp_Object Qminibuffer_prompt; | ||
| 62 | 47 | ||
| 63 | enum property_set_type | 48 | enum property_set_type |
| 64 | { | 49 | { |
| @@ -67,9 +52,6 @@ enum property_set_type | |||
| 67 | TEXT_PROPERTY_APPEND | 52 | TEXT_PROPERTY_APPEND |
| 68 | }; | 53 | }; |
| 69 | 54 | ||
| 70 | /* Sticky properties. */ | ||
| 71 | Lisp_Object Qfront_sticky, Qrear_nonsticky; | ||
| 72 | |||
| 73 | /* If o1 is a cons whose cdr is a cons, return non-zero and set o2 to | 55 | /* If o1 is a cons whose cdr is a cons, return non-zero and set o2 to |
| 74 | the o1's cdr. Otherwise, return zero. This is handy for | 56 | the o1's cdr. Otherwise, return zero. This is handy for |
| 75 | traversing plists. */ | 57 | traversing plists. */ |
| @@ -2383,7 +2365,7 @@ inherits it if NONSTICKINESS is nil. The `front-sticky' and | |||
| 2383 | interval_insert_in_front_hooks = Qnil; | 2365 | interval_insert_in_front_hooks = Qnil; |
| 2384 | 2366 | ||
| 2385 | 2367 | ||
| 2386 | /* Common attributes one might give text */ | 2368 | /* Common attributes one might give text. */ |
| 2387 | 2369 | ||
| 2388 | DEFSYM (Qforeground, "foreground"); | 2370 | DEFSYM (Qforeground, "foreground"); |
| 2389 | DEFSYM (Qbackground, "background"); | 2371 | DEFSYM (Qbackground, "background"); |
| @@ -2401,7 +2383,7 @@ inherits it if NONSTICKINESS is nil. The `front-sticky' and | |||
| 2401 | DEFSYM (Qmouse_face, "mouse-face"); | 2383 | DEFSYM (Qmouse_face, "mouse-face"); |
| 2402 | DEFSYM (Qminibuffer_prompt, "minibuffer-prompt"); | 2384 | DEFSYM (Qminibuffer_prompt, "minibuffer-prompt"); |
| 2403 | 2385 | ||
| 2404 | /* Properties that text might use to specify certain actions */ | 2386 | /* Properties that text might use to specify certain actions. */ |
| 2405 | 2387 | ||
| 2406 | DEFSYM (Qmouse_left, "mouse-left"); | 2388 | DEFSYM (Qmouse_left, "mouse-left"); |
| 2407 | DEFSYM (Qmouse_entered, "mouse-entered"); | 2389 | DEFSYM (Qmouse_entered, "mouse-entered"); |
diff --git a/src/tparam.c b/src/tparam.c index b0cd0047ba2..538f26c83b6 100644 --- a/src/tparam.c +++ b/src/tparam.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Merge parameters into a termcap entry string. | 1 | /* Merge parameters into a termcap entry string. |
| 2 | Copyright (C) 1985, 1987, 1993, 1995, 2000-2008, 2013-2014 Free | 2 | Copyright (C) 1985, 1987, 1993, 1995, 2000-2008, 2013-2015 Free |
| 3 | Software Foundation, Inc. | 3 | Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
diff --git a/src/tparam.h b/src/tparam.h index 3bef6c61aa3..59fc859c4a3 100644 --- a/src/tparam.h +++ b/src/tparam.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Interface definitions for termcap entries. | 1 | /* Interface definitions for termcap entries. |
| 2 | 2 | ||
| 3 | Copyright (C) 2011-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2011-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
diff --git a/src/undo.c b/src/undo.c index 2dde02b99a9..948dcf9ec1a 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* undo handling for GNU Emacs. | 1 | /* undo handling for GNU Emacs. |
| 2 | Copyright (C) 1990, 1993-1994, 2000-2014 Free Software Foundation, | 2 | Copyright (C) 1990, 1993-1994, 2000-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -34,12 +34,6 @@ static struct buffer *last_undo_buffer; | |||
| 34 | static struct buffer *last_boundary_buffer; | 34 | static struct buffer *last_boundary_buffer; |
| 35 | static ptrdiff_t last_boundary_position; | 35 | static ptrdiff_t last_boundary_position; |
| 36 | 36 | ||
| 37 | Lisp_Object Qinhibit_read_only; | ||
| 38 | |||
| 39 | /* Marker for function call undo list elements. */ | ||
| 40 | |||
| 41 | Lisp_Object Qapply; | ||
| 42 | |||
| 43 | /* The first time a command records something for undo. | 37 | /* The first time a command records something for undo. |
| 44 | it also allocates the undo-boundary object | 38 | it also allocates the undo-boundary object |
| 45 | which will be added to the list at the end of the command. | 39 | which will be added to the list at the end of the command. |
| @@ -461,6 +455,8 @@ void | |||
| 461 | syms_of_undo (void) | 455 | syms_of_undo (void) |
| 462 | { | 456 | { |
| 463 | DEFSYM (Qinhibit_read_only, "inhibit-read-only"); | 457 | DEFSYM (Qinhibit_read_only, "inhibit-read-only"); |
| 458 | |||
| 459 | /* Marker for function call undo list elements. */ | ||
| 464 | DEFSYM (Qapply, "apply"); | 460 | DEFSYM (Qapply, "apply"); |
| 465 | 461 | ||
| 466 | pending_boundary = Qnil; | 462 | pending_boundary = Qnil; |
diff --git a/src/unexaix.c b/src/unexaix.c index fd36e4a73a6..af114e4427d 100644 --- a/src/unexaix.c +++ b/src/unexaix.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Dump an executable image. | 1 | /* Dump an executable image. |
| 2 | Copyright (C) 1985-1988, 1999, 2001-2014 Free Software Foundation, | 2 | Copyright (C) 1985-1988, 1999, 2001-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
diff --git a/src/unexcoff.c b/src/unexcoff.c index 292c38f7ff7..3f6549003a5 100644 --- a/src/unexcoff.c +++ b/src/unexcoff.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright (C) 1985-1988, 1992-1994, 2001-2014 Free Software | 1 | /* Copyright (C) 1985-1988, 1992-1994, 2001-2015 Free Software |
| 2 | * Foundation, Inc. | 2 | * Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
diff --git a/src/unexcw.c b/src/unexcw.c index cdeb899fd30..be8857878eb 100644 --- a/src/unexcw.c +++ b/src/unexcw.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* unexec() support for Cygwin; | 1 | /* unexec() support for Cygwin; |
| 2 | complete rewrite of xemacs Cygwin unexec() code | 2 | complete rewrite of xemacs Cygwin unexec() code |
| 3 | 3 | ||
| 4 | Copyright (C) 2004-2014 Free Software Foundation, Inc. | 4 | Copyright (C) 2004-2015 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
diff --git a/src/unexelf.c b/src/unexelf.c index 34478e0edb7..483da6eef0c 100644 --- a/src/unexelf.c +++ b/src/unexelf.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright (C) 1985-1988, 1990, 1992, 1999-2014 Free Software | 1 | /* Copyright (C) 1985-1988, 1990, 1992, 1999-2015 Free Software |
| 2 | Foundation, Inc. | 2 | Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
diff --git a/src/unexmacosx.c b/src/unexmacosx.c index 89971bb8a77..fe6637e2ef5 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Dump Emacs in Mach-O format for use on Mac OS X. | 1 | /* Dump Emacs in Mach-O format for use on Mac OS X. |
| 2 | Copyright (C) 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/unexw32.c b/src/unexw32.c index 5c1c1f3f391..322d60d062f 100644 --- a/src/unexw32.c +++ b/src/unexw32.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* unexec for GNU Emacs on Windows NT. | 1 | /* unexec for GNU Emacs on Windows NT. |
| 2 | Copyright (C) 1994, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1994, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/vm-limit.c b/src/vm-limit.c index 015f3ee2111..ab102e32623 100644 --- a/src/vm-limit.c +++ b/src/vm-limit.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Functions for memory limit warnings. | 1 | /* Functions for memory limit warnings. |
| 2 | Copyright (C) 1990, 1992, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1990, 1992, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/w16select.c b/src/w16select.c index 2403a9be1e0..96f8437b4b1 100644 --- a/src/w16select.c +++ b/src/w16select.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* 16-bit Windows Selection processing for emacs on MS-Windows | 1 | /* 16-bit Windows Selection processing for emacs on MS-Windows |
| 2 | 2 | ||
| 3 | Copyright (C) 1996-1997, 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1996-1997, 2001-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Utility and Unix shadow routines for GNU Emacs on the Microsoft Windows API. | 1 | /* Utility and Unix shadow routines for GNU Emacs on the Microsoft Windows API. |
| 2 | 2 | ||
| 3 | Copyright (C) 1994-1995, 2000-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1994-1995, 2000-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -242,8 +242,6 @@ typedef struct _REPARSE_DATA_BUFFER { | |||
| 242 | typedef HRESULT (WINAPI * ShGetFolderPath_fn) | 242 | typedef HRESULT (WINAPI * ShGetFolderPath_fn) |
| 243 | (IN HWND, IN int, IN HANDLE, IN DWORD, OUT char *); | 243 | (IN HWND, IN int, IN HANDLE, IN DWORD, OUT char *); |
| 244 | 244 | ||
| 245 | Lisp_Object QCloaded_from; | ||
| 246 | |||
| 247 | void globals_of_w32 (void); | 245 | void globals_of_w32 (void); |
| 248 | static DWORD get_rid (PSID); | 246 | static DWORD get_rid (PSID); |
| 249 | static int is_symlink (const char *); | 247 | static int is_symlink (const char *); |
| @@ -2,7 +2,7 @@ | |||
| 2 | #define EMACS_W32_H | 2 | #define EMACS_W32_H |
| 3 | 3 | ||
| 4 | /* Support routines for the NT version of Emacs. | 4 | /* Support routines for the NT version of Emacs. |
| 5 | Copyright (C) 1994, 2001-2014 Free Software Foundation, Inc. | 5 | Copyright (C) 1994, 2001-2015 Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | This file is part of GNU Emacs. | 7 | This file is part of GNU Emacs. |
| 8 | 8 | ||
| @@ -172,7 +172,6 @@ extern void init_timers (void); | |||
| 172 | extern int _sys_read_ahead (int fd); | 172 | extern int _sys_read_ahead (int fd); |
| 173 | extern int _sys_wait_accept (int fd); | 173 | extern int _sys_wait_accept (int fd); |
| 174 | 174 | ||
| 175 | extern Lisp_Object QCloaded_from; | ||
| 176 | extern HMODULE w32_delayed_load (Lisp_Object); | 175 | extern HMODULE w32_delayed_load (Lisp_Object); |
| 177 | 176 | ||
| 178 | extern int (WINAPI *pMultiByteToWideChar)(UINT,DWORD,LPCSTR,int,LPWSTR,int); | 177 | extern int (WINAPI *pMultiByteToWideChar)(UINT,DWORD,LPCSTR,int,LPWSTR,int); |
diff --git a/src/w32common.h b/src/w32common.h index 86323ea5f83..9aba2d88169 100644 --- a/src/w32common.h +++ b/src/w32common.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Common functions for Microsoft Windows builds of Emacs | 1 | /* Common functions for Microsoft Windows builds of Emacs |
| 2 | Copyright (C) 2012-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2012-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/w32console.c b/src/w32console.c index 82a7c041900..a38a558c226 100644 --- a/src/w32console.c +++ b/src/w32console.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Terminal hooks for GNU Emacs on the Microsoft Windows API. | 1 | /* Terminal hooks for GNU Emacs on the Microsoft Windows API. |
| 2 | Copyright (C) 1992, 1999, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1992, 1999, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/w32fns.c b/src/w32fns.c index 17633708049..38571d3ec21 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Graphical user interface functions for the Microsoft Windows API. | 1 | /* Graphical user interface functions for the Microsoft Windows API. |
| 2 | 2 | ||
| 3 | Copyright (C) 1989, 1992-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1989, 1992-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -93,19 +93,6 @@ extern char * w32_strerror (int error_no); | |||
| 93 | #define IDC_HAND MAKEINTRESOURCE(32649) | 93 | #define IDC_HAND MAKEINTRESOURCE(32649) |
| 94 | #endif | 94 | #endif |
| 95 | 95 | ||
| 96 | Lisp_Object Qundefined_color; | ||
| 97 | Lisp_Object Qcancel_timer; | ||
| 98 | Lisp_Object Qfont_param; | ||
| 99 | Lisp_Object Qhyper; | ||
| 100 | Lisp_Object Qsuper; | ||
| 101 | Lisp_Object Qmeta; | ||
| 102 | Lisp_Object Qalt; | ||
| 103 | Lisp_Object Qctrl; | ||
| 104 | Lisp_Object Qcontrol; | ||
| 105 | Lisp_Object Qshift; | ||
| 106 | static Lisp_Object Qgeometry, Qworkarea, Qmm_size, Qframes; | ||
| 107 | |||
| 108 | |||
| 109 | /* Prefix for system colors. */ | 96 | /* Prefix for system colors. */ |
| 110 | #define SYSTEM_COLOR_PREFIX "System" | 97 | #define SYSTEM_COLOR_PREFIX "System" |
| 111 | #define SYSTEM_COLOR_PREFIX_LEN (sizeof (SYSTEM_COLOR_PREFIX) - 1) | 98 | #define SYSTEM_COLOR_PREFIX_LEN (sizeof (SYSTEM_COLOR_PREFIX) - 1) |
diff --git a/src/w32font.c b/src/w32font.c index 895931843ba..ab772679908 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Font backend for the Microsoft Windows API. | 1 | /* Font backend for the Microsoft Windows API. |
| 2 | Copyright (C) 2007-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2007-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -57,51 +57,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 57 | #define JOHAB_CHARSET 130 | 57 | #define JOHAB_CHARSET 130 |
| 58 | #endif | 58 | #endif |
| 59 | 59 | ||
| 60 | Lisp_Object Qgdi; | ||
| 61 | Lisp_Object Quniscribe; | ||
| 62 | static Lisp_Object QCformat; | ||
| 63 | static Lisp_Object Qmonospace, Qsansserif, Qmono, Qsans, Qsans_serif; | ||
| 64 | static Lisp_Object Qserif, Qscript, Qdecorative; | ||
| 65 | static Lisp_Object Qraster, Qoutline, Qunknown; | ||
| 66 | |||
| 67 | /* antialiasing */ | ||
| 68 | static Lisp_Object Qstandard, Qsubpixel, Qnatural; | ||
| 69 | |||
| 70 | /* languages */ | ||
| 71 | static Lisp_Object Qzh; | ||
| 72 | |||
| 73 | /* scripts */ | ||
| 74 | static Lisp_Object Qgreek, Qcoptic, Qcyrillic, Qarmenian, Qhebrew; | ||
| 75 | static Lisp_Object Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali; | ||
| 76 | static Lisp_Object Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu; | ||
| 77 | static Lisp_Object Qkannada, Qmalayalam, Qsinhala, Qthai, Qlao; | ||
| 78 | static Lisp_Object Qtibetan, Qmyanmar, Qgeorgian, Qhangul, Qethiopic; | ||
| 79 | static Lisp_Object Qcherokee, Qcanadian_aboriginal, Qogham, Qrunic; | ||
| 80 | static Lisp_Object Qkhmer, Qmongolian, Qbraille, Qhan; | ||
| 81 | static Lisp_Object Qideographic_description, Qcjk_misc, Qkana, Qbopomofo; | ||
| 82 | static Lisp_Object Qkanbun, Qyi, Qbyzantine_musical_symbol; | ||
| 83 | static Lisp_Object Qmusical_symbol, Qmathematical, Qcham, Qphonetic; | ||
| 84 | /* Not defined in characters.el, but referenced in fontset.el. */ | ||
| 85 | static Lisp_Object Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot; | ||
| 86 | static Lisp_Object Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi; | ||
| 87 | static Lisp_Object Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya; | ||
| 88 | static Lisp_Object Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri; | ||
| 89 | static Lisp_Object Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic; | ||
| 90 | |||
| 91 | /* W32 charsets: for use in Vw32_charset_info_alist. */ | ||
| 92 | static Lisp_Object Qw32_charset_ansi, Qw32_charset_default; | ||
| 93 | static Lisp_Object Qw32_charset_symbol, Qw32_charset_shiftjis; | ||
| 94 | static Lisp_Object Qw32_charset_hangeul, Qw32_charset_gb2312; | ||
| 95 | static Lisp_Object Qw32_charset_chinesebig5, Qw32_charset_oem; | ||
| 96 | static Lisp_Object Qw32_charset_easteurope, Qw32_charset_turkish; | ||
| 97 | static Lisp_Object Qw32_charset_baltic, Qw32_charset_russian; | ||
| 98 | static Lisp_Object Qw32_charset_arabic, Qw32_charset_greek; | ||
| 99 | static Lisp_Object Qw32_charset_hebrew, Qw32_charset_vietnamese; | ||
| 100 | static Lisp_Object Qw32_charset_thai, Qw32_charset_johab, Qw32_charset_mac; | ||
| 101 | |||
| 102 | /* Font spacing symbols - defined in font.c. */ | ||
| 103 | extern Lisp_Object Qc, Qp, Qm; | ||
| 104 | |||
| 105 | static void fill_in_logfont (struct frame *, LOGFONT *, Lisp_Object); | 60 | static void fill_in_logfont (struct frame *, LOGFONT *, Lisp_Object); |
| 106 | 61 | ||
| 107 | static BYTE w32_antialias_type (Lisp_Object); | 62 | static BYTE w32_antialias_type (Lisp_Object); |
| @@ -291,7 +246,7 @@ intern_font_name (char * string) | |||
| 291 | Lisp_Object obarray = check_obarray (Vobarray); | 246 | Lisp_Object obarray = check_obarray (Vobarray); |
| 292 | Lisp_Object tem = oblookup (obarray, SDATA (str), len, len); | 247 | Lisp_Object tem = oblookup (obarray, SDATA (str), len, len); |
| 293 | /* This code is similar to intern function from lread.c. */ | 248 | /* This code is similar to intern function from lread.c. */ |
| 294 | return SYMBOLP (tem) ? tem : intern_driver (str, obarray, XINT (tem)); | 249 | return SYMBOLP (tem) ? tem : intern_driver (str, obarray, tem); |
| 295 | } | 250 | } |
| 296 | 251 | ||
| 297 | /* w32 implementation of get_cache for font backend. | 252 | /* w32 implementation of get_cache for font backend. |
diff --git a/src/w32font.h b/src/w32font.h index 5ce3ac7a5f9..82c5e09b9fc 100644 --- a/src/w32font.h +++ b/src/w32font.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Shared GDI and Uniscribe Font backend declarations for the Windows API. | 1 | /* Shared GDI and Uniscribe Font backend declarations for the Windows API. |
| 2 | Copyright (C) 2007-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2007-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/w32gui.h b/src/w32gui.h index d04ce625d1d..c90404bbc2d 100644 --- a/src/w32gui.h +++ b/src/w32gui.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions and headers for communication on the Microsoft Windows API. | 1 | /* Definitions and headers for communication on the Microsoft Windows API. |
| 2 | Copyright (C) 1995, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1995, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/w32heap.c b/src/w32heap.c index 2a766419b25..f68332319c1 100644 --- a/src/w32heap.c +++ b/src/w32heap.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Heap management routines for GNU Emacs on the Microsoft Windows | 1 | /* Heap management routines for GNU Emacs on the Microsoft Windows |
| 2 | API. Copyright (C) 1994, 2001-2014 Free Software Foundation, Inc. | 2 | API. Copyright (C) 1994, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/w32heap.h b/src/w32heap.h index 787fe9ade5f..b5eb3ffa854 100644 --- a/src/w32heap.h +++ b/src/w32heap.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Heap management routines (including unexec) for GNU Emacs on Windows NT. | 1 | /* Heap management routines (including unexec) for GNU Emacs on Windows NT. |
| 2 | Copyright (C) 1994, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1994, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/w32inevt.c b/src/w32inevt.c index 7d10d88155c..daf4a5c2375 100644 --- a/src/w32inevt.c +++ b/src/w32inevt.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Input event support for Emacs on the Microsoft Windows API. | 1 | /* Input event support for Emacs on the Microsoft Windows API. |
| 2 | Copyright (C) 1992-1993, 1995, 2001-2014 Free Software Foundation, | 2 | Copyright (C) 1992-1993, 1995, 2001-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
diff --git a/src/w32inevt.h b/src/w32inevt.h index c4836211bc9..4677c3eb5f8 100644 --- a/src/w32inevt.h +++ b/src/w32inevt.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Input routines for GNU Emacs on the Microsoft Windows API. | 1 | /* Input routines for GNU Emacs on the Microsoft Windows API. |
| 2 | Copyright (C) 1995, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1995, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/w32menu.c b/src/w32menu.c index 287062c702c..7a946d2dc75 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Menu support for GNU Emacs on the Microsoft Windows API. | 1 | /* Menu support for GNU Emacs on the Microsoft Windows API. |
| 2 | Copyright (C) 1986, 1988, 1993-1994, 1996, 1998-1999, 2001-2014 Free | 2 | Copyright (C) 1986, 1988, 1993-1994, 1996, 1998-1999, 2001-2015 Free |
| 3 | Software Foundation, Inc. | 3 | Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -98,8 +98,6 @@ AppendMenuW_Proc unicode_append_menu = NULL; | |||
| 98 | MessageBoxW_Proc unicode_message_box = NULL; | 98 | MessageBoxW_Proc unicode_message_box = NULL; |
| 99 | #endif /* NTGUI_UNICODE */ | 99 | #endif /* NTGUI_UNICODE */ |
| 100 | 100 | ||
| 101 | Lisp_Object Qdebug_on_next_call, Qunsupported__w32_dialog; | ||
| 102 | |||
| 103 | void set_frame_menubar (struct frame *, bool, bool); | 101 | void set_frame_menubar (struct frame *, bool, bool); |
| 104 | 102 | ||
| 105 | #ifdef HAVE_DIALOGS | 103 | #ifdef HAVE_DIALOGS |
diff --git a/src/w32notify.c b/src/w32notify.c index 4f8c79a1f3a..a0d555b4786 100644 --- a/src/w32notify.c +++ b/src/w32notify.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Filesystem notifications support for GNU Emacs on the Microsoft Windows API. | 1 | /* Filesystem notifications support for GNU Emacs on the Microsoft Windows API. |
| 2 | Copyright (C) 2012-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2012-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -118,9 +118,7 @@ BYTE file_notifications[16384]; | |||
| 118 | DWORD notifications_size; | 118 | DWORD notifications_size; |
| 119 | void *notifications_desc; | 119 | void *notifications_desc; |
| 120 | 120 | ||
| 121 | static Lisp_Object Qfile_name, Qdirectory_name, Qattributes; | 121 | static Lisp_Object watch_list; |
| 122 | static Lisp_Object Qlast_write_time, Qlast_access_time, Qcreation_time; | ||
| 123 | static Lisp_Object Qsecurity_desc, Qsubtree, watch_list; | ||
| 124 | 122 | ||
| 125 | /* Signal to the main thread that we have file notifications for it to | 123 | /* Signal to the main thread that we have file notifications for it to |
| 126 | process. */ | 124 | process. */ |
diff --git a/src/w32proc.c b/src/w32proc.c index c571726d70f..26cfa2996d0 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Process support for GNU Emacs on the Microsoft Windows API. | 1 | /* Process support for GNU Emacs on the Microsoft Windows API. |
| 2 | 2 | ||
| 3 | Copyright (C) 1992, 1995, 1999-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1992, 1995, 1999-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -72,8 +72,6 @@ extern BOOL WINAPI IsValidLocale (LCID, DWORD); | |||
| 72 | + ((DWORD_PTR)(var) - (section)->VirtualAddress) \ | 72 | + ((DWORD_PTR)(var) - (section)->VirtualAddress) \ |
| 73 | + (filedata).file_base)) | 73 | + (filedata).file_base)) |
| 74 | 74 | ||
| 75 | Lisp_Object Qhigh, Qlow; | ||
| 76 | |||
| 77 | /* Signal handlers...SIG_DFL == 0 so this is initialized correctly. */ | 75 | /* Signal handlers...SIG_DFL == 0 so this is initialized correctly. */ |
| 78 | static signal_handler sig_handlers[NSIG]; | 76 | static signal_handler sig_handlers[NSIG]; |
| 79 | 77 | ||
| @@ -3070,7 +3068,12 @@ If successful, the new CP is returned, otherwise nil. */) | |||
| 3070 | DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset, | 3068 | DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset, |
| 3071 | Sw32_get_codepage_charset, 1, 1, 0, | 3069 | Sw32_get_codepage_charset, 1, 1, 0, |
| 3072 | doc: /* Return charset ID corresponding to codepage CP. | 3070 | doc: /* Return charset ID corresponding to codepage CP. |
| 3073 | Returns nil if the codepage is not valid. */) | 3071 | Returns nil if the codepage is not valid or its charset ID could |
| 3072 | not be determined. | ||
| 3073 | |||
| 3074 | Note that this function is only guaranteed to work with ANSI | ||
| 3075 | codepages; most console codepages are not supported and will | ||
| 3076 | yield nil. */) | ||
| 3074 | (Lisp_Object cp) | 3077 | (Lisp_Object cp) |
| 3075 | { | 3078 | { |
| 3076 | CHARSETINFO info; | 3079 | CHARSETINFO info; |
diff --git a/src/w32reg.c b/src/w32reg.c index 5068f42a49d..261cfcd09de 100644 --- a/src/w32reg.c +++ b/src/w32reg.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Emulate the X Resource Manager through the registry. | 1 | /* Emulate the X Resource Manager through the registry. |
| 2 | Copyright (C) 1990, 1993-1994, 2001-2014 Free Software Foundation, | 2 | Copyright (C) 1990, 1993-1994, 2001-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
diff --git a/src/w32select.c b/src/w32select.c index b1419e52ac9..3c554c622ae 100644 --- a/src/w32select.c +++ b/src/w32select.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Selection processing for Emacs on the Microsoft Windows API. | 1 | /* Selection processing for Emacs on the Microsoft Windows API. |
| 2 | 2 | ||
| 3 | Copyright (C) 1993-1994, 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1993-1994, 2001-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -107,17 +107,11 @@ static Lisp_Object validate_coding_system (Lisp_Object coding_system); | |||
| 107 | static void setup_windows_coding_system (Lisp_Object coding_system, | 107 | static void setup_windows_coding_system (Lisp_Object coding_system, |
| 108 | struct coding_system * coding); | 108 | struct coding_system * coding); |
| 109 | 109 | ||
| 110 | |||
| 111 | /* A remnant from X11: Symbol for the CLIPBORD selection type. Other | ||
| 112 | selections are not used on Windows, so we don't need symbols for | ||
| 113 | PRIMARY and SECONDARY. */ | ||
| 114 | Lisp_Object QCLIPBOARD; | ||
| 115 | |||
| 116 | /* Internal pseudo-constants, initialized in globals_of_w32select() | 110 | /* Internal pseudo-constants, initialized in globals_of_w32select() |
| 117 | based on current system parameters. */ | 111 | based on current system parameters. */ |
| 118 | static LCID DEFAULT_LCID; | 112 | static LCID DEFAULT_LCID; |
| 119 | static UINT ANSICP, OEMCP; | 113 | static UINT ANSICP, OEMCP; |
| 120 | static Lisp_Object QUNICODE, QANSICP, QOEMCP; | 114 | static Lisp_Object QANSICP, QOEMCP; |
| 121 | 115 | ||
| 122 | /* A hidden window just for the clipboard management. */ | 116 | /* A hidden window just for the clipboard management. */ |
| 123 | static HWND clipboard_owner; | 117 | static HWND clipboard_owner; |
diff --git a/src/w32select.h b/src/w32select.h index c56bc3c2c53..0fa9f18a23d 100644 --- a/src/w32select.h +++ b/src/w32select.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Selection processing for Emacs on the Microsoft W32 API. | 1 | /* Selection processing for Emacs on the Microsoft W32 API. |
| 2 | 2 | ||
| 3 | Copyright (C) 1993-1994, 2001-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1993-1994, 2001-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
diff --git a/src/w32term.c b/src/w32term.c index fb8648ca4f9..8a53a58189a 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Implementation of GUI terminal on the Microsoft Windows API. | 1 | /* Implementation of GUI terminal on the Microsoft Windows API. |
| 2 | 2 | ||
| 3 | Copyright (C) 1989, 1993-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1989, 1993-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -220,10 +220,6 @@ static void w32fullscreen_hook (struct frame *); | |||
| 220 | static void x_check_font (struct frame *, struct font *); | 220 | static void x_check_font (struct frame *, struct font *); |
| 221 | #endif | 221 | #endif |
| 222 | 222 | ||
| 223 | static Lisp_Object Qvendor_specific_keysyms; | ||
| 224 | static Lisp_Object Qadded, Qremoved, Qmodified; | ||
| 225 | static Lisp_Object Qrenamed_from, Qrenamed_to; | ||
| 226 | |||
| 227 | 223 | ||
| 228 | /*********************************************************************** | 224 | /*********************************************************************** |
| 229 | Debugging | 225 | Debugging |
diff --git a/src/w32term.h b/src/w32term.h index f02d7ce0a68..042d7abd945 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions and headers for communication on the Microsoft Windows API. | 1 | /* Definitions and headers for communication on the Microsoft Windows API. |
| 2 | Copyright (C) 1995, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1995, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index 1c7b256988c..2a7fe2e6f91 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Font backend for the Microsoft W32 Uniscribe API. | 1 | /* Font backend for the Microsoft W32 Uniscribe API. |
| 2 | Copyright (C) 2008-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2008-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -47,10 +47,6 @@ struct uniscribe_font_info | |||
| 47 | 47 | ||
| 48 | int uniscribe_available = 0; | 48 | int uniscribe_available = 0; |
| 49 | 49 | ||
| 50 | /* Defined in w32font.c, since it is required there as well. */ | ||
| 51 | extern Lisp_Object Quniscribe; | ||
| 52 | extern Lisp_Object Qopentype; | ||
| 53 | |||
| 54 | /* EnumFontFamiliesEx callback. */ | 50 | /* EnumFontFamiliesEx callback. */ |
| 55 | static int CALLBACK ALIGN_STACK add_opentype_font_name_to_list (ENUMLOGFONTEX *, | 51 | static int CALLBACK ALIGN_STACK add_opentype_font_name_to_list (ENUMLOGFONTEX *, |
| 56 | NEWTEXTMETRICEX *, | 52 | NEWTEXTMETRICEX *, |
diff --git a/src/w32xfns.c b/src/w32xfns.c index f7e1e02684a..35e12fd10e6 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Functions taken directly from X sources for use with the Microsoft Windows API. | 1 | /* Functions taken directly from X sources for use with the Microsoft Windows API. |
| 2 | Copyright (C) 1989, 1992-1995, 1999, 2001-2014 Free Software | 2 | Copyright (C) 1989, 1992-1995, 1999, 2001-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
diff --git a/src/widget.c b/src/widget.c index ecf145199f2..c4d69407176 100644 --- a/src/widget.c +++ b/src/widget.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* The emacs frame widget. | 1 | /* The emacs frame widget. |
| 2 | Copyright (C) 1992-1993, 2000-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1992-1993, 2000-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/widget.h b/src/widget.h index 29036660106..a782035d72d 100644 --- a/src/widget.h +++ b/src/widget.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* The emacs frame widget public header file. | 1 | /* The emacs frame widget public header file. |
| 2 | Copyright (C) 1993, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/widgetprv.h b/src/widgetprv.h index f5e2eb549a1..6cbbbd617f0 100644 --- a/src/widgetprv.h +++ b/src/widgetprv.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* The emacs frame widget private header file. | 1 | /* The emacs frame widget private header file. |
| 2 | Copyright (C) 1993, 2001-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993, 2001-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
diff --git a/src/window.c b/src/window.c index 2177a1d3966..b508988953f 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Window creation, deletion and examination for GNU Emacs. | 1 | /* Window creation, deletion and examination for GNU Emacs. |
| 2 | Does not include redisplay. | 2 | Does not include redisplay. |
| 3 | Copyright (C) 1985-1987, 1993-1998, 2000-2014 Free Software | 3 | Copyright (C) 1985-1987, 1993-1998, 2000-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -45,20 +45,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 45 | #include "msdos.h" | 45 | #include "msdos.h" |
| 46 | #endif | 46 | #endif |
| 47 | 47 | ||
| 48 | Lisp_Object Qwindowp, Qwindow_live_p; | ||
| 49 | static Lisp_Object Qwindow_valid_p; | ||
| 50 | static Lisp_Object Qwindow_configuration_p; | ||
| 51 | static Lisp_Object Qrecord_window_buffer; | ||
| 52 | static Lisp_Object Qwindow_deletable_p, Qdelete_window, Qdisplay_buffer; | ||
| 53 | static Lisp_Object Qreplace_buffer_in_windows, Qget_mru_window; | ||
| 54 | static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically; | ||
| 55 | static Lisp_Object Qwindow_sanitize_window_sizes; | ||
| 56 | static Lisp_Object Qwindow_pixel_to_total; | ||
| 57 | static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; | ||
| 58 | static Lisp_Object Qsafe, Qabove, Qbelow, Qwindow_size, Qclone_of; | ||
| 59 | static Lisp_Object Qfloor, Qceiling; | ||
| 60 | static Lisp_Object Qwindow_point_insertion_type; | ||
| 61 | |||
| 62 | static int displayed_window_lines (struct window *); | 48 | static int displayed_window_lines (struct window *); |
| 63 | static int count_windows (struct window *); | 49 | static int count_windows (struct window *); |
| 64 | static int get_leaf_windows (struct window *, struct window **, int); | 50 | static int get_leaf_windows (struct window *, struct window **, int); |
| @@ -115,15 +101,9 @@ Lisp_Object minibuf_window; | |||
| 115 | shown as the selected window when the minibuffer is selected. */ | 101 | shown as the selected window when the minibuffer is selected. */ |
| 116 | Lisp_Object minibuf_selected_window; | 102 | Lisp_Object minibuf_selected_window; |
| 117 | 103 | ||
| 118 | /* Hook run at end of temp_output_buffer_show. */ | ||
| 119 | static Lisp_Object Qtemp_buffer_show_hook; | ||
| 120 | |||
| 121 | /* Incremented for each window created. */ | 104 | /* Incremented for each window created. */ |
| 122 | static int sequence_number; | 105 | static int sequence_number; |
| 123 | 106 | ||
| 124 | /* Hook to run when window config changes. */ | ||
| 125 | static Lisp_Object Qwindow_configuration_change_hook; | ||
| 126 | |||
| 127 | /* Used by the function window_scroll_pixel_based. */ | 107 | /* Used by the function window_scroll_pixel_based. */ |
| 128 | static int window_scroll_pixel_based_preserve_x; | 108 | static int window_scroll_pixel_based_preserve_x; |
| 129 | static int window_scroll_pixel_based_preserve_y; | 109 | static int window_scroll_pixel_based_preserve_y; |
| @@ -3014,6 +2994,14 @@ resize_root_window (Lisp_Object window, Lisp_Object delta, Lisp_Object horizonta | |||
| 3014 | return call5 (Qwindow_resize_root_window, window, delta, horizontal, ignore, pixelwise); | 2994 | return call5 (Qwindow_resize_root_window, window, delta, horizontal, ignore, pixelwise); |
| 3015 | } | 2995 | } |
| 3016 | 2996 | ||
| 2997 | /* Placeholder used by temacs -nw before window.el is loaded. */ | ||
| 2998 | DEFUN ("window--sanitize-window-sizes", Fwindow__sanitize_window_sizes, | ||
| 2999 | Swindow__sanitize_window_sizes, 2, 2, 0, | ||
| 3000 | doc: /* */) | ||
| 3001 | (Lisp_Object frame, Lisp_Object horizontal) | ||
| 3002 | { | ||
| 3003 | return Qnil; | ||
| 3004 | } | ||
| 3017 | 3005 | ||
| 3018 | Lisp_Object | 3006 | Lisp_Object |
| 3019 | sanitize_window_sizes (Lisp_Object frame, Lisp_Object horizontal) | 3007 | sanitize_window_sizes (Lisp_Object frame, Lisp_Object horizontal) |
| @@ -3645,7 +3633,7 @@ temp_output_buffer_show (register Lisp_Object buf) | |||
| 3645 | record_unwind_protect (select_window_norecord, prev_window); | 3633 | record_unwind_protect (select_window_norecord, prev_window); |
| 3646 | Fselect_window (window, Qt); | 3634 | Fselect_window (window, Qt); |
| 3647 | Fset_buffer (w->contents); | 3635 | Fset_buffer (w->contents); |
| 3648 | Frun_hooks (1, &Qtemp_buffer_show_hook); | 3636 | run_hook (Qtemp_buffer_show_hook); |
| 3649 | unbind_to (count, Qnil); | 3637 | unbind_to (count, Qnil); |
| 3650 | } | 3638 | } |
| 3651 | } | 3639 | } |
| @@ -7563,6 +7551,7 @@ displayed after a scrolling operation to be somewhat inaccurate. */); | |||
| 7563 | defsubr (&Sset_window_display_table); | 7551 | defsubr (&Sset_window_display_table); |
| 7564 | defsubr (&Snext_window); | 7552 | defsubr (&Snext_window); |
| 7565 | defsubr (&Sprevious_window); | 7553 | defsubr (&Sprevious_window); |
| 7554 | defsubr (&Swindow__sanitize_window_sizes); | ||
| 7566 | defsubr (&Sget_buffer_window); | 7555 | defsubr (&Sget_buffer_window); |
| 7567 | defsubr (&Sdelete_other_windows_internal); | 7556 | defsubr (&Sdelete_other_windows_internal); |
| 7568 | defsubr (&Sdelete_window_internal); | 7557 | defsubr (&Sdelete_window_internal); |
diff --git a/src/window.h b/src/window.h index 4e4c65b83e6..2ec28ab4e56 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Window definitions for GNU Emacs. | 1 | /* Window definitions for GNU Emacs. |
| 2 | Copyright (C) 1985-1986, 1993, 1995, 1997-2014 Free Software | 2 | Copyright (C) 1985-1986, 1993, 1995, 1997-2015 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -1085,7 +1085,6 @@ struct glyph *get_phys_cursor_glyph (struct window *w); | |||
| 1085 | CHECK_TYPE (WINDOW_LIVE_P (WINDOW), Qwindow_live_p, WINDOW) | 1085 | CHECK_TYPE (WINDOW_LIVE_P (WINDOW), Qwindow_live_p, WINDOW) |
| 1086 | 1086 | ||
| 1087 | /* These used to be in lisp.h. */ | 1087 | /* These used to be in lisp.h. */ |
| 1088 | extern Lisp_Object Qwindow_live_p; | ||
| 1089 | extern Lisp_Object Vwindow_list; | 1088 | extern Lisp_Object Vwindow_list; |
| 1090 | 1089 | ||
| 1091 | extern Lisp_Object window_list (void); | 1090 | extern Lisp_Object window_list (void); |
diff --git a/src/xdisp.c b/src/xdisp.c index e6bbd859fe7..58a4f43be81 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Display generation from window structure and buffer text. | 1 | /* Display generation from window structure and buffer text. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1988, 1993-1995, 1997-2014 Free Software Foundation, | 3 | Copyright (C) 1985-1988, 1993-1995, 1997-2015 Free Software Foundation, |
| 4 | Inc. | 4 | Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -324,52 +324,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 324 | 324 | ||
| 325 | #define INFINITY 10000000 | 325 | #define INFINITY 10000000 |
| 326 | 326 | ||
| 327 | Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | ||
| 328 | Lisp_Object Qwindow_scroll_functions; | ||
| 329 | static Lisp_Object Qwindow_text_change_functions; | ||
| 330 | static Lisp_Object Qredisplay_end_trigger_functions; | ||
| 331 | Lisp_Object Qinhibit_point_motion_hooks; | ||
| 332 | static Lisp_Object QCeval, QCpropertize; | ||
| 333 | Lisp_Object QCfile, QCdata; | ||
| 334 | static Lisp_Object Qfontified; | ||
| 335 | static Lisp_Object Qgrow_only; | ||
| 336 | static Lisp_Object Qinhibit_eval_during_redisplay; | ||
| 337 | static Lisp_Object Qbuffer_position, Qposition, Qobject; | ||
| 338 | static Lisp_Object Qright_to_left, Qleft_to_right; | ||
| 339 | |||
| 340 | /* Cursor shapes. */ | ||
| 341 | Lisp_Object Qbar, Qhbar, Qbox, Qhollow; | ||
| 342 | |||
| 343 | /* Pointer shapes. */ | ||
| 344 | static Lisp_Object Qarrow, Qhand; | ||
| 345 | Lisp_Object Qtext; | ||
| 346 | |||
| 347 | /* Holds the list (error). */ | 327 | /* Holds the list (error). */ |
| 348 | static Lisp_Object list_of_error; | 328 | static Lisp_Object list_of_error; |
| 349 | 329 | ||
| 350 | Lisp_Object Qfontification_functions; | ||
| 351 | |||
| 352 | static Lisp_Object Qwrap_prefix; | ||
| 353 | static Lisp_Object Qline_prefix; | ||
| 354 | static Lisp_Object Qredisplay_internal; | ||
| 355 | |||
| 356 | /* Non-nil means don't actually do any redisplay. */ | ||
| 357 | |||
| 358 | Lisp_Object Qinhibit_redisplay; | ||
| 359 | |||
| 360 | /* Names of text properties relevant for redisplay. */ | ||
| 361 | |||
| 362 | Lisp_Object Qdisplay; | ||
| 363 | |||
| 364 | Lisp_Object Qspace, QCalign_to; | ||
| 365 | static Lisp_Object QCrelative_width, QCrelative_height; | ||
| 366 | Lisp_Object Qleft_margin, Qright_margin; | ||
| 367 | static Lisp_Object Qspace_width, Qraise; | ||
| 368 | static Lisp_Object Qslice; | ||
| 369 | Lisp_Object Qcenter; | ||
| 370 | static Lisp_Object Qmargin, Qpointer; | ||
| 371 | static Lisp_Object Qline_height; | ||
| 372 | |||
| 373 | #ifdef HAVE_WINDOW_SYSTEM | 330 | #ifdef HAVE_WINDOW_SYSTEM |
| 374 | 331 | ||
| 375 | /* Test if overflow newline into fringe. Called with iterator IT | 332 | /* Test if overflow newline into fringe. Called with iterator IT |
| @@ -403,31 +360,6 @@ static Lisp_Object Qline_height; | |||
| 403 | && (*BYTE_POS_ADDR (IT_BYTEPOS (*it)) == ' ' \ | 360 | && (*BYTE_POS_ADDR (IT_BYTEPOS (*it)) == ' ' \ |
| 404 | || *BYTE_POS_ADDR (IT_BYTEPOS (*it)) == '\t')))) \ | 361 | || *BYTE_POS_ADDR (IT_BYTEPOS (*it)) == '\t')))) \ |
| 405 | 362 | ||
| 406 | /* Name of the face used to highlight trailing whitespace. */ | ||
| 407 | |||
| 408 | static Lisp_Object Qtrailing_whitespace; | ||
| 409 | |||
| 410 | /* Name and number of the face used to highlight escape glyphs. */ | ||
| 411 | |||
| 412 | static Lisp_Object Qescape_glyph; | ||
| 413 | |||
| 414 | /* Name and number of the face used to highlight non-breaking spaces. */ | ||
| 415 | |||
| 416 | static Lisp_Object Qnobreak_space; | ||
| 417 | |||
| 418 | /* The symbol `image' which is the car of the lists used to represent | ||
| 419 | images in Lisp. Also a tool bar style. */ | ||
| 420 | |||
| 421 | Lisp_Object Qimage; | ||
| 422 | |||
| 423 | /* The image map types. */ | ||
| 424 | Lisp_Object QCmap; | ||
| 425 | static Lisp_Object QCpointer; | ||
| 426 | static Lisp_Object Qrect, Qcircle, Qpoly; | ||
| 427 | |||
| 428 | /* Tool bar styles */ | ||
| 429 | Lisp_Object Qboth, Qboth_horiz, Qtext_image_horiz; | ||
| 430 | |||
| 431 | /* Non-zero means print newline to stdout before next mini-buffer | 363 | /* Non-zero means print newline to stdout before next mini-buffer |
| 432 | message. */ | 364 | message. */ |
| 433 | 365 | ||
| @@ -477,21 +409,6 @@ static struct text_pos this_line_min_pos; | |||
| 477 | 409 | ||
| 478 | static struct buffer *this_line_buffer; | 410 | static struct buffer *this_line_buffer; |
| 479 | 411 | ||
| 480 | |||
| 481 | /* Values of those variables at last redisplay are stored as | ||
| 482 | properties on `overlay-arrow-position' symbol. However, if | ||
| 483 | Voverlay_arrow_position is a marker, last-arrow-position is its | ||
| 484 | numerical position. */ | ||
| 485 | |||
| 486 | static Lisp_Object Qlast_arrow_position, Qlast_arrow_string; | ||
| 487 | |||
| 488 | /* Alternative overlay-arrow-string and overlay-arrow-bitmap | ||
| 489 | properties on a symbol in overlay-arrow-variable-list. */ | ||
| 490 | |||
| 491 | static Lisp_Object Qoverlay_arrow_string, Qoverlay_arrow_bitmap; | ||
| 492 | |||
| 493 | Lisp_Object Qmenu_bar_update_hook; | ||
| 494 | |||
| 495 | /* Nonzero if an overlay arrow has been displayed in this window. */ | 412 | /* Nonzero if an overlay arrow has been displayed in this window. */ |
| 496 | 413 | ||
| 497 | static bool overlay_arrow_seen; | 414 | static bool overlay_arrow_seen; |
| @@ -567,11 +484,6 @@ static bool display_last_displayed_message_p; | |||
| 567 | 484 | ||
| 568 | static bool message_buf_print; | 485 | static bool message_buf_print; |
| 569 | 486 | ||
| 570 | /* The symbol `inhibit-menubar-update' and its DEFVAR_BOOL variable. */ | ||
| 571 | |||
| 572 | static Lisp_Object Qinhibit_menubar_update; | ||
| 573 | static Lisp_Object Qmessage_truncate_lines; | ||
| 574 | |||
| 575 | /* Set to 1 in clear_message to make redisplay_internal aware | 487 | /* Set to 1 in clear_message to make redisplay_internal aware |
| 576 | of an emptied echo area. */ | 488 | of an emptied echo area. */ |
| 577 | 489 | ||
| @@ -691,8 +603,6 @@ int trace_move; | |||
| 691 | #define TRACE_MOVE(x) (void) 0 | 603 | #define TRACE_MOVE(x) (void) 0 |
| 692 | #endif | 604 | #endif |
| 693 | 605 | ||
| 694 | static Lisp_Object Qauto_hscroll_mode; | ||
| 695 | |||
| 696 | /* Buffer being redisplayed -- for redisplay_window_error. */ | 606 | /* Buffer being redisplayed -- for redisplay_window_error. */ |
| 697 | 607 | ||
| 698 | static struct buffer *displayed_buffer; | 608 | static struct buffer *displayed_buffer; |
| @@ -713,7 +623,7 @@ enum prop_handled | |||
| 713 | struct props | 623 | struct props |
| 714 | { | 624 | { |
| 715 | /* The name of the property. */ | 625 | /* The name of the property. */ |
| 716 | Lisp_Object *name; | 626 | struct Lisp_Symbol *name; |
| 717 | 627 | ||
| 718 | /* A unique index for the property. */ | 628 | /* A unique index for the property. */ |
| 719 | enum prop_idx idx; | 629 | enum prop_idx idx; |
| @@ -734,13 +644,13 @@ static enum prop_handled handle_fontified_prop (struct it *); | |||
| 734 | 644 | ||
| 735 | static struct props it_props[] = | 645 | static struct props it_props[] = |
| 736 | { | 646 | { |
| 737 | {&Qfontified, FONTIFIED_PROP_IDX, handle_fontified_prop}, | 647 | {XSYMBOL_INIT (Qfontified), FONTIFIED_PROP_IDX, handle_fontified_prop}, |
| 738 | /* Handle `face' before `display' because some sub-properties of | 648 | /* Handle `face' before `display' because some sub-properties of |
| 739 | `display' need to know the face. */ | 649 | `display' need to know the face. */ |
| 740 | {&Qface, FACE_PROP_IDX, handle_face_prop}, | 650 | {XSYMBOL_INIT (Qface), FACE_PROP_IDX, handle_face_prop}, |
| 741 | {&Qdisplay, DISPLAY_PROP_IDX, handle_display_prop}, | 651 | {XSYMBOL_INIT (Qdisplay), DISPLAY_PROP_IDX, handle_display_prop}, |
| 742 | {&Qinvisible, INVISIBLE_PROP_IDX, handle_invisible_prop}, | 652 | {XSYMBOL_INIT (Qinvisible), INVISIBLE_PROP_IDX, handle_invisible_prop}, |
| 743 | {&Qcomposition, COMPOSITION_PROP_IDX, handle_composition_prop}, | 653 | {XSYMBOL_INIT (Qcomposition), COMPOSITION_PROP_IDX, handle_composition_prop}, |
| 744 | {NULL, 0, NULL} | 654 | {NULL, 0, NULL} |
| 745 | }; | 655 | }; |
| 746 | 656 | ||
| @@ -796,9 +706,6 @@ static struct glyph_slice null_glyph_slice = { 0, 0, 0, 0 }; | |||
| 796 | 706 | ||
| 797 | bool redisplaying_p; | 707 | bool redisplaying_p; |
| 798 | 708 | ||
| 799 | static Lisp_Object Qinhibit_free_realized_faces; | ||
| 800 | static Lisp_Object Qmode_line_default_help_echo; | ||
| 801 | |||
| 802 | /* If a string, XTread_socket generates an event to display that string. | 709 | /* If a string, XTread_socket generates an event to display that string. |
| 803 | (The display is done in read_char.) */ | 710 | (The display is done in read_char.) */ |
| 804 | 711 | ||
| @@ -824,15 +731,6 @@ static struct atimer *hourglass_atimer; | |||
| 824 | 731 | ||
| 825 | #endif /* HAVE_WINDOW_SYSTEM */ | 732 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 826 | 733 | ||
| 827 | /* Name of the face used to display glyphless characters. */ | ||
| 828 | static Lisp_Object Qglyphless_char; | ||
| 829 | |||
| 830 | /* Symbol for the purpose of Vglyphless_char_display. */ | ||
| 831 | static Lisp_Object Qglyphless_char_display; | ||
| 832 | |||
| 833 | /* Method symbols for Vglyphless_char_display. */ | ||
| 834 | static Lisp_Object Qhex_code, Qempty_box, Qthin_space, Qzero_width; | ||
| 835 | |||
| 836 | /* Default number of seconds to wait before displaying an hourglass | 734 | /* Default number of seconds to wait before displaying an hourglass |
| 837 | cursor. */ | 735 | cursor. */ |
| 838 | #define DEFAULT_HOURGLASS_DELAY 1 | 736 | #define DEFAULT_HOURGLASS_DELAY 1 |
| @@ -1406,6 +1304,7 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y, | |||
| 1406 | struct text_pos top; | 1304 | struct text_pos top; |
| 1407 | int visible_p = 0; | 1305 | int visible_p = 0; |
| 1408 | struct buffer *old_buffer = NULL; | 1306 | struct buffer *old_buffer = NULL; |
| 1307 | bool r2l = false; | ||
| 1409 | 1308 | ||
| 1410 | if (FRAME_INITIAL_P (XFRAME (WINDOW_FRAME (w)))) | 1309 | if (FRAME_INITIAL_P (XFRAME (WINDOW_FRAME (w)))) |
| 1411 | return visible_p; | 1310 | return visible_p; |
| @@ -1691,6 +1590,8 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y, | |||
| 1691 | *rowh = max (0, (min (bottom_y, it.last_visible_y) | 1590 | *rowh = max (0, (min (bottom_y, it.last_visible_y) |
| 1692 | - max (top_y, window_top_y))); | 1591 | - max (top_y, window_top_y))); |
| 1693 | *vpos = it.vpos; | 1592 | *vpos = it.vpos; |
| 1593 | if (it.bidi_it.paragraph_dir == R2L) | ||
| 1594 | r2l = true; | ||
| 1694 | } | 1595 | } |
| 1695 | } | 1596 | } |
| 1696 | else | 1597 | else |
| @@ -1720,6 +1621,8 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y, | |||
| 1720 | - max (it2.current_y, | 1621 | - max (it2.current_y, |
| 1721 | WINDOW_HEADER_LINE_HEIGHT (w)))); | 1622 | WINDOW_HEADER_LINE_HEIGHT (w)))); |
| 1722 | *vpos = it2.vpos; | 1623 | *vpos = it2.vpos; |
| 1624 | if (it2.bidi_it.paragraph_dir == R2L) | ||
| 1625 | r2l = true; | ||
| 1723 | } | 1626 | } |
| 1724 | else | 1627 | else |
| 1725 | bidi_unshelve_cache (it2data, 1); | 1628 | bidi_unshelve_cache (it2data, 1); |
| @@ -1729,10 +1632,20 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y, | |||
| 1729 | if (old_buffer) | 1632 | if (old_buffer) |
| 1730 | set_buffer_internal_1 (old_buffer); | 1633 | set_buffer_internal_1 (old_buffer); |
| 1731 | 1634 | ||
| 1732 | if (visible_p && w->hscroll > 0) | 1635 | if (visible_p) |
| 1733 | *x -= | 1636 | { |
| 1734 | window_hscroll_limited (w, WINDOW_XFRAME (w)) | 1637 | if (w->hscroll > 0) |
| 1735 | * WINDOW_FRAME_COLUMN_WIDTH (w); | 1638 | *x -= |
| 1639 | window_hscroll_limited (w, WINDOW_XFRAME (w)) | ||
| 1640 | * WINDOW_FRAME_COLUMN_WIDTH (w); | ||
| 1641 | /* For lines in an R2L paragraph, we need to mirror the X pixel | ||
| 1642 | coordinate wrt the text area. For the reasons, see the | ||
| 1643 | commentary in buffer_posn_from_coords and the explanation of | ||
| 1644 | the geometry used by the move_it_* functions at the end of | ||
| 1645 | the large commentary near the beginning of this file. */ | ||
| 1646 | if (r2l) | ||
| 1647 | *x = window_box_width (w, TEXT_AREA) - *x - 1; | ||
| 1648 | } | ||
| 1736 | 1649 | ||
| 1737 | #if 0 | 1650 | #if 0 |
| 1738 | /* Debugging code. */ | 1651 | /* Debugging code. */ |
| @@ -2681,8 +2594,6 @@ safe__call1 (bool inhibit_quit, Lisp_Object fn, ...) | |||
| 2681 | return retval; | 2594 | return retval; |
| 2682 | } | 2595 | } |
| 2683 | 2596 | ||
| 2684 | static Lisp_Object Qeval; | ||
| 2685 | |||
| 2686 | Lisp_Object | 2597 | Lisp_Object |
| 2687 | safe_eval (Lisp_Object sexpr) | 2598 | safe_eval (Lisp_Object sexpr) |
| 2688 | { | 2599 | { |
| @@ -3605,7 +3516,7 @@ compute_stop_pos (struct it *it) | |||
| 3605 | 3516 | ||
| 3606 | /* Get properties here. */ | 3517 | /* Get properties here. */ |
| 3607 | for (p = it_props; p->handler; ++p) | 3518 | for (p = it_props; p->handler; ++p) |
| 3608 | values_here[p->idx] = textget (iv->plist, *p->name); | 3519 | values_here[p->idx] = textget (iv->plist, make_lisp_symbol (p->name)); |
| 3609 | 3520 | ||
| 3610 | /* Look for an interval following iv that has different | 3521 | /* Look for an interval following iv that has different |
| 3611 | properties. */ | 3522 | properties. */ |
| @@ -3617,9 +3528,8 @@ compute_stop_pos (struct it *it) | |||
| 3617 | { | 3528 | { |
| 3618 | for (p = it_props; p->handler; ++p) | 3529 | for (p = it_props; p->handler; ++p) |
| 3619 | { | 3530 | { |
| 3620 | Lisp_Object new_value; | 3531 | Lisp_Object new_value = textget (next_iv->plist, |
| 3621 | 3532 | make_lisp_symbol (p->name)); | |
| 3622 | new_value = textget (next_iv->plist, *p->name); | ||
| 3623 | if (!EQ (values_here[p->idx], new_value)) | 3533 | if (!EQ (values_here[p->idx], new_value)) |
| 3624 | break; | 3534 | break; |
| 3625 | } | 3535 | } |
| @@ -13463,7 +13373,7 @@ redisplay_internal (void) | |||
| 13463 | specbind (Qinhibit_free_realized_faces, Qnil); | 13373 | specbind (Qinhibit_free_realized_faces, Qnil); |
| 13464 | 13374 | ||
| 13465 | /* Record this function, so it appears on the profiler's backtraces. */ | 13375 | /* Record this function, so it appears on the profiler's backtraces. */ |
| 13466 | record_in_backtrace (Qredisplay_internal, &Qnil, 0); | 13376 | record_in_backtrace (Qredisplay_internal, 0, 0); |
| 13467 | 13377 | ||
| 13468 | FOR_EACH_FRAME (tail, frame) | 13378 | FOR_EACH_FRAME (tail, frame) |
| 13469 | XFRAME (frame)->already_hscrolled_p = 0; | 13379 | XFRAME (frame)->already_hscrolled_p = 0; |
| @@ -30556,7 +30466,9 @@ syms_of_xdisp (void) | |||
| 30556 | Vmessage_stack = Qnil; | 30466 | Vmessage_stack = Qnil; |
| 30557 | staticpro (&Vmessage_stack); | 30467 | staticpro (&Vmessage_stack); |
| 30558 | 30468 | ||
| 30469 | /* Non-nil means don't actually do any redisplay. */ | ||
| 30559 | DEFSYM (Qinhibit_redisplay, "inhibit-redisplay"); | 30470 | DEFSYM (Qinhibit_redisplay, "inhibit-redisplay"); |
| 30471 | |||
| 30560 | DEFSYM (Qredisplay_internal, "redisplay_internal (C function)"); | 30472 | DEFSYM (Qredisplay_internal, "redisplay_internal (C function)"); |
| 30561 | 30473 | ||
| 30562 | message_dolog_marker1 = Fmake_marker (); | 30474 | message_dolog_marker1 = Fmake_marker (); |
| @@ -30595,6 +30507,8 @@ syms_of_xdisp (void) | |||
| 30595 | DEFSYM (Qinhibit_point_motion_hooks, "inhibit-point-motion-hooks"); | 30507 | DEFSYM (Qinhibit_point_motion_hooks, "inhibit-point-motion-hooks"); |
| 30596 | DEFSYM (Qeval, "eval"); | 30508 | DEFSYM (Qeval, "eval"); |
| 30597 | DEFSYM (QCdata, ":data"); | 30509 | DEFSYM (QCdata, ":data"); |
| 30510 | |||
| 30511 | /* Names of text properties relevant for redisplay. */ | ||
| 30598 | DEFSYM (Qdisplay, "display"); | 30512 | DEFSYM (Qdisplay, "display"); |
| 30599 | DEFSYM (Qspace_width, "space-width"); | 30513 | DEFSYM (Qspace_width, "space-width"); |
| 30600 | DEFSYM (Qraise, "raise"); | 30514 | DEFSYM (Qraise, "raise"); |
| @@ -30614,40 +30528,69 @@ syms_of_xdisp (void) | |||
| 30614 | DEFSYM (QCfile, ":file"); | 30528 | DEFSYM (QCfile, ":file"); |
| 30615 | DEFSYM (Qfontified, "fontified"); | 30529 | DEFSYM (Qfontified, "fontified"); |
| 30616 | DEFSYM (Qfontification_functions, "fontification-functions"); | 30530 | DEFSYM (Qfontification_functions, "fontification-functions"); |
| 30531 | |||
| 30532 | /* Name of the face used to highlight trailing whitespace. */ | ||
| 30617 | DEFSYM (Qtrailing_whitespace, "trailing-whitespace"); | 30533 | DEFSYM (Qtrailing_whitespace, "trailing-whitespace"); |
| 30534 | |||
| 30535 | /* Name and number of the face used to highlight escape glyphs. */ | ||
| 30618 | DEFSYM (Qescape_glyph, "escape-glyph"); | 30536 | DEFSYM (Qescape_glyph, "escape-glyph"); |
| 30537 | |||
| 30538 | /* Name and number of the face used to highlight non-breaking spaces. */ | ||
| 30619 | DEFSYM (Qnobreak_space, "nobreak-space"); | 30539 | DEFSYM (Qnobreak_space, "nobreak-space"); |
| 30540 | |||
| 30541 | /* The symbol 'image' which is the car of the lists used to represent | ||
| 30542 | images in Lisp. Also a tool bar style. */ | ||
| 30620 | DEFSYM (Qimage, "image"); | 30543 | DEFSYM (Qimage, "image"); |
| 30544 | |||
| 30545 | /* Tool bar styles. */ | ||
| 30621 | DEFSYM (Qtext, "text"); | 30546 | DEFSYM (Qtext, "text"); |
| 30622 | DEFSYM (Qboth, "both"); | 30547 | DEFSYM (Qboth, "both"); |
| 30623 | DEFSYM (Qboth_horiz, "both-horiz"); | 30548 | DEFSYM (Qboth_horiz, "both-horiz"); |
| 30624 | DEFSYM (Qtext_image_horiz, "text-image-horiz"); | 30549 | DEFSYM (Qtext_image_horiz, "text-image-horiz"); |
| 30550 | |||
| 30551 | /* The image map types. */ | ||
| 30625 | DEFSYM (QCmap, ":map"); | 30552 | DEFSYM (QCmap, ":map"); |
| 30626 | DEFSYM (QCpointer, ":pointer"); | 30553 | DEFSYM (QCpointer, ":pointer"); |
| 30627 | DEFSYM (Qrect, "rect"); | 30554 | DEFSYM (Qrect, "rect"); |
| 30628 | DEFSYM (Qcircle, "circle"); | 30555 | DEFSYM (Qcircle, "circle"); |
| 30629 | DEFSYM (Qpoly, "poly"); | 30556 | DEFSYM (Qpoly, "poly"); |
| 30557 | |||
| 30558 | /* The symbol `inhibit-menubar-update' and its DEFVAR_BOOL variable. */ | ||
| 30559 | DEFSYM (Qinhibit_menubar_update, "inhibit-menubar-update"); | ||
| 30630 | DEFSYM (Qmessage_truncate_lines, "message-truncate-lines"); | 30560 | DEFSYM (Qmessage_truncate_lines, "message-truncate-lines"); |
| 30561 | |||
| 30631 | DEFSYM (Qgrow_only, "grow-only"); | 30562 | DEFSYM (Qgrow_only, "grow-only"); |
| 30632 | DEFSYM (Qinhibit_menubar_update, "inhibit-menubar-update"); | ||
| 30633 | DEFSYM (Qinhibit_eval_during_redisplay, "inhibit-eval-during-redisplay"); | 30563 | DEFSYM (Qinhibit_eval_during_redisplay, "inhibit-eval-during-redisplay"); |
| 30634 | DEFSYM (Qposition, "position"); | 30564 | DEFSYM (Qposition, "position"); |
| 30635 | DEFSYM (Qbuffer_position, "buffer-position"); | 30565 | DEFSYM (Qbuffer_position, "buffer-position"); |
| 30636 | DEFSYM (Qobject, "object"); | 30566 | DEFSYM (Qobject, "object"); |
| 30567 | |||
| 30568 | /* Cursor shapes. */ | ||
| 30637 | DEFSYM (Qbar, "bar"); | 30569 | DEFSYM (Qbar, "bar"); |
| 30638 | DEFSYM (Qhbar, "hbar"); | 30570 | DEFSYM (Qhbar, "hbar"); |
| 30639 | DEFSYM (Qbox, "box"); | 30571 | DEFSYM (Qbox, "box"); |
| 30640 | DEFSYM (Qhollow, "hollow"); | 30572 | DEFSYM (Qhollow, "hollow"); |
| 30573 | |||
| 30574 | /* Pointer shapes. */ | ||
| 30641 | DEFSYM (Qhand, "hand"); | 30575 | DEFSYM (Qhand, "hand"); |
| 30642 | DEFSYM (Qarrow, "arrow"); | 30576 | DEFSYM (Qarrow, "arrow"); |
| 30577 | /* also Qtext */ | ||
| 30578 | |||
| 30643 | DEFSYM (Qinhibit_free_realized_faces, "inhibit-free-realized-faces"); | 30579 | DEFSYM (Qinhibit_free_realized_faces, "inhibit-free-realized-faces"); |
| 30644 | 30580 | ||
| 30645 | list_of_error = list1 (list2 (intern_c_string ("error"), | 30581 | list_of_error = list1 (list2 (intern_c_string ("error"), |
| 30646 | intern_c_string ("void-variable"))); | 30582 | intern_c_string ("void-variable"))); |
| 30647 | staticpro (&list_of_error); | 30583 | staticpro (&list_of_error); |
| 30648 | 30584 | ||
| 30585 | /* Values of those variables at last redisplay are stored as | ||
| 30586 | properties on 'overlay-arrow-position' symbol. However, if | ||
| 30587 | Voverlay_arrow_position is a marker, last-arrow-position is its | ||
| 30588 | numerical position. */ | ||
| 30649 | DEFSYM (Qlast_arrow_position, "last-arrow-position"); | 30589 | DEFSYM (Qlast_arrow_position, "last-arrow-position"); |
| 30650 | DEFSYM (Qlast_arrow_string, "last-arrow-string"); | 30590 | DEFSYM (Qlast_arrow_string, "last-arrow-string"); |
| 30591 | |||
| 30592 | /* Alternative overlay-arrow-string and overlay-arrow-bitmap | ||
| 30593 | properties on a symbol in overlay-arrow-variable-list. */ | ||
| 30651 | DEFSYM (Qoverlay_arrow_string, "overlay-arrow-string"); | 30594 | DEFSYM (Qoverlay_arrow_string, "overlay-arrow-string"); |
| 30652 | DEFSYM (Qoverlay_arrow_bitmap, "overlay-arrow-bitmap"); | 30595 | DEFSYM (Qoverlay_arrow_bitmap, "overlay-arrow-bitmap"); |
| 30653 | 30596 | ||
| @@ -31147,7 +31090,10 @@ cursor shapes. */); | |||
| 31147 | hourglass_shown_p = 0; | 31090 | hourglass_shown_p = 0; |
| 31148 | #endif /* HAVE_WINDOW_SYSTEM */ | 31091 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 31149 | 31092 | ||
| 31093 | /* Name of the face used to display glyphless characters. */ | ||
| 31150 | DEFSYM (Qglyphless_char, "glyphless-char"); | 31094 | DEFSYM (Qglyphless_char, "glyphless-char"); |
| 31095 | |||
| 31096 | /* Method symbols for Vglyphless_char_display. */ | ||
| 31151 | DEFSYM (Qhex_code, "hex-code"); | 31097 | DEFSYM (Qhex_code, "hex-code"); |
| 31152 | DEFSYM (Qempty_box, "empty-box"); | 31098 | DEFSYM (Qempty_box, "empty-box"); |
| 31153 | DEFSYM (Qthin_space, "thin-space"); | 31099 | DEFSYM (Qthin_space, "thin-space"); |
| @@ -31160,6 +31106,7 @@ be redisplayed. This set can be nil (meaning, only the selected window), | |||
| 31160 | or t (meaning all windows). */); | 31106 | or t (meaning all windows). */); |
| 31161 | Vpre_redisplay_function = intern ("ignore"); | 31107 | Vpre_redisplay_function = intern ("ignore"); |
| 31162 | 31108 | ||
| 31109 | /* Symbol for the purpose of Vglyphless_char_display. */ | ||
| 31163 | DEFSYM (Qglyphless_char_display, "glyphless-char-display"); | 31110 | DEFSYM (Qglyphless_char_display, "glyphless-char-display"); |
| 31164 | Fput (Qglyphless_char_display, Qchar_table_extra_slots, make_number (1)); | 31111 | Fput (Qglyphless_char_display, Qchar_table_extra_slots, make_number (1)); |
| 31165 | 31112 | ||
diff --git a/src/xfaces.c b/src/xfaces.c index fbdd3c8bfe8..6ecd857d685 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* xfaces.c -- "Face" primitives. | 1 | /* xfaces.c -- "Face" primitives. |
| 2 | 2 | ||
| 3 | Copyright (C) 1993-1994, 1998-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1993-1994, 1998-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -278,57 +278,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 278 | 278 | ||
| 279 | #define FACE_CACHE_BUCKETS_SIZE 1001 | 279 | #define FACE_CACHE_BUCKETS_SIZE 1001 |
| 280 | 280 | ||
| 281 | /* Keyword symbols used for face attribute names. */ | ||
| 282 | |||
| 283 | Lisp_Object QCfamily, QCheight, QCweight, QCslant; | ||
| 284 | static Lisp_Object QCunderline; | ||
| 285 | static Lisp_Object QCinverse_video, QCstipple; | ||
| 286 | Lisp_Object QCforeground, QCbackground; | ||
| 287 | Lisp_Object QCwidth; | ||
| 288 | static Lisp_Object QCfont, QCbold, QCitalic; | ||
| 289 | static Lisp_Object QCreverse_video; | ||
| 290 | static Lisp_Object QCoverline, QCstrike_through, QCbox, QCinherit; | ||
| 291 | static Lisp_Object QCfontset, QCdistant_foreground; | ||
| 292 | |||
| 293 | /* Symbols used for attribute values. */ | ||
| 294 | |||
| 295 | Lisp_Object Qnormal; | ||
| 296 | Lisp_Object Qbold; | ||
| 297 | static Lisp_Object Qline, Qwave; | ||
| 298 | Lisp_Object Qextra_light, Qlight; | ||
| 299 | Lisp_Object Qsemi_light, Qsemi_bold, Qextra_bold, Qultra_bold; | ||
| 300 | Lisp_Object Qoblique; | ||
| 301 | Lisp_Object Qitalic; | ||
| 302 | static Lisp_Object Qreleased_button, Qpressed_button; | ||
| 303 | static Lisp_Object QCstyle, QCcolor, QCline_width; | ||
| 304 | Lisp_Object Qunspecified; /* used in dosfns.c */ | ||
| 305 | static Lisp_Object QCignore_defface; | ||
| 306 | |||
| 307 | char unspecified_fg[] = "unspecified-fg", unspecified_bg[] = "unspecified-bg"; | 281 | char unspecified_fg[] = "unspecified-fg", unspecified_bg[] = "unspecified-bg"; |
| 308 | 282 | ||
| 309 | /* The name of the function to call when the background of the frame | ||
| 310 | has changed, frame_set_background_mode. */ | ||
| 311 | |||
| 312 | static Lisp_Object Qframe_set_background_mode; | ||
| 313 | |||
| 314 | /* Names of basic faces. */ | ||
| 315 | |||
| 316 | Lisp_Object Qdefault, Qtool_bar, Qfringe; | ||
| 317 | static Lisp_Object Qregion; | ||
| 318 | Lisp_Object Qheader_line, Qscroll_bar, Qcursor; | ||
| 319 | static Lisp_Object Qborder, Qmouse, Qmenu; | ||
| 320 | Lisp_Object Qmode_line_inactive; | ||
| 321 | static Lisp_Object Qvertical_border; | ||
| 322 | static Lisp_Object Qwindow_divider; | ||
| 323 | static Lisp_Object Qwindow_divider_first_pixel; | ||
| 324 | static Lisp_Object Qwindow_divider_last_pixel; | ||
| 325 | |||
| 326 | /* The symbol `face-alias'. A symbols having that property is an | ||
| 327 | alias for another face. Value of the property is the name of | ||
| 328 | the aliased face. */ | ||
| 329 | |||
| 330 | static Lisp_Object Qface_alias; | ||
| 331 | |||
| 332 | /* Alist of alternative font families. Each element is of the form | 283 | /* Alist of alternative font families. Each element is of the form |
| 333 | (FAMILY FAMILY1 FAMILY2 ...). If fonts of FAMILY can't be loaded, | 284 | (FAMILY FAMILY1 FAMILY2 ...). If fonts of FAMILY can't be loaded, |
| 334 | try FAMILY1, then FAMILY2, ... */ | 285 | try FAMILY1, then FAMILY2, ... */ |
| @@ -341,32 +292,6 @@ Lisp_Object Vface_alternative_font_family_alist; | |||
| 341 | 292 | ||
| 342 | Lisp_Object Vface_alternative_font_registry_alist; | 293 | Lisp_Object Vface_alternative_font_registry_alist; |
| 343 | 294 | ||
| 344 | /* Allowed scalable fonts. A value of nil means don't allow any | ||
| 345 | scalable fonts. A value of t means allow the use of any scalable | ||
| 346 | font. Otherwise, value must be a list of regular expressions. A | ||
| 347 | font may be scaled if its name matches a regular expression in the | ||
| 348 | list. */ | ||
| 349 | |||
| 350 | static Lisp_Object Qscalable_fonts_allowed; | ||
| 351 | |||
| 352 | /* The symbols `foreground-color' and `background-color' which can be | ||
| 353 | used as part of a `face' property. This is for compatibility with | ||
| 354 | Emacs 20.2. */ | ||
| 355 | |||
| 356 | Lisp_Object Qforeground_color, Qbackground_color; | ||
| 357 | |||
| 358 | /* The symbols `face' and `mouse-face' used as text properties. */ | ||
| 359 | |||
| 360 | Lisp_Object Qface; | ||
| 361 | |||
| 362 | /* Property for basic faces which other faces cannot inherit. */ | ||
| 363 | |||
| 364 | static Lisp_Object Qface_no_inherit; | ||
| 365 | |||
| 366 | /* Error symbol for wrong_type_argument in load_pixmap. */ | ||
| 367 | |||
| 368 | static Lisp_Object Qbitmap_spec_p; | ||
| 369 | |||
| 370 | /* The next ID to assign to Lisp faces. */ | 295 | /* The next ID to assign to Lisp faces. */ |
| 371 | 296 | ||
| 372 | static int next_lface_id; | 297 | static int next_lface_id; |
| @@ -376,14 +301,6 @@ static int next_lface_id; | |||
| 376 | static Lisp_Object *lface_id_to_name; | 301 | static Lisp_Object *lface_id_to_name; |
| 377 | static ptrdiff_t lface_id_to_name_size; | 302 | static ptrdiff_t lface_id_to_name_size; |
| 378 | 303 | ||
| 379 | /* TTY color-related functions (defined in tty-colors.el). */ | ||
| 380 | |||
| 381 | static Lisp_Object Qtty_color_desc, Qtty_color_by_index, Qtty_color_standard_values; | ||
| 382 | |||
| 383 | /* The name of the function used to compute colors on TTYs. */ | ||
| 384 | |||
| 385 | static Lisp_Object Qtty_color_alist; | ||
| 386 | |||
| 387 | #ifdef HAVE_WINDOW_SYSTEM | 304 | #ifdef HAVE_WINDOW_SYSTEM |
| 388 | 305 | ||
| 389 | /* Counter for calls to clear_face_cache. If this counter reaches | 306 | /* Counter for calls to clear_face_cache. If this counter reaches |
| @@ -6397,9 +6314,17 @@ DEFUN ("show-face-resources", Fshow_face_resources, Sshow_face_resources, | |||
| 6397 | void | 6314 | void |
| 6398 | syms_of_xfaces (void) | 6315 | syms_of_xfaces (void) |
| 6399 | { | 6316 | { |
| 6317 | /* The symbols `face' and `mouse-face' used as text properties. */ | ||
| 6400 | DEFSYM (Qface, "face"); | 6318 | DEFSYM (Qface, "face"); |
| 6319 | |||
| 6320 | /* Property for basic faces which other faces cannot inherit. */ | ||
| 6401 | DEFSYM (Qface_no_inherit, "face-no-inherit"); | 6321 | DEFSYM (Qface_no_inherit, "face-no-inherit"); |
| 6322 | |||
| 6323 | /* Error symbol for wrong_type_argument in load_pixmap. */ | ||
| 6402 | DEFSYM (Qbitmap_spec_p, "bitmap-spec-p"); | 6324 | DEFSYM (Qbitmap_spec_p, "bitmap-spec-p"); |
| 6325 | |||
| 6326 | /* The name of the function to call when the background of the frame | ||
| 6327 | has changed, frame_set_background_mode. */ | ||
| 6403 | DEFSYM (Qframe_set_background_mode, "frame-set-background-mode"); | 6328 | DEFSYM (Qframe_set_background_mode, "frame-set-background-mode"); |
| 6404 | 6329 | ||
| 6405 | /* Lisp face attribute keywords. */ | 6330 | /* Lisp face attribute keywords. */ |
| @@ -6442,12 +6367,22 @@ syms_of_xfaces (void) | |||
| 6442 | DEFSYM (Qultra_bold, "ultra-bold"); | 6367 | DEFSYM (Qultra_bold, "ultra-bold"); |
| 6443 | DEFSYM (Qoblique, "oblique"); | 6368 | DEFSYM (Qoblique, "oblique"); |
| 6444 | DEFSYM (Qitalic, "italic"); | 6369 | DEFSYM (Qitalic, "italic"); |
| 6370 | |||
| 6371 | /* The symbols `foreground-color' and `background-color' which can be | ||
| 6372 | used as part of a `face' property. This is for compatibility with | ||
| 6373 | Emacs 20.2. */ | ||
| 6445 | DEFSYM (Qbackground_color, "background-color"); | 6374 | DEFSYM (Qbackground_color, "background-color"); |
| 6446 | DEFSYM (Qforeground_color, "foreground-color"); | 6375 | DEFSYM (Qforeground_color, "foreground-color"); |
| 6376 | |||
| 6447 | DEFSYM (Qunspecified, "unspecified"); | 6377 | DEFSYM (Qunspecified, "unspecified"); |
| 6448 | DEFSYM (QCignore_defface, ":ignore-defface"); | 6378 | DEFSYM (QCignore_defface, ":ignore-defface"); |
| 6449 | 6379 | ||
| 6380 | /* The symbol `face-alias'. A symbol having that property is an | ||
| 6381 | alias for another face. Value of the property is the name of | ||
| 6382 | the aliased face. */ | ||
| 6450 | DEFSYM (Qface_alias, "face-alias"); | 6383 | DEFSYM (Qface_alias, "face-alias"); |
| 6384 | |||
| 6385 | /* Names of basic faces. */ | ||
| 6451 | DEFSYM (Qdefault, "default"); | 6386 | DEFSYM (Qdefault, "default"); |
| 6452 | DEFSYM (Qtool_bar, "tool-bar"); | 6387 | DEFSYM (Qtool_bar, "tool-bar"); |
| 6453 | DEFSYM (Qregion, "region"); | 6388 | DEFSYM (Qregion, "region"); |
| @@ -6460,13 +6395,23 @@ syms_of_xfaces (void) | |||
| 6460 | DEFSYM (Qmouse, "mouse"); | 6395 | DEFSYM (Qmouse, "mouse"); |
| 6461 | DEFSYM (Qmode_line_inactive, "mode-line-inactive"); | 6396 | DEFSYM (Qmode_line_inactive, "mode-line-inactive"); |
| 6462 | DEFSYM (Qvertical_border, "vertical-border"); | 6397 | DEFSYM (Qvertical_border, "vertical-border"); |
| 6398 | |||
| 6399 | /* TTY color-related functions (defined in tty-colors.el). */ | ||
| 6463 | DEFSYM (Qwindow_divider, "window-divider"); | 6400 | DEFSYM (Qwindow_divider, "window-divider"); |
| 6464 | DEFSYM (Qwindow_divider_first_pixel, "window-divider-first-pixel"); | 6401 | DEFSYM (Qwindow_divider_first_pixel, "window-divider-first-pixel"); |
| 6465 | DEFSYM (Qwindow_divider_last_pixel, "window-divider-last-pixel"); | 6402 | DEFSYM (Qwindow_divider_last_pixel, "window-divider-last-pixel"); |
| 6466 | DEFSYM (Qtty_color_desc, "tty-color-desc"); | 6403 | DEFSYM (Qtty_color_desc, "tty-color-desc"); |
| 6467 | DEFSYM (Qtty_color_standard_values, "tty-color-standard-values"); | 6404 | DEFSYM (Qtty_color_standard_values, "tty-color-standard-values"); |
| 6468 | DEFSYM (Qtty_color_by_index, "tty-color-by-index"); | 6405 | DEFSYM (Qtty_color_by_index, "tty-color-by-index"); |
| 6406 | |||
| 6407 | /* The name of the function used to compute colors on TTYs. */ | ||
| 6469 | DEFSYM (Qtty_color_alist, "tty-color-alist"); | 6408 | DEFSYM (Qtty_color_alist, "tty-color-alist"); |
| 6409 | |||
| 6410 | /* Allowed scalable fonts. A value of nil means don't allow any | ||
| 6411 | scalable fonts. A value of t means allow the use of any scalable | ||
| 6412 | font. Otherwise, value must be a list of regular expressions. A | ||
| 6413 | font may be scaled if its name matches a regular expression in the | ||
| 6414 | list. */ | ||
| 6470 | DEFSYM (Qscalable_fonts_allowed, "scalable-fonts-allowed"); | 6415 | DEFSYM (Qscalable_fonts_allowed, "scalable-fonts-allowed"); |
| 6471 | 6416 | ||
| 6472 | Vparam_value_alist = list1 (Fcons (Qnil, Qnil)); | 6417 | Vparam_value_alist = list1 (Fcons (Qnil, Qnil)); |
diff --git a/src/xfns.c b/src/xfns.c index ba2601daca4..d4f96c61b07 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Functions for the X window system. | 1 | /* Functions for the X window system. |
| 2 | 2 | ||
| 3 | Copyright (C) 1989, 1992-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1989, 1992-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -125,10 +125,6 @@ extern LWLIB_ID widget_id_tick; | |||
| 125 | 125 | ||
| 126 | #define MAXREQUEST(dpy) (XMaxRequestSize (dpy)) | 126 | #define MAXREQUEST(dpy) (XMaxRequestSize (dpy)) |
| 127 | 127 | ||
| 128 | static Lisp_Object Qundefined_color; | ||
| 129 | static Lisp_Object Qcompound_text, Qcancel_timer; | ||
| 130 | Lisp_Object Qfont_param; | ||
| 131 | |||
| 132 | #ifdef GLYPH_DEBUG | 128 | #ifdef GLYPH_DEBUG |
| 133 | static ptrdiff_t image_cache_refcount; | 129 | static ptrdiff_t image_cache_refcount; |
| 134 | static int dpyinfo_refcount; | 130 | static int dpyinfo_refcount; |
diff --git a/src/xfont.c b/src/xfont.c index 06a44794364..10cc321b60c 100644 --- a/src/xfont.c +++ b/src/xfont.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* xfont.c -- X core font driver. | 1 | /* xfont.c -- X core font driver. |
| 2 | Copyright (C) 2006-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2006-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 | 3 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 |
| 4 | National Institute of Advanced Industrial Science and Technology (AIST) | 4 | National Institute of Advanced Industrial Science and Technology (AIST) |
| 5 | Registration Number H13PRO009 | 5 | Registration Number H13PRO009 |
diff --git a/src/xftfont.c b/src/xftfont.c index 0a883a7b87b..c587d814efa 100644 --- a/src/xftfont.c +++ b/src/xftfont.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* xftfont.c -- XFT font driver. | 1 | /* xftfont.c -- XFT font driver. |
| 2 | Copyright (C) 2006-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2006-2015 Free Software Foundation, Inc. |
| 3 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 | 3 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 |
| 4 | National Institute of Advanced Industrial Science and Technology (AIST) | 4 | National Institute of Advanced Industrial Science and Technology (AIST) |
| 5 | Registration Number H13PRO009 | 5 | Registration Number H13PRO009 |
| @@ -38,9 +38,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 38 | 38 | ||
| 39 | /* Xft font driver. */ | 39 | /* Xft font driver. */ |
| 40 | 40 | ||
| 41 | Lisp_Object Qxft; | ||
| 42 | static Lisp_Object QChinting, QCautohint, QChintstyle, QCrgba, QCembolden, | ||
| 43 | QClcdfilter; | ||
| 44 | 41 | ||
| 45 | /* The actual structure for Xft font that can be cast to struct | 42 | /* The actual structure for Xft font that can be cast to struct |
| 46 | font. */ | 43 | font. */ |
diff --git a/src/xgselect.c b/src/xgselect.c index 7e883eb53c6..bb2226e07cf 100644 --- a/src/xgselect.c +++ b/src/xgselect.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Function for handling the GLib event loop. | 1 | /* Function for handling the GLib event loop. |
| 2 | 2 | ||
| 3 | Copyright (C) 2009-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2009-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
diff --git a/src/xgselect.h b/src/xgselect.h index 48f109df280..ada2376c98e 100644 --- a/src/xgselect.h +++ b/src/xgselect.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Header for xg_select. | 1 | /* Header for xg_select. |
| 2 | 2 | ||
| 3 | Copyright (C) 2009-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2009-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
diff --git a/src/xmenu.c b/src/xmenu.c index 0f69ee28e84..fd667a84343 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* X Communication module for terminals which understand the X protocol. | 1 | /* X Communication module for terminals which understand the X protocol. |
| 2 | 2 | ||
| 3 | Copyright (C) 1986, 1988, 1993-1994, 1996, 1999-2014 Free Software | 3 | Copyright (C) 1986, 1988, 1993-1994, 1996, 1999-2015 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -108,8 +108,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 108 | #define TRUE 1 | 108 | #define TRUE 1 |
| 109 | #endif /* no TRUE */ | 109 | #endif /* no TRUE */ |
| 110 | 110 | ||
| 111 | static Lisp_Object Qdebug_on_next_call; | 111 | |
| 112 | |||
| 113 | /* Flag which when set indicates a dialog or menu has been posted by | 112 | /* Flag which when set indicates a dialog or menu has been posted by |
| 114 | Xt on behalf of one of the widget sets. */ | 113 | Xt on behalf of one of the widget sets. */ |
| 115 | static int popup_activated_flag; | 114 | static int popup_activated_flag; |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Interface to libxml2. | 1 | /* Interface to libxml2. |
| 2 | Copyright (C) 2010-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 2010-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -29,8 +29,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | #include "buffer.h" | 29 | #include "buffer.h" |
| 30 | 30 | ||
| 31 | 31 | ||
| 32 | static Lisp_Object Qlibxml2_dll; | ||
| 33 | |||
| 34 | #ifdef WINDOWSNT | 32 | #ifdef WINDOWSNT |
| 35 | 33 | ||
| 36 | # include <windows.h> | 34 | # include <windows.h> |
diff --git a/src/xrdb.c b/src/xrdb.c index 8500fb1095b..f1176daa5ee 100644 --- a/src/xrdb.c +++ b/src/xrdb.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Deal with the X Resource Manager. | 1 | /* Deal with the X Resource Manager. |
| 2 | Copyright (C) 1990, 1993-1994, 2000-2014 Free Software Foundation, | 2 | Copyright (C) 1990, 1993-1994, 2000-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | Author: Joseph Arceneaux | 5 | Author: Joseph Arceneaux |
diff --git a/src/xselect.c b/src/xselect.c index 3f8a1321954..33ff366b89c 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* X Selection processing for Emacs. | 1 | /* X Selection processing for Emacs. |
| 2 | Copyright (C) 1993-1997, 2000-2014 Free Software Foundation, Inc. | 2 | Copyright (C) 1993-1997, 2000-2015 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -80,19 +80,6 @@ static void lisp_data_to_selection_data (struct x_display_info *, Lisp_Object, | |||
| 80 | #define TRACE2(fmt, a0, a1) (void) 0 | 80 | #define TRACE2(fmt, a0, a1) (void) 0 |
| 81 | #endif | 81 | #endif |
| 82 | 82 | ||
| 83 | |||
| 84 | static Lisp_Object QSECONDARY, QSTRING, QINTEGER, QCLIPBOARD, QTIMESTAMP, | ||
| 85 | QTEXT, QDELETE, QMULTIPLE, QINCR, QEMACS_TMP, QTARGETS, QATOM, QNULL, | ||
| 86 | QATOM_PAIR, QCLIPBOARD_MANAGER, QSAVE_TARGETS; | ||
| 87 | |||
| 88 | static Lisp_Object QCOMPOUND_TEXT; /* This is a type of selection. */ | ||
| 89 | static Lisp_Object QUTF8_STRING; /* This is a type of selection. */ | ||
| 90 | |||
| 91 | static Lisp_Object Qcompound_text_with_extensions; | ||
| 92 | |||
| 93 | static Lisp_Object Qforeign_selection; | ||
| 94 | static Lisp_Object Qx_lost_selection_functions, Qx_sent_selection_functions; | ||
| 95 | |||
| 96 | /* Bytes needed to represent 'long' data. This is as per libX11; it | 83 | /* Bytes needed to represent 'long' data. This is as per libX11; it |
| 97 | is not necessarily sizeof (long). */ | 84 | is not necessarily sizeof (long). */ |
| 98 | #define X_LONG_SIZE 4 | 85 | #define X_LONG_SIZE 4 |
| @@ -2687,8 +2674,11 @@ A value of 0 means wait as long as necessary. This is initialized from the | |||
| 2687 | DEFSYM (QCLIPBOARD, "CLIPBOARD"); | 2674 | DEFSYM (QCLIPBOARD, "CLIPBOARD"); |
| 2688 | DEFSYM (QTIMESTAMP, "TIMESTAMP"); | 2675 | DEFSYM (QTIMESTAMP, "TIMESTAMP"); |
| 2689 | DEFSYM (QTEXT, "TEXT"); | 2676 | DEFSYM (QTEXT, "TEXT"); |
| 2677 | |||
| 2678 | /* These are types of selection. */ | ||
| 2690 | DEFSYM (QCOMPOUND_TEXT, "COMPOUND_TEXT"); | 2679 | DEFSYM (QCOMPOUND_TEXT, "COMPOUND_TEXT"); |
| 2691 | DEFSYM (QUTF8_STRING, "UTF8_STRING"); | 2680 | DEFSYM (QUTF8_STRING, "UTF8_STRING"); |
| 2681 | |||
| 2692 | DEFSYM (QDELETE, "DELETE"); | 2682 | DEFSYM (QDELETE, "DELETE"); |
| 2693 | DEFSYM (QMULTIPLE, "MULTIPLE"); | 2683 | DEFSYM (QMULTIPLE, "MULTIPLE"); |
| 2694 | DEFSYM (QINCR, "INCR"); | 2684 | DEFSYM (QINCR, "INCR"); |
diff --git a/src/xsettings.c b/src/xsettings.c index 066f426d241..8dbc7d990fe 100644 --- a/src/xsettings.c +++ b/src/xsettings.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Functions for handling font and other changes dynamically. | 1 | /* Functions for handling font and other changes dynamically. |
| 2 | 2 | ||
| 3 | Copyright (C) 2009-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2009-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -51,8 +51,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 51 | static char *current_mono_font; | 51 | static char *current_mono_font; |
| 52 | static char *current_font; | 52 | static char *current_font; |
| 53 | static struct x_display_info *first_dpyinfo; | 53 | static struct x_display_info *first_dpyinfo; |
| 54 | static Lisp_Object Qmonospace_font_name, Qfont_name, Qfont_render, | ||
| 55 | Qtool_bar_style; | ||
| 56 | static Lisp_Object current_tool_bar_style; | 54 | static Lisp_Object current_tool_bar_style; |
| 57 | 55 | ||
| 58 | /* Store an config changed event in to the event queue. */ | 56 | /* Store an config changed event in to the event queue. */ |
diff --git a/src/xsettings.h b/src/xsettings.h index fde1fe662fb..7ef94a03a89 100644 --- a/src/xsettings.h +++ b/src/xsettings.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Functions for handle font changes dynamically. | 1 | /* Functions for handle font changes dynamically. |
| 2 | 2 | ||
| 3 | Copyright (C) 2009-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2009-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
diff --git a/src/xsmfns.c b/src/xsmfns.c index a6c69855390..0e635d38ec6 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Session management module for systems which understand the X Session | 1 | /* Session management module for systems which understand the X Session |
| 2 | management protocol. | 2 | management protocol. |
| 3 | 3 | ||
| 4 | Copyright (C) 2002-2014 Free Software Foundation, Inc. | 4 | Copyright (C) 2002-2015 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
diff --git a/src/xterm.c b/src/xterm.c index 892562bd612..05d04c8cc65 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* X Communication module for terminals which understand the X protocol. | 1 | /* X Communication module for terminals which understand the X protocol. |
| 2 | 2 | ||
| 3 | Copyright (C) 1989, 1993-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 1989, 1993-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -180,17 +180,9 @@ static Time ignore_next_mouse_click_timeout; | |||
| 180 | 180 | ||
| 181 | static int x_noop_count; | 181 | static int x_noop_count; |
| 182 | 182 | ||
| 183 | static Lisp_Object Qalt, Qhyper, Qmeta, Qsuper, Qmodifier_value; | ||
| 184 | |||
| 185 | static Lisp_Object Qvendor_specific_keysyms; | ||
| 186 | static Lisp_Object Qlatin_1; | ||
| 187 | |||
| 188 | #ifdef USE_GTK | 183 | #ifdef USE_GTK |
| 189 | /* The name of the Emacs icon file. */ | 184 | /* The name of the Emacs icon file. */ |
| 190 | static Lisp_Object xg_default_icon_file; | 185 | static Lisp_Object xg_default_icon_file; |
| 191 | |||
| 192 | /* Used in gtkutil.c. */ | ||
| 193 | Lisp_Object Qx_gtk_map_stock; | ||
| 194 | #endif | 186 | #endif |
| 195 | 187 | ||
| 196 | /* Some functions take this as char *, not const char *. */ | 188 | /* Some functions take this as char *, not const char *. */ |
| @@ -9542,7 +9534,7 @@ x_set_window_size_1 (struct frame *f, bool change_gravity, | |||
| 9542 | x_wait_for_event (f, ConfigureNotify); | 9534 | x_wait_for_event (f, ConfigureNotify); |
| 9543 | else | 9535 | else |
| 9544 | { | 9536 | { |
| 9545 | change_frame_size (f, pixelwidth, pixelheight, false, true, false, true); | 9537 | change_frame_size (f, width, height, false, true, false, true); |
| 9546 | x_sync (f); | 9538 | x_sync (f); |
| 9547 | } | 9539 | } |
| 9548 | } | 9540 | } |
diff --git a/src/xterm.h b/src/xterm.h index 13877d33935..f2aff72e3ac 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions and headers for communication with X protocol. | 1 | /* Definitions and headers for communication with X protocol. |
| 2 | Copyright (C) 1989, 1993-1994, 1998-2014 Free Software Foundation, | 2 | Copyright (C) 1989, 1993-1994, 1998-2015 Free Software Foundation, |
| 3 | Inc. | 3 | Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -1111,9 +1111,6 @@ extern bool x_session_have_connection (void); | |||
| 1111 | extern void x_session_close (void); | 1111 | extern void x_session_close (void); |
| 1112 | #endif | 1112 | #endif |
| 1113 | 1113 | ||
| 1114 | /* Defined in xterm.c */ | ||
| 1115 | |||
| 1116 | extern Lisp_Object Qx_gtk_map_stock; | ||
| 1117 | 1114 | ||
| 1118 | /* Is the frame embedded into another application? */ | 1115 | /* Is the frame embedded into another application? */ |
| 1119 | 1116 | ||