aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog.trunk
diff options
context:
space:
mode:
authorStefan Monnier2010-09-13 16:40:48 +0200
committerStefan Monnier2010-09-13 16:40:48 +0200
commitcc390e46c7ba95b76ea133d98fd386214cd01709 (patch)
treeead4400d22bd07214b782ff7e46e79d473fac419 /src/ChangeLog.trunk
parentc566235d981eba73c88bbff00b6a1d88360b6e9f (diff)
parentc5fe4acb5fb456d6e8e147d8bc7981ce56c5c03d (diff)
downloademacs-cc390e46c7ba95b76ea133d98fd386214cd01709.tar.gz
emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.zip
Merge from trunk
Diffstat (limited to 'src/ChangeLog.trunk')
-rw-r--r--src/ChangeLog.trunk618
1 files changed, 609 insertions, 9 deletions
diff --git a/src/ChangeLog.trunk b/src/ChangeLog.trunk
index a3e08cf699d..87b54529f2e 100644
--- a/src/ChangeLog.trunk
+++ b/src/ChangeLog.trunk
@@ -1,9 +1,609 @@
12010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4
52010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
8 (syms_of_fns): Don't defsubr Sy_or_n_p.
9 * lisp.h: Don't declare Fy_or_n_p.
10 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
11
122010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
13
14 * xml.c (Fxml_parse_buffer): New function to parse XML files.
15
162010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
17
18 * xml.c: New file.
19 (Fhtml_parse_buffer): New function to interface to the libxml2
20 html parsing function.
21
222010-09-05 Juanma Barranquero <lekktu@gmail.com>
23
24 * biditype.h: Regenerate.
25
262010-09-04 Andreas Schwab <schwab@linux-m68k.org>
27
28 * nsimage.m (ns_load_image): Check argument types.
29
30 * image.c: Remove all uses of gcpro.
31 (xpm_load): Check all lisp types.
32 (pbm_load): Likewise.
33 (png_load): Likewise.
34 (jpeg_load): Likewise.
35 (tiff_load): Likewise.
36 (gif_load): Likewise.
37 (imagemagick_load_image): Likewise.
38 (imagemagick_load): Likewise.
39 (svg_load): Likewise.
40 (gs_load): Likewise.
41
422010-09-04 Eli Zaretskii <eliz@gnu.org>
43
44 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
45 try to reorder grapheme clusters, since LGSTRING should always
46 hold them in the logical order.
47 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
48 return glyph codes in the logical order.
49
502010-09-04 Andreas Schwab <schwab@linux-m68k.org>
51
52 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
53 (imagemagick_load_image): Fix type mismatch.
54 (Fimagemagick_types): Likewise. Doc fix.
55
562010-09-02 Jan Djärv <jan.h.d@swipnet.se>
57
58 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
59
60 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
61
62 * xselect.c: Remove declaration of cut-buffer objects and functions.
63 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
64 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
65 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
66 (Fx_rotate_cut_buffers_internal): Remove.
67 (syms_of_xselect): Remove defsubr of above.
68 Remove intern of QCUT_BUFFERn.
69
702010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
71
72 * cmds.c (Vblink_paren_function): Remove.
73 (internal_self_insert): Make it insert N chars at a time.
74 Don't call blink-paren-function.
75 (Fself_insert_command): Adjust accordingly.
76 (syms_of_cmds): Don't declare blink-paren-function.
77
782010-08-31 Kenichi Handa <handa@m17n.org>
79
80 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
81 characters.
82
83 * term.c (encode_terminal_code): Fix the previous change.
84 (produce_glyphs): Don't set it->char_to_display here.
85 Don't handle unibyte-display-via-language-environment here.
86 (produce_special_glyphs): Set temp_it.char_to_display before
87 calling produce_glyphs.
88
89 * xdisp.c (get_next_display_element): Set it->char_to_display
90 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
91 characters.
92 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
93 calling PRODUCE_GLYPHS.
94 (append_space_for_newline): Save and store it->char_to_display.
95 Set it->char_to_display before calling PRODUCE_GLYPHS.
96 (extend_face_to_end_of_line): Set it->char_to_display before
97 calling PRODUCE_GLYPHS.
98 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
99 character to its byte value.
100 (get_char_glyph_code): New function.
101 (produce_stretch_glyph): Set it2.char_to_display too before
102 calling x_produce_glyphs.
103 (x_produce_glyphs): Simplify by using the same code for ASCII and
104 non-ASCII characters. Don't set it->char_to_display here. Don't
105 handle unibyte-display-via-language-environment here. For a
106 charater of no glyph, use font->space_width instead of FONT_WIDTH.
107
1082010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
109
110 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
111
1122010-08-31 Chong Yidong <cyd@stupidchicken.com>
113
114 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
115
1162010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
117
118 * marker.c (Fcopy_marker): Make the first arg optional.
119
1202010-08-30 Kenichi Handa <handa@m17n.org>
121
122 * composite.c (composition_update_it): Fix computing of
123 cmp_it->width.
124
1252010-08-29 Kenichi Handa <handa@m17n.org>
126
127 * term.c (encode_terminal_code): Encode byte chars to the
128 corresponding bytes.
129
1302010-08-29 Jan Djärv <jan.h.d@swipnet.se>
131
132 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
133
1342010-08-26 Kenichi Handa <handa@m17n.org>
135
136 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
137 on calling composition_compute_stop_pos.
138
1392010-08-25 Kenichi Handa <handa@m17n.org>
140
141 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
142 :otf.
143
144 * composite.c (composition_compute_stop_pos): Don't break
145 composition at PT.
146 (composition_reseat_it): Likewise. Fix calculation of character
147 position starting a composition.
148 (Fcomposition_get_gstring): Don't limit the number of components
149 for automatic composition.
150
1512010-08-25 Kenichi Handa <handa@m17n.org>
152
153 * composite.c (composition_compute_stop_pos): In forward search,
154 pay attention to the possibility that some character after ENDPOS
155 will be composed with charactrs before ENDPOS.
156
1572010-08-24 Chong Yidong <cyd@stupidchicken.com>
158
159 * keyboard.c (command_loop_1): Don't clobber primary selection
160 during handle-switch-frame (Bug#6872).
161
1622010-08-23 Michael Albinus <michael.albinus@gmx.de>
163
164 * dbusbind.c: Accept UNIX domain sockets as bus address.
165 (Fdbus_close_bus): New function.
166 (Vdbus_registered_buses): New variable.
167 (xd_initialize): Implement string as bus address.
168 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
169 (Fdbus_get_unique_name, Fdbus_call_method)
170 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
171 (Fdbus_method_error_internal, Fdbus_send_signal)
172 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
173 check. This is done in xd_initialize_bus. Adapt doc string, if
174 necessary.
175 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
176 Vdbus_registered_buses.
177 (Vdbus_registered_objects_table): Create hash.
178
1792010-08-22 Juri Linkov <juri@jurta.org>
180
181 * keyboard.c (Fexecute_extended_command): Move reading a command name
182 with `completing-read' to a new Elisp function `read-extended-command'.
183 Call it to read a command to `function' (bug#5364, bug#5214).
184
1852010-08-22 Chong Yidong <cyd@stupidchicken.com>
186
187 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
188
1892010-08-22 Andreas Schwab <schwab@linux-m68k.org>
190
191 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
192 instead of SAFE_ALLOCA.
193
1942010-08-22 Chong Yidong <cyd@stupidchicken.com>
195
196 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
197 (Bug#6214).
198
1992010-08-22 Jan Djärv <jan.h.d@swipnet.se>
200
201 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
202
2032010-08-22 Jan Djärv <jan.h.d@swipnet.se>
204
205 * doc.c (Fsnarf_documentation): Initialize skip_file before
206 build-files test.
207
2082010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
209
210 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
211 New definitions.
212 (HAVE_TERMIO): Remove.
213
2142010-08-22 Eli Zaretskii <eliz@gnu.org>
215
216 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
217
218 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
219 for w32.
220
221 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
222 it's done in nt/config.nt.
223
224 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
225
226 * unexcoff.c (report_error, make_hdr, write_segment)
227 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
228 Convert argument lists and prototypes to ANSI C.
229 (make_hdr, write_segment): Remove unused variables.
230 (unexec): Remove commented-out line. Initialize `new' to shut up
231 compiler warnings.
232
2332010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
234
235 Simplify termio code.
236 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
237 HAVE_TERMIO code is obsolete.
238 Replace HAVE_TERMIOS conditionals with !DOS_NT.
239 * systty.h: Do not define HAVE_TCATTR.
240 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
241 Do not define EMACS_HAVE_TTY_PGRP. Only define
242 EMACS_GET_TTY_PGRP for !DOS_NT.
243 * sysdep.c: Include sysselect.h unconditionally. Do not include
244 sys/ioctl.h and termios.h, systty.h does it. Use
245 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
246 (init_baud_rate): Remove HAVE_TERMIO code.
247 (child_setup_tty): Remove HAVE_TERMIO code.
248 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
249 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
250 (new_ltchars, new_tchars): Remove, unused.
251 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
252 code. Remove special casing for __mips__, it was a no-op. Remove
253 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
254 (init_sys_modes): Remove HPUX special case.
255 * process.c: Include stdlib.h unconditionally. Do not include
256 fcntl.h, systty.h does it. Remove conditional code for
257 HAVE_SERIAL, it is always true.
258 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
259 always true when SIGNALS_VIA_CHARACTERS is true.
260 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
261 !WINDOWSNT means HAVE_TERMIOS.
262 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
263 conditional, which is true for all HAVE_TERMIOS systems.
264 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
265 instead of HAVE_TERMIOS.
266 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
267 EMACS_HAVE_TTY_PGRP.
268 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
269 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
270 anyway.
271
2722010-08-21 Eli Zaretskii <eliz@gnu.org>
273
274 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
275 mirroring pixel positions.
276
2772010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
278
279 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
280 write only.
281 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
282 malloc_sbrk_used, nothing uses them.
283
284 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
285 defined, unconditionally defined in lisp.h.
286
287 * term.c: Do not include <termios.h>, systty.h does it.
288
289 * s/unixware.h (HAVE_TCATTR):
290 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
291 systty.h defines it when HAVE_TERMIOS is defined.
292
2932010-08-20 Eli Zaretskii <eliz@gnu.org>
294
295 * dispnew.c (buffer_posn_from_coords): Fix last change for text
296 terminals: add one-character offset for R2L lines.
297
298 * emacs.c <emacs_version>: Add a comment regarding
299 msdos/mainmake.v2's dependency on the syntax of this declaration.
300
3012010-08-20 Eli Zaretskii <eliz@gnu.org>
302
303 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
304 position for R2L lines by mirroring the pixel position wrt the
305 text are box. Improve commentary.
306
3072010-08-20 Andreas Schwab <schwab@linux-m68k.org>
308
309 * image.c (imagemagick_clear_image): Remove debugging output.
310
3112010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
312
313 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
314 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
315 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
316 self-insert-face.
317 (syms_of_cmds): Initialize the new vars.
318
3192010-08-19 Jason Rumney <jasonr@gnu.org>
320
321 * w32menu.c (set_frame_menubar): Remove call to undefined function.
322
323 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
324
3252010-08-19 Jan Djärv <jan.h.d@swipnet.se>
326
327 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
328
3292010-08-18 Eli Zaretskii <eliz@gnu.org>
330
331 * xterm.c (x_draw_bar_cursor):
332 * w32term.c (x_draw_bar_cursor): If the character under cursor is
333 R2L, draw the bar cursor on its right rather than on its left.
334
3352010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
336
337 * eval.c (Fdefmacro): Only obey one declaration.
338
339 * casefiddle.c (casify_region): Setup gl_state.
340
3412010-08-18 Jan Djärv <jan.h.d@swipnet.se>
342
343 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
344
3452010-08-18 Jan Djärv <jan.h.d@swipnet.se>
346
347 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
348
3492010-08-18 David De La Harpe Golden <david@harpegolden.net>
350
351 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
352 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
353 QPRIMARY => NXPrimaryPboard.
354 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
355 NXPrimaryPboard => QPRIMARY.
356 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
357 NXSecondaryPboard = SecondarySelection.
358 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
359
3602010-08-18 Joakim Verona <joakim@verona.se>
361
362 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
363 defined:
364 (imagemagick_image_p): New function to test for ImageMagic image.
365 (imagemagick_load): New function to load ImageMagick image.
366 (imagemagick_load_image): New function, helper for imagemagick_load.
367 (imagemagick-types): New function.
368 (Qimagemagick): New Lisp_object.
369 (imagemagick-render-type): New variable, decides which renderer to use.
370
3712010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
372
373 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
374 is a string.
375
3762010-08-17 Jan Djärv <jan.h.d@swipnet.se>
377
378 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
379 x_set_tool_bar_position handler.
380
3812010-08-17 Eli Zaretskii <eliz@gnu.org>
382
383 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
384 x_set_tool_bar_position handler, needed to support changes from
385 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
386
3872010-08-16 Jan Djärv <jan.h.d@swipnet.se>
388
389 * nsselect.m: include keyboard.h for QPRIMARY, remove its
390 declaration (Bug#6863).
391 (syms_of_nsselect): Don't intern QPRIMARY.
392
393 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
394
395 * keyboard.h (QPRIMARY): Declare (Bug#6864).
396
3972010-08-16 Chong Yidong <cyd@stupidchicken.com>
398
399 * keyboard.c (command_loop_1): Avoid setting selection twice,
400 since it's done in deactivate-mark as well.
401 (Vselect_active_regions): Change default to t. Replace `lazy'
402 with non-default value `only', meaning only set PRIMARY for
403 temporarily active regions.
404
405 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
406 select-active-regions.
407
4082010-08-15 Jan Djärv <jan.h.d@swipnet.se>
409
410 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
411 isn't a string.
412
4132010-08-15 Andreas Schwab <schwab@linux-m68k.org>
414
415 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
416
4172010-08-15 Jan Djärv <jan.h.d@swipnet.se>
418
419 * keyboard.c (parse_tool_bar_item): malloc buf.
420 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
421 new_lbl (Bug#6855).
422
4232010-08-14 Eli Zaretskii <eliz@gnu.org>
424
425 * xterm.c (x_draw_stretch_glyph_string):
426 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
427 the cursor on the right edge of the stretch glyph.
428
429 * xdisp.c (window_box_right_offset, window_box_right):
430 Fix commentary.
431
432 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
433 direction when point is inside a run of whitespace characters.
434
435 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
436
4372010-08-14 Jason Rumney <jasonr@gnu.org>
438
439 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
440
4412010-08-14 Chong Yidong <cyd@stupidchicken.com>
442
443 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
444
4452010-08-13 Jason Rumney <jasonr@gnu.org>
446
447 * w32menu.c (simple_dialog_show): Use unicode message box if available.
448 (MessageBoxW_Proc): New function typedef.
449 (unicode-message-box): New function pointer.
450 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
451
4522010-08-13 Jan Djärv <jan.h.d@swipnet.se>
453
454 * frame.h (Qtool_bar_position): Declare.
455
456 * xfns.c (Fx_create_frame): Call x_default_parameter for
457 Qtool_bar_position.
458
4592010-08-13 Eli Zaretskii <eliz@gnu.org>
460
461 * unexcoff.c: Remove the parts used when "emacs" is not defined.
462 (report_error, report_error_1): Ditto.
463 (write_segment): Remove "#if 0" unused code.
464 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
465 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
466 (start_of_text): Remove unused function (was used only if NO_REMAP
467 was NOT defined).
468
469 * msdos.c (IT_set_face): Fix format string to match argument
470 types.
471 (IT_write_glyphs, IT_note_mode_line_highlight)
472 (IT_set_frame_parameters): Remove unused variables.
473 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
474 (IT_set_terminal_modes): Disambiguate expression in if clause.
475 (Fmsdos_remember_default_colors): Return Qnil.
476 (IT_set_frame_parameters): Add parens to disambiguate boolean
477 expression for logging the cursor type to termscript.
478 (keyboard_layout_list, keypad_translate_map)
479 (grey_key_translate_map): Add braces in inner initializers.
480 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
481 (dos_rawgetc): Remove unused label.
482 (XMenuActivate): Add braces to remove ambiguous `else'.
483 (dos_ttraw): Always return a value.
484 (spawnve): Declare.
485 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
486
487 * dosfns.h (x_set_title): Declare.
488
489 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
490 Remove unused variables.
491
492 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
493 variables.
494 (init_dosfns): Declare get_lim_data.
495 (system_process_attributes): Declare Fget_internal_run_time.
496
497 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
498 list to be consistent with menu.h.
499
500 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
501 warnings due to mixing of "char *" and "const char *".
502
5032010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
504
505 Introduce a new comment style "c" flag.
506 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
507 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
508 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
509 (syntax_prefix_flag_p): New function.
510 (Fstring_to_syntax): Understand new "c" flag.
511 (Finternal_describe_syntax_value): Recognize new flag; use the
512 SYNTAX_FLAGS_* macros.
513 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
514 comment style to accomodate the new styles.
515 (back_comment, forw_comment, Fforward_comment, scan_lists)
516 (scan_sexps_forward): Update code to obey the new comment style flag.
517
518 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
519
520 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
521
5222010-08-11 Jan Djärv <jan.h.d@swipnet.se>
523
524 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
525 first.
526 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
527
528 * gtkutil.h (xg_check_special_colors): Declare.
529
530 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
531 (xg_create_frame_widgets): Connect theme name changes to
532 style_changed_cb.
533
534 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
535 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
536 (x_term_init): Use char[] display_opt and name_opt instead of
537 string literal. file is const char*.
538
539 * xsmfns.c (NOSPLASH_OPT): Change to char[].
540 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
541 props. Free them at the end.
542
543 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
544
545 * xrdb.c (get_system_app): Make path const and use char *p for
546 non-const char.
547
548 * xmenu.c (Fx_popup_dialog): error_name is const char*.
549 (xmenu_show): error parameter is const char **. pane_string is const
550 char *.
551 (button_names): Is const char *.
552 (xdialog_show): error_name and pane_string is const.
553
554 * process.h (synch_process_death): Is const char*.
555
556 * w32menu.c (w32_menu_show):
557 * nsmenu.m (ns_menu_show): error parameter is const char **.
558
559 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
560 is const char **.
561
562 * menu.c (Fx_popup_menu): error_name is const.
563
564 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
565 with unsigned char and XtPointer with void *.
566
567 * gtkutil.h: Replace widget_value with struct _widget_value.
568 (enum button_type, struct _widget_value): Remove and use the one from
569 keyboard.h.
570
571 * gtkutil.c (get_utf8_string): Always return an allocated string.
572 Parameter is const.
573 (create_dialog, xg_create_one_menuitem, create_menus)
574 (xg_item_label_same_p, xg_update_menu_item): Free result from
575 get_utf8_string.
576 (xg_separator_p, xg_item_label_same_p): label is const.
577
578 * font.h (font_open_by_name): Make name const.
579
580 * font.c (font_open_by_name): Make name const.
581
582 * floatfns.c (matherr): Use a const char* variable for x->name.
583
584 * emacs.c (main): Pass char[] to putenv instead of literal.
585
586 * callproc.c (synch_process_death): Make const.
587 (Fcall_process): Make signame const.
588
589 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
590 (addDisplayItemWithImage): Use const char*.
591
592 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
593 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
594
595 * nsfont.m (ns_descriptor_to_entity): Use const char*.
596
597 * keyboard.h (_widget_value): name, value and key are const char*.
598
599 * unexmacosx.c (unexec_error): Use const char *.
600
12010-08-09 Dan Nicolaescu <dann@ics.uci.edu> 6012010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2 602
3 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname) 603 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4 (font_parse_name): font_open_by_name): 604 (font_parse_name, font_open_by_name):
5 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname) 605 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6 (font_parse_name): font_open_by_name): Remove const. 606 (font_parse_name, font_open_by_name): Remove const.
7 607
82010-08-09 Andreas Schwab <schwab@linux-m68k.org> 6082010-08-09 Andreas Schwab <schwab@linux-m68k.org>
9 609
@@ -64,10 +664,10 @@
64 664
652010-08-08 Kenichi Handa <handa@m17n.org> 6652010-08-08 Kenichi Handa <handa@m17n.org>
66 666
67 * charset.c: Include <stdlib.h> 667 * charset.c: Include <stdlib.h>.
68 (struct charset_sort_data): New struct. 668 (struct charset_sort_data): New struct.
69 (charset_compare): New function. 669 (charset_compare): New function.
70 (Fsort_charsets): New funciton. 670 (Fsort_charsets): New function.
71 (syms_of_charset): Declare Fsort_charsets as a Lisp function. 671 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
72 672
73 * coding.c (decode_coding_iso_2022): Fix checking of dimension 673 * coding.c (decode_coding_iso_2022): Fix checking of dimension
@@ -126,17 +726,17 @@
126 726
127 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused. 727 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
128 728
129 * xrdb.c: Remove include guard. Remove 729 * xrdb.c: Remove include guard.
130 DECLARE_GETPWUID_WITH_UID_T conditional it had no effect. 730 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
131 Remove #if 0 code. Replace malloc->xmalloc, free->xfree, 731 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
132 realloc->xrealloc instead of using #defines. 732 realloc->xrealloc instead of using #defines.
133 733
1342010-08-08 Eli Zaretskii <eliz@gnu.org> 7342010-08-08 Eli Zaretskii <eliz@gnu.org>
135 735
136 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line): 736 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
137 * editfns.c (Fline_beginning_position, Fline_end_position): State 737 * editfns.c (Fline_beginning_position, Fline_end_position):
138 in the doc strings that start and end of line are in the logical 738 State in the doc strings that start and end of line are in the
139 order. 739 logical order.
140 740
141 * xdisp.c (display_line): Move the handling of overlay arrow after 741 * xdisp.c (display_line): Move the handling of overlay arrow after
142 the call to find_row_edges. (Bug#6699) 742 the call to find_row_edges. (Bug#6699)