1. 14 Nov, 2012 1 commit
  2. 13 Nov, 2012 13 commits
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-move-to-block): Looks for a block · 5e9419e8
      Dmitry Gutov authored
      start/end keyword a bit harder.  Works with different values of N.
      Add more comments.
      (ruby-end-of-block): Update accordingly.
      * test/automated/ruby-mode-tests.el (ruby-heredoc-font-lock)
      (ruby-add-log-current-method-examples): New tests.
      (ruby-test-string): Extract from ruby-should-indent-buffer.
      (ruby-deftest-move-to-block): New macro.
      Add several move-to-block tests.
    • Tsuyoshi Kitamoto's avatar
    • Stefan Monnier's avatar
      * lisp/woman.el (woman-file-name): Don't mess with unread-command-events. · fa470af0
      Stefan Monnier authored
      Fixes: debbugs:12861
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/advice.el: Layer on top of nadvice.el. · 3c442f8b
      Stefan Monnier authored
      Remove out of date self-require hack.
      (ad-do-advised-functions): Use simple `dolist'.
      (ad-advice-name, ad-advice-protected, ad-advice-enabled)
      (ad-advice-definition): Redefine as functions.
      (ad-advice-classes): Move before first use.
      (ad-make-origname, ad-set-orig-definition, ad-clear-orig-definition)
      (ad-make-mapped-call, ad-make-advised-docstring, ad-make-plain-docstring)
      (ad--defalias-fset): Remove functions.
      (ad-make-advicefunname, ad-clear-advicefunname-definition): New functions.
      (ad-get-orig-definition): Rewrite.
      (ad-make-advised-definition-docstring): Change base docstring.
      (ad-real-orig-definition): Rewrite.
      (ad-map-arglists): Change name of called function.
      (ad--make-advised-docstring): Redirect `function' from ad-Advice-...
      (ad-make-advised-definition): Simplify.
      (ad-assemble-advised-definition): Tweak for new calling context.
      (ad-activate-advised-definition): Setup ad-Advice-* instead of ad-Orig-*.
      (ad--defalias-fset): Rename from ad-handle-definition.  Make it set the
      function and call ad-activate if needed.
      (ad-activate, ad-deactivate): Don't call ad-handle-definition any more.
      (ad-recover): Clear ad-Advice-* instead of ad-Orig-*.
      (ad-compile-function): Compile ad-Advice-*.
      (ad-activate-on-top-level, ad-with-auto-activation-disabled): Remove.
      (ad-start-advice, ad-stop-advice): Remove.
    • Eli Zaretskii's avatar
      Fix a typo in src/ChangeLog. · c7085245
      Eli Zaretskii authored
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-add-log-current-method): Print the · 5745cae6
      Dmitry Gutov authored
      period before class method names, not after.  Remove handling of
      one impossible case.  Add comments.
      * test/automated/ruby-mode-tests.el 
      (ruby-add-log-current-method-examples): New test.
      (ruby-test-string): Extract from ruby-should-indent-buffer.
    • Dmitry Antipov's avatar
      Omit glyphs initialization at startup. · 2a14f83b
      Dmitry Antipov authored
      * dispnew.c (glyphs_initialized_initially_p): Remove.
      (adjust_frame_glyphs_initially): Likewise.  Adjust users.
      (Fredraw_frame): Move actual code from here...
      (redraw_here): ...to here.  Add eassert.  Adjust comment.
      (Fredraw_display): Use redraw_frame.
      * xdisp.c (clear_garbaged_frames): Likewise.
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/advice.el: Remove support for freezing. · 7db1bda8
      Stefan Monnier authored
      (ad-make-freeze-docstring, ad-make-freeze-definition): Remove functions.
      (ad-make-single-advice-docstring, ad-defadvice-flags, defadvice):
      Remove support for `freeze'.
    • Glenn Morris's avatar
      Move SES NEWS entry here from emacs-24 and expand it · 4f0552c2
      Glenn Morris authored
      Cf emacs-24 2012-11-09T15:56:51Z!monnier@iro.umontreal.ca.
      Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00221.html
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Never · f178c32d
      Dmitry Gutov authored
      font-lock the beginning of singleton class as heredoc.
      * test/automated/ruby-mode-tests.el (ruby-heredoc-font-lock)
      (ruby-singleton-class-no-heredoc-font-lock): New tests.
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl.el (dolist, dotimes, declare): Use advice-add to · 413d4689
      Stefan Monnier authored
      override the default.
      * lisp/emacs-lisp/cl-macs.el (cl-dolist, cl-dotimes): Rewrite without using
      * lisp/subr.el (dolist, dotimes, declare): Redefine them normally, even when
      `cl' is loaded.
      * lisp/emacs-lisp/nadvice.el (advice--normalize): New function, extracted
      from add-advice.
      (advice--strip-macro): New function.
      (advice--defalias-fset): Use them to handle macros.
      (advice-add): Use them.
      (advice-member-p): Correctly handle macros.
    • Glenn Morris's avatar
    • Paul Eggert's avatar
      Fix a race with verify-visited-file-modtime. · b95a9c0c
      Paul Eggert authored
      Since at least 1991 Emacs has ignored an mtime difference of no
      more than one second, but my guess is that this was to work around
      file system bugs that were fixed long ago.  Since the race is
      causing problems now, let's remove that code.
      * fileio.c (Fverify_visited_file_modtime): Do not accept a file
      whose time stamp is off by no more than a second.  Insist that the
      file time stamps match exactly.
      Fixes: debbugs:12863
  3. 12 Nov, 2012 18 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/gv.el (gv-define-simple-setter): One more fix. · f8705f6e
      Stefan Monnier authored
      Fixes: debbugs:12871
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/nadvice.el: New package. · 231d8498
      Stefan Monnier authored
      * lisp/subr.el (special-form-p): New function.
      * lisp/emacs-lisp/elp.el: Use lexical-binding and advice-add.
      (elp-all-instrumented-list): Remove var.
      (elp-not-profilable): Remove elp-wrapper.
      (elp-profilable-p): Use autoloadp and special-form-p.
      (elp--advice-name): New const.
      (elp-instrument-function): Use advice-add.
      (elp--instrumented-p): New predicate.
      (elp-restore-function): Use advice-remove.
      (elp-restore-all, elp-reset-all): Use mapatoms.
      (elp-set-master): Use elp--instrumented-p.
      (elp--make-wrapper): Rename from elp-wrapper, return a function
      suitable for advice-add.  Use cl-inf.
      (elp-results): Use mapatoms+elp--instrumented-p.
      * lisp/emacs-lisp/debug.el: Use lexical-binding and advice-add.
      (debug-function-list): Remove var.
      (debug): Rename arg, and then let-bind it explicitly inside.
      (debugger-setup-buffer): Rename arg.
      (debugger-setup-buffer): Adjust counts to new debug-on-entry setup.
      (debugger-frame-number): Adjust to new debug-on-entry setup.
      (debug--implement-debug-on-entry): Rename from
      implement-debug-on-entry, add argument.
      (debugger-special-form-p): Remove, use special-form-p instead.
      (debug-on-entry): Use advice-add.
      (debug--function-list): New function.
      (cancel-debug-on-entry): Use it, along with advice-remove.
      (debug-arglist, debug-convert-byte-code, debug-on-entry-1): Remove.
      (debugger-list-functions): Use debug--function-list instead of
      * lisp/emacs-lisp/advice.el (ad-save-real-definition): Remove, unused.
      (ad-special-form-p): Remove, use special-form-p instead.
      (ad-set-advice-info): Use add-function and remove-function.
      (ad--defalias-fset): Adjust accordingly.
      * test/automated/advice-tests.el: New tests.
    • Chong Yidong's avatar
      Doc fix for gdb-stopped-functions. · 0f5414fc
      Chong Yidong authored
      * building.texi (Multithreaded Debugging): gdb-stopped-hooks is
      actually named gdb-stopped-functions.
    • Glenn Morris's avatar
    • Wolfgang Jenkner's avatar
      lisp/ansi-color.el (ansi-color-apply-sequence): Implement SGR codes 39 and 49. · 9db94175
      Wolfgang Jenkner authored
      This fixes bug#12792.  Also, treat unimplemented parameters as 0,
      thereby restoring the behavior of revisions prior to 2012-08-15T03:33:55Z!monnier@iro.umontreal.ca.
    • Stefan Monnier's avatar
      * lisp/cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode): · 237b5653
      Stefan Monnier authored
      * lisp/cedet/semantic/grammar.el (semantic-grammar-mode):
      * lisp/cedet/semantic/util-modes.el (semantic-highlight-edits-mode)
      (semantic-show-parser-state-mode): Avoid obsolete name
      Fixes: debbugs:12869
    • Dmitry Antipov's avatar
      * frame.h (struct frame): Convert external_tool_bar member to · be49ba74
      Dmitry Antipov authored
      1-bit unsigned bitfield.
      * termhooks.h (struct terminal): Remove mouse_moved member since
      all users are long dead.  Adjust comment on mouse_position_hook.
    • Eli Zaretskii's avatar
      Fix bug #12867 with crashes due to large field width in mode-line format. · 32520273
      Eli Zaretskii authored
       src/xdisp.c (decode_mode_spec): Limit the value of WIDTH argument
       passed to pint2str and pint2hrstr to be at most the size of the
       frame's decode_mode_spec_buffer.  This avoids crashes with very
       large values of FIELD_WIDTH argument to decode_mode_spec.
    • Fabián Ezequiel Gallina's avatar
      Fix end-of-defun misbehavior. · 2e6625b5
      Fabián Ezequiel Gallina authored
      * progmodes/python.el (python-nav-beginning-of-defun): Rename from
      python-beginning-of-defun-function.  Handle nested defuns
      (python-nav-end-of-defun): Rename from
      python-end-of-defun-function.  Ensure forward movement.
      (python-info-current-defun): Reimplemented to work as intended
      with new fixed python-nav-{end,beginning}-of-defun.  Stop scanning
      parent defuns as soon as possible.
    • Glenn Morris's avatar
      Document flymake fringe bitmaps · 24c38527
      Glenn Morris authored
      * doc/misc/flymake.texi (Customizable variables)
      (Highlighting erroneous lines): Mention flymake-error-bitmap,
      flymake-warning-bitmap, and flymake-fringe-indicator-position.
      * lisp/progmodes/flymake.el (flymake-error-bitmap)
      (flymake-warning-bitmap, flymake-fringe-indicator-position): Doc fixes.
      (flymake-error-bitmap, flymake-warning-bitmap): Fix :types.
      * etc/NEWS: Related markup.
    • Glenn Morris's avatar
      Mention a few more gv.el features in the lispref · a13e12f9
      Glenn Morris authored
      * doc/lispref/variables.texi (Adding Generalized Variables):
      At least mention gv-define-expander and gv-letplace.
    • Glenn Morris's avatar
      * doc/emacs/misc.texi (Single Shell): Mention async-shell-command-buffer. · adad6d8f
      Glenn Morris authored
      * etc/NEWS: Related markup.
    • Vincent Belaïche's avatar
      * ses.texi: Doc for ses-rename-cell, ses-repair-cell-reference-all & ses-range. · 1796ef98
      Vincent Belaïche authored
      In all file place SES into @acronym{...}.
      (Advanced Features): Add key index and function index for
      ses-set-header-row. Add description for function
      ses-rename-cell. Add description for function
      (Ranges in formulas): Add description for ses-range flags.
    • Dmitry Antipov's avatar
      Simplify by using FOR_EACH_FRAME here and there. · 5b04e9f9
      Dmitry Antipov authored
      * frame.c (next_frame, prev_frame, other_visible_frames)
      (delete_frame, visible-frame-list): Use FOR_EACH_FRAME.
      * w32term.c (x_window_to_scroll_bar): Likewise.
      * window.c (window_list): Likewise.
      * xdisp.c (x_consider_frame_title): Likewise.
      * xfaces.c ( Fdisplay_supports_face_attributes_p): Likewise.
      * xfns.c (x_window_to_frame, x_any_window_to_frame)
      (x_menubar_window_to_frame, x_top_window_to_frame): Likewise.
      * xmenu.c (menubar_id_to_frame): Likewise.
      * xselect.c (frame_for_x_selection): Likewise.
      * xterm.c (x_frame_of_widget, x_window_to_scroll_bar)
      (x_window_to_menu_bar): Likewise.
      * w32fns.c (x_window_to_frame): Likewise.  Adjust comment.
    • Paul Eggert's avatar
      * texinfo.tex: Merge from gnulib. · 31f47fba
      Paul Eggert authored
    • Paul Eggert's avatar
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-move-to-block): When moving · d1e1e53d
      Dmitry Gutov authored
      backward, always stop at indentation.  Reverts the change from
      Fixes: debbugs:12851
    • Paul Eggert's avatar
      Another tweak to vectorlike_header change. · 76ae24d7
      Paul Eggert authored
      * alloc.c (struct Lisp_Vectorlike_Free, NEXT_IN_FREE_LIST):
      Remove, and replace all uses with ...
      (next_in_free_list, set_next_in_free_list):
      New functions, which respect C's aliasing rules better.
  4. 11 Nov, 2012 8 commits