1. 08 Aug, 2010 11 commits
    • 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.
    • Eli Zaretskii's avatar
      Make some doc strings bidi-friendly. · cd21226d
      Eli Zaretskii authored
       cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
       editfns.c (Fline_beginning_position, Fline_end_position): State
       in the doc strings that start and end of line are in the logical order.
    • Eli Zaretskii's avatar
      Fix overlay arrow display (bug #6699). · efb41e21
      Eli Zaretskii authored
       xdisp.c (display_line): Move the handling of overlay arrow after
       the call to find_row_edges.
    • Jay Belanger's avatar
      calc.el (calc-trail-mode,calc-refresh): Use `face' property to italicize headers. · 2c695727
      Jay Belanger authored
      (calc-highlight-selections-with-faces): New variable.
      (calc-selected-face, calc-nonselected-face): New faces.
      calccomp.el (math-comp-highlight-string): Use
      `calc-highlight-selections-with-faces' to determine how to highlight
      calc-sel.el (calc-show-selections): Change message to something
      calc.texi (Making Selections, Selecting Subformulas)
      (Customizing Calc): Mention how to use faces to emphasize selected
  2. 07 Aug, 2010 9 commits
    • Michael Mauger's avatar
      * progmodes/sql.el (sql-mode-sqlite-font-lock-keywords): Added · b93d4f22
      Michael Mauger authored
              SQLite 3 keywords, functions and datatypes.
              (sql-interactive-mode): Removed `comint-process-echoes' set to t
    • Chong Yidong's avatar
      Avoid restrictions when copying window selection. · 746812d9
      Chong Yidong authored
      * src/keyboard.c (command_loop_1):
      * src/insdel.c (prepare_to_modify_buffer): Don't call validate_region.
    • Chong Yidong's avatar
      Fix last change. · 1bcb9e65
      Chong Yidong authored
    • Chong Yidong's avatar
      Change `select-active-region' mechanics. · 9852377f
      Chong Yidong authored
      Save region text prior to buffer modification.
      Set window selection lazily, during `deactivate-mark' or after each
      command when the region is temporarily active.
      * lisp/cus-start.el: Add custom declaration for select-active-regions.
      * lisp/mouse.el (mouse-drag-track): Remove hacks to deal with old
      select-active-regions implementation.
      (mouse-yank-at-click): Doc fix.
      * lisp/simple.el (select-active-regions): Move to keyboard.c.
      (deactivate-mark): Used saved-region-selection.
      (select-active-region): Function removed.
      (activate-mark, set-mark, push-mark-command)
      (handle-shift-selection): Don't call it.
      (keyboard-quit): Avoid adding the region to the window selection.
      * src/insdel.c (prepare_to_modify_buffer): Save active region text to
      * src/keyboard.c (Vselect_active_regions): Move from simple.el.
      (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
      (command_loop_1): Set window selection prior to deactivating the
      * src/xselect.c (QPRIMARY): Move to keyboard.c.
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      simple.el (delete-forward-char): Doc fix. · 4c5130d6
      Eli Zaretskii authored
    • Eli Zaretskii's avatar
      Clean up TUTORIAL.he. · 309a663f
      Eli Zaretskii authored
       tutorials/TUTORIAL.he: Don't use acronyms.
    • Eli Zaretskii's avatar
      Evaluate file-local variables in tutorials. · 822775bf
      Eli Zaretskii authored
       tutorial.el (help-with-tutorial): Hack safe file-local variables
       after reading the tutorial.
    • Juanma Barranquero's avatar
      Remove duplicate declarations. · 0e9c8657
      Juanma Barranquero authored
      * lib-src/ebrowse.c (usage, version, mark_virtual)
      * src/alloc.c (lisp_malloc)
      * src/buffer.c (set_buffer_internal, set_buffer_internal_1)
      * src/charset.h (emacs_mule_charset)
      * src/dispextern.h (inhibit_free_realized_faces, redraw_frame)
        (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
      * src/lisp.h (Fcheck_coding_system, Fget_text_property)
        (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize)
  3. 06 Aug, 2010 20 commits
    • Dan Nicolaescu's avatar
      * src/process.c: Simplify include logic. · 32bc6709
      Dan Nicolaescu authored
    • Dan Nicolaescu's avatar
      * sysdep.c: Remove declarations. · 385ee5fb
      Dan Nicolaescu authored
    • Dan Nicolaescu's avatar
      Move declarations to header files. · 3ef1d108
      Dan Nicolaescu authored
      * src/keyboard.h (quit_char): Add declaration.
      * src/process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
      (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary): Add
      * sysdep.c:
      * src/w32.c: Remove the above declarations.
    • Alan Mackenzie's avatar
      cc-cmds.el (c-mask-paragraph, c-fill-paragraph): Fix for the case that a · bd4c5e3e
      Alan Mackenzie authored
      C style comment has its delimiters alone on their respective lines.
    • Dan Nicolaescu's avatar
      Remove extern declarations in .c files, .h files have them. · 97ec208f
      Dan Nicolaescu authored
      * src/xterm.c:
      * src/xdisp.c:
      * src/process.c:
      * src/msdos.c:
      * src/image.c:
      * src/gtkutil.c:
      * src/fileio.c:
      * src/eval.c: Remove declarations.
    • Dan Nicolaescu's avatar
      * src/frame.c (frame_params): Make const. · 94eed851
      Dan Nicolaescu authored
    • Dan Nicolaescu's avatar
    • Dan Nicolaescu's avatar
      emacs.c cleanups. · 0e843971
      Dan Nicolaescu authored
      * src/emacs.c (emacs_copyright, emacs_version): Make static.
      (Vinitial_window_system, Vauto_save_list_file_name)
      (Vinhibit_redisplay): Remove declarations.
      (main): Remove HAVE_SHM code, unused.  Remove _I386 conditional
      for AIX.
    • Dan Nicolaescu's avatar
      Use const for some arrays and functions. · 648801d1
      Dan Nicolaescu authored
      * src/xterm.h (xg_set_icon_from_xpm_data):
      * src/xfns.c (xg_set_icon_from_xpm_data):
      * src/term.c (fkeys):
      * src/keyboard.c (lispy_accent_keys, lispy_function_keys)
      (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
      (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
      (frame.c frame_parms):
      * src/emacs-icon.h (gnu_xpm_bits):
      * src/callint.c (callint_argfuns): Use const.
    • Jan D's avatar
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix redisplay bugs due to uninitialized glyphs. · 47223c04
      Eli Zaretskii authored
      Add diagnostics tools.
       dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
       msdos.c (IT_display_cursor): Log cursor position on termscript.
       .gdbinit (pgx): Display the avoid_cursor_p flag.
    • Eli Zaretskii's avatar
      Fix redisplay bugs due to uninitialized glyphs in frame glyph pool. · cb4545ad
      Eli Zaretskii authored
       dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
       msdos.c (IT_display_cursor): Log cursor position on termscript.
       .gdbinit (pgx): Display the avoid_cursor_p flag.
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-start-file-process ): Set connection · d00fa9b6
      Michael Albinus authored
      property "vec".
      (tramp-process-sentinel): Use it for flushing the cache.  We
      cannot do it via the process buffer, the buffer could be deleted
      already when running the sentinel.
    • Michael Albinus's avatar
      * comint.el (comint-mode): Make directory tracking functions · 942415f3
      Michael Albinus authored
      functional on remote files.  (Bug#6764)
    • Juanma Barranquero's avatar
      src/ChangeLog: Fix typos. · 686b968e
      Juanma Barranquero authored
    • Juanma Barranquero's avatar
    • Jan D's avatar
      More undeclared function fixes and add -Wimplicit-function-declaration. · 7908fb60
      Jan D authored
      If a function returns Lisp_Object it must be declared, otherwise on a 64-bit
      system, it will return just 32 bits (int).
      * configure.in: Use -Wimplicit-function-declaration if compiler supports it.
      * src/keyboard.h (poll_for_input_1): Unconditionally declare.
      * src/xterm.h (x_get_focus_frame): Declare.
    • Jan D's avatar
      Can't include menu.h in window.c for X targets. · 4094bf36
      Jan D authored
      * nsterm.h (x_set_menu_bar_lines): Declare.
      * window.c: Don't include menu.h, it depends on lots of other .h-files.
    • Jan D's avatar
      Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings. · 3d608a86
      Jan D authored
      * configure.in: Check for util.h.
      * src/bidi.c (bidi_dump_cached_states): Fix fprintf warning.
      * src/emacs.c: Include src/nsterm.h if HAVE_NS.
      * src/image.c (xpm_scan, xpm_make_color_table_v)
      (xpm_put_color_table_v, xpm_get_color_table_v)
      (xpm_make_color_table_h, xpm_put_color_table_h)
      (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
      (xpm_load): Convert to ANSI C prototypes.
      * src/lisp.h (fmod_float): Declare.
      * src/menu.h (x_set_menu_bar_line): Declare.
      (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
      * src/window.c: Include menu.h.
      * src/nsfns.m (have_menus_p, ns_display_info_for_name)
      (x_set_cursor_type, ns_appkit_version_str)
      (ns_appkit_version_int, ns_do_applescript)
      (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
      (syms_of_nsfns): Convert to ANSI C prototypes.
      * src/nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
      * src/nsimage.m (ns_load_image): Move NSTRACE after declarations.
      * src/nsmenu.m (popup_activated, name_is_separator)
      (syms_of_nsmenu): Convert to ANSI C prototypes.
      (runMenuAt): Prototypes and move declarations before code.
      * src/nsterm.h : Include sysselect.h.
      (x_sync, x_get_focus_frame, x_set_mouse_position)
      (x_set_mouse_pixel_position, x_make_frame_visible)
      (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
      (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
      (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
      (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
      * src/process.c: Check HAVE_UTIL_H. Include src/nsterm.h if HAVE_NS.
      * src/nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
      (ns_ring_bell, ns_defined_color, hide_hourglass)
      (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
      Convert to ANSI C prototypes.
      (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
      before code.
      * src/sysdep.c: Check HAVE_TERM_H
      * src/term.c: Check HAVE_SYS_IOCTL_H.
      * src/unexmacosx.c (print_region_list, print_regions)
      (build_region_list, find_emacs_zone_regions)
      (unexec_regions_merge, read_load_commands, dump_it)
      (unexec_init_emacs_zone): Convert to ANSI C prototypes.
      * src/xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.