1. 26 Jan, 2011 1 commit
    • Stefan Monnier's avatar
      Let the debugger continue to the normal handler. · e7f7fbaa
      Stefan Monnier authored
      * src/eval.c (maybe_call_debugger): Declare before new use.
      (find_handler_clause): Don't call debugger any more.
      Ignore Vstack_trace_on_error.
      Use XCAR/XCDR.
      (syms_of_eval): Remove Vstack_trace_on_error.
      (Fsignal): Only modify handlerlist when we know we need to do it.
      Call the debugger when necessary.
      * src/globals.h (Vstack_trace_on_error): Remove.
      
      Fixes: debbugs:7825
      e7f7fbaa
  2. 25 Jan, 2011 2 commits
    • Glenn Morris's avatar
      copyright.el updates. · 0fe719e6
      Glenn Morris authored
      * lisp/emacs-lisp/copyright.el (copyright-at-end-flag)
      (copyright-names-regexp): Add safety properties.
      (copyright-year-ranges): New option.
      (copyright-find-end): New function, split from copyright-update-year.
      (copyright-update-year): Use copyright-find-end.
      (copyright-fix-years): Optionally, convert years to ranges.
      Handle years continued over comment lines.
      Do not mess with the fill-prefix.
      Do not call copyright-update.
      (copyright-update-directory): Optionally, fix years rather than update.
      Skip directories.  Find files literally, with only safe local vars.
      
      * etc/NEWS: Mention copyright-fix-years and ranges.
      0fe719e6
    • Glenn Morris's avatar
      73b0cd50
  3. 22 Jan, 2011 1 commit
  4. 20 Jan, 2011 1 commit
  5. 15 Jan, 2011 1 commit
    • Mark Diekhans's avatar
      Make last-resort backup file in .emacs.d (Bug#6953). · b024d9f0
      Mark Diekhans authored
      * lisp/files.el (backup-buffer): Make last-resort backup file in
      .emacs.d.
      
      * lisp/subr.el (locate-user-emacs-file): If .emacs.d does not exist,
      make it with permission 700.
      
      * doc/emacs/files.texi (Backup Names): Document the new location of the
      last-resort backup file.
      b024d9f0
  6. 13 Jan, 2011 1 commit
    • Chong Yidong's avatar
      New arg RETURN-ACTION for compose-mail, and related functions. · 25ca2e61
      Chong Yidong authored
      * lisp/mail/sendmail.el (mail-return-action): New var.
      (mail-mode): Make it buffer-local.
      (mail-bury): Obey it.  Move special Rmail window handling to
      rmail-mail-return.
      (mail, mail-setup): New arg RETURN-ACTION.
      (sendmail-user-agent-compose): Move from simple.el.
      
      * lisp/simple.el (sendmail-user-agent-compose): Move to sendmail.el.
      (compose-mail): New arg RETURN-ACTION.
      (compose-mail-other-window, compose-mail-other-frame): Likewise.
      
      * lisp/gnus/gnus-msg.el (gnus-msg-mail): New arg RETURN-ACTION.  Pass it to
      message-mail.
      
      * lisp/gnus/message.el (message-mail): New arg RETURN-ACTION.
      (message-return-action): New var.
      (message-bury): Use it.
      (message-mode): Make it buffer-local.
      (message-send-and-exit): Always call message-bury.
      (message-tool-bar-gnome): Tweak tool-bar items.  Add :vert-only tags.
      
      * lisp/mail/rmail.el (rmail-mail-return): New function.
      (rmail-start-mail): Pass it to compose-mail.
      
      * lisp/mh-e/mh-comp.el (mh-user-agent-compose): New arg RETURN-ACTION.
      25ca2e61
  7. 12 Jan, 2011 1 commit
    • Christian Ohler's avatar
      Add ERT, a tool for automated testing in Emacs Lisp. · d221e780
      Christian Ohler authored
      * Makefile.in, configure.in, doc/misc/Makefile.in, doc/misc/makefile.w32-in:
      Add ERT.  Make "make check" run tests in test/automated.
      
      * doc/misc/ert.texi, lisp/emacs-lisp/ert.el, lisp/emacs-lisp/ert-x.el:
      New files.
      
      * test/automated: New directory.
      d221e780
  8. 11 Jan, 2011 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/prolog.el: Fix up coding conventions and such. · 04380ff1
      Stefan Monnier authored
      (prolog-indent-width): Use the same default as in
      previous prolog.el rather than tab-width which depends on which buffer
      is current when the file is loaded.
      (prolog-electric-newline-flag): Only enable if electric-indent-mode
      is not available.
      (prolog-emacs): Remove.  Use (featurep 'xemacs) instead.
      (prolog-known-systems): Remove.
      (prolog-mode-syntax-table, prolog-inferior-mode-map):
      Move initialization into declaration.
      (prolog-mode-map): Move initialization into declaration.
      Remove system-specific mode-map vars, since they referred to the same
      keymap anyway.
      (prolog-mode-variables): Obey the user's preference w.r.t
      adaptive-fill-mode.  Prefer symbol-value to `eval'.
      (prolog-mode-keybindings-edit): Add compatibility bindings.
      (prolog-mode): Use define-derived-mode.  Don't handle mercury here.
      (mercury-mode-map): New var.
      (mercury-mode, prolog-inferior-mode): Use define-derived-mode.
      (prolog-ensure-process, prolog-process-insert-string)
      (prolog-consult-compile): Use with-current-buffer.
      (prolog-guess-fill-prefix): Simplify data flow.
      (prolog-replace-in-string): New function to use instead of
      replace-in-string.
      (prolog-enable-sicstus-sd): Don't abuse `eval'.
      (prolog-uncomment-region): Use `uncomment-region' when available.
      (prolog-electric-colon, prolog-electric-dash): Use `eolp'.
      (prolog-int-to-char, prolog-char-to-int): New functions to use instead
      of int-to-char and char-to-int.
      (prolog-mode-hook, prolog-inferior-mode-hook): Don't force font-lock.
      04380ff1
  9. 10 Jan, 2011 1 commit
  10. 09 Jan, 2011 1 commit
  11. 08 Jan, 2011 2 commits
  12. 07 Jan, 2011 2 commits
    • Chong Yidong's avatar
      Allow format args for y-or-n-p and yes-or-no-p. · 8c51d2a2
      Chong Yidong authored
      * lisp/subr.el (y-or-n-p): Accept format string args.
      * src/fns.c (Fyes_or_no_p): Accept format string args.
      8c51d2a2
    • Glenn Morris's avatar
      Add --no-site-lisp option, make -Q use it. (Bug#5707) · 66b7b0fe
      Glenn Morris authored
      * lisp/Makefile.in (EMACSOPT): Add --no-site-lisp.
      
      * src/emacs.c (no_site_lisp): New int.
      (USAGE1): Add --no-site-lisp, mention -Q uses it.
      (main): Set no_site_lisp.
      (standard_args): Add --no-site-lisp.
      
      * src/lisp.h (no_site_lisp): New int.
      
      * src/lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
      directories to Vload_path.
      
      * etc/NEWS: Mention --no-site-lisp.
      66b7b0fe
  13. 04 Jan, 2011 3 commits
  14. 03 Jan, 2011 1 commit
  15. 02 Jan, 2011 1 commit
  16. 26 Dec, 2010 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/rx.el: Make it a superset of sregex. · 723ee192
      Stefan Monnier authored
      (rx-constituents): Add `any => "."', mark `repeat' as taking any number
      of args, add `regex' alias.
      (rx-info): Add arg to distinguish head and standalone forms.
      (rx-check, rx-form): Pass the corresponding arg.
      (rx-**): Simplify.
      (rx-repeat): Make it work for any number of args.
      (rx-syntax): Make it accept syntax chars as is.
      * lisp/obsolete/sregex.el: Move from emacs-lisp/.
      * lisp/emacs-lisp/re-builder.el: Remove sregex support.
      * lisp/emacs-lisp/edebug.el (sregexq, rx): Remove redundant defs.
      723ee192
  17. 25 Dec, 2010 1 commit
    • Eli Zaretskii's avatar
      More fallout from fixing bug #7587. · 2e4ab211
      Eli Zaretskii authored
       src/xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
       the basic faces are supported.
       doc/lispref/modes.texi (Emulating Mode Line): Fix last change.
       etc/NEWS: Remove the entry about format-mode-line accepting only
       basic faces.
      2e4ab211
  18. 24 Dec, 2010 2 commits
  19. 20 Dec, 2010 2 commits
    • Chong Yidong's avatar
    • Chong Yidong's avatar
      Implement tool-bar separators for non-GTK tool-bars. · 94975270
      Chong Yidong authored
      * lisp/tool-bar.el (tool-bar--image-expression): New function.
      (tool-bar-local-item, tool-bar--image-exp): Use it.
      (tool-bar-setup): Initialize tool-bar-separator-image-expression.
      Use :enable instead of :visible to avoid changing the tool-bar
      configuration unnecessarily.
      
      * src/keyboard.c (Vtool_bar_separator_image_expression): New variable.
      (parse_tool_bar_item): Use it to obtain image separators for
      displays not using native tool-bar separators.
      
      * src/xdisp.c (build_desired_tool_bar_string): Don't handle separators
      specially, since this is now done in parse_tool_bar_item.
      
      * lisp/info.el (info-tool-bar-map): Add separators.
      94975270
  20. 18 Dec, 2010 1 commit
    • Eli Zaretskii's avatar
      Fallout from fixing bug #7587. · 287e63bb
      Eli Zaretskii authored
       doc/lispref/modes.texi (Emulating Mode Line): Update documentation of
       format-mode-line according to changes that fixed bug #7587.
      
       etc/NEWS: Mention the incompatible change in format-mode-line wrt its
       FACE argument.
      287e63bb
  21. 17 Dec, 2010 1 commit
    • Chong Yidong's avatar
      Support for menu separators in the GTK tool-bar. · 4039c786
      Chong Yidong authored
      * src/gtkutil.c (XG_BIN_CHILD): New macro.
      (xg_get_menu_item_label, xg_update_menubar)
      (xg_update_menu_item, xg_tool_bar_menu_proxy)
      (xg_show_toolbar_item, update_frame_tool_bar): Use it.
      (separator_names, xg_separator_p): Move to keyboard.c.
      (create_menus, xg_update_submenu, update_frame_tool_bar): Use
      menu_separator_name_p.
      
      * src/keyboard.c (parse_tool_bar_item): Allow menu separators in
      tool-bar maps.
      (menu_separator_name_p): New function, from gtkutil.c.
      (separator_names): Move from gtkutil.c.
      
      * src/keyboard.h (menu_separator_name_p): Add prototype.
      
      * src/nsmenu.m (name_is_separator): Function deleted.
      (addItemWithWidgetValue): Use menu_separator_name_p.
      
      * src/w32menu.c (name_is_separator): Function deleted.
      (add_menu_item): Use menu_separator_name_p.
      4039c786
  22. 16 Dec, 2010 2 commits
  23. 15 Dec, 2010 1 commit
  24. 14 Dec, 2010 1 commit
  25. 06 Dec, 2010 1 commit
  26. 03 Dec, 2010 1 commit
  27. 24 Nov, 2010 1 commit
  28. 23 Nov, 2010 1 commit
  29. 21 Nov, 2010 3 commits
  30. 20 Nov, 2010 1 commit
    • Chong Yidong's avatar
      Document VC headers and other VC changes. · 1aaae3f3
      Chong Yidong authored
      * maintaining.texi (Version Control): Say "commit", not "check in".
      (Version Control Systems): Simplify descriptions.
      (VCS Merging, VCS Changesets, VCS Repositories): New nodes, split from
      VCS Concepts.
      (VC Mode Line): Update example.
      (Old Revisions): Document revert-buffer for vc-diff.
      (Log Buffer): Promote to a subsection.  Document header lines.
      
      * emacs.texi (Top): Update node listing.
      1aaae3f3