1. 12 Aug, 2010 4 commits
  2. 11 Aug, 2010 8 commits
    • Jan D's avatar
    • Jan D's avatar
      Take colors for region face (selected text) from the Gtk+ theme. · 3a46642b
      Jan D authored
      * lisp/dynamic-setting.el (dynamic-setting-handle-config-changed-event):
      Handle theme-name change.
      * lisp/faces.el (region): Add type gtk that uses gtk colors.
      * src/gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
      (xg_create_frame_widgets): Connect theme name changes to
      * src/gtkutil.h (xg_check_special_colors): Declare.
      * src/xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
    • Jan D's avatar
      Fix -Wwrite_strings in general and for Gtk+ specific code. · 42ca4633
      Jan D authored
      * callproc.c (synch_process_death): Make const.
      (Fcall_process): Make signame const.
      * emacs.c (main): Pass char[] to putenv instead of literal.
      * floatfns.c (matherr): Use a const char* variable for x->name.
      * font.c (font_open_by_name): Make name const.
      * font.h (font_open_by_name): Make name const.
      * gtkutil.c (get_utf8_string): Always return an allocated string.
      Parameter is const.
      (create_dialog, xg_create_one_menuitem, create_menus)
      (xg_item_label_same_p, xg_update_menu_item): Free result from
      (xg_separator_p, xg_item_label_same_p): label is const.
      * gtkutil.h: Replace widget_value with struct _widget_value.
      (enum button_type, struct _widget_value): Remove and use the one from
      * keyboard.h (_widget_value): Add defined USE_GTK.  Replace Boolean
      with unsigned char and XtPointer with void *.
      * menu.c (Fx_popup_menu): error_name is const.
      * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
      is const char **.
      * w32menu.c (w32_menu_show):
      * nsmenu.m (ns_menu_show): error parameter is const char **.
      * process.h (synch_process_death): Is const char*.
      * xmenu.c (Fx_popup_dialog): error_name is const char*.
      (xmenu_show): error parameter is const char **. pane_string is const
      char *.
      (button_names): Is const char *.
      (xdialog_show): error_name and pane_string is const.
      * xrdb.c (get_system_app): Make path const and use char *p for non-const
      * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
      * xsmfns.c (NOSPLASH_OPT): Change to char[].
      (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
      props.  Free them at the end.
      * xterm.c (emacs_class): New char[] for EMACS_CLASS.
      (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
      (x_term_init): Use char[] display_opt and name_opt instead of
      string literal. file is const char*.
    • Jan D's avatar
      Fix -Wwrite-strings warnings in fakemail.c. · 5e3b9a89
      Jan D authored
      * fakemail.c: Include stdlib.h for getenv. Remove declaration of
      popen, fclose and pclose.
      (my_name, fatal, error, put_line): Use const char*
      (main): Remove extern getenv, mail_program_name is const char*.
    • Jan D's avatar
      Use const char* for -Wwrite_strings. · 9c5bd55a
      Jan D authored
      * keyboard.h (_widget_value): name, value and key are const char*.
      * nsfont.m (ns_descriptor_to_entity): Use const char*.
      * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
      (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
      * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
      (addDisplayItemWithImage): Use const char*.
    • Jan D's avatar
      * unexmacosx.c (unexec_error): Use const char *. · 7aee76f4
      Jan D authored
    • Jan D's avatar
      Fix warnings produced by compiling with -Wwrite_strings (i.e. use const char *). · 988e88ab
      Jan D authored
      * b2m.c (concat, fatal): Use const char*.
      (main): Don't assign labels a string literal.
      * ebrowse.c (struct member): filename, def_filename is const.
      (struct sym): filename, sfilename is const.
      (struct kw): name is const.
      (add_sym, yyerror, token_string, insert_keyword, main): Use const char*.
      * emacsclient.c (message, sock_err_message, send_to_emacs)
      (quote_argument, set_local_socket)
      (start_daemon_and_retry_set_socket): Use const char*.
      * etags.c (compressor, language, Ada_suffix, Ada_help, Asm_suffixes)
      (Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes)
      (Cplusplus_help, Cjava_suffixes, Cobol_suffixes, Cstar_suffixes)
      (Erlang_suffixes, Erlang_help, Forth_suffixes, Forth_help)
      (Fortran_suffixes, Fortran_help, HTML_suffixes,  HTML_help)
      (Lisp_suffixes, Lisp_help, Lua_suffixes, Lua_help)
      (Makefile_filenames, Makefile_help, Objc_suffixes, Objc_help)
      (Pascal_suffixes, Pascal_help, Perl_suffixes, Perl_interpreters)
      (Perl_help, PHP_suffixes, PHP_help, plain_C_suffixses, PS_suffixes)
      (PS_help, Prolog_suffixes, Prolog_help, Python_suffixes, Python_help)
      (Scheme_suffixes, Scheme_help, TeX_suffixes, TeX_help, Texinfo_suffixes)
      (Texinfo_help, Yacc_suffixes, Yacc_help, auto_help, none_help)
      (no_lang_help, print_language_names)
      (get_language_from_interpreter, get_language_from_filename)
      (init, make_tag, struct C_stab_entry, write_classname, TEX_defenv)
      (TEX_decode_env, nocase_tail, savestr, savenstr, fatal, pfatal)
      (concat): Use const char*.
      * make-docfile.c (error, fatal, scan_c_file, scan_lisp_file): Use
      const char *.
      * movemail.c (fatal, error, concat): Use const char *.
      * pop.c (pop_multi_first, socket_connection, sendline): Use conat char*.
      * pop.h (pop_multi_first): Use const char *.
      (_ARGS): Remove.
      * sorted-doc.c (error, fatal, states): Use const char *.
      * update-game-score.c (get_prefix, write_scores, main): Use const char*.
    • Glenn Morris's avatar
  3. 10 Aug, 2010 7 commits
  4. 09 Aug, 2010 10 commits
    • Dan Nicolaescu's avatar
      Remove incorrect const use. · 09d93395
      Dan Nicolaescu authored
      * src/font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
      (font_parse_name): font_open_by_name):
      * src/font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
      (font_parse_name): font_open_by_name): Remove const.
    • Dan Nicolaescu's avatar
    • Andreas Schwab's avatar
      Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition. · 671d409f
      Andreas Schwab authored
      * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
      * m/amdx86-64.h: Likewise.
      * m/arm.h: Likewise.
      * m/hp800.h: Likewise.
      * m/ia64.h: Likewise.
      * m/ibmrs6000.h: Likewise.
      * m/ibms390.h: Likewise.
      * m/intel386.h: Likewise.
      * m/iris4d.h: Likewise.
      * m/m68k.h: Likewise.
      * m/macppc.h: Likewise.
      * m/mips.h: Likewise.
      * m/sh3.h: Likewise.
      * m/sparc.h: Likewise.
      * m/template.h: Likewise.
      * m/vax.h: Likewise.
      * m/xtensa.h: Likewise.
      * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
      * lisp.h: Likewise.
      * md5.c: Likewise.
      * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
      * configure.in: Add AC_C_BIGENDIAN.
    • Chong Yidong's avatar
      Use version-list-* functions in package.el. · 148cef8e
      Chong Yidong authored
      * emacs-lisp/package-x.el (package-upload-buffer-internal): Use
      (package-upload-buffer-internal): Use version-list-<=.
      * emacs-lisp/package.el (package-version-split)
      (package--version-first-nonzero, package-version-compare):
      Functions removed.
      (package-directory-list, package-load-all-descriptors)
      (package--built-in, package-activate, define-package)
      (package-installed-p, package-compute-transaction)
      (package--add-to-archive-contents, package-buffer-info)
      (package-tar-file-info, package-list-packages-internal): Use
      version-to-list and version-list-*.
    • Dan Nicolaescu's avatar
    • Kenichi Handa's avatar
      Fix typo in lisp/ChangeLog · 231e5e5f
      Kenichi Handa authored
    • Kenichi Handa's avatar
      merge trunk · aa151b90
      Kenichi Handa authored
    • Dan Nicolaescu's avatar
      Use const char* instead of char*. · 8ea90aa3
      Dan Nicolaescu authored
      Reduce the number of warnings with -Wwrite-strings.
      * src/xrdb.c (get_environ_db, get_system_name):
      * src/unexelf.c (find_section):
      * src/term.c (string_cost, string_cost_one_line, per_line_cost)
      (get_named_tty, init_tty):
      * src/sysdep.c (sys_subshell):
      * src/sound.c (sound_perror, sound_warning, vox_open, vox_init)
      (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
      * src/search.c (Freplace_match):
      * src/process.c (Fmake_network_process, send_process, init_process):
      * src/lread.c (Fload, init_lread):
      * src/keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
      * src/keyboard.c (parse_tool_bar_item, struct event_head):
      * src/gtkutil.h (xg_get_font_name):
      * src/gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
      (make_widget_for_menu_item, make_menu_item, create_menus)
      * src/font.c (parse_matrix, font_parse_name):
      * src/floatfns.c (rounding_driver, float_error_fn_name):
      * src/filelock.c (get_boot_time_1, lock_file_1):
      * src/fileio.c (barf_or_query_if_file_exists, check_writable):
      * src/editfns.c (get_system_name, get_operating_system_release)
      (Fencode_time, Fset_time_zone_rule):
      * src/dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
      * src/buffer.c (defvar_per_buffer): Use const.
    • Kenichi Handa's avatar
    • Jay Belanger's avatar
      calc.texi (Customizing Calc): Rearrange description of new · 443c2c03
      Jay Belanger authored
      variables to match the presentation of other variables.
  5. 08 Aug, 2010 11 commits
    • Chong Yidong's avatar
    • Juanma Barranquero's avatar
      Fix typos in ChangeLogs. · 8d9e03e4
      Juanma Barranquero authored
    • Fran Litterio's avatar
      Ensure that erc-toggle-debug-irc-protocol logs protocol data. · 5997e340
      Fran Litterio authored
      * erc-backend.el (erc-server-filter-function): Call
      * erc.el (erc-toggle-debug-irc-protocol): Bind
      erc-toggle-debug-irc-protocol to t.
    • Chong Yidong's avatar
      Fix 2010-07-03 change to mouse-drag-track. · 7adf5fdc
      Chong Yidong authored
      * mouse.el (mouse-drag-track): Remove accidentally-removed check
      for `double' value of mouse-1-click-follows-link (Bug#6807).
    • Chong Yidong's avatar
      Merge changes from emacs-23 branch. · cc36ae60
      Chong Yidong authored
    • Chong Yidong's avatar
      Merge changes from emacs-23 branch · 7815fe19
      Chong Yidong authored
    • Dan Nicolaescu's avatar
      Use const char* instead of char*. · 675e2c69
      Dan Nicolaescu authored
      * src/xterm.c (x_create_toolkit_scroll_bar):
      * src/xfont.c (xfont_list_pattern):
      * src/xfns.c (x_default_scroll_bar_color_parameter)
      (xic_create_fontsetname, x_default_font_parameter)
      * src/xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
      (store_mode_line_string, decode_mode_spec, display_string):
      * src/menu.c (digest_single_submenu):
      * src/keymap.h (initial_define_key, initial_define_lispy_key):
      * src/keymap.c (initial_define_key, initial_define_lispy_key):
      * src/image.c (image_error, image_keyword):
      * src/gtkutil.h (xg_create_widget, xg_create_scroll_bar):
      * src/gtkutil.c (xg_create_widget, xg_create_scroll_bar):
      * src/ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
      (ftfont_list, ftfont_match):
      * src/frame.c (frame_parm_table):
      * src/font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
      (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
      (font_add_log, font_deferred_log):
      * src/font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
      (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
      (font_add_log, font_deferred_log):
      * src/emacs.c (argmatch):
      * src/dispextern.h (struct it):
      * src/coding.c (ENCODE_DESIGNATION):
      * src/charset.c (define_charset_internal): Use const.
    • Johan Bockgård's avatar
      Fix query-replace-regexp incomplete highlighting (Bug#6808). · e54a1075
      Johan Bockgård authored
      * replace.el (replace-highlight): Bind isearch-forward and
      isearch-error, ensuring that highlighting is updated if the user
      switches the search direction (Bug#6808).
      * isearch.el (isearch-lazy-highlight-forward): New var.
      (isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search):
      (isearch-lazy-highlight-update): Use it.
    • Dan Nicolaescu's avatar
    • Dan Nicolaescu's avatar
      Cleanup xrdb.c. · 1b6d8cf0
      Dan Nicolaescu authored
      * src/xrdb.c: Remove include guard.  Remove
      DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
      Remove #if 0 code.  Replace malloc->xmalloc, free->xfree,
      realloc->xrealloc instead of using #defines.
    • Ulf Jasper's avatar
      Fixed bug#6766 (icalendar.el) · 81ee9410
      Ulf Jasper authored
      	* calendar/icalendar.el (icalendar-uid-format): Doc fix.
      	(icalendar--split-value): Fixed splitting regexp. (Bug#6766)
      	(icalendar--get-weekday-numbers): New
      	(icalendar--create-uid, icalendar-export-region)
      	(icalendar--parse-summary-and-rest): Code formatting.
      	(icalendar--convert-recurring-to-diary): Handle multiple byday
      	values in weekly rules. (Bug#6766)
      	* icalendar-testsuite.el (icalendar-testsuite-run): Added internal tests.
      	(icalendar-testsuite--trim, icalendar-testsuite--compare-strings)
      	(icalendar-testsuite--run-internal-tests): New.
      	(icalendar-testsuite--do-test-export): Code formatting.
      	(icalendar-testsuite--test-parse-vtimezone): Doc fix.
      	(icalendar-testsuite--do-test-cycle): Use icalendar-testsuite--compare-strings
      	(icalendar-testsuite--run-import-tests): Comment added.
      	(icalendar-testsuite--run-real-world-tests): Fixed expected results.