1. 14 Aug, 2010 10 commits
  2. 13 Aug, 2010 15 commits
    • Jason Rumney's avatar
      Fix for bug#5629: Use unicode message box if available. · 1c9b4129
      Jason Rumney authored
      	* w32menu.c (simple_dialog_show): Use unicode message box if available.
      	(MessageBoxW_Proc): New function typedef.
      	(unicode-message-box): New function pointer.
      	(globals_of_w32menu): Import it from user32.dll.
      1c9b4129
    • Jan D's avatar
      Fix handling of tool-bar-position, also put into default-frame-alist. · 2b4e6277
      Jan D authored
      * lisp/menu-bar.el (menu-bar-set-tool-bar-position): New function.
      (menu-bar-showhide-tool-bar-menu-customize-enable-left)
      (menu-bar-showhide-tool-bar-menu-customize-enable-right)
      (menu-bar-showhide-tool-bar-menu-customize-enable-top)
      (menu-bar-showhide-tool-bar-menu-customize-enable-bottom): Call
      menu-bar-set-tool-bar-position.
      
      * src/frame.h (Qtool_bar_position): Declare.
      
      * src/xfns.c (Fx_create_frame): Call x_default_parameter for
      Qtool_bar_position.
      2b4e6277
    • Eli Zaretskii's avatar
      Fix compilation of xmenu.c and unexcoff.c, clean up MSDOS source files. · 9dec0f76
      Eli Zaretskii authored
       unexcoff.c: Remove the parts used when "emacs" is not defined.
       (report_error, report_error_1): Ditto.
       (write_segment): Remove "#if 0" unused code.
       (make_hdr): Remove code that was "#ifndef NO_REMAP" before
       NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
       (start_of_text): Remove unused function (was used only if NO_REMAP
       was NOT defined).
       msdos.c (IT_set_face): Fix format string to match argument
       types.
       (IT_write_glyphs, IT_note_mode_line_highlight)
       (IT_set_frame_parameters): Remove unused variables.
       (x_set_menu_bar_lines): Declare set_menu_bar_lines.
       (IT_set_terminal_modes): Disambiguate expression in if clause.
       (Fmsdos_remember_default_colors): Return Qnil.
       (IT_set_frame_parameters): Add parens to disambiguate boolean
       expression for logging the cursor type to termscript.
       (keyboard_layout_list, keypad_translate_map)
       (grey_key_translate_map): Add braces in inner initializers.
       (dos_rawgetc): Add parens in condition for mouse-3 button-press.
       (dos_rawgetc): Remove unused label.
       (XMenuActivate): Add braces to remove ambiguous `else'.
       (dos_ttraw): Always return a value.
       (spawnve): Declare.
       (run_msdos_command): Cast 3rd arg of spawnve to "char **".
       dosfns.h (x_set_title): Declare.
       w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
       Remove unused variables.
       dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
       variables.
       (init_dosfns): Declare get_lim_data.
       (system_process_attributes): Declare Fget_internal_run_time.
       xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
       list to be consistent with menu.h.
      9dec0f76
    • Katsumi Yamaoka's avatar
      Optimizations for gnus-sync.el. · 186a9cbb
      Katsumi Yamaoka authored
      From Ted Zlatanov <tzz@lifelogs.com>.
      
      * gnus-sync.el: Add docs about gnus-sync-backend
      possibilities.
      (gnus-sync-save): Remove unnecessary message.
      (gnus-sync-read): Optimize and show what groups were skipped.
      186a9cbb
    • Katsumi Yamaoka's avatar
      Minor bug fixes for gnus-sync.el. · 79993b19
      Katsumi Yamaoka authored
      From Ted Zlatanov <tzz@lifelogs.com>.
      
      * gnus-sync.el (gnus-sync-unload-hook, gnus-sync-install-hooks): Don't
      read the sync on get-new-news.
      79993b19
    • Katsumi Yamaoka's avatar
      Minor bug fixes for gnus-sync.el. · bbe276f2
      Katsumi Yamaoka authored
      From Ted Zlatanov <tzz@lifelogs.com>.
      
      * gnus-sync.el (gnus-sync-save): Define `variable' so the compiler is
      quiet.
      
      * gnus-sync.el (gnus-sync-read): Use `gnus-sync-newsrc-offsets' (fix typo).
      bbe276f2
    • Katsumi Yamaoka's avatar
      add lisp/gnus/gnus-sync.el · 9fc8d464
      Katsumi Yamaoka authored
      9fc8d464
    • Katsumi Yamaoka's avatar
      Make saving and restoring of hidden threads work with overlays. · 62a83cc8
      Katsumi Yamaoka authored
      Patch applied by Ted Zlatanov.
      
      * gnus-sum.el (gnus-hidden-threads-configuration)
      (gnus-restore-hidden-threads-configuration): Update to deal with text
      properties, rather than searching for a magic character.
      62a83cc8
    • Katsumi Yamaoka's avatar
      Add new gnus-sync.el library. · 77154961
      Katsumi Yamaoka authored
      From Ted Zlatanov <tzz@lifelogs.com>.
      
      * gnus-registry.el (gnus-registry-follow-group-p): Use `gnus-grep-in-list'.
      
      * gnus-util.el (gnus-grep-in-list): Moved from gnus-registry.el and
      renamed from `gnus-registry-grep-in-list'.
      
      * gnus-sync.el: New library for synchronization of marks.
      77154961
    • Katsumi Yamaoka's avatar
      Make gnus-start-draft-setup interactive. · c4b1c354
      Katsumi Yamaoka authored
      From Ted Zlatanov <tzz@lifelogs.com>.
      
      * gnus-start.el (gnus-start-draft-setup): Make it interactive.
      c4b1c354
    • Eli Zaretskii's avatar
      Fix fallout from 2010-07-29T03:25:08Z!dann@ics.uci.edu, remove dead code in unexcoff.c. · 8ee81892
      Eli Zaretskii authored
       unexcoff.c: Remove the parts used when "emacs" is not defined.
       (report_error, report_error_1): Ditto.
       (write_segment): Remove "#if 0" unused code.
       (make_hdr): Remove code that was "#ifndef NO_REMAP" before
       NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
       (start_of_text): Remove unused function (was used only if NO_REMAP
       was NOT defined).
      8ee81892
    • Eli Zaretskii's avatar
      Fix -Wall compiler warnings in MSDOS sources. · 891ef8f7
      Eli Zaretskii authored
       msdos.c (IT_set_face): Fix format string to match argument types.
       (IT_write_glyphs, IT_note_mode_line_highlight)
       (IT_set_frame_parameters): Remove unused variables.
       (x_set_menu_bar_lines): Declare set_menu_bar_lines.
       (IT_set_terminal_modes): Disambiguate expression in if clause.
       (Fmsdos_remember_default_colors): Return Qnil.
       (IT_set_frame_parameters): Add parens to disambiguate boolean
       expression for logging the cursor type to termscript.
       (keyboard_layout_list, keypad_translate_map)
       (grey_key_translate_map): Add braces in inner initializers.
       (dos_rawgetc): Add parens in condition for mouse-3 button-press.
       (dos_rawgetc): Remove unused label.
       (XMenuActivate): Add braces to remove ambiguous `else'.
       (dos_ttraw): Always return a value.
       (spawnve): Declare.
       (run_msdos_command): Cast 3rd arg of spawnve to "char **".
       dosfns.h (x_set_title): Declare.
       w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
       Remove unused variables.
       dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused variables.
       (init_dosfns): Declare get_lim_data.
       (system_process_attributes): Declare Fget_internal_run_time.
      891ef8f7
    • Eli Zaretskii's avatar
      Fix compilation error in xmenu.c for non-toolkit builds. · 38e41e0e
      Eli Zaretskii authored
       xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument list
       to be consistent with menu.h.
      38e41e0e
    • Eli Zaretskii's avatar
      Shut up compiler warnings due to "char *" and "const char *". · 94c97d85
      Eli Zaretskii authored
       w32menu.c (add_menu_item): Use explicit cast to "char *".
       (name_is_separator): Make `name' and `start' be "const char *".
      94c97d85
    • Jan D's avatar
      Fix typo. · 1c0d77cc
      Jan D authored
      1c0d77cc
  3. 12 Aug, 2010 7 commits
    • Stefan Monnier's avatar
      Introduce a new comment style "c" flag. · c5683ceb
      Stefan Monnier authored
      * src/syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
      (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
      (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
      (syntax_prefix_flag_p): New function.
      (Fstring_to_syntax): Understand new "c" flag.
      (Finternal_describe_syntax_value): Recognize new flag; use the
      SYNTAX_FLAGS_* macros.
      (scan_sexps_forward, Fparse_partial_sexp): Change representation of
      comment style to accomodate the new styles.
      (back_comment, forw_comment, Fforward_comment, scan_lists)
      (scan_sexps_forward): Update code to obey the new comment style flag.
      * src/syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
      * src/casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
      * lisp/progmodes/octave-mod.el (octave-mode-syntax-table): Use the new "c"
      comment style.
      * lisp/progmodes/scheme.el (scheme-mode-syntax-table):
      * lisp/emacs-lisp/lisp-mode.el (lisp-mode-syntax-table): Remove spurious
      "b" flag in "14b" syntax.
      
      Fixes: debbugs:6834
      c5683ceb
    • Jason Rumney's avatar
      856a6b77
    • Stefan Monnier's avatar
      Fix last change. · 7e82caa7
      Stefan Monnier authored
      * lisp/progmodes/octave-mod.el (octave-mode-syntax-table):
      Better describe the problem.
      (octave-fill-paragraph): Also update caller.
      (octave-completion-at-point-function): Fix up typo.
      7e82caa7
    • Stefan Monnier's avatar
      Misc code cleanup of octave-mode.el. · c82d5b11
      Stefan Monnier authored
      * lisp/progmodes/octave-mod.el (octave-mode-map): Remove special bindings
      for (un)commenting the region and performing completion.
      (octave-mode-menu): Use standard commands for help and completion.
      (octave-mode-syntax-table): Support %{..%} comments (sort of).
      (octave-mode): Use define-derived-mode.
      Set completion-at-point-functions and don't set columns.
      Don't disable adaptive-fill-regexp.
      (octave-describe-major-mode, octave-comment-region)
      (octave-uncomment-region, octave-comment-indent)
      (octave-indent-for-comment): Remove.
      (octave-indent-calculate): Rename from calculate-octave-indent.
      (octave-indent-line): Update caller.
      (octave-initialize-completions): No need to make an alist.
      (octave-completion-at-point-function): New function.
      (octave-complete-symbol): Use it.
      (octave-insert-defun): Use define-skeleton.
      c82d5b11
    • Stefan Monnier's avatar
      * lisp/progmodes/octave-mod.el (octave-mode-map): Use comment-dwim. · dc94fc85
      Stefan Monnier authored
      (octave-mode): Set comment-add.
      
      Fixes: debbugs:6829
      dc94fc85
    • Stefan Monnier's avatar
      * doc/misc/cl.texi (Mapping over Sequences): Rename mapc => cl-mapc. · b695beda
      Stefan Monnier authored
      Fixes: debbugs:6575
      b695beda
    • Antoine Levitt's avatar
      * lisp/cus-edit.el (custom-save-variables, custom-save-faces): Fix up · 61b6abbd
      Antoine Levitt authored
      indentation of inserted comment.
      61b6abbd
  4. 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
      style_changed_cb.
      
      * src/gtkutil.h (xg_check_special_colors): Declare.
      
      * src/xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
      first.
      3a46642b
    • 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
      get_utf8_string.
      (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.
      
      * 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
      char.
      
      * 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*.
      42ca4633
    • 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*.
      5e3b9a89
    • 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*.
      9c5bd55a
    • Jan D's avatar
      * unexmacosx.c (unexec_error): Use const char *. · 7aee76f4
      Jan D authored
      7aee76f4
    • 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*.
      988e88ab
    • Glenn Morris's avatar
      97eedd1b