1 2013-06-19 Juanma Barranquero <lekktu@gmail.com>
3 * sound.c (string_default): Move to !WINDOWSNT section.
4 (Fplay_sound_internal) [WINDOWSNT]: Remove i_result to avoid warning.
6 2013-06-19 Paul Eggert <eggert@cs.ucla.edu>
8 * sound.c: Integer cleanups.
9 Remove unnecessary forward decls.
10 (struct sound_device): The 'file' member is now a Lisp_Object, not
11 a char *, so that we needn't invoke alloca on a huge size.
12 (Fplay_sound_internal): Adjust to this.
13 (string_default): New function.
14 (vox_open, vox_init, alsa_open, alsa_configure, alsa_init):
15 Use it to adjust to the struct sound_device change.
16 (parse_sound, wav_init, au_init, alsa_init): Use bool for booleans.
19 * syntax.c (skip_chars): Don't use uninitialized storage
20 when searching a multibyte buffer for characters that are not in a
21 unibyte string that contains non-ASCII characters.
23 2013-06-18 Jan Djärv <jan.h.d@swipnet.se>
25 * process.c: Include xgselect.h if HAVE_GLIB. Include glib.h
26 if HAVE_GLIB && ! WINDOWSNT (Bug#14654).
28 2013-06-18 Paul Eggert <eggert@cs.ucla.edu>
30 * conf_post.h: Add comments for INLINE, EXTERN_INLINE, etc.
32 2013-06-18 Kenichi Handa <handa@gnu.org>
34 * font.c (Ffont_spec): Signal an error for an invalid font name
37 2013-06-18 Paul Eggert <eggert@cs.ucla.edu>
39 Porting fixes for merged specpdl and backtrace stacks (Bug#14643).
40 In particular this ports to 32-bit sparc Sun cc.
41 * eval.c (init_eval_once, grow_specpdl): Allocate a specbinding
42 array with a dummy element at specpdl[-1], so that its address can
44 (unbind_to): Do not copy the binding; not needed, now that we
45 copy old_value in the one place where the copy is needed.
46 * fileio.c (Fwrite_region): Use ptrdiff_t, not int, for specpdl count.
47 * lisp.h (BITS_PER_PTRDIFF_T): Remove; no longer needed.
48 (union specbinding): Rename from struct specbinding. Redo layout
49 to avoid the need for 'ptrdiff_t nargs : BITS_PER_PTRDIFF_T - 1;',
50 which is not portable. With Sun C 5.12 32-bit sparc, the
51 declaration causes nargs to be an unsigned bitfield, a behavior
52 that the C standard allows; but Emacs wants nargs to be signed.
53 The overall type is now a union of structures rather than a
54 structure of union of structures, and the 'kind' member is now a
55 bitfield, so that the overall type doesn't grow. All uses changed.
56 * process.c (Fmake_serial_process): Remove unnecessary initialization.
58 2013-06-17 Paul Eggert <eggert@cs.ucla.edu>
60 * frame.c (x_report_frame_params): Cast parent_desc to uintptr_t.
61 Needed if HAVE_NTGUI. Reported by Juanma Barranquero.
63 * nsfont.m (ns_registry_to_script): Parenthesize while expression.
65 2013-06-17 Eli Zaretskii <eliz@gnu.org>
67 * w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT
68 unless we know that the window w's frame is a frame object.
69 Another attempt at solving bug#14062 and bug#14630.
71 2013-06-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
73 * textprop.c (property_set_type): New enum.
74 (add_properties): Allow appending/prepending text properties.
75 (add_text_properties_1): Factored out of Fadd_text_properties.
76 (Fadd_text_properties): Moved all the code into
77 add_text_properties_1.
78 (Fadd_face_text_property): New function that calls
79 add_text_properties_1.
81 2013-06-17 Paul Eggert <eggert@cs.ucla.edu>
83 Move functions from lisp.h to individual modules when possible.
84 From a suggestion by Andreas Schwab in <http://bugs.gnu.org/11935#68>.
85 * alloc.c (XFLOAT_INIT, set_symbol_name):
86 * buffer.c (CHECK_OVERLAY):
87 * chartab.c (CHECK_CHAR_TABLE, set_char_table_ascii)
88 (set_char_table_parent):
89 * coding.c (CHECK_NATNUM_CAR, CHECK_NATNUM_CDR):
90 * data.c (BOOLFWDP, INTFWDP, KBOARD_OBJFWDP, OBJFWDP, XBOOLFWD)
91 (XKBOARD_OBJFWD, XINTFWD, XOBJFWD, CHECK_SUBR, set_blv_found)
92 (blv_value, set_blv_value, set_blv_where, set_blv_defcell)
94 * emacs.c (setlocale) [!HAVE_SETLOCALE]:
95 * eval.c (specpdl_symbol, specpdl_old_value, specpdl_where)
96 (specpdl_arg, specpdl_func, backtrace_function, backtrace_nargs)
97 (backtrace_args, backtrace_debug_on_exit):
98 * floatfns.c (CHECK_FLOAT):
99 * fns.c (CHECK_HASH_TABLE, CHECK_LIST_END)
100 (set_hash_key_and_value, set_hash_next, set_hash_next_slot)
101 (set_hash_hash, set_hash_hash_slot, set_hash_index)
102 (set_hash_index_slot):
103 * keymap.c (CHECK_VECTOR_OR_CHAR_TABLE):
104 * marker.c (CHECK_MARKER):
105 * textprop.c (CHECK_STRING_OR_BUFFER):
106 * window.c (CHECK_WINDOW_CONFIGURATION):
107 Move here from lisp.h, and make these functions static rather than
109 * buffer.c (Qoverlayp):
111 * fns.c (Qhash_table_p):
112 * window.c (Qwindow_configuration_p):
114 * lisp.h: Remove the abovementioned defns and decls.
116 Use functions, not macros, for XINT etc. (Bug#11935).
117 In lisp.h, prefer functions to function-like macros, and
118 constants to object-like macros, when either will do. This:
119 . simplifies use, as there's no more need to worry about
120 arguments' side effects being evaluated multiple times.
121 . makes the code easier to debug on some platforms.
122 However, when using gcc -O0, keep using function-like macros
123 for a few critical operations, for performance reasons.
124 This sort of thing isn't needed with gcc -Og, but -Og
125 is a GCC 4.8 feature and isn't widely-enough available yet.
126 * alloc.c (gdb_make_enums_visible) [USE_LSB_TAG]:
127 Remove enum lsb_bits; no longer needed.
128 (allocate_misc, free_misc): Don't use XMISCTYPE as an lvalue.
129 * buffer.c (Qoverlap):
131 * fns.c (Qhash_table_p):
132 Now extern, so lisp.h can use these symbols.
133 * dispextern.h: Include character.h, for MAX_CHAR etc.
134 (GLYPH, GLYPH_CHAR, GLYPH_FACE, SET_GLYPH_CHAR, SET_GLYPH_FACE)
135 (SET_GLYPH, GLYPH_CODE_CHAR, GLYPH_CODE_FACE)
136 (SET_GLYPH_FROM_GLYPH_CODE, GLYPH_MODE_LINE_FACE, GLYPH_CHAR_VALID_P)
137 (GLYPH_CODE_P): Move here from lisp.h.
138 (GLYPH_CHAR, GLYPH_FACE, GLYPH_CODE_CHAR, GLYPH_CODE_FACE)
139 (GLYPH_CHAR_VALID_P, GLYPH_CODE_P): Now functions, not macros.
140 (GLYPH_MODE_LINE_FACE): Now enums, not macros.
141 * eval.c (Fautoload): Cast XUNTAG output to intptr_t, since
142 XUNTAG now returns void *.
143 * lisp.h (lisp_h_XLI, lisp_h_XIL, lisp_h_CHECK_LIST_CONS)
144 (lisp_h_CHECK_NUMBER CHECK_SYMBOL, lisp_h_CHECK_TYPE)
145 (lisp_h_CONSP, lisp_h_EQ, lisp_h_FLOATP, lisp_h_INTEGERP)
146 (lisp_h_MARKERP, lisp_h_MISCP, lisp_h_NILP)
147 (lisp_h_SET_SYMBOL_VAL, lisp_h_SYMBOL_CONSTANT_P)
148 (lisp_h_SYMBOL_VAL, lisp_h_SYMBOLP, lisp_h_VECTORLIKEP)
149 (lisp_h_XCAR, lisp_h_XCDR, lisp_h_XCONS, lisp_h_XHASH)
150 (lisp_h_XPNTR, lisp_h_XSYMBOL):
151 New macros, renamed from their sans-lisp_h_ counterparts.
152 (XLI, XIL, CHECK_LIST_CONS, CHECK_NUMBER CHECK_SYMBOL)
153 (CHECK_TYPE, CONSP, EQ, FLOATP, INTEGERP, MARKERP)
154 (MISCP, NILP, SET_SYMBOL_VAL, SYMBOL_CONSTANT_P, SYMBOL_VAL, SYMBOLP)
155 (VECTORLIKEP, XCAR, XCDR, XCONS, XHASH, XPNTR, XSYMBOL):
156 If compiling via GCC without optimization, define these as macros
157 in addition to inline functions.
158 To disable this, compile with -DINLINING=0.
159 (LISP_MACRO_DEFUN, LISP_MACRO_DEFUN_VOID): New macros.
160 (check_cons_list) [!GC_CHECK_CONS_LIST]: Likewise.
161 (make_number, XFASTINT, XINT, XTYPE, XUNTAG): Likewise, but
162 hand-optimize only in the USE_LSB_TAG case, as GNUish hosts do that.
163 (INTMASK, VALMASK): Now macros, since static values cannot be
164 accessed from extern inline functions.
165 (VALMASK): Also a constant, for benefit of old GDB.
166 (LISP_INT_TAG_P): Remove; no longer needed as the only caller
167 is INTEGERP, which can fold it in.
168 (XLI, XIL, XHASH, XTYPE,XINT, XFASTINT, XUINT)
169 (make_number, XPNTR, XUNTAG, EQ, XCONS, XVECTOR, XSTRING, XSYMBOL)
170 (XFLOAT, XPROCESS, XWINDOW, XTERMINAL, XSUBR, XBUFFER, XCHAR_TABLE)
171 (XSUB_CHAR_TABLE, XBOOL_VECTOR, make_lisp_ptr, CHECK_TYPE)
172 (CHECK_STRING_OR_BUFFER, XCAR, XCDR, XSETCAR, XSETCDR, CAR, CDR)
173 (CAR_SAFE, CDR_SAFE, STRING_MULTIBYTE, SDATA, SSDATA, SREF, SSET)
174 (SCHARS, STRING_BYTES, SBYTES, STRING_SET_CHARS, STRING_COPYIN, AREF)
175 (ASIZE, ASET, CHAR_TABLE_REF_ASCII, CHAR_TABLE_REF)
176 (CHAR_TABLE_SET, CHAR_TABLE_EXTRA_SLOTS, SYMBOL_VAL, SYMBOL_ALIAS)
177 (SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL, SET_SYMBOL_ALIAS)
178 (SET_SYMBOL_BLV, SET_SYMBOL_FWD, SYMBOL_NAME, SYMBOL_INTERNED_P)
179 (SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P, SYMBOL_CONSTANT_P)
180 (XHASH_TABLE, HASH_TABLE_P, CHECK_HASH_TABLE, HASH_KEY, HASH_VALUE)
181 (HASH_NEXT, HASH_HASH, HASH_INDEX, HASH_TABLE_SIZE)
182 (XMISC, XMISCANY, XMARKER, XOVERLAY, XSAVE_VALUE, XFWDTYPE)
183 (XINTFWD, XBOOLFWD, XOBJFWD, XBUFFER_OBJFWD, XKBOARD_OBJFWD)
184 (XFLOAT_DATA, XFLOAT_INIT, NILP, NUMBERP, NATNUMP)
185 (RANGED_INTEGERP, CONSP, FLOATP, MISCP, STRINGP, SYMBOLP)
186 (INTEGERP, VECTORLIKEP, VECTORP, OVERLAYP)
187 (MARKERP, SAVE_VALUEP, AUTOLOADP, INTFWDP, BOOLFWDP, OBJFWDP)
188 (BUFFER_OBJFWDP, KBOARD_OBJFWDP, PSEUDOVECTOR_TYPEP)
189 (PSEUDOVECTORP, WINDOW_CONFIGURATIONP, PROCESSP, WINDOWP)
190 (TERMINALP, SUBRP, COMPILEDP, BUFFERP, CHAR_TABLE_P)
191 (SUB_CHAR_TABLE_P, BOOL_VECTOR_P, FRAMEP, IMAGEP, ARRAYP)
192 (CHECK_LIST, CHECK_LIST_CONS, CHECK_LIST_END, CHECK_STRING)
193 (CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
194 (CHECK_VECTOR, CHECK_VECTOR_OR_STRING, CHECK_ARRAY)
195 (CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER, CHECK_WINDOW)
196 (CHECK_WINDOW_CONFIGURATION, CHECK_PROCESS, CHECK_SUBR)
197 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, XFLOATINT)
198 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT, CHECK_OVERLAY)
199 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR, CHECK_NATNUM_CAR)
200 (CHECK_NATNUM_CDR, FUNCTIONP, SPECPDL_INDEX, LOADHIST_ATTACH)
202 (check_cons_list) [!GC_CHECK_CONS_LIST]: New empty function.
203 (LISP_MAKE_RVALUE, TYPEMASK): Remove; no longer needed.
204 (VALMASK): Define in one place rather than in two, merging the
205 USE_LSB_TAG parts; this is simpler.
206 (aref_addr, gc_aset, MOST_POSITIVE_FIXNUM, MOST_NEGATIVE_FIXNUM)
207 (max, min, struct Lisp_String, UNSIGNED_CMP, ASCII_CHAR_P):
208 Move up, to avoid use before definition.
209 Also include "globals.h" earlier, for the same reason.
210 (make_natnum): New function.
211 (XUNTAG): Now returns void *, not intptr_t, as this means fewer casts.
212 (union Lisp_Fwd, BOOLFWDP, BOOL_VECTOR_P, BUFFER_OBJFWDP, BUFFERP)
213 (CHAR_TABLE_P, CHAR_TABLE_REF_ASCII, CONSP, FLOATP, INTEGERP, INTFWDP)
214 (KBOARD_OBJFWDP, MARKERP, MISCP, NILP, OBJFWDP, OVERLAYP, PROCESSP)
215 (PSEUDOVECTORP, SAVE_VALUEP, STRINGP, SUB_CHAR_TABLE_P, SUBRP, SYMBOLP)
216 (VECTORLIKEP, WINDOWP, Qoverlayp, char_table_ref, char_table_set)
217 (char_table_translate, Qarrayp, Qbufferp, Qbuffer_or_string_p)
218 (Qchar_table_p, Qconsp, Qfloatp, Qintegerp, Qlambda, Qlistp, Qmarkerp)
219 (Qnil, Qnumberp, Qsubrp, Qstringp, Qsymbolp, Qvectorp)
220 (Qvector_or_char_table_p, Qwholenump, Ffboundp, wrong_type_argument)
221 (initialized, Qhash_table_p, extract_float, Qprocessp, Qwindowp)
222 (Qwindow_configuration_p, Qimage): New forward declarations.
223 (XSETFASTINT): Simplify by rewriting in terms of make_natnum.
224 (STRING_COPYIN): Remove; unused.
225 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Remove these macros, replacing with ...
226 (xcar_addr, xcdr_addr): New functions. All uses changed.
227 (IEEE_FLOATING_POINT): Now a constant, not a macro.
228 (GLYPH, GLYPH_CHAR, GLYPH_FACE, SET_GLYPH_CHAR, SET_GLYPH_FACE)
229 (SET_GLYPH, GLYPH_CODE_CHAR, GLYPH_CODE_FACE)
230 (SET_GLYPH_FROM_GLYPH_CODE, GLYPH_MODE_LINE_FACE, GLYPH_CHAR_VALID_P)
231 (GLYPH_CODE_P): Move to dispextern.h, to avoid define-before-use.
232 (TYPE_RANGED_INTEGERP): Simplify.
233 (Qsubrp, Qhash_table_p, Qoverlayp): New extern decls.
234 (setlocale, fixup_locale, synchronize_system_messages_locale)
235 (synchronize_system_time_locale) [!HAVE_SETLOCALE]:
236 Now empty functions, not macros.
237 (functionp): Return bool, not int.
238 * window.c (Qwindow_configuration_p): Now extern,
239 so window.h can use it.
240 * window.h (Qwindowp): Move decl back to lisp.h.
242 2013-06-15 Eli Zaretskii <eliz@gnu.org>
244 * xdisp.c (Fline_pixel_height): New function, required for solving
247 2013-06-15 Paul Eggert <eggert@cs.ucla.edu>
249 * fns.c (Fcopy_sequence): Simplify XTYPE calculation.
251 2013-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
253 * lread.c (syms_of_lread):
254 * fns.c (Fprovide): Adjust to new format of after-load-alist.
256 2013-06-13 Kelly Dean <kellydeanch@yahoo.com> (tiny change)
258 * fileio.c (Fdo_auto_save): Trap errors in auto-save-hook. (Bug#14479)
260 2013-06-12 Xue Fuqiao <xfq.free@gmail.com>
262 * fileio.c (expand_file_name): Doc fix.
264 2013-06-11 Paul Eggert <eggert@cs.ucla.edu>
266 Tickle glib by waiting for Emacs itself, not for process 0 (Bug#14569).
267 * process.c (init_process_emacs) [HAVE_GLIB && !WINDOWSNT]:
268 Wait for self, not for 0. This can't hurt on GNU or similar
269 system, and may help with Cygwin.
271 * keyboard.c: Don't use PROP (...) as an lvalue.
272 (parse_tool_bar_item) [!USE_GTK && !HAVE_NS]:
273 Use set_prop (A, B), not PROP (A) = B.
275 2013-06-10 Eli Zaretskii <eliz@gnu.org>
277 * xdisp.c (get_it_property): Use it->window instead of generating
278 a Lisp object from it->w.
280 2013-06-09 Eli Zaretskii <eliz@gnu.org>
282 * xdisp.c (get_it_property): If it->object is a buffer, pass to
283 get-char-property the window that is being rendered, instead of
284 the buffer, to support window-specific overlays. (Bug#14575)
285 (compute_display_string_pos): When W is NULL, use the current
286 buffer as the object to pass to get-char-property.
287 (Fcurrent_bidi_paragraph_direction): Assign NULL to the window
288 pointer member of the bidi iterator, since no window is pertinent
291 2013-06-08 Eli Zaretskii <eliz@gnu.org>
293 * bidi.c (bidi_fetch_char): Accept additional argument, the window
294 being displayed, and pass it to compute_display_string_pos.
295 (bidi_level_of_next_char, bidi_resolve_explicit_1)
296 (bidi_paragraph_init): All callers changed.
298 * xdisp.c (init_from_display_pos, init_iterator)
299 (handle_single_display_spec, next_overlay_string)
300 (get_overlay_strings_1, reseat_1, reseat_to_string)
301 (push_prefix_prop, Fcurrent_bidi_paragraph_direction):
302 Set bidi_it.w member from it->w.
303 (compute_display_string_pos): Accept additional argument, the
304 window being displayed, and pass it to Fget_char_property.
307 * dispextern.h (struct bidi_it): New member w, the window being
309 (compute_display_string_pos): Adjust prototype.
311 2013-06-08 Jan Djärv <jan.h.d@swipnet.se>
313 * xgselect.c: Remove unneeded include xterm.h.
315 * process.c (wait_reading_process_output): Check for NS before GLIB.
316 GLIB may be linked in due to rsvg, but ns_select must be called.
318 * xgselect.c (xg_select): Remove call to window_system_available
319 and g_main_context_pending at the top, so Gdk events (i.e. file
320 notify) are processed when Emacs is started with -nw.
322 2013-06-07 Eli Zaretskii <eliz@gnu.org>
324 * Makefile.in (ctagsfiles1, ctagsfiles2): Don't include *.m files.
325 (ctagsfiles3): New variable, includes only *.m files.
326 (TAGS): Use an explicit language name in the regular expressions,
327 to avoid transformation of '/SOMETHING' by MSYS to
330 2013-06-07 Richard Copley <rcopley@gmail.com> (tiny change)
332 * epaths.in: Fix commentary to PATH_SITELOADSEARCH.
334 2013-06-06 Eli Zaretskii <eliz@gnu.org>
336 * xdisp.c (note_mouse_highlight): When mouse-highlight is off,
337 still need to set the mouse pointer shape and activate help-echo.
340 2013-06-06 Paul Eggert <eggert@cs.ucla.edu>
342 A few porting etc. fixes for the new file monitor code.
343 See the thread containing
344 <http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00109.html>.
345 * gfilenotify.c (dir_monitor_callback, Fgfile_add_watch)
346 (Fgfile_rm_watch): Don't assume EMACS_INT is the same width as a pointer.
347 (dir_monitor_callback, Fgfile_rm_watch):
348 Use assq_no_quit instead of Fassoc, for speed.
349 (dir_monitor_callback, Fgfile_rm_watch):
350 eassert that the monitor is a fixnum.
351 (dir_monitor_callback): No need for CDR_SAFE.
352 Simplify building of lisp with alternative tails.
353 (Fgfile_add_watch, Fgfile_rm_watch):
354 Do not assume glib functions set errno reliably on failure.
355 (Fgfile_add_watch): Check that the monitor survives the XIL trick,
356 and signal an error otherwise.
357 (Fgfile_rm_watch): Prefer CONSP to !NILP.
358 Use Fdelq instead of Fdelete, for speed.
360 2013-06-05 Eli Zaretskii <eliz@gnu.org>
362 * xdisp.c (handle_tool_bar_click): When mouse-highlight is off,
363 don't insist on being invoked on a highlighted tool-bar button.
364 Avoids losing tool-bar functionality when mouse-highlight is nil.
365 (note_tool_bar_highlight, note_mode_line_or_margin_highlight):
366 Don't highlight when mouse-highlight is nil.
367 (note_mouse_highlight): When mouse-highlight is nil, don't return
368 right away; instead, run tool-bar and mode-line highlight
369 subroutine, clear any existing highlight, and revert the mouse
370 pointer to its default shape. (Bug#14558)
372 2013-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
374 * lisp.mk (lisp): Add prog-mode.el.
376 2013-06-05 Paul Eggert <eggert@cs.ucla.edu>
378 Chain glib's SIGCHLD handler from Emacs's (Bug#14474).
379 * process.c (dummy_handler): New function.
380 (lib_child_handler): New static var.
381 (handle_child_signal): Invoke it.
382 (catch_child_signal): If a library has set up a signal handler,
383 save it into lib_child_handler.
384 (init_process_emacs): If using glib and not on Windows, tickle glib's
385 child-handling code so that it initializes its private SIGCHLD handler.
386 * syssignal.h (SA_SIGINFO): Default to 0.
387 * xterm.c (x_term_init): Remove D-bus hack that I installed on May
388 31; it should no longer be needed now.
390 2013-06-05 Michael Albinus <michael.albinus@gmx.de>
392 * emacs.c (main) [HAVE_GFILENOTIFY]: Call globals_of_gfilenotify.
394 * gfilenotify.c (globals_of_gfilenotify): New function.
395 (syms_of_gfilenotify): Move global initialization there.
397 * lisp.h (globals_of_gfilenotify) [HAVE_GFILENOTIFY]: Add prototype.
399 2013-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
401 * keymap.c (Fcurrent_active_maps, Fdescribe_buffer_bindings):
402 * keyboard.c (menu_bar_items, tool_bar_items):
403 * doc.c (Fsubstitute_command_keys): Voverriding_terminal_local_map does
404 not override local keymaps any more.
406 2013-06-04 Eli Zaretskii <eliz@gnu.org>
408 * window.c (Fpos_visible_in_window_p): Doc fix. (Bug#14540)
410 2013-06-03 Eli Zaretskii <eliz@gnu.org>
412 * w32console.c (initialize_w32_display): Return the dimensions of
413 the console window via 2 additional arguments, not via the current
414 frame. This avoids crashes due to overrunning the bounds of
415 frame's decode_mode_spec_buffer, which is not resized following
416 the change of the frame dimensions from the initial 10x10.
418 * w32term.h (w32_initialize_display_info): Adjust prototype.
420 * term.c (init_tty): Take dimensions of the frame from the values
421 returned by initialize_w32_display.
423 * Makefile.in (GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): New variables.
424 (ALL_CFLAGS): Add $(GFILENOTIFY_CFLAGS).
425 (LIBES): Add $(GFILENOTIFY_LIBS).
427 * w32inevt.c (handle_file_notifications): Add dummy implementation
430 * w32term.c: Wrap code with HAVE_W32NOTIFY.
432 2013-06-03 Jan Djärv <jan.h.d@swipnet.se>
434 * xgselect.c: Replace #if defined ... with #ifdef HAVE_GLIB.
436 * process.c (wait_reading_process_output): Call xg_select if HAVE_GLIB.
438 * Makefile.in (XGSELOBJ): New, xgselect.o if GLib is used, or empty.
440 2013-06-03 Paul Eggert <eggert@cs.ucla.edu>
442 Fix minor problems found by static checking.
443 * data.c (pure_write_error):
444 Use xsignal2, not Fsignal, as Fsignal might return.
445 * eval.c (set_backtrace_debug_on_exit): Now static.
446 (backtrace_p, backtrace_top, backtrace_next, record_in_backtrace):
447 No longer inline. EXTERN_INLINE is needed only for functions
448 defined in .h files. Reindent function header as per GNU style.
449 (backtrace_p, backtrace_top, backtrace_next):
450 Mark EXTERNALLY_VISIBLE so they don't get optimized away by the
451 compiler or linker. Add extern decls to pacify gcc -Wall.
452 * frame.c, frame.h (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource):
454 * frame.c (free_monitors): Define only on platforms that need it.
455 * nsterm.m (ns_term_init):
456 * process.c (catch_child_signal):
457 Don't worry about whether SIGCHLD is defined, as SIGCHLD is
458 defined on all porting targets these days.
459 * process.c, process.h (catch_child_signal):
460 Make it extern only if NS_IMPL_GNUSTEP is defined.
462 2013-06-03 Eli Zaretskii <eliz@gnu.org>
464 * w32.c (gettimeofday): Make the signature identical to prototype
465 in nt/inc/sys/time.h.
467 2013-06-03 Stefan Monnier <monnier@iro.umontreal.ca>
469 * eval.c (backtrace_p, backtrace_top, backtrace_next): Export them to
472 * keyboard.c (safe_run_hooks_error): Improve error message.
474 * data.c (pure_write_error): Add `object' argument.
475 * puresize.h (CHECK_IMPURE): Use it.
477 2013-06-03 Michael Albinus <michael.albinus@gmx.de>
479 * Makefile.in (NOTIFY_OBJ): New variable.
480 (base_obj): Replace inotify.o by $(NOTIFY_OBJ).
482 * emacs.c (main): Use HAVE_W32NOTIFY to wrap respective code.
483 Call syms_of_gfilenotify.
485 * gfilenotify.c: New file.
487 * keyboard.c (Qfile_notify): New variable. Replaces Qfile_inotify
489 (top): Wrap respective code by HAVE_GFILENOTIFY, HAVE_INOTIFY,
490 HAVE_W32NOTIFY and USE_FILE_NOTIFY.
492 * lisp.h: Declare syms_of_gfilenotify.
494 * termhooks.h (e): Wrap enum by USE_FILE_NOTIFY.
496 2013-06-03 Stefan Monnier <monnier@iro.umontreal.ca>
498 Merge the specpdl and backtrace stacks. Make the structure of the
499 specpdl entries more obvious via a tagged union of structs.
500 * lisp.h (BITS_PER_PTRDIFF_T): New constant.
501 (enum specbind_tag): New enum.
502 (struct specbinding): Make it a tagged union of structs.
503 Add a case for backtrace records.
504 (specpdl_symbol, specpdl_old_value, specpdl_where, specpdl_arg)
505 (specpdl_func, backtrace_function, backtrace_nargs, backtrace_args)
506 (backtrace_debug_on_exit): New accessors.
507 (struct backtrace): Remove.
508 (struct catchtag): Remove backlist field.
509 * data.c (let_shadows_buffer_binding_p, let_shadows_global_binding_p):
511 (Flocal_variable_p): Speed up the common case where the binding is
513 * eval.c (backtrace_list): Remove.
514 (set_specpdl_symbol, set_specpdl_old_value): Remove.
515 (set_backtrace_args, set_backtrace_nargs)
516 (set_backtrace_debug_on_exit, backtrace_p, backtrace_top)
517 (backtrace_next): New functions.
518 (Fdefvaralias, Fdefvar): Adjust to new specpdl format.
519 (unwind_to_catch, internal_lisp_condition_case)
520 (internal_condition_case, internal_condition_case_1)
521 (internal_condition_case_2, internal_condition_case_n): Don't bother
522 with backtrace_list any more.
523 (Fsignal): Adjust to new backtrace format.
524 (grow_specpdl): Move up.
525 (record_in_backtrace): New function.
526 (eval_sub, Ffuncall): Use it.
527 (apply_lambda): Adjust to new backtrace format.
528 (let_shadows_buffer_binding_p, let_shadows_global_binding_p): Move from
530 (specbind): Adjust to new specpdl format. Simplify.
531 (record_unwind_protect, unbind_to): Adjust to new specpdl format.
532 (Fbacktrace_debug, Fbacktrace, Fbacktrace_frame): Adjust to new
534 (mark_backtrace): Remove.
535 (mark_specpdl, get_backtrace, backtrace_top_function): New functions.
536 * xdisp.c (redisplay_internal): Use record_in_backtrace.
537 * alloc.c (Fgarbage_collect): Use record_in_backtrace.
539 * profiler.c (record_backtrace): Use get_backtrace.
540 (handle_profiler_signal): Use backtrace_top_function.
541 * .gdbinit (xbacktrace, hookpost-backtrace): Use new backtrace
544 2013-06-02 Jan Djärv <jan.h.d@swipnet.se>
546 * process.h (catch_child_signal): Declare.
548 * process.c (catch_child_signal): New function.
549 (init_process_emacs): Call it.
551 * nsterm.m: Include process.h if NS_IMPL_GNUSTEP.
552 (ns_menu_bar_is_hidden, menu_will_open_state): Define only if
554 (x_set_cursor_type): Remove declaration.
555 (ns_update_begin): Only use r and bp if NS_IMPL_COCOA.
556 (ns_update_end, ns_focus, ns_unfocus): Remove GNUStep specific code.
557 (x_set_window_size): Remove 3 pixels from toolbar if NS_IMPL_GNUSTEP.
558 (ns_get_color): Use F suffix on float.
559 (ns_color_to_lisp, ns_query_color): Use EmacsCGFloat.
560 (ns_get_rgb_color): Remove.
561 (x_set_frame_alpha): Move view inside NS_IMPL_COCOA.
562 (note_mouse_movement): x and y are CGFloat.
563 (ns_draw_fringe_bitmap): Remove unused rowY.
564 Change #if to COCOA && >= 10_6.
565 (ns_draw_window_cursor): Remove unused overspill.
566 (ns_draw_underwave): width and x are EamcsCGFloat.
567 (ns_draw_box): thickness is CGFloat.
568 (ns_dumpglyphs_image): Change #if to COCOA && >= 10_6.
569 (ns_send_appdefined): When NS_IMPL_GNUSTEP, redirect to main thread
570 if not in main thread.
571 (ns_get_pending_menu_title, ns_check_menu_open)
572 (ns_check_pending_open_menu): Put inside #if COCOA && >= 10_5.
573 (ns_term_init): Call catch_child_signal if NS_IMPL_GNUSTEP && SIGCHLD.
574 (sendFromMainThread:): New method.
575 (changeFont:): size is CGFloat.
576 (keyDown:): Check for Delete when NS_IMPL_GNUSTEP.
577 Disable warning about permanent text.
578 (characterIndexForPoint:): Adjust return type depending on GNUStep
580 (mouseDown:): delta is CGFloat.
581 (updateFrameSize): Remove unised variable f.
582 (initFrameFromEmacs): Move toggleButton inside NS_IMPL_COCOA.
583 Cast float to EmacsCGFloat.
584 (windowWillUseStandardFrame:defaultFrame:): Set maximized_height
585 also to -1 when restoring.
586 (windowDidExitFullScreen:): Put call to updateCollectionBehaviour
587 inside NS_IMPL_COCOA.
588 (toggleFullScreen:): Put call to toggleFullScreen inside
589 NS_IMPL_COCOA. Cast float to EmacsCGFloat.
590 (setPosition:portion:whole:): por is CGFloat.
591 (getMouseMotionPart:window:x:y:): Add F suffix to float.
592 (mouseDown:): Use CGFloat.
593 (mouseDragged:): Remove unised variable edge.
594 (EmacsDocument): Implement for NS_IMPL_GNUSTEP.
596 * nsterm.h (EmacsCGFloat): Typedef for OSX and GNUStep when the size
598 (EmacsApp): New variable nextappdefined. Declare sendFromMainThread
599 when NS_IMPL_GNUSTEP.
600 (EmacsDocument): Declare when NS_IMPL_GNUSTEP.
601 (EmacsView): Remove unlockFocusNeedsFlush, add windowDidMove.
602 (EmacsToolbar): Add clearAll. Add tag argument to
603 addDisplayItemWithImage.
604 (EmacsSavePanel, EmacsOpenPanel): Remove getFilename and getDirectory.
606 * nsselect.m (ns_get_local_selection): Remove unused variable type.
608 * nsmenu.m (ns_update_menubar): Make static.
609 (x_activate_menubar): Surround with ifdef NS_IMPL_COCOA
610 (fillWithWidgetValue:): Add cast to SEL for setAction.
611 (addSubmenuWithTitle:forFrame:): Add cast to SEL for action.
612 (update_frame_tool_bar): Update code for GNUStep.
613 (clearAll): New method.
614 (addDisplayItemWithImage:idx:tag:helpText:enabled:): Handle new tag
615 argument. Call insertItemWithItemIdentifier when NS_IMPL_GNUSTEP.
616 Move identifierToItem setObject and activeIdentifiers addObject before
617 call to insertItemWithItemIdentifier.
618 (validateVisibleItems): Fix indentation.
619 (toolbarAllowedItemIdentifiers:): Return activeIdentifiers.
620 (initWithContentRect:styleMask:backing:defer:): Add ClosableWindow and
621 UtilityWindow to aStyle, remove call to setStyleMask.
623 * nsimage.m (setXBMColor:, getPixelAtX:Y:): Use EmacsCGFloat.
625 * nsfont.m (ns_attribute_fvalue, ns_spec_to_descriptor)
626 (ns_charset_covers, ns_get_covering_families, nsfont_open):
627 Use F suffix on floats.
628 (ns_char_width): Returns CGFloat.
629 (ns_ascii_average_width): w is CGFloat instead of float.
630 (nsfont_draw): cbuf and c are unsigned. Cast to char* in call to
632 (ns_glyph_metrics): CGFloat instead of float.
634 * nsfns.m (x_set_foreground_color, x_set_background_color):
636 (ns_implicitly_set_icon_type, Fx_create_frame): Make static,
637 remove unused variables.
638 (Fns_read_file_name): Keep track if panel is for save.
639 Use ns_filename_from_panel/ns_directory_from_panel.
640 (Fns_list_services): delegate only used for COCOA.
641 (Fns_convert_utf8_nfd_to_nfc): Remove warning for GNUStep.
642 Just return the input if GNUStep.
643 (x_screen_planes): Remove.
644 (Fxw_color_values): Use EmacsCGFloat
645 (Fns_display_monitor_attributes_list): Only get screen number for
647 (getDirectory, getFilename): Removed from EmacsOpenPanel and
649 (EmacsOpenPanel:ok:): Use ns_filename_from_panel and
650 ns_directory_from_panel.
652 2013-06-01 Paul Eggert <eggert@cs.ucla.edu>
654 * process.c (handle_child_signal): Also use WCONTINUED.
655 This is so that list-processes doesn't mistakenly list the process
656 as stopped, when the process has actually been continued and is
659 2013-05-31 Paul Eggert <eggert@cs.ucla.edu>
661 Don't let D-bus autolaunch mess up SIGCHLD handling (Bug#14474).
662 * xterm.c (x_term_init): Inhibit D-Bus autolaunch if D-Bus is
663 not already configured.
665 * fileio.c (Finsert_file_contents): Remove unused local (Bug#8447).
667 2013-05-29 Eli Zaretskii <eliz@gnu.org>
669 * Makefile.in (mostlyclean): Remove *.res files.
671 2013-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
673 * fileio.c (Finsert_file_contents): Preserve undo info when reverting
676 2013-05-27 Eli Zaretskii <eliz@gnu.org>
678 * xdisp.c (pos_visible_p): When CHARPOS is displayed frrom a
679 display vector, and we backtrack, handle the case that the
680 previous character position is also displayed from a display
681 vector or covered by a display string or image. (Bug#14476)
683 2013-05-25 Jan Djärv <jan.h.d@swipnet.se>
685 * xfns.c (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Remove.
686 (struct MonitorInfo, free_monitors): Remove.
687 (x_make_monitor_attribute_list): Call make_monitor_attribute_list.
688 (Fx_display_monitor_attributes_list): Call make_monitor_attribute_list.
689 (syms_of_xfns): Remove DEFSYM for Qgeometry, Qworkarea, Qmm_size,
692 * nsfns.m (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Remove.
693 (struct MonitorInfo, free_monitors): Remove.
694 (ns_screen_name): Make static.
695 (ns_make_monitor_attribute_list): Call make_monitor_attribute_list.
696 (syms_of_nsfns): Remove DEFSYM for Qgeometry, Qworkarea, Qmm_size,
699 * frame.h (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Declare.
700 (struct MonitorInfo): New struct.
701 (free_monitors, make_monitor_attribute_list): Declare.
703 * frame.c (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource):
705 (free_monitors, make_monitor_attribute_list): New functions.
706 (syms_of_frame): DEFSYM Qgeometry, Qworkarea, Qmm_size, Qframes,
709 2013-05-25 Xue Fuqiao <xfq.free@gmail.com>
711 * callproc.c (call_process): Refine the doc string. (Bug#14045)
713 2013-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
715 * keyboard.c: Apply keyboard decoding only to events that come directly
716 from the tty, not from unread-command-events (bug#14368).
717 (read_event_from_main_queue): New function, extracted from read_char).
718 (read_decoded_char): Remove.
719 (read_decoded_event_from_main_queue): New function to replace it.
721 (read_key_sequence): Use read_char rather than read_decoded_char.
723 * keyboard.c (read_decoded_char): Don't decode under w32 (bug#14403).
725 2013-05-22 Barry OReilly <gundaetiapo@gmail.com> (tiny change)
727 * casetab.c (init_casetab_once): Fix last change (bug#14424).
729 2013-05-22 Kenichi Handa <handa@gnu.org>
731 The following changes are to fix the setting of
732 buffer-file-coding-system on, for instance, C-x RET c unix RET
733 _FILE_OF_DOS_EOL_TYPE_ RET.
735 * coding.h (struct coding_system): New member detected_utf8_chars.
737 * coding.c (detect_coding_utf_8): Count characters and check EOL
738 format. Include CATEGORY_MASK_UTF_8_AUTO in detect_info->found if
740 (setup_coding_system): Do not initialize coding->head_ascii.
741 (check_ascii): Do not set coding->eol_seen but update it. Do not
742 call adjust_coding_eol_type here.
743 (detect_coding): Fix detection of BOM for utf-8 and utf-16.
744 If the eol-type of CODING is already specified, adjust the eol type
745 of the found coding-system.
746 (decode_coding_gap): Cancel previous change. Utilize the
747 character numbers counted by detect_coding_utf_8. Fix detection
750 2013-05-21 Barry OReilly <gundaetiapo@gmail.com> (tiny change)
752 * search.c (looking_at_1): Only set last_thing_searched if the match
753 changed the match-data (bug#14281).
755 2013-05-21 Dmitry Antipov <dmantipov@yandex.ru>
757 * xdisp.c (reseat_at_previous_visible_line_start):
758 Already declared in dispextern.h, so remove it here.
759 (move_it_vertically_backward): Likewise.
761 2013-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
763 * xfns.c (check_x_display_info): Don't use XINT for terminal object.
764 (Fx_display_pixel_width, Fx_display_pixel_height)
765 (Fx_display_mm_width, Fx_display_mm_height):
766 Mention `display-monitor-attributes-list' in docstrings.
768 * nsfns.m (ns_get_screen): Remove function. All uses removed.
769 (check_ns_display_info): Sync with check_x_display_info in xfns.c.
770 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
771 (Fx_display_screens, Fx_display_mm_width, Fx_display_mm_height)
772 (Fx_display_backing_store, Fx_display_visual_class)
773 (Fx_display_save_under, Fx_close_connection, Fxw_display_color_p)
774 (Fx_display_grayscale_p, Fx_display_pixel_width)
775 (Fx_display_pixel_height, Fx_display_planes)
776 (Fx_display_color_cells): Sync args and docstrings with xfns.c.
777 (Fx_display_screens): Don't confuse X11 screens with NS screens.
778 (Fx_display_mm_width, Fx_display_mm_height)
779 (Fx_display_pixel_width, Fx_display_pixel_width): Return width or
780 height for all physical monitors as in X11.
782 * nsterm.m (x_display_pixel_width, x_display_pixel_height):
783 Return pixel width or height for all physical monitors as in X11.
785 2013-05-18 Paul Eggert <eggert@cs.ucla.edu>
787 Port --enable-gcc-warnings to clang.
788 * bytecode.c (exec_byte_code):
790 Redo diagnostic pragmas to pacify clang, too.
791 * dbusbind.c (xd_retrieve_arg): Do not use uninitialized variable.
792 * editfns.c (Fencode_time):
793 * fileio.c (file_accessible_directory_p):
794 * font.c (font_unparse_xlfd):
795 Use '&"string"[index]' instead of '"string" + (index)'.
796 * undo.c (user_error): Remove; unused.
798 2013-05-16 Eli Zaretskii <eliz@gnu.org>
800 * insdel.c (insert_1_both): Document the arguments, instead of
801 referring to insert_1, which no longer exists.
803 * xdisp.c (message_dolog): If the *Messages* buffer is shown in
804 some window, increment windows_or_buffers_changed, so that
805 *Messages* display in that window is updated. (Bug#14408)
807 * w32.c: Include epaths.h.
808 (init_environment): Use cmdproxy.exe without leading directories.
809 Support emacs.exe in src; point SHELL to cmdproxy in ../nt in that
811 (gettimeofday): Adjust signature and return value to Posix
814 * unexw32.c (open_output_file): Delete the existing emacs.exe
815 before creating it, to break the hard link to the versioned
818 * Makefile.in (EMACS_MANIFEST, CM_OBJ, TEMACS_POST_LINK)
819 (ADDSECTION, EMACS_HEAPSIZE, MINGW_TEMACS_POST_LINK)
820 (FIRSTFILE_OBJ): New variables.
821 (W32_RES): Rename to EMACSRES. All users changed.
822 (base_obj): Use $(CM_OBJ).
823 (ALLOBJS): Use $(FIRSTFILE_OBJ).
824 (emacs$(EXEEXT)): Depend on $(ADDSECTION).
825 (temacs$(EXEEXT)): Use $(TEMACS_POST_LINK), and move
826 $(W32_RES_LINK) before $(LIBES).
827 (emacs.res): Depend on $(EMACS_MANIFEST). Put emacs.rc in nt.
829 2013-05-15 Stefan Monnier <monnier@iro.umontreal.ca>
831 * makefile.w32-in (DOC): Use just "DOC".
833 * Makefile.in (bootstrap-clean): DOC-* doesn't exist any more.
835 * process.c: Export default filters and sentinels to Elisp.
836 (Qinternal_default_process_sentinel, Qinternal_default_process_filter):
838 (pset_filter, pset_sentinel, make_process, Fset_process_filter)
839 (Fset_process_sentinel, Fformat_network_address):
840 Default to them instead of nil.
841 (server_accept_connection): Sentinels can't be nil any more.
842 (read_and_dispose_of_process_output): New function, extracted from
844 (read_process_output): Use it; filters can't be nil.
845 (Finternal_default_process_filter): New function, extracted from
847 (exec_sentinel_unwind): Remove function.
848 (exec_sentinel): Don't zilch sentinel while running.
849 (status_notify): Sentinels can't be nil.
850 (Finternal_default_process_sentinel): New function extracted from
852 (setup_process_coding_systems): Default filter is not nil any more.
853 (syms_of_process): Export new Elisp functions and initialize
855 * lisp.h (make_lisp_proc): New function.
857 2013-05-15 Stefan Monnier <monnier@iro.umontreal.ca>
859 * regex.c (regex_compile) [\=, \>, \<]: Don't forget to set laststart.
861 2013-05-14 Eli Zaretskii <eliz@gnu.org>
863 * w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT
864 unless we know that the window w is a leaf window.
865 Another attempt at solving bug#14062.
867 2013-05-14 Jan Djärv <jan.h.d@swipnet.se>
869 * nsfont.m (ns_spec_to_descriptor): Retain and autorelease
872 2013-05-12 Paul Eggert <eggert@cs.ucla.edu>
874 * image.c (gif_load): Check that subimages fit (Bug#14345).
876 2013-05-09 Stefan Monnier <monnier@iro.umontreal.ca>
878 * lread.c (skip_dyn_eof): New function.
879 (read1): Use it to skip the end of a file in response to #@00.
881 * doc.c (get_doc_string): Slightly relax the sanity checking.
883 2013-05-09 Jan Djärv <jan.h.d@swipnet.se>
885 * nsfns.m: Include IOGraphicsLib.h if Cocoa.
886 (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Declare.
887 (MonitorInfo): New struct.
888 (free_monitors, ns_screen_name, ns_make_monitor_attribute_list)
889 (Fns_display_monitor_attributes_list): New functions.
890 (display-usable-bounds): Remove.
891 (syms_of_nsfns): DEFSYM Qgeometry, Qworkarea, Qmm_size, Qframes and
894 2013-05-09 Paul Eggert <eggert@cs.ucla.edu>
896 * xterm.h (GTK_PREREQ): Remove, replacing with GTK_CHECK_VERSION.
897 (GTK_CHECK_VERSION): New macro, if not already defined.
898 All uses of GTK_PREREQ, GTK_MAJOR_VERSION, etc.
899 replaced by GTK_CHECK_VERSION.
901 2013-05-08 Paul Eggert <eggert@cs.ucla.edu>
903 * xterm.h (GTK_PREREQ): New macro.
904 All simple uses of GTK_MAJOR_VERSION and GTK_MINOR_VERSION changed
905 to use this macro instead, for consistency and clarity.
907 2013-05-08 Eli Zaretskii <eliz@gnu.org>
909 * xdisp.c (row_for_charpos_p): New function, with code of
910 cursor_row_p, but accepts an additional argument CHARPOS instead
911 of using a hardcoded PT.
912 (cursor_row_p): Call row_for_charpos_p with 2nd argument PT.
913 (row_containing_pos): Call row_for_charpos_p instead of partially
914 doing the same. Fixes cursor positioning under longlines-mode
915 when longlines-show-effect includes more than one newline, when
916 moving the cursor vertically up.
918 2013-05-08 Juanma Barranquero <lekktu@gmail.com>
920 * makefile.w32-in (ACL_H): New macro.
921 ($(BLD)/fileio.$(O)): Update dependencies.
923 2013-05-07 Paul Eggert <eggert@cs.ucla.edu>
925 Use Gnulib ACL implementation, for benefit of Solaris etc. (Bug#14295)
926 * Makefile.in (LIB_ACL): New macro.
927 (LIBACL_LIBS): Remove.
928 (LIBES): Use LIB_ACL, not LIBACL_LIBS.
929 * fileio.c: Include <acl.h>.
930 Use HAVE_ACL_SET_FILE rather than HAVE_POSIX_ACL.
931 (ACL_NOT_WELL_SUPPORTED): Remove. All uses replaced by
933 (Fcopy_file) [!WINDOWSNT]: Use qcopy_acl instead of rolling
936 * unexelf.c: Don't assume ElfW (Half) fits in int.
937 (entry_address, find_section, unexec): Use ptrdiff_t, not int,
938 when dealing with ElfW (Half) values, since they can exceed 2**31
939 on 64-bit OpenBSD hosts. Problem reported privately by Han Boetes.
940 (entry_address): Omit unused NUM arg. All uses changed.
942 2013-05-07 Juri Linkov <juri@jurta.org>
944 * callint.c (Fcall_interactively): Set `visargs[i]' for code 'n'
945 to the string converted from number with `Fnumber_to_string'.
948 2013-05-07 Paul Eggert <eggert@cs.ucla.edu>
950 * xfns.c (x_get_net_workarea): Define only if !GTK || GTK<3.4.
951 This fixes a problem introduced by my previous change.
953 2013-05-07 Glenn Morris <rgm@gnu.org>
955 * lread.c (readchar): Don't read from a dead buffer. (Bug#14280)
957 2013-05-07 Jan Djärv <jan.h.d@swipnet.se>
959 * xfns.c: Move misplaced ifndef USE_GTK from previous checkin.
961 2013-05-07 Paul Eggert <eggert@cs.ucla.edu>
963 Static checking by GCC 4.8.0.
964 * xfns.c (x_get_net_workarea, struct MonitorInfo, free_monitors)
965 (x_get_monitor_for_frame, x_make_monitor_attribute_list)
966 (x_get_monitor_attributes_fallback)
967 (x_get_monitor_attributes_xinerama)
968 (x_get_monitor_attributes_xrandr, x_get_monitor_attributes):
969 Define only if USE_GTK.
970 (free_monitors): Define only if HAVE_XINERAMA || HAVE_XRANDR.
971 (x_get_monitor_attributes_fallback): Omit unused locals.
972 (x_get_monitor_attributes_xinerama, Fx_display_monitor_attributes_list):
973 Use double, not float, to avoid mixed-mode floating point arithmetic.
975 2013-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
976 Jan Djärv <jan.h.d@swipnet.se>
978 * Makefile.in (XRANDR_LIBS, XRANDR_CFLAGS, XINERAMA_LIBS)
979 (XINERAMA_CFLAGS): New macros.
980 (ALL_CFLAGS, LIBES): Use them.
982 * xfns.c: Include <X11/extensions/Xrandr.h> if HAVE_XRANDR, and
983 include <X11/extensions/Xinerama.h> if HAVE_XINERAMA.
984 (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): New variables.
985 (syms_of_xfns): DEFSYM them.
986 (struct MonitorInfo): New struct.
987 (x_get_net_workarea, free_monitors, x_get_monitor_for_frame)
988 (x_make_monitor_attribute_list, x_get_monitor_attributes_fallback)
989 (x_get_monitor_attributes_xrandr, x_get_monitor_attributes)
990 (x_get_monitor_attributes_xinerama): New functions.
991 (Fx_display_monitor_attributes_list): New primitive.
992 (syms_of_xfns): Defsubr it.
994 * xterm.h (x_display_info): Add Xatom_net_workarea and
995 Xatom_net_current_desktop.
997 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_net_workarea
998 and dpyinfo->Xatom_net_current_desktop.
1000 2013-05-06 Eli Zaretskii <eliz@gnu.org>
1002 * xdisp.c (pos_visible_p): Use the special code for finding the
1003 beginning of a display property or overlay for any "replacing"
1004 display property, not just for display strings. This solves
1005 incorrect reporting of position by posn-at-point. (Bug#14241)
1007 2013-05-06 Paul Eggert <eggert@cs.ucla.edu>
1009 * unexelf.c: Fix some 32-bit integer problems, notably when debugging.
1010 Include <limits.h>, <stdbool.h>, <intprops.h>, <verify.h>.
1011 Verify that ElfW (Half) fits in int.
1012 (fatal): Use same signature as lisp.h.
1013 (UNEXELF_DEBUG): New macro, replacing DEBUG, so that people can
1014 configure and build with -DUNEXELF_DEBUG without worrying about
1015 other modules that use DEBUG.
1016 (DEBUG_LOG) [UNEXELF_DEBUG]: New macro. All debug code that prints
1017 possibly-wide integers now uses it instead of plain fprintf.
1018 (entry_address): New function, which avoids problems with 32-bit
1019 overflow on 64-bit hosts.
1020 (OLD_SECTION_H, NEW_SECTION_H, NEW_PROGRAM_H): Use it.
1021 (round_up): Don't assume the remainder fits in int.
1022 (find_section): Use bool for boolean. Simplify debug code.
1023 (unexec): Don't assume file sizes fit in int or size_t.
1024 Omit unnecessary trailing newline in 'fatal' format.
1025 Use strerror rather than outputting decimal error number.
1026 Remove unused code when emacs is not defined;
1027 this file relies on Emacs now.
1028 Don't assume e_phnum and e_shnum are positive.
1030 * regex.c: Fix problems when DEBUG is defined.
1031 (extract_number, extract_number_and_incr): Define regardless of
1032 whether DEBUG is defined; that's simpler and makes the code less
1033 likely to go stale in the normal case when DEBUG is not defined.
1034 Return int rather than taking an int * arg. All callers changed.
1035 (DEBUG_PRINT1, DEBUG_PRINT2, DEBUG_PRINT3, DEBUG_PRINT4):
1036 Remove, replacing with ...
1037 (DEBUG_PRINT): New macro. All callers changed.
1038 (DEBUG_COMPILES_ARGUMENTS): New macro.
1039 (print_fastmap, print_partial_compiled_pattern) [DEBUG]:
1040 (print_compiled_pattern, print_double_string) [DEBUG]:
1041 Use prototype rather than old-style definition.
1042 (print_partial_compiled_pattern, print_compiled_pattern) [DEBUG]:
1043 (ENSURE_FAIL_STACK, PUSH_FAILURE_REG) [DEBUG]:
1044 (POP_FAILURE_REG_OR_COUNT, PUSH_FAILURE_POINT) [DEBUG]:
1045 (POP_FAILURE_POINT, re_match_2_internal) [DEBUG]:
1046 Don't assume ptrdiff_t, size_t, and long are the same width as int.
1047 (POINTER_TO_OFFSET): Return ptrdiff_t, not regoff_t.
1048 This matters only when DEBUG is defined.
1050 2013-05-05 Eli Zaretskii <eliz@gnu.org>
1052 * xdisp.c (set_iterator_to_next): Set the
1053 ignore_overlay_strings_at_pos_p flag only if we are _really_
1054 iterating over an overlay string, as indicated by the
1055 current.overlay_string_index member. (Bug#14306)
1057 2013-05-05 Jan Djärv <jan.h.d@swipnet.se>
1059 * nsmenu.m (ns_update_menubar): Move initialization of submenuTitle
1060 to where it is used, to avoid autorelease issues (Bug#14050).
1062 2013-05-05 Paul Eggert <eggert@cs.ucla.edu>
1064 `write-region-inhibit-fsync' defaults to noninteractive (Bug#14273).
1065 * fileio.c (syms_of_fileio): Implement this.
1066 * filelock.c (create_lock_file): If symbolic links don't work, so
1067 we use a regular file as a lock file, do not fsync the lock file;
1070 2013-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1072 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Move to Elisp.
1073 (syms_of_minibuf): Adjust accodingly.
1075 * callint.c (Fcall_interactively): Adjust calls accordingly.
1077 2013-05-04 Eli Zaretskii <eliz@gnu.org>
1079 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P): Verify that
1080 w->contents is a buffer before computing everything else.
1081 Use parentheses to disambiguate last part of the condition.
1083 * w32fns.c (w32_wnd_proc): Remove temporary code used to trap
1084 assertion violations. (Bug#14062)
1086 2013-05-01 David Reitter <david.reitter@gmail.com>
1088 * nsfns.m (ns_tooltip): Initialize.
1090 2013-04-28 Eli Zaretskii <eliz@gnu.org>
1092 * coding.c (decode_coding_gap): Don't remove the character before
1093 a newline unless it's a CR character. (Bug#14287)
1095 2013-04-28 Dan Nicolaescu <dann@gnu.org>
1097 * dispextern.h (struct face): Move enum face_underline_type
1098 earlier so that bitfields can be in the same word.
1100 2013-04-28 Jan Djärv <jan.h.d@swipnet.se>
1102 * nsfns.m (handlePanelKeys): New function.
1103 (EmacsOpenPanel:performKeyEquivalent:)
1104 (EmacsSavePanel:performKeyEquivalent:): Call handlePanelKeys to handle
1105 arrows/function/control and copy/paste keys (Bug#14296).
1107 2013-04-27 Juri Linkov <juri@jurta.org>
1109 * callint.c (Fcall_interactively): Call `Qread_number' for
1110 interactive code letter `n' instead of using duplicate code.
1113 2013-04-27 Paul Eggert <eggert@cs.ucla.edu>
1115 * systime.h (make_timeval): Declare as 'const'.
1117 2013-04-27 Kenichi Handa <handa@gnu.org>
1119 * font.c (font_open_entity): Always open a font of manageable
1122 2013-04-26 Paul Eggert <eggert@cs.ucla.edu>
1124 Port better to AIX (Bug#14258).
1125 * lisp.h (ENUM_BF) [__IBMC__]: Make it 'unsigned int' here, too,
1128 2013-04-24 Kenichi Handa <handa@gnu.org>
1130 * coding.c (decode_coding_iso_2022): When an invalid escape
1131 sequence is encountered, reset the invocation and designation
1132 status to the safest one.
1134 2013-04-22 Paul Eggert <eggert@cs.ucla.edu>
1136 * Makefile.in (bootstrap-clean): Remove stamp-h1 too.
1137 Without this fix, "make distclean" leaves stamp-h1 behind.
1139 2013-04-20 Erik Charlebois <erikcharlebois@gmail.com>
1141 * w32fns.c (w32_fullscreen_rect): New function to compute the
1142 window rectangle for the given fullscreen mode.
1143 (w32_wnd_proc): When in a fullscreen mode, WM_WINDOWPOSCHANGING no
1144 longer tunes the window size. This keeps the window's edges flush
1145 with the screen and allows the taskbar to hide itself in fullboth.
1147 * w32term.c (w32fullscreen_hook): 'fullboth' now shows without
1148 window decorations and uses the entire screen.
1150 * w32term.h (w32_fullscreen_rect) Add prototype.
1151 (struct w32_output): Replace normal_width, normal_height,
1152 normal_top, and normal_left members with a single normal_placement
1154 (FRAME_NORMAL_WIDTH, FRAME_NORMAL_HEIGHT, FRAME_NORMAL_TOP):
1156 (FRAME_NORMAL_PLACEMENT): New macro.
1158 2013-04-16 Juanma Barranquero <lekktu@gmail.com>
1160 * minibuf.c (Ftest_completion): Silence compiler warning.
1162 2013-04-15 Eli Zaretskii <eliz@gnu.org>
1164 * w32fns.c (w32_wnd_proc): Add more assertions to investigate
1167 * frame.h (WINDOW_FRAME): Protect macro and its argument with
1170 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
1171 (CURRENT_HEADER_LINE_HEIGHT, WINDOW_WANTS_MODELINE_P)
1172 (WINDOW_WANTS_HEADER_LINE_P): Protect macro arguments with
1173 parentheses where appropriate.
1175 2013-04-14 Paul Eggert <eggert@cs.ucla.edu>
1177 * keyboard.c (timer_start_idle): Remove no-longer-used local.
1179 2013-04-14 Eli Zaretskii <eliz@gnu.org>
1181 * buffer.c (syms_of_buffer) <left-margin-width, right-margin-width>
1182 <left-fringe-width, right-fringe-width, fringes-outside-margins>:
1183 Mention in the doc string that setting these variables takes
1184 effect only after a call to set-window-buffer. (Bug#14200)
1186 2013-04-13 Eli Zaretskii <eliz@gnu.org>
1188 * indent.c (Fvertical_motion): Don't consider display strings on
1189 overlay strings as display strings on the buffer position we
1190 started from. This prevents vertical cursor motion from jumping
1191 more than one line when there's an overlay string with a display
1192 property at end of line.
1193 Reported by Karl Chen <Karl.Chen@quarl.org> in
1194 http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00362.html.
1196 2013-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1198 * window.c (select_window): `record_buffer' even if window is
1199 already selected (bug#14191).
1201 2013-04-11 Eli Zaretskii <eliz@gnu.org>
1203 * window.c (Fwindow_end): Test more flags, including the buffer's
1204 last_overlay_modified flag, to determine whether the window's
1205 display is really up-to-date. Prevents the function from
1206 returning a stale value. (Bug#14170)
1207 (Fwindow_line_height): Fix the test for up-to-date-ness of the
1210 2013-04-10 Eli Zaretskii <eliz@gnu.org>
1212 * frame.c (do_switch_frame): Mark the TTY frame we switch to as
1213 garbaged only if it is not already the top frame on its TTY.
1214 This prevents flickering due to constant redrawing of TTY frames when
1215 there are GUI frames open in the same session. (Bug#13864)
1217 2013-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
1219 * keyboard.c (timer_start_idle): Call internal-timer-start-idle instead
1220 of marking the idle timers directly.
1222 2013-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1224 * minibuf.c (Ftest_completion): Ignore non-string/symbol keys in hash
1227 2013-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
1229 * window.c (select_window): Don't record_buffer while the invariant is
1230 temporarily broken (bug#14161).
1232 * fns.c (Fdelq): Don't assume !NILP => CONSP.
1234 2013-04-07 Eli Zaretskii <eliz@gnu.org>
1236 * fileio.c (ACL_NOT_WELL_SUPPORTED): Define macro for WINDOWSNT.
1238 2013-04-07 Romain Francoise <romain@orebokech.com>
1240 Ignore additional platform-specific ACL errors (Bug#13702).
1241 * fileio.c (ACL_NOT_WELL_SUPPORTED): New macro copied from gnulib.
1242 (Fcopy_file, Fset_file_acl) [HAVE_POSIX_ACL]: Use it.
1244 2013-03-31 Jan Djärv <jan.h.d@swipnet.se>
1246 * nsterm.m (ns_mouse_position): Use NS_FRAME_P instead of checking
1249 2013-04-07 Paul Eggert <eggert@cs.ucla.edu>
1251 Fix --enable-profiling bug introduced by 2013-02-25 change (Bug#13783).
1252 This bug was introduced by my 2013-02-25 change that simplified
1253 data_start configuration. Without this change, on GNU/Linux
1254 an Emacs configured with --enable-profiling fails immediately
1255 due to a profiler signal.
1256 * Makefile.in: Compile with $(PROFILING_CFLAGS), but do not link
1257 with these flags. On platforms where special flags are needed
1258 when linking temacs, the flags are now in LD_SWITCH_SYSTEM_TEMACS.
1259 (ALL_CFLAGS): Remove $(PROFILING_CFLAGS).
1260 (.c.o, .m.o): Compile with $(PROFILING_CFLAGS).
1262 2013-04-07 Dmitry Antipov <dmantipov@yandex.ru>
1264 Get rid of some platform-specific functions examining window
1265 system and its capabilities. This is a partial rework of the
1267 * lisp.h (have_menus_p): Remove prototype. This function is
1268 replaced with platform-independent window_system_available.
1269 (check_window_system): Move to...
1270 * frame.h (decode_window_system_frame, window_system_available):
1271 ...here, add new prototypes.
1272 * frame.c (window_system_available, decode_window_system_frame):
1274 (check_window_system): Platform-independent now.
1275 * xterm.h (x_in_use): Remove declaration.
1277 * w32term.h (check_x_frame):
1278 * nsterm.h (check_x_frame): Remove prototypes. This function
1279 is replaced with platform-independent decode_window_system_frame.
1280 * msdos.c (have_menus_p): Remove.
1281 * nsfns.m (check_window_system, have_menus_p, check_ns_frame):
1282 Remove platform-specific functions. Use check_window_system,
1283 decode_window_system_frame and check_ns_display_info where
1284 appropriate. Minor style and comment tweaks.
1285 * w32fns.c (w32_in_use, check_window_system, have_menus_p)
1286 (check_x_frame): Likewise.
1287 * xfns.c (x_in_use, check_window_system, have_menus_p, check_x_frame):
1289 * fileio.c, fns.c, font.c, fontset.c, image.c, menu.c, nsmenu.m:
1290 * nsselect.m, nsterm.m, w32font.c, w32menu.c, xfaces.c, xgselect.c:
1291 * xmenu.c, xselect.c: All related users changed.
1293 2013-04-03 Kenichi Handa <handa@gnu.org>
1295 The following changes is to optimize the code for reading UTF-8
1298 * coding.c (check_ascii): Rename from detect_ascii. Return value
1299 changed. Check EOL format. Do not call adjust_coding_eol_type
1301 (check_utf_8): New function.
1302 (adjust_coding_eol_type): Do nothing if already adjusted.
1303 (detect_coding): Compare the return value of check_ascii with
1304 coding->src_bytes. Call adjust_coding_eol_type if necessary.
1305 (decode_coding_gap): Optimize for valid UTF-8.
1307 2013-03-21 Kenichi Handa <handa@gnu.org>
1309 * coding.c (syms_of_coding): Cancel previous change.
1311 * insdel.c (insert_from_gap): Fix previous change.
1313 2013-04-05 Dmitry Antipov <dmantipov@yandex.ru>
1315 Consistently use platform-specific function to detect window system.
1316 * lisp.h (check_window_system): New prototype. This function is
1317 going to replace check_x, check_w32 and check_ns.
1318 (have_menus_p): Mention msdos.c in comment.
1319 * fontset.c (check_window_system_func): Remove. Adjust all users.
1320 * fontset.h (check_window_system_func): Remove prototype.
1321 * nsterm.h (check_ns):
1322 * xterm.h (check_x):
1323 * w32term.h (check_w32): Likewise.
1324 * menu.c (Fx_popup_menu): Use check_window_system.
1325 * msdos.c (check_window_system): Define for MS-DOS.
1326 * nsfns.m (check_window_system): Define for NS. Adjust all users.
1327 * w32fns.c (check_window_system): Likewise for MS-Windows.
1328 * xfns.c (check_window_system): Likewise for X.
1329 * font.c, frame.c, nsmenu.m, nsselect.m, nsterm.m, w32menu.c:
1330 * xfaces.c, xmenu.c: Use check_window_system where appropriate.
1332 2013-04-02 Paul Eggert <eggert@cs.ucla.edu>
1334 Prefer < to > in range checks such as 0 <= i && i < N.
1335 This makes it easier to visualize quantities on a number line.
1336 This patch doesn't apply to all such range checks,
1337 only to the range checks affected by the 2013-03-24 change.
1338 This patch reverts most of the 2013-03-24 change.
1339 * alloc.c (xpalloc, Fgarbage_collect):
1340 * ccl.c (ccl_driver, resolve_symbol_ccl_program):
1341 * character.c (string_escape_byte8):
1342 * charset.c (read_hex):
1343 * data.c (cons_to_unsigned):
1344 * dispnew.c (update_frame_1):
1345 * doc.c (Fsubstitute_command_keys):
1346 * doprnt.c (doprnt):
1347 * editfns.c (hi_time, decode_time_components):
1348 * fileio.c (file_offset):
1349 * fns.c (larger_vector, make_hash_table, Fmake_hash_table):
1350 * font.c (font_intern_prop):
1351 * frame.c (x_set_alpha):
1352 * gtkutil.c (get_utf8_string):
1353 * indent.c (check_display_width):
1354 * keymap.c (Fkey_description):
1355 * lisp.h (FIXNUM_OVERFLOW_P, vcopy):
1357 * minibuf.c (read_minibuf_noninteractive):
1358 * process.c (wait_reading_process_output):
1359 * search.c (Freplace_match):
1360 * window.c (get_phys_cursor_glyph):
1361 * xdisp.c (redisplay_internal):
1362 * xsmfns.c (smc_save_yourself_CB):
1363 Prefer < to > for range checks.
1364 * dispnew.c (sit_for): Don't mishandle NaNs.
1365 This fixes a bug introduced in the 2013-03-24 change.
1366 * editfns.c (decode_time_components): Don't hoist comparison.
1367 This fixes another bug introduced in the 2013-03-24 change.
1369 2013-03-31 Dmitry Antipov <dmantipov@yandex.ru>
1371 * frame.h (struct frame): Drop scroll_bottom_vpos
1372 member becaue all real users are dead long ago.
1373 (FRAME_SCROLL_BOTTOM_VPOS): Remove.
1374 * xdisp.c (redisplay_internal): Adjust user.
1376 2013-03-30 Darren Ho <darren.hoo@gmail.com> (tiny change)
1378 * nsmenu.m (showAtX:Y:for:): setLevel to
1379 NSPopUpMenuWindowLevel (Bug#13998).
1381 2013-03-30 Jan Djärv <jan.h.d@swipnet.se>
1383 * nsterm.h (ns_get_pending_menu_title, ns_check_menu_open)
1384 (ns_check_pending_open_menu): Declare.
1386 * nsmenu.m (ns_update_menubar): Correct NSTRACE.
1387 (x_activate_menubar): Update the menu with title that matches
1388 ns_get_pending_menu_title, and call
1389 ns_check_pending_openmenu (Bug#12698).
1390 (menuWillOpen:): New method.
1391 (menuNeedsUpdate:): Add check for ! COCOA || OSX < 10.5 (Bug#12698).
1393 * nsterm.m (menu_will_open_state, menu_mouse_point)
1394 (menu_pending_title): New varaibles.
1395 (ns_get_pending_menu_title, ns_check_menu_open)
1396 (ns_check_pending_open_menu): New functions.
1398 2013-03-29 Dmitry Antipov <dmantipov@yandex.ru>
1400 * indent.c (current_column_bol_cache): Remove leftover which is not
1401 used in Fmove_to_column any more.
1402 (current_column, scan_for_column): Adjust users.
1403 * keyboard.c (last_point_position_buffer, last_point_position_window):
1404 Remove leftovers which are not used for recording undo any more.
1405 (command_loop_1, syms_of_keyboard): Adjust users.
1406 * xdisp.c (last_max_ascent): Remove leftover which is not used in
1407 redisplay_window any more.
1408 (move_it_to): Adjust user.
1410 2013-03-29 Juanma Barranquero <lekktu@gmail.com>
1412 * makefile.w32-in ($(BLD)/filelock.$(O), $(BLD)/filelock.$(O)):
1413 Update dependencies.
1415 2013-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1417 * lisp.h (save_type, XSAVE_POINTER, set_save_pointer, XSAVE_INTEGER)
1418 (set_save_integer, XSAVE_OBJECT, XSAVE_VALUE): Move to avoid
1421 2013-03-28 Dmitry Antipov <dmantipov@yandex.ru>
1423 * window.h (struct window): Replace hchild, vchild and buffer slots
1424 with the only contents slot. This is possible because each valid
1425 window may have either the child window (in vertical or horizontal
1426 combination) or buffer to display (for the leaf window). Using that,
1427 a lof of operations to traverse and/or change window hierarchies may
1428 be simplified. New member horizontal is used to distinguish between
1429 horizontal and vertical combinations of internal windows.
1430 (WINDOW_LEAF_P, WINDOW_HORIZONTAL_COMBINATION_P)
1431 (WINDOW_VERTICAL_COMBINATION_P): New macros.
1432 (WINDOW_VALID_P, WINDOW_LIVE_P): Adjust to match struct window changes.
1433 * window.c (wset_hchild, wset_vchild): Remove. Adjust all users.
1434 Use contents slot, not buffer, where appropriate.
1435 (wset_combination): New function.
1436 (wset_buffer): Add eassert.
1437 (Fframe_first_window): Simplify the loop reaching first window.
1438 (Fwindow_buffer): Use WINDOW_LEAF_P.
1439 (Fwindow_top_child): Use WINDOW_VERTICAL_COMBINATION_P.
1440 (Fwindow_left_child): Use WINDOW_HORIZONTAL_COMBINATION_P.
1441 (unshow_buffer): Convert initial debugging check to eassert.
1442 (replace_window, recombine_windows, Fdelete_other_windows_internal)
1443 (make_parent_window, window_resize_check, window_resize_apply)
1444 (resize_frame_windows, Fsplit_window_internal, Fdelete_window_internal)
1445 (Fset_window_configuration, delete_all_child_windows, save_window_save):
1446 Adjust to match struct window changes.
1447 (window_loop): Check for broken markers in CHECK_ALL_WINDOWS.
1448 (mark_window_cursors_off, count_windows, get_leaf_windows)
1449 (foreach_window_1): Simplify the loop.
1450 * alloc.c (mark_object): Do not check for the leaf window because
1451 internal windows has no glyph matrices anyway.
1452 * dispnew.c (clear_window_matrices, showing_window_margins_p)
1453 (allocate_matrices_for_window_redisplay, fake_current_matrices)
1454 (allocate_matrices_for_frame_redisplay, free_window_matrices)
1455 (build_frame_matrix_from_window_tree, mirror_make_current)
1456 (frame_row_to_window, mirror_line_dance, check_window_matrix_pointers)
1457 (update_window_tree, set_window_update_flags): Simplify the loop.
1458 (sync_window_with_frame_matrix_rows): Enforce live window.
1459 Use contents slot, not buffer, where appropriate.
1460 * frame.c (set_menu_bar_lines_1): Use WINDOW_VERTICAL_COMBINATION_P
1461 and WINDOW_HORIZONTAL_COMBINATION_P.
1462 (make_frame_visible_1): Simplify the loop.
1463 Use contents slot, not buffer, where appropriate.
1464 * xdisp.c (hscroll_window_tree, mark_window_display_accurate)
1465 (redisplay_windows, redisplay_mode_lines, update_cursor_in_window_tree)
1466 (expose_window_tree): Likewise.
1467 Use contents slot, not buffer, where appropriate.
1468 * textprop.c (get_char_property_and_overlay): Add CHECK_LIVE_WINDOW
1469 to avoid deleted windows. Use contents slot instead of buffer.
1470 * buffer.c, dispextern.h, editfns.c, fileio.c, font.c, fringe.c:
1471 * indent.c, insdel.c, keyboard.c, keymap.c, minibuf.c, msdos.c:
1472 * nsfns.m, nsmenu.m, nsterm.m, print.c, w32fns.c, w32menu.c, xfaces.c:
1473 * xfns.c, xmenu.c: Use contents slot, not buffer, where appropriate.
1475 2013-03-28 Eli Zaretskii <eliz@gnu.org>
1477 * w32fns.c (w32_wnd_proc) [ENABLE_CHECKING]: Add code to help
1478 identify the reasons for assertion violations in bug#14062 and
1480 (Fx_show_tip): Fix compilation error under
1481 "--enable-check-lisp-object-type". (Bug#14073)
1483 * image.c (g_error_free) [WINDOWSNT]: Add DEF_IMGLIB_FN.
1484 Reported by <rzl24ozi@gmail.com>.
1486 2013-03-28 Dmitry Antipov <dmantipov@yandex.ru>
1488 * xdisp.c (with_echo_area_buffer_unwind_data): Save window
1490 (unwind_with_echo_area_buffer): ...to restore it here.
1491 This is needed to ensure that...
1492 (redisplay_window): ...both window markers are valid here,
1493 which is verified by eassert.
1494 * editfns.c (save_excursion_save): Do not assume that
1495 selected_window always displays the buffer.
1496 * buffer.c (Fbuffer_swap_text): Adjust window start markers.
1499 2013-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
1501 * casetab.c (init_casetab_once): Don't abuse the ascii eqv table for
1504 2013-03-27 rzl24ozi <rzl24ozi@gmail.com> (tiny changes)
1506 * image.c [WINDOWSNT]: Fix calls to DEF_IMGLIB_FN for SVG function.
1508 2013-03-27 Eli Zaretskii <eliz@gnu.org>
1510 * w32proc.c (IsValidLocale) [__GNUC__]: Don't declare prototype,
1511 since MinGW's w32api headers do. This avoids compiler warnings.
1513 * w32.c (FSCTL_GET_REPARSE_POINT) [_MSC_VER || _W64]: Don't define
1516 2013-03-26 Eli Zaretskii <eliz@gnu.org>
1518 * w32.c (_REPARSE_DATA_BUFFER): Condition by _MSVC and _W64.
1520 2013-03-26 Jan Djärv <jan.h.d@swipnet.se>
1522 * gtkutil.c (style_changed_cb): Check if frame is live and an
1523 X frame (Bug#14038).
1525 2013-03-26 Eli Zaretskii <eliz@gnu.org>
1527 * w32.c (_PROCESS_MEMORY_COUNTERS_EX) [_WIN32_WINNT < 0x0500]:
1528 Define only for _WIN32_WINNT less than 0x0500.
1529 (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT) [!_W64]: Don't define for
1531 Move inclusion of time.h before sys/time.h, so that MinGW64 could
1532 see its own definitions of 'struct timeval' and 'struct timezone'.
1534 Fix incompatibilities between MinGW.org and MinGW64 headers.
1535 * w32term.c (WCRANGE, GLYPHSET): Don't define if _W64 is defined.
1537 * w32.c (REPARSE_DATA_BUFFER): Guard with
1538 MAXIMUM_REPARSE_DATA_BUFFER_SIZE being defined.
1540 2013-03-25 Jan Djärv <jan.h.d@swipnet.se>
1542 * xterm.c: Include X11/XKBlib.h
1543 (XTring_bell): Use XkbBell if HAVE_XKB (Bug#14041).
1545 2013-03-24 Andreas Schwab <schwab@linux-m68k.org>
1547 * alloc.c (xpalloc, Fgarbage_collect): Reorder conditions that are
1549 * blockinput.h (input_blocked_p): Likewise.
1550 * bytecode.c (exec_byte_code): Likewise.
1551 * callproc.c (call_process_kill, call_process_cleanup)
1552 (Fcall_process): Likewise.
1553 * ccl.c (ccl_driver, resolve_symbol_ccl_program)
1554 (Fccl_execute_on_string): Likewise.
1555 * character.c (string_escape_byte8): Likewise.
1556 * charset.c (read_hex): Likewise.
1557 * cm.c (calccost): Likewise.
1558 * data.c (cons_to_unsigned): Likewise.
1559 * dired.c (directory_files_internal, file_name_completion):
1561 * dispnew.c (scrolling_window, update_frame_1, Fsleep_for)
1562 (sit_for): Likewise.
1563 * doc.c (Fsubstitute_command_keys): Likewise.
1564 * doprnt.c (doprnt): Likewise.
1565 * editfns.c (hi_time, decode_time_components, Fformat): Likewise.
1566 * emacsgtkfixed.c: Likewise.
1567 * fileio.c (file_offset, Fwrite_region): Likewise.
1568 * floatfns.c (Fexpt, fmod_float): Likewise.
1569 * fns.c (larger_vector, make_hash_table, Fmake_hash_table):
1571 * font.c (font_intern_prop): Likewise.
1572 * frame.c (x_set_alpha): Likewise.
1573 * gtkutil.c (get_utf8_string): Likewise.
1574 * indent.c (check_display_width): Likewise.
1575 * intervals.c (create_root_interval, rotate_right, rotate_left)
1576 (split_interval_right, split_interval_left)
1577 (adjust_intervals_for_insertion, delete_node)
1578 (interval_deletion_adjustment, adjust_intervals_for_deletion)
1579 (merge_interval_right, merge_interval_left, copy_intervals)
1580 (set_intervals_multibyte_1): Likewise.
1581 * keyboard.c (gobble_input, append_tool_bar_item): Likewise.
1582 * keymap.c (Fkey_description): Likewise.
1583 * lisp.h (FIXNUM_OVERFLOW_P, vcopy): Likewise.
1584 * lread.c (openp, read_integer, read1, string_to_number):
1586 * menu.c (ensure_menu_items): Likewise.
1587 * minibuf.c (read_minibuf_noninteractive): Likewise.
1588 * print.c (printchar, strout): Likewise.
1589 * process.c (create_process, Faccept_process_output)
1590 (wait_reading_process_output, read_process_output, send_process)
1591 (wait_reading_process_output): Likewise.
1592 * profiler.c (make_log, handle_profiler_signal): Likewise.
1593 * regex.c (re_exec): Likewise.
1594 * regex.h: Likewise.
1595 * search.c (looking_at_1, Freplace_match): Likewise.
1596 * sysdep.c (get_child_status, procfs_ttyname)
1597 (procfs_get_total_memory): Likewise.
1598 * systime.h (EMACS_TIME_VALID_P): Likewise.
1599 * term.c (dissociate_if_controlling_tty): Likewise.
1600 * window.c (get_phys_cursor_glyph): Likewise.
1601 * xdisp.c (init_iterator, redisplay_internal, redisplay_window)
1602 (try_window_reusing_current_matrix, try_window_id, pint2hrstr):
1604 * xfns.c (Fx_window_property): Likewise.
1605 * xmenu.c (set_frame_menubar): Likewise.
1606 * xselect.c (x_get_window_property, x_handle_dnd_message):
1608 * xsmfns.c (smc_save_yourself_CB): Likewise.
1609 * xterm.c (x_scroll_bar_set_handle): Likewise.
1611 2013-03-24 Dmitry Antipov <dmantipov@yandex.ru>
1613 * xfaces.c (Finternal_face_x_get_resource): Allow 3rd (frame) argument
1614 to be optional or nil. Adjust comment and convert it to docstring.
1615 * xselect.c (Fx_send_client_event): Rename to Fx_send_client_message.
1616 * frame.c (display_x_get_resource, Fx_get_resource): Break long line.
1618 2013-03-24 Paul Eggert <eggert@cs.ucla.edu>
1620 Static checking by GCC 4.8-20130319.
1621 * image.c (gif_load): Assume pass < 3 to pacify GCC.
1622 * process.c (Fset_process_datagram_address)
1623 (Fmake_network_process): Check get_lisp_to_sockaddr_size return value.
1624 * xdisp.c (get_char_face_and_encoding):
1625 (get_glyph_face_and_encoding): Ensure that *CHAR2B is initialized.
1626 (get_glyph_face_and_encoding): Prepare face before possibly using it.
1627 (get_per_char_metric): Don't use CHAR2B if it might not be initialized.
1629 2013-03-24 Ken Brown <kbrown@cornell.edu>
1631 * w32fns.c (emacs_abort) [CYGWIN]: Define `_open' as a macro to
1632 fix compilation on 64-bit Cygwin, where underscores are not
1633 automatically prepended.
1635 * w32term.c (w32_initialize): Silence compiler warning.
1637 2013-03-23 Eli Zaretskii <eliz@gnu.org>
1639 * w32term.c (w32fullscreen_hook): Use FRAME_NORMAL_WIDTH,
1640 FRAME_NORMAL_HEIGHT, and FRAME_PREV_FSMODE, instead of static
1641 variables, to save and restore frame dimensions.
1642 Use FRAME_NORMAL_LEFT and FRAME_NORMAL_TOP to restore frame position
1643 after returning from a 'fullscreen' configuration.
1644 use SendMessage instead of PostMessage to send the SC_RESTORE message,
1645 to avoid races between the main thread and the input thread.
1647 * w32term.h (struct w32_output): New members normal_width,
1648 normal_height, normal_top, normal_left, and prev_fsmode.
1649 (FRAME_NORMAL_WIDTH, FRAME_NORMAL_HEIGHT, FRAME_NORMAL_TOP)
1650 (FRAME_NORMAL_LEFT, FRAME_PREV_FSMODE): New macros to access these
1653 * w32term.c (w32fullscreen_hook): Record last value of the frame's
1654 'fullscreen' parameter. Always record previous width and height
1655 of the frame, except when switching out of maximized modes, so
1656 that they could be restored correctly, instead of resetting to the
1657 default frame dimensions. Send SC_RESTORE command to the frame,
1658 unless we are going to send SC_MAXIMIZE, to restore the frame
1659 resize hints in the mouse pointer shown by the window manager.
1662 * frame.c (get_frame_param): Now extern for WINDOWSNT as well.
1664 * lisp.h (get_frame_param): Adjust conditions for prototype
1667 2013-03-22 Ken Brown <kbrown@cornell.edu>
1669 * unexcw.c: Drop unneeded inclusion of w32common.h.
1670 (report_sheap_usage): Declare.
1671 (read_exe_header): Add magic numbers for x86_64.
1672 (fixup_executable): Fix printf format specifier for unsigned long
1675 2013-03-22 Dmitry Antipov <dmantipov@yandex.ru>
1677 * frame.h (struct frame): Put menu_bar_window under #ifdef
1678 because this member is not needed when X toolkit is in use.
1679 (fset_menu_bar_window):
1680 * dispnew.c (clear_current_matrices, clear_desired_matrices)
1681 (free_glyphs, update_frame):
1682 * xdisp.c (expose_frame): Likewise.
1683 (display_menu_bar): Likewise. Remove redundant eassert.
1684 * window.h (WINDOW_MENU_BAR_P): Always define to 0 if X
1687 2013-03-21 Paul Eggert <eggert@cs.ucla.edu>
1689 Use functions and constants to manipulate Lisp_Save_Value objects.
1690 This replaces code that used macros and strings and token-pasting.
1691 The change makes the C source a bit easier to follow,
1692 and shrinks the Emacs executable a bit.
1693 * alloc.c: Verify some properties of Lisp_Save_Value's representation.
1694 (make_save_value): Change 1st arg from string to enum. All callers
1697 (mark_object): Use if, not #if, for GC_MARK_STACK.
1698 * lisp.h (SAVE_VALUEP, XSAVE_VALUE, XSAVE_POINTER, XSAVE_INTEGER)
1699 (XSAVE_OBJECT): Now functions, not macros.
1700 (STRING_BYTES_BOUND): Now just a macro, not a constant too;
1701 the constant was never used.
1702 (SAVE_SLOT_BITS, SAVE_VALUE_SLOTS, SAVE_TYPE_BITS, SAVE_TYPE_INT_INT)
1703 (SAVE_TYPE_INT_INT_INT, SAVE_TYPE_OBJ_OBJ, SAVE_TYPE_OBJ_OBJ_OBJ)
1704 (SAVE_TYPE_OBJ_OBJ_OBJ_OBJ, SAVE_TYPE_PTR_INT, SAVE_TYPE_PTR_OBJ)
1705 (SAVE_TYPE_PTR_PTR, SAVE_TYPE_PTR_PTR_OBJ, SAVE_TYPE_MEMORY):
1707 (struct Lisp_Save_Value): Replace members area, type0, type1, type2,
1708 type3 with a single member save_type. All uses changed.
1709 (save_type, set_save_pointer, set_save_integer): New functions.
1710 * print.c (PRINTX): Remove.
1712 * alloc.c: Remove redundant static declarations.
1714 2013-03-20 Dmitry Antipov <dmantipov@yandex.ru>
1716 * window.h (struct window): Convert left_col, top_line, total_lines
1717 and total_cols from Lisp_Objects to integers. Adjust comments.
1718 (wset_left_col, wset_top_line, wset_total_cols, wset_total_lines):
1720 (WINDOW_TOTAL_COLS, WINDOW_TOTAL_LINES, WINDOW_LEFT_EDGE_COL)
1721 (WINDOW_TOP_EDGE_LINE): Drop Lisp_Object to integer conversion.
1722 * dispnew.c, frame.c, w32fns.c, window.c, xdisp.c, xfns.c:
1723 Adjust users where appropriate.
1725 2013-03-20 Dmitry Antipov <dmantipov@yandex.ru>
1727 * frame.h (struct frame): Drop resx and resy because the same data is
1728 available from window system-specific output context. Adjust users.
1729 (default_pixels_per_inch_x, default_pixels_per_inch_y):
1730 New functions to provide defaults when no window system available.
1731 (FRAME_RES_X, FRAME_RES_Y): New macros.
1732 (NUMVAL): Move from xdisp.c.
1733 * font.c (font_pixel_size, font_find_for_lface, font_open_for_lface)
1734 (Ffont_face_attributes, Fopen_font):
1735 * image.c (gs_load):
1736 * w32font.c (fill_in_logfont):
1737 * xdisp.c (calc_pixel_width_or_height):
1738 * xfaces.c (Fx_family_fonts, set_lface_from_font): Use them.
1739 * xsettings.c (apply_xft_settings): Drop frame loop and adjust comment.
1741 2013-03-20 Kenichi Handa <handa@gnu.org>
1743 * coding.c (syms_of_coding): Initialize disable_ascii_optimization
1744 to 1 (temporary workaround until a bug related to ASCII
1745 optimization is fixed).
1747 2013-03-19 Dmitry Antipov <dmantipov@yandex.ru>
1749 * window.c (Fwindow_combination_limit, Fset_window_combination_limit):
1750 Signal error if window is not internal. Adjust docstring.
1751 (delete_all_child_windows): Use combination_limit to save the buffer.
1752 (Fset_window_configuration): Adjust accordingly.
1753 * print.c (syms_of_print): Initialize debugging output not here...
1754 (init_print_once): ...but in a new function here.
1755 * lisp.h (init_print_once): Add prototype.
1756 * emacs.c (main): Add call to init_print_once. Adjust comments.
1758 2013-03-18 Dmitry Antipov <dmantipov@yandex.ru>
1760 * window.c (window_resize_check, window_resize_apply)
1761 (window_from_coordinates, recombine_windows, set_window_buffer)
1762 (make_parent_window, Fwindow_resize_apply, resize_frame_windows)
1763 (Fsplit_window_internal, Fdelete_window_internal)
1764 (freeze_window_starts): Use bool for booleans.
1765 * window.h (window_frame_coordinates, resize_frame_windows)
1766 (freeze_window_starts, set_window_buffer): Adjust prototypes.
1768 2013-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1770 * dispnew.c (bitch_at_user): Use `user-error'.
1772 2013-03-17 Ken Brown <kbrown@cornell.edu>
1774 * dispextern.h (RGB_PIXEL_COLOR): Move here from image.c. Use it
1775 as return type of image_background. (Bug#13981)
1776 * image.c (RGB_PIXEL_COLOR): Move to dispextern.h.
1778 2013-03-16 Jan Djärv <jan.h.d@swipnet.se>
1780 * nsterm.m (updateFrameSize:): Change resize increments if needed.
1781 (ns_select): Don't return with result uninitialized.
1783 * nsterm.h (EmacsSavePanel, EmacsOpenPanel): Add getFilename
1786 * nsfns.m (ns_filename_from_panel, ns_directory_from_panel):
1788 (Fns_read_file_name): ret is BOOL. If ! dir_only_p, don't choose
1789 directories. If filename is nil, get directory name (Bug#13932).
1790 Use getFilename and getDirectory.
1791 (getFilename, getDirectory): New methods for EmacsSavePanel and
1793 (ok:): In EmacsOpenPanel, if we can't choose directories, just return.
1795 2013-03-15 Paul Eggert <eggert@cs.ucla.edu>
1797 * coding.c (decode_coding_gap): Fix typo caught by static checking.
1799 2013-03-15 Kenichi Handa <handa@gnu.org>
1801 * insdel.c (insert_from_gap): New arg text_at_gap_tail.
1802 (adjust_after_replace): Make it back to static. Delete the third
1803 arg text_at_gap_tail. Cancel the code for handling it.
1805 * coding.h (struct coding_system): New member eol_seen.
1807 * coding.c (detect_ascii): New function.
1808 (detect_coding): Set coding->head_ascii and coding->eol_seen only
1809 when the source bytes are actually scanned. On detecting for
1810 coding_category_utf_8_auto, call detect_ascii instead of scanning
1811 source bytes directly.
1812 (produce_chars): Call insert_from_gap with the new arg 0.
1813 (encode_coding): Likewise.
1814 (decode_coding_gap): Control ASCII optimization by the variable
1815 disable_ascii_optimization instead of #ifndef .. #endif.
1816 Deccode EOL format according to coding->eol_seen.
1817 (syms_of_coding): Declare disable-ascii-optimization as a Lisp
1820 * lisp.h (adjust_after_replace): Cancel externing it.
1821 (insert_from_gap): Adjust prototype.
1823 2013-03-15 Eli Zaretskii <eliz@gnu.org>
1825 * w32term.c (w32fullscreen_hook): Swap FULLSCREEN_BOTH and
1826 FULLSCREEN_MAXIMIZED. (Bug#13935)
1828 2013-03-15 Dmitry Antipov <dmantipov@yandex.ru>
1830 * region-cache.c (find_cache_boundary, move_cache_gap)
1831 (insert_cache_boundary, delete_cache_boundaries, set_cache_region):
1832 Simplify debugging check and convert to eassert. Adjust comment.
1833 (pp_cache): Put under ENABLE_CHECKING.
1835 2013-03-14 Eli Zaretskii <eliz@gnu.org>
1837 * w32term.c (w32_read_socket) <WM_WINDOWPOSCHANGED>: Remove old
1838 and incorrect code. Treat WM_WINDOWPOSCHANGED like WM_ACTIVATE
1840 (w32fullscreen_hook): If the frame is visible, reset
1841 f->want_fullscreen flag after changing the frame size. If the
1842 frame is not visible, set f->want_fullscreen to FULLSCREEN_WAIT.
1845 2013-03-13 Daniel Colascione <dancol@dancol.org>
1847 * emacs.c (main): Call syms_of_cygw32 on CYGWIN non-NTGUI builds
1848 too so that these builds can use Cygwin's file conversion
1849 functions. (We've been building and linking cygw32.o all along
1850 and just not using it.)
1852 2013-03-13 Paul Eggert <eggert@cs.ucla.edu>
1854 File synchronization fixes (Bug#13944).
1855 * Makefile.in (LIB_FDATASYNC): New macro.
1857 * conf_post.h (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
1858 * fileio.c (Fwrite_region, write_region_inhibit_fsync):
1859 Don't worry about HAVE_FSYNC, since a substitute fsync is
1860 available if the system lacks one.
1861 (Fwrite_regin): Retry fsync if interrupted.
1863 2013-03-13 Eli Zaretskii <eliz@gnu.org>
1865 * w32term.c (w32_read_socket): If the Emacs frame is being
1866 activated, call w32fullscreen_hook, to make sure the new frame
1867 dimensions are in effect. (Bug#13937)
1869 2013-03-13 Dmitry Antipov <dmantipov@yandex.ru>
1871 * xdisp.c (init_iterator): Simplify because both character and byte
1872 positions are either specified or -1. Add eassert. Adjust comment.
1873 * window.c (Fscroll_other_window): Use SET_PT_BOTH because both
1874 character and byte positions can be obtained from marker.
1876 2013-03-13 Paul Eggert <eggert@cs.ucla.edu>
1878 Static checking by Sun C 5.12.
1879 * alloc.c (buffer_memory_full) [REL_ALLOC]:
1880 * bytecode.c (exec_byte_code):
1881 * dispnew.c (init_display):
1883 * fileio.c (Fsubstitute_in_file_name):
1884 * keyboard.c (Fevent_convert_list):
1885 * keymap.c (Fsingle_key_description):
1886 * term.c (maybe_fatal, fatal):
1887 * xfns.c (Fx_display_backing_store, Fx_display_visual_class):
1888 * xsmfns.c (Fhandle_save_session):
1889 Omit unreachable code.
1890 * keymap.c (map_keymap_char_table_item): Cast void * to
1891 a function pointer type; the C Standard requires this.
1893 * sysdep.c: Remove a use of BSD_SYSTEM, which I'm trying to phase out.
1894 Include <sys/param.h> unconditionally, as that works elsewhere and
1895 is simpler here. Include <sys/sysctl.h> if DARWIN_OS ||
1896 __FreeBSD__, not if BSD_SYSTEM, since it's needed only for Darwin
1899 See ChangeLog.12 for earlier changes.
1905 Copyright (C) 2011-2013 Free Software Foundation, Inc.
1907 This file is part of GNU Emacs.
1909 GNU Emacs is free software: you can redistribute it and/or modify
1910 it under the terms of the GNU General Public License as published by
1911 the Free Software Foundation, either version 3 of the License, or
1912 (at your option) any later version.
1914 GNU Emacs is distributed in the hope that it will be useful,
1915 but WITHOUT ANY WARRANTY; without even the implied warranty of
1916 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1917 GNU General Public License for more details.
1919 You should have received a copy of the GNU General Public License
1920 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.