aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog725
1 files changed, 714 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b973b5b8d04..a2dfa5bf613 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,706 @@
12013-11-18 Eli Zaretskii <eliz@gnu.org>
2
3 * insdel.c (invalidate_buffer_caches): New function, consolidated
4 from part of prepare_to_modify_buffer.
5 (insert_from_gap, prepare_to_modify_buffer):
6 * coding.c (code_convert_region, code_convert_string): Call
7 invalidate_buffer_caches. (Bug#15841)
8
9 * lisp.h (invalidate_buffer_caches): Add prototype.
10
112013-11-17 Eli Zaretskii <eliz@gnu.org>
12
13 * w32term.c (x_update_window_end): Don't invalidate the entire
14 mouse-highlight info, just signal frame_up_to_date_hook that mouse
15 highlight needs to be redisplayed. (Bug#15913)
16
172013-11-17 Paul Eggert <eggert@cs.ucla.edu>
18
19 * lisp.h (DEBUGGER_SEES_C_MACROS): Remove.
20
212013-11-16 Eli Zaretskii <eliz@gnu.org>
22
23 * doc.c (Fsubstitute_command_keys): Inhibit modification hooks
24 while we are using Vprin1_to_string_buffer.
25
26 * keymap.c (describe_map): Don't crash if PT is 1 both before and
27 after inserting the description string. (Bug#15907)
28
292013-11-15 Paul Eggert <eggert@cs.ucla.edu>
30
31 * data.c: Work around bogus GCC diagnostic about shift count.
32 Reported by Eli Zaretskii in
33 <http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00489.html>.
34 (pre_value): New function.
35 (count_trailing_zero_bits): Use it.
36
372013-11-15 Eli Zaretskii <eliz@gnu.org>
38
39 * lisp.h (DEBUGGER_SEES_C_MACROS) [GCC < v3.5]: Pessimistically
40 assume C macros are not supported even under -g3 in these old GCC
41 versions.
42
432013-11-15 Leo Liu <sdl.web@gmail.com>
44
45 * minibuf.c (Ftry_completion, Fall_completions)
46 (Ftest_completion): Use FUNCTIONP. (Bug#15889)
47
482013-11-15 Paul Eggert <eggert@cs.ucla.edu>
49
50 * lisp.h (DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END):
51 Define to empty if DEBUGGER_SEES_C_MACROS is defined.
52 This avoids placing unnecessary constants into the Emacs code.
53
542013-11-14 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
55
56 * keyboard.c (make_ctrl_char) [HAVE_NTGUI]: Now externally visible
57 for Cygwin w32 build.
58
59 * xdisp.c (erase_phys_cursor) [HAVE_NTGUI]: Now externally visible
60 for Cygwin w32 build. (Bug#15892)
61
622013-11-14 Paul Eggert <eggert@cs.ucla.edu>
63
64 Simplify, port and tune bool vector implementation.
65 * alloc.c (bool_vector_exact_payload_bytes)
66 (bool_vector_payload_bytes): Remove.
67 (bool_vector_fill): Return its argument.
68 * alloc.c (bool_vector_fill):
69 * lread.c (read1):
70 * print.c (print_object):
71 Simplify by using bool_vector_bytes.
72 * alloc.c (make_uninit_bool_vector):
73 New function, broken out from Fmake_bool_vector.
74 (Fmake_bool_vector): Use it. Use tail call.
75 (make_uninit_bool_vector, vector_nbytes): Simplify size calculations.
76 * data.c (BITS_PER_ULL): New constant.
77 (ULLONG_MAX, count_one_bits_ll): Fall back on long counterparts
78 if long long versions don't exist.
79 (shift_right_ull): New function.
80 (count_one_bits_word): New function, replacing popcount_bits_word
81 macro. Don't assume that bits_word is no wider than long long.
82 (count_one_bits_word, count_trailing_zero_bits):
83 Don't assume that bits_word is no wider than long long.
84 * data.c (bool_vector_binop_driver, bool_vector_not):
85 * fns.c (Fcopy_sequence):
86 * lread.c (read1):
87 Create an uninitialized destination, to avoid needless work.
88 (internal_equal): Simplify.
89 (Ffillarray): Prefer tail call.
90 * data.c (bool_vector_binop_driver): Don't assume bit vectors always
91 contain at least one word.
92 (bits_word_to_host_endian): Prefer if to #if. Don't assume
93 chars are narrower than ints.
94 * data.c (Fbool_vector_count_matches, Fbool_vector_count_matches_at):
95 * fns.c (Fcopy_sequence):
96 Simplify and tune.
97 * lisp.h (bits_word, BITS_WORD_MAX, BITS_PER_BITS_WORD):
98 Don't try to port to hosts where bits_word values have holes; the
99 code wouldn't work there anyway. Verify this assumption, though.
100 (bool_vector_bytes): New function.
101 (make_uninit_bool_vector): New decl.
102 (bool_vector_fill): Now returns Lisp_Object.
103
104 * xfns.c (xic_create_fontsetname):
105 * xrdb.c (gethomedir): Prefer tail calls.
106
1072013-11-12 Paul Eggert <eggert@cs.ucla.edu>
108
109 * xterm.c (syms_of_xterm): staticpro Qmodifier_value, Qalt, Qhyper,
110 Qmeta, and Qsuper. This is safer, and it's what w32fns.c does.
111
112 * buffer.c (Fforce_mode_line_update): Don't fall off end of function
113 that requires a return value.
114 (Fset_buffer_modified_p): Take advantage of this change to do
115 a tail call.
116
1172013-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
118
119 * buffer.c (Frestore_buffer_modified_p): Sync it with
120 Fset_buffer_modified_p.
121 (Fforce_mode_line_update): New function, moved from subr.el.
122 (Fset_buffer_modified_p): Use them.
123 (syms_of_buffer): Defsubr Fforce_mode_line_update.
124
1252013-11-11 Paul Eggert <eggert@cs.ucla.edu>
126
127 * search.c (find_newline): Rewrite to prefer offsets to pointers.
128 This avoids undefined behavior when subtracting pointers into
129 different aways. On my platform it also makes the code a tad
130 smaller and presumably faster.
131
1322013-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
133
134 * keyboard.c (command_loop_1): Use region-extract-function.
135 * insdel.c (Qregion_extract_function): Not static any more (can we
136 stop pretending that these vars can benefit from being marked static?).
137
1382013-11-09 Eli Zaretskii <eliz@gnu.org>
139
140 * search.c (find_newline): If buffer text is relocated during the
141 "dumb loop", adjust C pointers into buffer text to follow suit.
142 (Bug#15841)
143
1442013-11-09 Łukasz Stelmach <stlman@poczta.fm> (tiny change)
145
146 * gtkutil.c (xg_check_special_colors): Use rgb: instead of rgbi:
147 for conversion (Bug#15837).
148
1492013-11-09 Eli Zaretskii <eliz@gnu.org>
150
151 * fileio.c (Finsert_file_contents): Invalidate the newline cache
152 for the entire range of inserted characters. (Bug#15841)
153
1542013-11-08 Jan Djärv <jan.h.d@swipnet.se>
155
156 * xfaces.c (lface_fully_specified_p): Let distant-foreground be
157 unspecified.
158 (realize_default_face): Remove assignment to distant-foreground if
159 unspecified (Bug#15815).
160
1612013-11-08 Eli Zaretskii <eliz@gnu.org>
162
163 * xdisp.c (message_dolog): Make sure the *Messages* buffer has its
164 cache-long-scans disabled, since we don't want to call
165 prepare_to_modify_buffer (in insert_1_both) for each message we
166 display.
167
168 * buffer.h (bset_cache_long_scans): New INLINE function, moved
169 from buffer.c. Improve commentary to the buffer field setter
170 functions.
171
172 * buffer.c (bset_cache_long_scans): Static function deleted.
173 Improve commentary to the buffer field setter functions.
174 (init_buffer_once): Default for cache-long-scans changed to t.
175 (Bug#15797)
176
1772013-11-08 Paul Eggert <eggert@cs.ucla.edu>
178
179 * gmalloc.c (special_realloc, calloc, mallochook): Use tail calls.
180
181 * chartab.c (make_sub_char_table): Fix size typo (Bug#15825).
182 This bug was introduced in my 2013-06-21 change, and caused
183 struct Lisp_Sub_Char_Table objects to be given too many slots,
184 which broke 'make -C admin/unidata'.
185
1862013-11-07 Jan Djärv <jan.h.d@swipnet.se>
187
188 Import changes from mac-port 4.5.
189 * macfont.m (mac_font_copy_default_descriptors_for_language)
190 (mac_font_copy_default_name_for_charset_and_languages): Declare.
191 (cf_charset_table): big-5-0 has uniquifier 0x4EDC.
192 (macfont_language_default_font_names): New.
193 (macfont_list): Rearrange language/charset code.
194 (macfont_close): Don't check for macfont_info->cache.
195 (mac_ctfont_create_preferred_family_for_attributes): New font
196 selection code, call
197 mac_font_copy_default_name_for_charset_and_languages.
198 (mac_font_copy_default_descriptors_for_language)
199 (mac_font_copy_default_name_for_charset_and_languages): New functions.
200
201 * macfont.h (kCTVersionNumber10_9): Define if not defined.
202
2032013-11-07 Paul Eggert <eggert@cs.ucla.edu>
204
205 Port to C11 aligned_alloc, and fix some integer overflows.
206 * alloc.c (USE_ALIGNED_ALLOC): New symbol.
207 (USE_POSIX_MEMALIGN): Remove. All uses replaced with USE_ALIGNED_ALLOC,
208 and use of posix_memalign replaced with aligned_alloc.
209 (aligned_alloc): New function, defined or declared as needed.
210 * conf_post.h (HAVE_POSIX_MEMALIGN) [DARWIN_OS]:
211 Don't undef; configure.ac now does this.
212 * gmalloc.c (aligned_alloc) [MSDOS]: New decl.
213 (calloc, aligned_alloc): Check for integer overflow.
214 (aligned_alloc): Rename from memalign. All uses changed.
215 (memalign): New function, an alias for aligned_alloc.
216
2172013-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
218
219 * xdisp.c (redisplay_internal): Fix typo in last change.
220
2212013-11-06 Paul Eggert <eggert@cs.ucla.edu>
222
223 * regex.c: Fix --enable-gcc-warning glitch with GCC 4.5.2.
224
2252013-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
226
227 * xdisp.c (syms_of_xdisp): New vars redisplay--all-windows-cause and
228 redisplay--mode-lines-cause.
229 (redisplay_internal): Keep them uptodate. Remove redundant check of
230 buffer_shared_and_changed.
231 * *.[chm]: Number every assignment to update_mode_lines so we
232 can track why it is set.
233
2342013-11-06 Eli Zaretskii <eliz@gnu.org>
235
236 * editfns.c (Fformat_time_string): Doc fix. (Bug#15816)
237
2382013-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
239
240 * *.[chm]: Number every assignment to windows_or_buffers_changed so we
241 can track why it is set.
242
2432013-11-06 Paul Eggert <eggert@cs.ucla.edu>
244
245 Integer-related fixes for term.c etc.
246 * dispextern.h (face_tty_specified_color): New function.
247 * term.c (turn_on_face): Don't rely on undefined behavior when
248 assigning an out-of-range value to 'long'.
249 Simplify test for toggling highlight.
250 (tty_capable_p): Omit last two (unused) args. All callers changed.
251 * term.c (tty_capable_p, tty_menu_display, tty_menu_add_selection)
252 (read_menu_input, tty_menu_activate, tty_menu_show):
253 * xfaces.c (x_supports_face_attributes_p)
254 (tty_supports_face_attributes_p):
255 Use bool for boolean. All callers changed.
256 (tty_supports_face_attributes_p): Omit defaults for color indices;
257 no longer needed. Simplify tail call.
258
2592013-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
260
261 * xdisp.c (prepare_menu_bars): Mark static.
262 * lisp.h (prepare_menu_bars): Don't declare.
263 * xselect.c (x_handle_selection_clear):
264 * callproc.c (call_process): Remove redundant call to prepare_menu_bars.
265
2662013-11-05 Paul Eggert <eggert@cs.ucla.edu>
267
268 * keyboard.c (Fcommand_error_default_function): Fix pointer signedness
269 glitch. Eliminate 'sz' prefix; Hungarian notation is not helpful here.
270
2712013-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
272
273 * keyboard.c (Fcommand_error_default_function): Rename from
274 Fdefault_error_output.
275
2762013-11-05 Jarek Czekalski <jarekczek@poczta.onet.pl> (tiny change)
277
278 * keyboard.c (Fdefault_error_output): New function, extracted from
279 cmd_error_internal.
280 (syms_of_keyboard): Use it for Vcommand_error_function.
281
2822013-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
283
284 * eval.c (handlerlist_sentinel): New variable (bug#15802).
285 (init_eval): Use it to ensure handlerlist is non-NULL.
286 (unwind_to_catch): Make sure we never set handlerlist to NULL.
287 (Fsignal): Adjust NULLness test of handlerlist.
288 * lisp.h (PUSH_HANDLER): Assume handlerlist is non-NULL.
289
2902013-11-05 Eli Zaretskii <eliz@gnu.org>
291
292 * callproc.c (call_process): Call prepare_to_modify_buffer before
293 decoding text read from the sub-process, as the decoded stuff will
294 be inserted into the buffer. This will invalidate the various
295 caches maintained for the buffer. (Bug#15148)
296
2972013-11-05 Xue Fuqiao <xfq.free@gmail.com>
298
299 * xdisp.c (syms_of_xdisp): Mention the active display table in doc
300 string of glyphless-char-display.
301
3022013-11-05 Jan Djärv <jan.h.d@swipnet.se>
303
304 * nsfns.m (ns_get_name_from_ioreg): New function.
305 (ns_screen_name): Don't use deprecated CGDisplayIOServicePort on
306 OSX >= 10.9. Use ns_get_name_from_ioreg.
307
3082013-11-05 Paul Eggert <eggert@cs.ucla.edu>
309
310 Simplify and port recent bool vector changes.
311 * alloc.c (ROUNDUP): Move here from lisp.h, since it's now used
312 only in this file. Use a more-efficient implementation if the
313 second argument is a power of 2.
314 (ALIGN): Rewrite in terms of ROUNDUP. Make it a function.
315 Remove no-longer-necessary compile-time checks.
316 (bool_vector_exact_payload_bytes): New function.
317 (bool_vector_payload_bytes): Remove 2nd arg; callers that need
318 exact payload changed to call the new function. Do not assume
319 that the arg or result fits in ptrdiff_t.
320 (bool_vector_fill): New function.
321 (Fmake_bool_vector): Use it. Don't assume bit counts fit
322 in ptrdiff_t.
323 (vroundup_ct): Don't assume arg fits in size_t.
324 * category.c (SET_CATEGORY_SET): Remove. All callers now just
325 invoke set_category_set.
326 (set_category_set): 2nd arg is now EMACS_INT and 3rd is now bool.
327 All callers changed. Use bool_vector_set.
328 * category.h (XCATEGORY_SET): Remove; no longer needed.
329 (CATEGORY_MEMBER): Now a function. Rewrite in terms of
330 bool_vector_bitref.
331 * data.c (Faref): Use bool_vector_ref.
332 (Faset): Use bool_vector_set.
333 (bits_word_to_host_endian): Don't assume you can shift by CHAR_BIT.
334 (Fbool_vector_not, Fbool_vector_count_matches)
335 (Fbool_vector_count_matches_at): Don't assume CHAR_BIT == 8.
336 * fns.c (concat): Use bool_vector_ref.
337 (Ffillarray): Use bool_vector_fill.
338 (mapcar1): Use bool_vector_ref.
339 (sxhash_bool_vector): Hash words, not bytes.
340 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Now a macro as well as
341 a constant, since it's now used in #if.
342 (bits_word, BITS_WORD_MAX, BITS_PER_BITS_WORD): Fall back on
343 unsigned char on unusual architectures, so that we no longer
344 assume that the number of bits per bits_word is a power of two or
345 is a multiple of 8 or of CHAR_BIT.
346 (Qt): Add forward decl.
347 (struct Lisp_Bool_Vector): Don't assume EMACS_INT is aligned
348 at least as strictly as bits_word.
349 (bool_vector_data, bool_vector_uchar_data): New accessors.
350 All data structure accesses changed to use them.
351 (bool_vector_words, bool_vector_bitref, bool_vector_ref)
352 (bool_vector_set): New functions.
353 (bool_vector_fill): New decl.
354 (ROUNDUP): Move to alloc.c as described above.
355
356 Fix recent gnutls changes.
357 * gnutls.c (Fgnutls_boot): Don't assume C99.
358 * process.c (wait_reading_process_output): Fix typo in recent change.
359
3602013-11-05 Teodor Zlatanov <tzz@lifelogs.com>
361
362 * process.c (wait_reading_process_output, read_process_output)
363 (send_process): Check gnutls_state is not NULL.
364
365 * gnutls.c (emacs_gnutls_handle_error): Adjust log level for EAGAIN.
366 (Fgnutls_boot): Set process gnutls_p later, after initialization.
367
3682013-11-04 Jan Djärv <jan.h.d@swipnet.se>
369
370 * nsterm.m (init, run, stop:): New methods in EmacsApp for
371 OSX >= 10.9 to prevent memory leak of GCD dispatch source.
372
373 * nsterm.h (EmacsApp): Add shouldKeepRunning and isFirst for
374 OSX >= 10.9.
375
376 * nsfns.m (Fx_create_frame): Fix memory leak.
377
378 * macfont.m (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
379 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
380 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): Fix memory leak.
381
3822013-11-04 Eli Zaretskii <eliz@gnu.org>
383
384 * xdisp.c (message3_nolog, message_with_string): Encode the string
385 before writing it to the terminal in a non-interactive session.
386
387 * lread.c (openp): If both FILENAME and SUFFIX are unibyte, make
388 sure we concatenate them into a unibyte string.
389
390 * fileio.c (make_temp_name): Encode PREFIX, and decode the
391 resulting temporary name before returning it to the caller.
392 (Fexpand_file_name): If NAME is pure-ASCII and DEFAULT_DIRECTORY
393 is a unibyte string, convert NAME to a unibyte string to ensure
394 that the result is also a unibyte string.
395
396 * emacs.c (init_cmdargs): Use build_unibyte_string to make sure we
397 create unibyte strings from default paths and directory/file
398 names.
399
400 * coding.h (ENCODE_FILE): Do not attempt to encode a unibyte
401 string.
402
403 * callproc.c (init_callproc): Use build_unibyte_string to make
404 sure we create unibyte strings from default paths and
405 directory/file names.
406
407 * buffer.c (init_buffer): Don't store default-directory of
408 *scratch* in multibyte form. The original problem which led to
409 that is described in
410 http://lists.gnu.org/archive/html/emacs-pretest-bug/2004-11/msg00532.html,
411 but it was solved long ago. (Bug#15260)
412
4132013-11-04 Paul Eggert <eggert@cs.ucla.edu>
414
415 Port to stricter C99 platforms.
416 Especially, C99 prohibits nesting a struct X inside struct Y if
417 struct X has a flexible array member.
418 * alloc.c (struct sdata): New type.
419 (sdata): Implement in terms of struct sdata.
420 Remove u member; all uses replaced by next_vector, set_next_vector.
421 (SDATA_SELECTOR, SDATA_DATA, SDATA_DATA_OFFSET): Adjust to sdata change.
422 (SDATA_DATA_OFFSET): Now a constant, not a macro.
423 (struct sblock): Rename first_data member to data, which is now
424 a flexible array member. All uses changed.
425 (next_vector, set_next_vector, large_vector_vec): New functions.
426 (vector_alignment): New constant.
427 (roundup_size): Make it a multiple of ALIGNOF_STRUCT_LISP_VECTOR, too.
428 (struct large-vector): Now merely a NEXT member, since the old approach
429 ran afoul of stricter C99. All uses changed to use
430 large_vector_vec or large_vector_offset.
431 (large_vector_offset): New constant.
432 * dispnew.c: Include tparam.h, for tgetent.
433 Do not include term.h; no longer needed.
434 * gnutls.c (Fgnutls_boot): Don't continue after calling a _Noreturn.
435 * lisp.h (ENUM_BF) [__SUNPRO_C && __STDC__]: Use unsigned int.
436 (struct Lisp_Vector): Use a flexible array member for contents,
437 instead of a union with a member that is an array of size 1.
438 All uses changed.
439 (ALIGNOF_STRUCT_LISP_VECTOR): New constant, to make up for the
440 fact that the struct no longer contains a union.
441 (struct Lisp_Misc_Any, struct Lisp_Marker, struct Lisp_Overlay)
442 (struct Lisp_Save_Value, struct Lisp_Free):
443 Use unsigned, not int, for spacers, to avoid c99 warning.
444 (union specbinding): Use unsigned, not bool, for bitfield, as
445 bool is not portable to pre-C99 hosts.
446
4472013-11-04 Glenn Morris <rgm@gnu.org>
448
449 * emacs.c (usage_message): Mention that `-L :...' appends.
450
4512013-11-02 Glenn Morris <rgm@gnu.org>
452
453 * Makefile.in (abs_builddir): Remove.
454 (bootstrap_exe): Use relative filename.
455
456 Use relative filenames in TAGS files.
457 * Makefile.in (abs_srcdir): Remove it again.
458 (.PHONY): Remove frc.
459 (maintainer-clean): No more TAGS-LISP file.
460 (TAGS): Pass relative file names to etags.
461 (../lisp/TAGS): Rename from TAGS-LISP. Work in ../lisp.
462
463 * Makefile.in (abs_srcdir): New, set by configure.
464 (lispdir): Remove.
465 (maintainer-clean): Remove pointless echo. That should be in the
466 top-level Makefile, if anywhere. Delete TAGS-LISP.
467 (extraclean): No s/ and m/ directories for some time.
468 (TAGS): Also depend on ctagsfiles3.
469 Remove no-longer-defined S_FILE.
470 Pass absolute filenames to etags once more.
471 (TAGS-LISP): Replace lispdir with its expansion.
472 (TAGS-LISP, $(lwlibdir)/TAGS): Correctly pass ETAGS to sub-makes.
473 ($(lwlibdir)/TAGS): Remove useless subshell, check cd return value.
474
4752013-11-02 Jan Djärv <jan.h.d@swipnet.se>
476
477 * xfaces.c (check_lface_attrs, realize_default_face):
478 Add LFACE_DISTANT_FOREGROUND_INDEX (Bug#15788).
479 (realize_default_face): Set DISTANT_FOREGROUND to unspecified_fg.
480
4812013-11-02 Paul Eggert <eggert@cs.ucla.edu>
482
483 * emacs.c (original_pwd): Remove global var by making it local.
484 (init_cmdargs): New arg ORIGINAL_PWD; caller changed.
485
4862013-11-01 Jan Djärv <jan.h.d@swipnet.se>
487
488 * xfaces.c: Declare color_distance.
489 (QCdistant_foreground): New variable.
490 (NEAR_SAME_COLOR_THRESHOLD): New define.
491 (load_color2): New function.
492 (load_color): Call load_color2.
493 (load_face_colors): Call load_color2 and if distant-color is specified
494 calculate distant and use distant-color if colors are near.
495 (LFACE_DISTANT_FOREGROUND): New define.
496 (merge_face_ref, Finternal_set_lisp_face_attribute)
497 (Finternal_get_lisp_face_attribute)
498 (x_supports_face_attributes_p): Handle distant-foreground similar to
499 foreground.
500 (syms_of_xfaces): DEFSYM QCdistant_foreground.
501
502 * dispextern.h (lface_attribute_index):
503 Add LFACE_DISTANT_FOREGROUND_INDEX.
504
5052013-11-01 Claudio Bley <claudio.bley@googlemail.com>
506
507 * image.c (pbm_next_char): New function.
508 See http://netpbm.sourceforge.net/doc/pbm.html for the details.
509 (pbm_scan_number): Use it.
510 (Qlibjpeg_version): New variable.
511 (syms_of_image): DEFSYM and initialize it.
512
5132013-10-31 Jan Djärv <jan.h.d@swipnet.se>
514
515 * emacs.c (main): Skip -psn args on OSX even if ! isatty (0).
516
5172013-10-31 Glenn Morris <rgm@gnu.org>
518
519 * emacs.c (original_pwd): New char.
520 (main): If using --chdir, store original_pwd.
521 (init_cmdargs): When setting Vinvocation_directory based on a
522 relative argv[0], use original_pwd if set. (Bug#15768)
523
5242013-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
525
526 * keyboard.c (command_loop_1): If command is nil, call `undefined'.
527
5282013-10-29 Paul Eggert <eggert@cs.ucla.edu>
529
530 * insdel.c: Fix minor problems found by static checking.
531 (Qregion_extract_function): Now static.
532 (prepare_to_modify_buffer_1): Remove unused locals.
533
5342013-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
535
536 * xdisp.c (prepare_menu_bars): Call Vpre_redisplay_function.
537 (syms_of_xdisp): Declare pre-redisplay-function.
538 (markpos_of_region): Remove function.
539 (init_iterator, compute_stop_pos, handle_face_prop)
540 (face_before_or_after_it_pos, reseat_to_string)
541 (get_next_display_element, window_buffer_changed)
542 (redisplay_internal, try_cursor_movement, redisplay_window)
543 (try_window_reusing_current_matrix, try_window_id, display_line)
544 (note_mode_line_or_margin_highlight, note_mouse_highlight)
545 (display_string, mouse_face_from_buffer_pos): Remove region handling.
546 * window.h (struct window): Remove field `region_showing'.
547 * dispextern.h (struct it): Remove region_beg/end_charpos.
548 (face_at_buffer_position, face_for_overlay_string)
549 (face_at_string_position): Update prototypes.
550 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
551 (face_at_string_position): Remove `region_beg' and `region_end' args.
552 * fontset.c (Finternal_char_font):
553 * font.c (font_at, font_range): Adjust calls accordingly.
554 * insdel.c (Qregion_extract_function): New var.
555 (syms_of_insdel): Initialize it.
556 (prepare_to_modify_buffer_1): Use it.
557
5582013-10-29 Dmitry Antipov <dmantipov@yandex.ru>
559
560 Prefer 'unsigned long' to 'long unsigned int' and 'unsigned long int'.
561 * ftxfont.c (ftxfont_get_gcs):
562 * gtkutil.c (xg_set_widget_bg, xg_set_background_color):
563 * xfaces.c (x_free_colors, x_free_dpy_colors)
564 (x_create_gc, unload_color):
565 * xselect.c (x_property_data_to_lisp):
566 * xsettings.c (parse_settings):
567 * xterm.c (x_copy_color, x_alloc_lighter_color, x_setup_relief_color)
568 (get_bits_and_offset): Adjust definition.
569 * frame.c (XParseGeometry): Adjust locals.
570 * lisp.h (toplevel): Adjust EMACS_UINT type definition.
571 * regex.h (toplevel): Likewise for reg_syntax_t.
572
5732013-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
574
575 * eval.c (run_hook_with_args): Use FUNCTIONP.
576
5772013-10-29 Dmitry Antipov <dmantipov@yandex.ru>
578
579 * xterm.h (struct x_output): For 'black_relief' and 'white_relief'
580 fields, drop 'allocated_p' member and use -1 for uninitialized value.
581 * w32term.h (struct w32_output): Similarly but do not use -1 because...
582 * xfaces.c (unload_color) [HAVE_X_WINDOWS]: ...this function is a no-op
583 on MS-Windows anyway.
584 (free_face_colors): Define only if HAVE_X_WINDOWS and...
585 (free_realized_face): ...adjust user.
586 * xfns.c (Fx_create_frame, x_create_tip_frame): Initialize black and
587 white relief pixels to -1.
588 * xterm.c (x_setup_relief_color, x_free_frame_resources): Adjust users.
589 * w32term.c (w32_setup_relief_color, x_free_frame_resources): Likewise.
590 * dispextern.h (unload_color): Move prototype under HAVE_X_WINDOWS.
591
5922013-10-28 Paul Eggert <eggert@cs.ucla.edu>
593
594 * dispextern.h, image.c (x_bitmap_height, x_bitmap_width): Now static.
595 * xfaces.c (load_pixmap): Omit last two args, which are always NULL
596 in practice now. All callers changed.
597
5982013-10-28 Dmitry Antipov <dmantipov@yandex.ru>
599
600 * dispextern.h (struct face): Use bitfields for 'underline_type'
601 and 'box' members. Remove set-but-unused members 'pixmap_w' and
602 'pixmap_h'. If not HAVE_WINDOW_SYSTEM, also remove dummy
603 'stipple' member. Move 'lface' member up to help...
604 * xfaces.c (make_realized_face): ...this function to find and
605 clear just the members that need clearing.
606 (load_face_colors, realize_x_face):
607 * xdisp.c (extend_face_to_end_of_line): Adjust user.
608
6092013-10-27 Dmitry Antipov <dmantipov@yandex.ru>
610
611 * xftfont.c (struct xftfont_info): Remove set-but-unused
612 'screen' member.
613 (xftfont_open): Adjust user.
614 (xftfont_get_colors): Remove useless prototype.
615
6162013-10-26 Eli Zaretskii <eliz@gnu.org>
617
618 * emacs.c (Fdump_emacs): Encode FILENAME and SYMFILE arguments
619 before passing them to 'unexec'. (Bug#15260)
620
6212013-10-26 Xue Fuqiao <xfq.free@gmail.com>
622
623 * fringe.c (set_fringe_bitmap_face): Add usage note from lispref.
624
6252013-10-25 Eli Zaretskii <eliz@gnu.org>
626
627 * w32uniscribe.c (uniscribe_close): Adjust the argument list to
628 the changed signature of the font driver's 'close' method.
629
630 * w32font.h (w32font_close): Adjust the prototype to the change in
631 function definition.
632
633 * w32font.c (w32font_close): Reintroduce deleted declaration of i.
634
635 * w32uniscribe.c (uniscribe_close): Adapt the call to
636 w32font_close to its new prototype.
637
6382013-10-25 Dmitry Antipov <dmantipov@yandex.ru>
639
640 Omit unused frame argument of font API's close function.
641 * font.h (struct font): Drop frame argument. Adjust comment.
642 * font.c (font_clear_cache, font_close_object): Adjust users.
643 * ftfont.c (ftfont_close):
644 * ftxfont.c (ftxfont_close):
645 * macfont.m (macfont_close):
646 * nsfont.m (nsfont_close):
647 * w32font.c (w32font_close):
648 * xfont.c (xfont_close):
649 * xftfont.c (xftfont_close): Adjust driver-specific close functions,
650 tweak comments and make functions safe if called more than once for
651 the same font object.
652
653 Perform font-specific cleanup when font object is swept by GC. See
654 http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00740.html.
655 * alloc.c (cleanup_vector): New function.
656 (sweep_vector): Call it for each reclaimed vector object.
657 * font.h (struct font): Adjust comment.
658
6592013-10-24 Glenn Morris <rgm@gnu.org>
660
661 * Makefile.in (abs_top_srcdir): New, set by configure.
662
6632013-10-23 Dmitry Antipov <dmantipov@yandex.ru>
664
665 Adjust recent font-related changes to fix bug#15686.
666 * alloc.c (mark_object) [HAVE_WINDOW_SYSTEM]: If marked frame
667 is a live window system frame, mark its default font too.
668
6692013-10-23 Glenn Morris <rgm@gnu.org>
670
671 * Makefile.in (RUN_TEMACS): Make relative (again).
672 ($(leimdir)/leim-list.el, .el.elc, $(lispsource)/loaddefs.el)
673 (bootstrap-emacs$(EXEEXT)):
674 Quote entities that might contain whitespace.
675
6762013-10-23 Paul Eggert <eggert@cs.ucla.edu>
677
678 Port to Solaris 10 and its bundled GCC.
679 Problem reported by Timothy C. Burt.
680 * floatfns.c (isfinite, isnan): Redefine unconditionally.
681
6822013-10-21 Dmitry Antipov <dmantipov@yandex.ru>
683
684 Do not allow font caches to grow too large.
685 * alloc.c (compact_font_cache_entry, compact_font_caches):
686 New functions or stub if not HAVE_WINDOW_SYSTEM.
687 (compact_undo_list): Factor out from Fgarbage_collect.
688 Add comment.
689 (mark_face_cache): Mark face font. Move down to avoid
690 extra prototypes.
691 (mark_terminals): Do not mark font cache here.
692 (Fgarbage_collect): Call compaction functions described
693 above. Adjust comment.
694
6952013-10-20 Jan Djärv <jan.h.d@swipnet.se>
696
697 * emacs.c (main): On Cocoa, if GUI session and 0 is not a tty,
698 chdir to HOME (bug#15607).
699
700 * nsterm.m (Qcocoa, Qgnustep): New variables.
701 (syms_of_nsterm): Defsym Qcocoa, Qgnustep. Fprovide appropriate one.
702 (ns_get_color): Make selection color work for GNUStep also.
703
12013-10-18 Eli Zaretskii <eliz@gnu.org> 7042013-10-18 Eli Zaretskii <eliz@gnu.org>
2 705
3 * keyboard.c (make_lispy_event): Remove GPM-specific code that 706 * keyboard.c (make_lispy_event): Remove GPM-specific code that
@@ -100,8 +803,8 @@
100 (get_adapters_info): New wrapper function. 803 (get_adapters_info): New wrapper function.
101 (globals_of_w32): Initialize g_b_init_get_adapters_info. 804 (globals_of_w32): Initialize g_b_init_get_adapters_info.
102 805
103 * process.h (network_interface_list, network_interface_info): New 806 * process.h (network_interface_list, network_interface_info):
104 prototypes. 807 New prototypes.
105 808
106 * process.c (conv_sockaddr_to_lisp): Now externally-visible. 809 * process.c (conv_sockaddr_to_lisp): Now externally-visible.
107 (Fnetwork_interface_list, Fnetwork_interface_info): Define for 810 (Fnetwork_interface_list, Fnetwork_interface_info): Define for
@@ -432,8 +1135,8 @@
432 (xw_popup_dialog): New function, with X-specific bits of popup 1135 (xw_popup_dialog): New function, with X-specific bits of popup
433 dialogs. 1136 dialogs.
434 1137
435 * xdisp.c (deep_copy_glyph_row, display_tty_menu_item): New 1138 * xdisp.c (deep_copy_glyph_row, display_tty_menu_item):
436 functions. 1139 New functions.
437 1140
438 * window.c (Fset_window_configuration): Use run-time tests of the 1141 * window.c (Fset_window_configuration): Use run-time tests of the
439 frame type instead of compile-time conditionals, when menu-bar 1142 frame type instead of compile-time conditionals, when menu-bar
@@ -498,11 +1201,11 @@
498 of, or in addition to, compile-time conditionals. 1201 of, or in addition to, compile-time conditionals.
499 (menu_item_width, Fmenu_bar_menu_at_x_y): New functions. 1202 (menu_item_width, Fmenu_bar_menu_at_x_y): New functions.
500 (Fx_popup_menu): Detect when the function is called from keyboard 1203 (Fx_popup_menu): Detect when the function is called from keyboard
501 on a TTY. Don't barf when invoked on a text-mode frame. Check 1204 on a TTY. Don't barf when invoked on a text-mode frame.
502 frame type at run time, instead of compile-time conditionals for 1205 Check frame type at run time, instead of compile-time conditionals for
503 invoking terminal-specific menu-show functions. Call 1206 invoking terminal-specific menu-show functions.
504 tty_menu_show on text-mode frames. 1207 Call tty_menu_show on text-mode frames.
505 (Fx_popup_dialog): Moved here from xmenu.c. Test frame types at 1208 (Fx_popup_dialog): Move here from xmenu.c. Test frame types at
506 run time to determine which alternative to invoke; support dialogs 1209 run time to determine which alternative to invoke; support dialogs
507 on TTYs. 1210 on TTYs.
508 1211
@@ -5384,7 +6087,7 @@
5384 6087
5385 * keyboard.c (read_decoded_char): Don't decode under w32 (bug#14403). 6088 * keyboard.c (read_decoded_char): Don't decode under w32 (bug#14403).
5386 6089
53872013-05-22 Barry OReilly <gundaetiapo@gmail.com> (tiny change) 60902013-05-22 Barry O'Reilly <gundaetiapo@gmail.com>
5388 6091
5389 * casetab.c (init_casetab_once): Fix last change (bug#14424). 6092 * casetab.c (init_casetab_once): Fix last change (bug#14424).
5390 6093
@@ -5409,7 +6112,7 @@
5409 character numbers counted by detect_coding_utf_8. Fix detection 6112 character numbers counted by detect_coding_utf_8. Fix detection
5410 of BOM for utf-8. 6113 of BOM for utf-8.
5411 6114
54122013-05-21 Barry OReilly <gundaetiapo@gmail.com> (tiny change) 61152013-05-21 Barry O'Reilly <gundaetiapo@gmail.com>
5413 6116
5414 * search.c (looking_at_1): Only set last_thing_searched if the match 6117 * search.c (looking_at_1): Only set last_thing_searched if the match
5415 changed the match-data (bug#14281). 6118 changed the match-data (bug#14281).