1. 14 Jul, 2010 10 commits
    • Chong Yidong's avatar
      Change clipboard/primary selection to X application standards. · f9d71b42
      Chong Yidong authored
      * lisp/menu-bar.el (menu-bar-enable-clipboard): Don't overwrite
      Cut/Copy/Paste menu bar items.
      
      * lisp/mouse.el: Bind mouse-2 to mouse-yank-primary.
      (mouse-drag-copy-region): Default to nil.
      
      * lisp/simple.el (select-active-regions): Default to t.
      (push-mark-command): Don't overwrite primary with empty string.
      
      * lisp/term/x-win.el (x-select-enable-clipboard): Default to t.
      (x-initialize-window-system): Don't overwrite Paste menu item.
      f9d71b42
    • Thierry Volpiatto's avatar
      Allow C-w when setting a bookmark in a Gnus Article buffer (Bug#5975). · 8f2eaa8a
      Thierry Volpiatto authored
      * lisp/bookmark.el (bookmark-set): Don't set `bookmark-yank-point' and
        `bookmark-current-buffer' if they have been already set in another
        buffer (e.g gnus-art).
      
      * lisp/gnus/gnus-sum.el (gnus-summary-bookmark-make-record): Set
        `bookmark-yank-point' and `bookmark-current-buffer' to allow C-w.
      8f2eaa8a
    • Karl Fogel's avatar
      Allow bookmarks to be set from Gnus Article buffers (Bug #5975). · 33b48483
      Karl Fogel authored
      Patch applied (with minor tweaks) by Karl Fogel.  Note this leaves
      C-w still not working correctly from Article buffers; Thierry's
      patch to fix that will be applied after this.
      
      * lisp/gnus/gnus-art.el (bookmark-make-record-function): New local variable.
      
      * lisp/gnus/gnus-sum.el (gnus-summary-bookmark-make-record): Allow setting
        from article buffer.
        (gnus-summary-bookmark-jump): Maybe jump to article buffer.
      33b48483
    • Karl Fogel's avatar
      Preparation for setting bookmarks in Gnus article buffers (Bug#5975). · e44fa724
      Karl Fogel authored
      * lisp/bookmark.el (bookmark-make-record-default): Allow unneeded
        information to be omitted from the record.
      
      Adjust declarations and calls:
      
      * lisp/info.el (bookmark-make-record-default): Adjust declaration.
        (Info-bookmark-make-record): Adjust call.
      
      * lisp/woman.el (bookmark-make-record-default): Adjust declaration.
        (woman-bookmark-make-record): Adjust call.
      
      * lisp/man.el (bookmark-make-record-default): Adjust declaration.
        (Man-bookmark-make-record): Adjust call.
      
      * lisp/image-mode.el (bookmark-make-record-default): Adjust declaration.
      
      * lisp/doc-view.el (bookmark-make-record-default): Adjust declaration.
      
      * lisp/gnus/gnus-sum.el (bookmark-make-record-default): Adjust declaration.
      e44fa724
    • Karl Fogel's avatar
      Fix attribution in a ChangeLog entry. · 2bb8db3e
      Karl Fogel authored
      2bb8db3e
    • Jan D's avatar
      Fix frame size when scroll bar width not an integral of column width. · 6b2c4bd9
      Jan D authored
      xterm.c (x_set_window_size_1): scroll_bar_actual_width is always
      SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
      6b2c4bd9
    • Jan D's avatar
      Fix menu bar activation with click for Motif/Lesstif. · cf28cebc
      Jan D authored
      * src/xdisp.c (pending_menu_activation): Remove extern declaration.
      (prepare_menu_bars): Remove setting of pending_menu_activation.
      
      * src/xmenu.c (pending_menu_activation): Remove.
      (x_activate_menubar): Set popup_activated_flag for Xt also. Remove
      setting of pending_menu_activation.
      (set_frame_menubar): Remove check of pending_menu_activation.
      Declare menubar_size before code.  Correct spelling in comment.
      
      * src/xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
      (SET_SAVED_KEY_EVENT): Remove (not used).
      (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
      remove size parameter.
      (handle_one_xevent): Check popup_activated () for menu for Xt also.
      Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
      Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
      ButtonRelease.
      cf28cebc
    • Kenichi Handa's avatar
      Fix previous conflict. · ebd3d6af
      Kenichi Handa authored
      ebd3d6af
    • Kenichi Handa's avatar
      merge trunk · 73a4405a
      Kenichi Handa authored
      73a4405a
    • Kenichi Handa's avatar
  2. 13 Jul, 2010 10 commits
    • Karl Fogel's avatar
      * lisp/bookmark.el (bookmark-show-annotation): Use `when' instead of `if'. · 0c4371fe
      Karl Fogel authored
        This is also from Thierry Volpiatto's patch in bug #6444.  However,
        because it was extraneous to the functional change in that patch,
        and causes a re-indendation, I am committing it separately.
      0c4371fe
    • Karl Fogel's avatar
      [[[ · 068a0233
      Karl Fogel authored
      * lisp/bookmark.el (bookmark-bmenu-switch-other-window,
        bookmark-bmenu-other-window, bookmark-bmenu-2-window): Don't override
        ambient binding of `bookmark-automatically-show-annotations'.  (Bug #6515)
      ]]]
      
      === modified file 'lisp/bookmark.el'
      --- lisp/bookmark.el	2010-04-14 15:07:53 +0000
      +++ lisp/bookmark.el	2010-06-27 03:40:14 +0000
      @@ -1860,8 +1860,7 @@
               (pop-up-windows t))
           (delete-other-windows)
           (switch-to-buffer (other-buffer))
      -    (let ((bookmark-automatically-show-annotations nil)) ;FIXME: needed?
      -      (bookmark--jump-via bmrk 'pop-to-buffer))
      +    (bookmark--jump-via bmrk 'pop-to-buffer)
           (bury-buffer menu)))
       
       
      @@ -1875,8 +1874,7 @@
         "Select this line's bookmark in other window, leaving bookmark menu visible."
         (interactive)
         (let ((bookmark (bookmark-bmenu-bookmark)))
      -    (let ((bookmark-automatically-show-annotations t)) ;FIXME: needed?
      -      (bookmark--jump-via bookmark 'switch-to-buffer-other-window))))
      +    (bookmark--jump-via bookmark 'switch-to-buffer-other-window)))
       
       
       (defun bookmark-bmenu-switch-other-window ()
      @@ -1887,8 +1885,7 @@
               (pop-up-windows t)
               same-window-buffer-names
               same-window-regexps)
      -    (let ((bookmark-automatically-show-annotations t)) ;FIXME: needed?
      -      (bookmark--jump-via bookmark 'display-buffer))))
      +    (bookmark--jump-via bookmark 'display-buffer)))
       
       (defun bookmark-bmenu-other-window-with-mouse (event)
         "Select bookmark at the mouse pointer in other window, leaving bookmark menu visible."
      
      === modified file 'lisp/saveplace.el'
      --- lisp/saveplace.el	2010-01-13 08:35:10 +0000
      +++ lisp/saveplace.el	2010-02-07 23:14:52 +0000
      @@ -213,7 +213,7 @@
                             (symbol-name coding-system-for-write)))
             (let ((print-length nil)
                   (print-level nil))
      -        (print save-place-alist (current-buffer)))
      +        (pp save-place-alist (current-buffer)))
             (let ((version-control
                    (cond
                     ((null save-place-version-control) nil)
      068a0233
    • Aleksei Gusev's avatar
      Add regexp tests for cucumber and ruby. · c5622b6f
      Aleksei Gusev authored
      c5622b6f
    • Chong Yidong's avatar
    • Eli Zaretskii's avatar
      Fix the MS-DOS build; remove more "#ifdef subprocesses". · d5e7f8d0
      Eli Zaretskii authored
       process.c <inhibit_sentinels>: Move to the common part.
       (Fwaiting_for_user_input_p): Move to the common part; return nil
       if async subprocesses aren't supported.
       sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
       MS-DOS.  Remove "#ifdef subprocesses".
       (sys_subshell, sys_select): Remove "#ifdef subprocesses".
       (gettimeofday): Remove "#ifdef subprocesses".
       (wait_without_blocking): Remove function.
       (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
       Remove "#ifdef subprocesses".
       (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
       compiled on MS-DOS.
       callproc.c (Fcall_process) [!MSDOS]: Don't call
       wait_for_termination on MS-DOS.
       emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
       initialization of inhibit_sentinels.
       keyboard.c (record_asynch_buffer_change): Remove "#ifdef
       subprocesses" conditional.
       callproc.c (Fcall_process) [!subprocesses]: Don't call
       wait_for_termination, since `buffer' cannot be an integer when
       async subprocesses are not supported
       xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
       for ifdefing away the call to Fprocess_status.
       process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
       away the entire body of the function.
      d5e7f8d0
    • Eli Zaretskii's avatar
      Remove more "#ifdef subprocesses". · 77defa9a
      Eli Zaretskii authored
       process.c <inhibit_sentinels>: Move to the common part.
       (Fwaiting_for_user_input_p): Move to the common part; return nil
       if async subprocesses aren't supported.
       sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
       MS-DOS.  Remove "#ifdef subprocesses".
       (sys_subshell, sys_select): Remove "#ifdef subprocesses".
       (gettimeofday): Remove "#ifdef subprocesses".
       (wait_without_blocking): Remove function.
       (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
       Remove "#ifdef subprocesses".
       (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
       compiled on MS-DOS.
       callproc.c (Fcall_process) [!MSDOS]: Don't call
       wait_for_termination on MS-DOS.
       emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
       initialization of inhibit_sentinels.
       keyboard.c (record_asynch_buffer_change): Remove "#ifdef
       subprocesses" conditional.
       callproc.c (Fcall_process) [!subprocesses]: Don't call
       wait_for_termination, since `buffer' cannot be an integer when
       async subprocesses are not supported
       xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
       for ifdefing away the call to Fprocess_status.
      77defa9a
    • Adrian Robert's avatar
      term/ns-win.el: Bind M-~ to 'ns-prev-frame (due to Matthew Dempsky; bug#5084).... · 79cb9c05
      Adrian Robert authored
      term/ns-win.el: Bind M-~ to 'ns-prev-frame (due to Matthew Dempsky; bug#5084).  Remove incorrect binding for S-tab. (ns-alternatives-map): Change S-tab binding to backtab (bug#6616).  * simple.el (normal-erase-is-backspace-setup-frame): Set mode on under ns.
      79cb9c05
    • Eli Zaretskii's avatar
      Fix the MS-DOS build (fallout from 2010-07-13T04:54:28Z!dann@ics.uci.edu). · 20477505
      Eli Zaretskii authored
       process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
       away the entire body of the function.
      20477505
    • Dan Nicolaescu's avatar
      Remove subprocesses #ifdefs from term.c. · 01faa934
      Dan Nicolaescu authored
      * src/process.c (add_keyboard_wait_descriptor)
      (delete_keyboard_wait_descriptor): Move to common section, do
      nothing when subprocesses is not defined.
      * src/term.c (Fsuspend_tty, Fresume_tty, init_tty): Remove subprocesses #ifdefs.
      01faa934
    • Dan Nicolaescu's avatar
      Convert maybe_fatal to standard C. · b3ffc17c
      Dan Nicolaescu authored
      * src/lisp.h (verror): Declare.
      * src/eval.c (verror): New function containing the code from ...
      (error): ... this.  Call verror.
      * src/term.c (vfatal): New function containing the code from ...
      (fatal): ... this.  Call vfatal.
      (maybe_fatal): Convert to standard C, use variable number of
      arguments.  Declare as non-return.
      (init_tty): Fix maybe_fatal call.
      b3ffc17c
  3. 12 Jul, 2010 20 commits
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C. · 0521f580
      Dan Nicolaescu authored
      * src/xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
      (_scroll_bar_note_movement): Convert definitions to standard C.
      * src/xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
      * src/xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
      0521f580
    • Dan Nicolaescu's avatar
      * oldXMenu/XMenu.h: Include <stdlib.h>. · ababf900
      Dan Nicolaescu authored
      ababf900
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C. · ebd15611
      Dan Nicolaescu authored
      * src/xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
      (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
      (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
      (xaw_jump_callback, xaw_scroll_callback)
      (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
      (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
      definitions to standard C.
      * src/xmenu.c (menubar_id_to_frame, popup_get_selection)
      (popup_activate_callback, popup_deactivate_callback)
      (menu_highlight_callback, menubar_selection_callback)
      (apply_systemfont_to_dialog, apply_systemfont_to_menu)
      (free_frame_menubar, popup_selection_callback, as)
      (create_and_show_popup_menu, dialog_selection_callback)
      (create_and_show_dialog):
      * src/xfns.c (hack_wm_protocols, x_window):
      * src/xfaces.c (x_update_menu_appearance):
      * src/widget.c (get_default_char_pixel_size, pixel_to_char_size)
      (char_to_pixel_size, round_size_to_char, get_wm_shell)
      (set_frame_size, update_wm_hints, setup_frame_gcs)
      (update_various_frame_slots, update_from_various_frame_slots)
      (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
      (EmacsFrameSetValues, EmacsFrameQueryGeometry)
      (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
      ebd15611
    • Andreas Schwab's avatar
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org,... · 10a44998
      Eli Zaretskii authored
      Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org, 2010-07-12T17:04:38Z!dann@ics.uci.edu, 2010-07-12T17:21:11Z!dann@ics.uci.edu).
      
       src/process.c (setup_process_coding_systems): Move to the part
       shared by non-subprocesses systems, and make its body empty when
       subprocesses is not defined.
       (close_process_descs): Move to the part shared by non-subprocesses
       systems.
       msdos/sed1v2.inp (C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
       Edit to empty.
       msdos/sed3v2.inp(C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
       Edit to empty.
      10a44998
    • Eli Zaretskii's avatar
      Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org,... · fc549af9
      Eli Zaretskii authored
      Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org, 2010-07-12T17:04:38Z!dann@ics.uci.edu, 2010-07-12T17:21:11Z!dann@ics.uci.edu).
      
       msdos/sed1v2.inp (C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
       Edit to empty.
       msdos/sed3v2.inp(C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
       Edit to empty.
       src/process.c (setup_process_coding_systems): Move to the part
       shared by non-subprocesses systems, and make its body empty when
       subprocesses is not defined.
       (close_process_descs): Move to the part shared by non-subprocesses
       systems.
      fc549af9
    • Dan Nicolaescu's avatar
      5dddb7a8
    • Andreas Schwab's avatar
    • Andreas Schwab's avatar
      beb000f9
    • Andreas Schwab's avatar
      Convert old-style definitions · d5a3eaaf
      Andreas Schwab authored
      * editfns.c (transpose_markers): Convert old-style definition.
      * emacs.c (abort, shut_down_emacs, fixup_locale)
      (synchronize_system_time_locale)
      (synchronize_system_messages_locale, syms_of_emacs): Likewise.
      * floatfns.c (extract_float, matherr, init_floatfns)
      (syms_of_floatfns): Likewise.
      * fns.c (make_hash_table): Likewise.
      * ftfont.c (ftfont_get_otf, ftfont_otf_features)
      (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
      (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
      (ftfont_variation_glyphs): Likewise.
      * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
      * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
      * lread.c (read_filtered_event): Likewise.
      * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
      * process.c (wait_reading_process_output): Likewise.
      * scroll.c (do_line_insertion_deletion_costs): Likewise.
      * search.c (search_buffer, boyer_moore): Likewise.
      * syntax.c (scan_sexps_forward): Likewise.
      * xdisp.c (try_scrolling): Likewise.
      * xfaces.c (face_at_buffer_position, face_for_overlay_string)
      (face_at_string_position): Likewise.
      * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
      * xselect.c (x_get_window_property, receive_incremental_selection)
      (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
      Likewise.
      * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
      d5a3eaaf
    • Dan Nicolaescu's avatar
      Cleanups for src/callproc.c. · ded80a25
      Dan Nicolaescu authored
      * src/callproc.c (child_setup): Remove subprocesses conditional.
      Remove code dealing with SET_EMACS_PRIORITY, unused.
      ded80a25
    • Dan Nicolaescu's avatar
      * src/buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional. · 49d937f4
      Dan Nicolaescu authored
      * src/process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
      49d937f4
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C and some cleanups. · 2e31d424
      Dan Nicolaescu authored
      * src/emacs.c (__do_global_ctors, __do_global_ctors_aux)
      (__do_global_dtors, __main): Use void in definition.
      (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
      Remove SYMS_MACHINE code, unused.  Remove SYMS_SYSTEM, inline
      the only users from ...
      * src/s/ms-w32.h (SYMS_SYSTEM): ... here and ...
      * src/s/msdos.h (SYMS_SYSTEM): ... here.  Remove.
      (HAVE_VOLATILE): Remove, unused.
      2e31d424
    • Dan Nicolaescu's avatar
      Convert more function definitions to standard C. · 6f704c76
      Dan Nicolaescu authored
      * src/xdisp.c (window_box_edges, handle_single_display_spec)
      (display_string): Convert definition to standard C.
      * src/scroll.c (do_direct_scrolling, scrolling_1):
      * src/dispnew.c (allocate_matrices_for_frame_redisplay)
      (mirrored_line_dance):
      * src/coding.c (code_convert_string):
      * src/charset.c (map_charset_chars):
      * src/ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
      (Fregister_ccl_program, Fregister_code_conversion_map):
      * src/keyboard.c (kbd_buffer_nr_stored): Likewise.
      (head_table): Make static and const.
      6f704c76
    • Andreas Schwab's avatar
      Properly handle C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS · e6cfa7c3
      Andreas Schwab authored
      * configure.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
      (PROFILING_LDFLAGS): Substitute, don't add them to CFLAGS/LDFLAGS.
      (C_OPTIMIZE_SWITCH): Remove.
      (TEMACS_LDFLAGS2): Add ${PROFILING_LDFLAGS}.
      
      * lib-src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
      (PROFILING_LDFLAGS): Set from substitution.
      (BASE_CFLAGS): Add  ${C_WARNINGS_SWITCH}.
      (ALL_CFLAGS, CPP_CFLAGS): Add ${PROFILING_CFLAGS}.
      (LINK_CFLAGS): Add ${PROFILING_LDFLAGS}.
      
      * lwlib/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
      substitution.
      (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
      
      * oldXMenu/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
      substitution.
      (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
      
      * src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
      (PROFILING_LDFLAGS): Set from substitution.
      (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
      CFLAGS last.
      e6cfa7c3
    • Eli Zaretskii's avatar
      MS-Windows follow-up for 2010-07-12T05:25:46Z!handa@etlken. · f09e4c6b
      Eli Zaretskii authored
       makefile.w32-in (lisp2): Change hebrew.el to hebrew.elc.
      f09e4c6b
    • Kenichi Handa's avatar
      Improve Hebrew rendering. · 6f2cdcd1
      Kenichi Handa authored
      6f2cdcd1
    • Kenichi Handa's avatar
      merge trunk · 23003684
      Kenichi Handa authored
      23003684
    • Kenichi Handa's avatar
      Add ChangeLog · 892dd565
      Kenichi Handa authored
      892dd565