1. 19 Aug, 2010 1 commit
    • Stefan Monnier's avatar
      New post-self-insert-hook. · a2e5caf7
      Stefan Monnier authored
      * src/cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
      (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
      (internal_self_insert): Run post-self-insert-hook rather than handle
      self-insert-face.
      (syms_of_cmds): Initialize the new vars.
      * lisp/facemenu.el (facemenu-self-insert-data): New var.
      (facemenu-post-self-insert-function, facemenu-set-self-insert-face): New funs.
      (facemenu-add-face): Use them.
      a2e5caf7
  2. 18 Aug, 2010 3 commits
  3. 16 Aug, 2010 1 commit
    • Chong Yidong's avatar
      Let all active regions set the primary selection. · 7c23dd44
      Chong Yidong authored
      This includes both temporarily active regions (mouse drag and
      shift-select) and those made with C-SPC and cursor motion.
      
      * lisp/cus-start.el: Change defcustom for select-active-regions.
      
      * lisp/simple.el (deactivate-mark): If select-active-regions is `only',
      only set selection for temporarily active regions.
      
      * src/insdel.c (prepare_to_modify_buffer): Handle `only' value of
      select-active-regions.
      
      * src/keyboard.c (command_loop_1): Avoid setting selection twice,
      since it's done in deactivate-mark as well.
      (Vselect_active_regions): Replace `lazy' value with `only',
      meaning to only set PRIMARY for temporarily active regions.
      7c23dd44
  4. 14 Aug, 2010 1 commit
    • Vivek Dasmohapatra's avatar
      Allow delayed autojoin in ERC (Bug#5521). · 8a8d54cd
      Vivek Dasmohapatra authored
      * erc/erc-join.el (erc-autojoin-timing, erc-autojoin-delay): New vars.
      (erc-autojoin-channels-delayed, erc-autojoin-after-ident): New
      functions.
      (erc-autojoin-channels): Allow autojoining after ident (Bug#5521).
      8a8d54cd
  5. 13 Aug, 2010 1 commit
  6. 12 Aug, 2010 1 commit
    • 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
  7. 11 Aug, 2010 1 commit
    • 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
  8. 10 Aug, 2010 2 commits
    • Michael Mauger's avatar
      Suppress continuation prompts in SQL interactive mode · 3bd2cfef
      Michael Mauger authored
              * progmodes/sql.el: Version 2.5
              (sql-product-alist): Add :prompt-cont-regexp property for several
              database products.
              (sql-prompt-cont-regexp): New variable.
              (sql-output-newline-count, sql-output-by-send): New
              variables. Record number of newlines in input text.
              (sql-send-string): Handle multiple filters and count newlines.
              (sql-send-magic-terminator): Count terminator newline.
              (sql-interactive-remove-continuation-prompt): Filters output to
              remove continuation prompts; one for each newline.
              (sql-interactive-mode): Set up new variables, prompt regexp and
              output filter.
              (sql-mode-sqlite-font-lock-keywords): Correct some keywords.
              (sql-make-alternate-buffer-name): Correct buffer name in edge
              cases.
      3bd2cfef
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/pcase.el: New file. · d02c9bcd
      Stefan Monnier authored
      d02c9bcd
  9. 07 Aug, 2010 2 commits
    • 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
      Vsaved_region_selection.
      
      * src/keyboard.c (Vselect_active_regions): Move from simple.el.
      (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
      vars.
      (command_loop_1): Set window selection prior to deactivating the
      mark.
      
      * src/xselect.c (QPRIMARY): Move to keyboard.c.
      9852377f
    • Eli Zaretskii's avatar
      d064e6a6
  10. 06 Aug, 2010 1 commit
  11. 01 Aug, 2010 1 commit
    • Jan D's avatar
      Use Gtk+ tooltips by default for Gtk+ Emacs. · aa1859f5
      Jan D authored
      * lisp/cus-start.el (x-gtk-use-system-tooltips): New variable.
      
      * src/gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
      (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets): New
      functions.
      (xg_create_frame_widgets): Set ttip_* to 0.  Set a dummy tooltip
      text so qttip_cb is called.  Connect query-tooltip to qttip_cb.
      Remove code that is commented out.
      
      * src/gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
      (xg_show_tooltip, xg_hide_tooltip): Declare.
      
      * src/xfns.c (x_gtk_use_system_tooltips): New variable.
      (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
      new gtkutil tooltip functions to show the tooltip.
      (Fx_hide_tip): Call xg_hide_tooltip.
      (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
      
      * src/xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
      calling gtk_widget_queue_draw.
      (x_free_frame_resources): Call xg_free_frame_widgets.
      
      * src/xterm.h (struct x_output): Add ttip_widget, ttip_window and
      ttip_lbl.
      aa1859f5
  12. 29 Jul, 2010 1 commit
  13. 24 Jul, 2010 1 commit
    • Christoph Scholtes's avatar
      New make target for Windows platform: make dist (bug#6602) · e3aef5c6
      Christoph Scholtes authored
      * admin/admin.el: Write version number to nt/makefile.w32-in.
      * admin/nt/makedist.bat: Remove; replaced with `zipdist.bat'
        in the nt/ directory.
      * admin/nt/README.W32: Relocate to nt/ directory.
      * etc/NEWS: Document new --distfiles configure.bat option and
        `dist' make target on Windows.
      * nt/INSTALL: Document new dist target and add section about
        creating binary distributions.
      * nt/configure.bat: New parameter `--distfiles'.
      * nt/makefile.w32-in: Add version number, new target `dist'.
        Add new target `install-shortcuts'.
      * nt/zipdist.bat: New file; create zipped binary distribution,
        replaces admin/nt/makedist.bat.
      e3aef5c6
  14. 23 Jul, 2010 1 commit
    • Michael Mauger's avatar
      SQL Mode Version2.4 - Improved login prompting · 5474c40f
      Michael Mauger authored
      	* progmodes/sql.el: Version 2.4.  Improved Login prompting.
      	(sql-login-params): New widget definition.
      	(sql-oracle-login-params, sql-mysql-login-params)
      	(sql-solid-login-params, sql-sybase-login-params)
      	(sql-informix-login-params, sql-ingres-login-params)
      	(sql-ms-login-params, sql-postgres-login-params)
      	(sql-interbase-login-params, sql-db2-login-params)
      	(sql-linter-login-params): Use it.
      	(sql-sqlite-login-params): Use it; Define "database" parameter as
      	a file name.
      	(sql-sqlite-program): Change to "sqlite3"
      	(sql-comint-sqlite): Make sure database name is complete.
      	(sql-for-each-login): New function.
      	(sql-connect, sql-save-connection): Use it.
      	(sql-get-login-ext): New function.
      	(sql-get-login): Use it.
      	(sql-make-alternate-buffer-name): Handle :file parameters.
      5474c40f
  15. 21 Jul, 2010 1 commit
  16. 19 Jul, 2010 1 commit
  17. 18 Jul, 2010 1 commit
  18. 17 Jul, 2010 1 commit
    • Chong Yidong's avatar
      Change x-select-enable-primary to nil. · 2490cbbc
      Chong Yidong authored
      * lisp/mouse.el (mouse-drag-copy-region):
      * lisp/simple.el (select-active-regions): Likewise.
      
      * lisp/term/x-win.el (x-select-enable-primary): Change default to nil.
      (x-select-enable-clipboard): Add :version keyword.
      2490cbbc
  19. 14 Jul, 2010 1 commit
    • 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
  20. 03 Jul, 2010 2 commits
  21. 02 Jul, 2010 1 commit
  22. 28 Jun, 2010 2 commits
    • Jan D's avatar
      Use non-deprecated Gtk+ functions, add changes for Gtk+3 with GSEAL_ENABLE. · e547b051
      Jan D authored
      * configure.in: Add --with-x-toolkit=gtk3. Remove HAVE_GTK_MULTIDISPLAY,
      check for gtk_file_chooser_dialog_new, and HAVE_GTK_FILE_BOTH (implied
      by minimum required Gtk+ 2.6).  Add checks for functions introduced
      in Gtk+ 2.14 or newer.
      
      * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
      (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
      defines based on what configure finds.
      
      * xterm.c (XTflash): Use gtk_widget_get_window.
      (xg_scroll_callback): Use gtk_adjustment_get_upper and
      gtk_adjustment_get_page_size.
      (handle_one_xevent): Use gtk_widget_get_mapped.
      (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
      messages.
      
      * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
      
      * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
      HAVE_GTK_FILE_SELECTION_NEW.
      
      * gtkutil.c (xg_display_open, xg_display_close): Remove
      HAVE_GTK_MULTIDISPLAY, it is always defined.
      (xg_display_open): Return type is void.
      (gtk_widget_set_has_window)
      (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
      (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
      (gtk_adjustment_set_page_increment)
      (gtk_adjustment_get_step_increment): #define these if not found
      by configure.
      (remove_submenu): New define based on Gtk+ version.
      (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
      gtk_widget_get_window.
      (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
      (xg_create_frame_widgets): Use gtk_widget_set_has_window.
      (create_dialog): Use gtk_dialog_get_action_area and
      gtk_dialog_get_content_area.
      (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
      and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW.  File chooser is always
      available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
      (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
      g_object_ref and g_object_unref.
      (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
      gtk_widget_get_sensitive.
      (xg_update_submenu): Use remove_submenu.
      (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
      properties instead to get old x and y position.
      (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
      gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
      gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
      (xg_get_tool_bar_widgets): New function.
      (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
      (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
      (toolbar_set_orientation): New #define based on if configure
      finds gtk_orientable_set_orientation.
      (xg_create_tool_bar): Call toolbar_set_orientation.
      (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
      instead of gtk_box_pack_start_defaults.
      e547b051
    • Chong Yidong's avatar
      * bindings.el (global-map): Bind delete and DEL, the former to · b9229673
      Chong Yidong authored
      delete-forward-char.
      
      * mouse.el (mouse-region-delete-keys): Deleted.
      (mouse-show-mark): Simplify.
      
      * simple.el (delete-active-region): New option.
      (delete-backward-char): Implement in Lisp.
      (delete-forward-char): New command.
      
      * src/cmds.c (Fdelete_backward_char): Move into Lisp.
      b9229673
  23. 27 Jun, 2010 1 commit
    • Chong Yidong's avatar
      Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249). · 6431f2e6
      Chong Yidong authored
      Don't add entries for `menu-bar-lines' and `tool-bar-lines' to
      `default-frame-alist' and `initial-frame-alist' at startup.
      Instead, use X resources to update the `menu-bar-mode' and
      `tool-bar-mode' variables at startup, and use them as defaults during
      frame creation.
      
      * lisp/frame.el (frame-notice-user-settings): Don't change
      default-frame-alist based on menu-bar-mode and tool-bar-mode, or
      vice versa.
      
      * lisp/menu-bar.el (menu-bar-mode):
      * lisp/tool-bar.el (tool-bar-mode): Don't change default-frame-alist.
      Set init-value to t.
      
      * lisp/startup.el (command-line): Use X resources to set the value of
      menu-bar-mode and tool-bar-mode, before calling frame-initialize.
      
      * src/frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
      
      * src/w32fns.c (Fx_create_frame):
      * src/nsfns.m (Fx_create_frame): Likewise.
      
      * src/xfns.c (Fx_create_frame): Don't consult X resouces when setting
      menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
      tool-bar-mode, which are now set using these X resources at
      startup, to determine the defaults.
      6431f2e6
  24. 17 Jun, 2010 1 commit
    • Chong Yidong's avatar
      Merge package.el, written by Tom Tromey <tromey@redhat.com>. · 44198b6e
      Chong Yidong authored
      Changes relative to version 0.9 of package.el are listed below:
      
      * emacs-lisp/package-x.el: New file.  Package uploading
      functionality split out from package.el.
      
      * emacs-lisp/package.el (package-archive-base): Point to
      elpa.gnu.org.
      (package-enable, package-load-list): New defcustoms.
      (package-user-dir, package-directory-list): Turn into defcustoms.
      Don't include package-user-dir in package-directory-list.
      (package--builtins-base): Don't include Emacs as a "package".
      (package-subdirectory-regexp): New var.
      (package-load-all-descriptors, package-compute-transaction)
      (package-download-transaction): Obey package-load-list.
      (package-activate-1): Rename from package-do-activate.
      (package-list-packages-internal): Check package-load-list.
      (package-load-descriptor, package-generate-autoloads)
      (package-unpack, package-unpack-single)
      (package--read-archive-file, package-delete): Use
      expand-file-name.
      
      * startup.el (command-line): Load packages after reading init
      file.
      44198b6e
  25. 16 Jun, 2010 1 commit
  26. 15 Jun, 2010 1 commit
  27. 14 Jun, 2010 1 commit
    • Juri Linkov's avatar
      Add sort option `list-colors-sort'. (Bug#6332) · f0bf7c8e
      Juri Linkov authored
      * lisp/facemenu.el (color-rgb-to-hsv): New function.
      (list-colors-sort): New defcustom.
      (list-colors-sort-key): New function.
      (list-colors-display): Doc fix.  Sort list according to the option
      `list-colors-sort'.
      (list-colors-print): Add HSV values to `help-echo' property of
      RGB strings.
      f0bf7c8e
  28. 11 Jun, 2010 1 commit
    • Glenn Morris's avatar
      Make compressing the info files optional. · 338648ad
      Glenn Morris authored
      * configure.in (--without-compress-info): New option.
      (GZIP_INFO): New output variable.
      
      * Makefile.in (GZIP_INFO): New, set by configure.
      (install-arch-indep): Don't gzip info pages if GZIP_INFO is nil.
      Handle man pages in the same way.
      
      * etc/NEWS: Re-order installation section, and add new item.
      338648ad
  29. 09 Jun, 2010 2 commits
  30. 05 Jun, 2010 1 commit
    • Dan Nicolaescu's avatar
      vc-log-incoming/vc-log-outgoing fixes for Git. · eccdfe5f
      Dan Nicolaescu authored
      * lisp/vc-git.el (vc-git-log-view-mode): Fix font lock for
      incoming/outgoing logs.
      (vc-git-log-outgoing, vc-git-log-incoming): Use @{upstream}
      instead of vc-git-compute-remote.
      (vc-git-compute-remote): Remove.
      eccdfe5f
  31. 03 Jun, 2010 2 commits
  32. 29 May, 2010 1 commit
    • Chong Yidong's avatar
      Add --parent-id argument to emacsclient. · 0191e222
      Chong Yidong authored
      * lib-src/emacsclient.c (longopts, decode_options, print_help_and_exit):
      New arg `-parent-id'.
      (main): Send parent-id to Emacs.
      
      * lisp/server.el (server-process-filter): Receive parent-id argument
      from emacsclient.
      (server-create-window-system-frame): New arg.  Pass parent-id as
      frame parameter.
      0191e222