1. 10 Sep, 2012 1 commit
  2. 09 Sep, 2012 2 commits
    • Andreas Schwab's avatar
      * lisp/register.el (register-separator): Rename from · bfabf70a
      Andreas Schwab authored
      separator-register.  All uses changed.  Doc fix.
      (register): Fix version.
      bfabf70a
    • Chong Yidong's avatar
      Allow scrolling in y-or-n-p. · 011474aa
      Chong Yidong authored
      * lisp/replace.el (query-replace-map): Bind four new symbols for
      requesting window scrolling.
      
      * lisp/subr.el (y-or-n-p): Handle the window-scrolling bindings in
      query-replace-map.
      
      * lisp/custom.el (custom-theme-load-confirm): Use y-or-n-p.
      
      * lisp/window.el (scroll-other-window-down): Make the arg optional.
      
      * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Don't bind scrolling keys
      since they are now in query-replace-map.
      
      * doc/lispref/minibuf.texi (Yes-or-No Queries): Document recentering and
      scrolling in y-or-n-p.  Remove gratuitous example.
      
      * doc/lispref/searching.texi (Search and Replace): Document window scrolling
      entries in query-replace-map.
      
      Fixes: debbugs:8948
      011474aa
  3. 08 Sep, 2012 3 commits
    • Jambunathan K's avatar
      * lisp/register.el (increment-register): Route it to `append-to-register', · 0979429b
      Jambunathan K authored
      if register contains text so that `C-x r +' can now be
      used for appending to a text register.
      (register): New group.
      (register-separator): New user option.
      (append-to-register, prepend-to-register): Add separator based on
      `register-separator.
      * doc/emacs/regs.texi (Text Registers): `C-x r +' can now be used instead of
      M-x append-to-register.  New option `register-separator'.
      (Number Registers): Mention that `C-x r +' is polymorphic.
      
      Fixes: debbugs:12217
      0979429b
    • Chong Yidong's avatar
      Don't bind M-= in Dired. · 35d98877
      Chong Yidong authored
      * lisp/dired.el (dired-mode-map): Don't bind M-=.
      
      * lisp/dired-aux.el (dired-diff): Use backup file as default.
      35d98877
    • Martin Rudalics's avatar
      Fix handling of debugger window. (Bug#8789) · fa2bcf43
      Martin Rudalics authored
      * window.el (display-buffer-in-previous-window): New buffer
      display action function.
      
      * emacs-lisp/debug.el (debugger-bury-or-kill): New option.
      (debugger-previous-window): New variable.
      (debug): Rewrite using display-buffer-in-previous-window,
      quit-restore-window and debugger-bury-or-kill.  (Bug#8789)
      fa2bcf43
  4. 07 Sep, 2012 2 commits
    • Chong Yidong's avatar
      Remove obsolete display-buffer-reuse-frames from manuals. · 14ba4cf3
      Chong Yidong authored
      * doc/emacs/windows.texi (Window Choice): Don't mention obsolete
      display-buffer-reuse-frames.
      
      * doc/lispref/windows.texi (Display Action Functions)
      (Choosing Window Options): Remove obsolete variable
      display-buffer-reuse-frames.
      14ba4cf3
    • Chong Yidong's avatar
      Add a utility function buffer-narrowed-p, and use it. · e5c2edf7
      Chong Yidong authored
      * lisp/subr.el (buffer-narrowed-p): New function.
      
      * lisp/ses.el (ses-widen):
      * lisp/simple.el (count-words--buffer-message):
      * lisp/net/browse-url.el (browse-url-of-buffer): Use it
      
      * lisp/simple.el (count-words-region): Don't signal an error if there
      is a non-nil prefix arg and the mark is not set.
      
      * doc/lispref/positions.texi (Narrowing): Document buffer-narrowed-p.
      e5c2edf7
  5. 06 Sep, 2012 2 commits
    • Chong Yidong's avatar
    • Juri Linkov's avatar
      * lisp/replace.el (replace-lax-whitespace): New defcustom. · 826b3235
      Juri Linkov authored
      (query-replace, query-replace-regexp, query-replace-regexp-eval)
      (replace-string, replace-regexp): Mention it in docstrings.
      (perform-replace, replace-highlight): Let-bind
      isearch-lax-whitespace and isearch-regexp-lax-whitespace according
      to the values of replace-lax-whitespace and regexp-flag.
      Don't let-bind search-whitespace-regexp. 
      
      * lisp/isearch.el (isearch-query-replace): Let-bind
      replace-lax-whitespace instead of let-binding
      replace-search-function and replace-re-search-function.
      (isearch-lazy-highlight-search): Let-bind isearch-lax-whitespace
      and isearch-regexp-lax-whitespace to lazy-highlight variables.
      (isearch-toggle-symbol): Set isearch-regexp to nil
      in isearch-word mode (like in isearch-toggle-word).
      
      Fixes: debbugs:10885
      826b3235
  6. 05 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      Provide support for fitting frames to buffers. · ef654460
      Martin Rudalics authored
      * help.el (temp-buffer-max-height): New default value.
      (temp-buffer-resize-frames): New option.
      (resize-temp-buffer-window): Optionally resize frame.
      
      * window.el (fit-frame-to-buffer-bottom-margin): New option.
      (fit-frame-to-buffer): New function.
      ef654460
  7. 04 Sep, 2012 4 commits
    • Lars Ingebrigtsen's avatar
      Implement `debug-on-message'. · 7f7e0167
      Lars Ingebrigtsen authored
      This allows tracking down what piece of code is outputting stuff in
      the echo area.
      
      * eval.c (call_debugger): Make the function non-static so that we
      can call it from set_message.
      
      * xdisp.c (set_message): Implement the new variable `debug-on-message'.
      (syms_of_xdisp): Defvar it and `inhibit-debug-on-message'.
      7f7e0167
    • Paul Eggert's avatar
      Give more-useful info on a fatal error (Bug#12328). · cf29dd84
      Paul Eggert authored
      * doc/emacs/trouble.texi (Crashing): New section, documenting this.
      * etc/NEWS: Document the change.
      * src/alloc.c [ENABLE_CHECKING]: Do not include <execinfo.h>.
      (die) [ENABLE_CHECKING]: Call fatal_error_backtrace instead
      of doing the work ourselves.
      * src/emacs.c (fatal_error_signal): Let fatal_error_backtrace
      do most of the work.
      (fatal_error_backtrace): New function, taken from the guts
      of the old fatal_error_signal, but with a new option to output
      a backtrace.
      (shut_down_emacs) [!DOS_NT]: Use strsignal to give more-useful
      info about the signal than just its number.
      * src/lisp.h (fatal_error_backtrace, emacs_backtrace): New decls.
      * src/sysdep.c: Include <execinfo.h>
      (emacs_backtrace): New function, taken partly from the previous
      code of the 'die' function.
      (emacs_abort): Call fatal_error_backtrace rather than abort.
      cf29dd84
    • Stefan Monnier's avatar
      Macro-expand interpreted code during load. · 972debf2
      Stefan Monnier authored
      * src/lread.c (readevalloop): Call internal-macroexpand-for-load to perform
      eager (load-time) macro-expansion.
      * src/lisp.mk (lisp): Add macroexp.
      * lisp/loadup.el: Load macroexp.  Remove hack.
      * lisp/emacs-lisp/macroexp.el (macroexp--eval-if-compile): New function.
      (macroexp--expand-all): Use it to get better warnings.
      (macroexp--backtrace, macroexp--trim-backtrace-frame)
      (internal-macroexpand-for-load): New functions.
      (macroexp--pending-eager-loads): New var.
      (emacs-startup-hook): New hack to replace one in loadup.el.
      * lisp/emacs-lisp/cl-macs.el (cl--compiler-macro-list*)
      (cl--compiler-macro-cXXr): Move to top, before they can be used.
      (cl-psetf): Simplify.
      (cl-defstruct): Add indent rule.
      972debf2
    • Lars Ingebrigtsen's avatar
      Have smtpmail.el prefer the From: header for the MAIL FROM envelope · 8ce192e3
      Lars Ingebrigtsen authored
      * mail/smtpmail.el (smtpmail-send-it): Prefer the From: header
      over `user-mail-address' for the SMTP MAIL FROM envelope.
      (smtpmail-via-smtp): Ditto.
      8ce192e3
  8. 03 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      New macro with-temp-buffer-window and related fixes. · c5e28e39
      Martin Rudalics authored
      * buffer.c (Fdelete_all_overlays): New function.
      
      * window.el (temp-buffer-window-setup-hook)
      (temp-buffer-window-show-hook): New hooks.
      (temp-buffer-window-setup, temp-buffer-window-show)
      (with-temp-buffer-window): New functions.
      (fit-window-to-buffer): Remove unused optional argument
      OVERRIDE.
      (special-display-popup-frame): Make sure the window used shows
      BUFFER.
      
      * help.el (temp-buffer-resize-mode): Fix doc-string.
      (resize-temp-buffer-window): New optional argument WINDOW.
      
      * files.el (recover-file, save-buffers-kill-emacs):
      * dired.el (dired-mark-pop-up): Use with-temp-buffer-window.
      c5e28e39
  9. 02 Sep, 2012 2 commits
    • Juri Linkov's avatar
      Toggle whitespace matching mode with M-s SPC. · 63dd1c6f
      Juri Linkov authored
      http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00008.html
      
      * lisp/isearch.el (search-whitespace-regexp): Doc fix.
      Remove cons cell customization.
      (isearch-mode-map): Bind "\M-s " to isearch-toggle-lax-whitespace.
      (isearch-lax-whitespace, isearch-regexp-lax-whitespace):
      New variables.
      (isearch-forward, isearch-forward-regexp): Doc fix.
      (isearch-toggle-lax-whitespace): New command.
      (search-forward-lax-whitespace, search-backward-lax-whitespace)
      (re-search-forward-lax-whitespace)
      (re-search-backward-lax-whitespace): New functions.
      (isearch-whitespace-regexp): Remove function.
      (isearch-query-replace): Let-bind replace-search-function and
      replace-re-search-function.
      (isearch-occur): Let-bind search-spaces-regexp according to the
      value of isearch-lax-whitespace and isearch-regexp-lax-whitespace.
      (isearch-quote-char): Check isearch-regexp-lax-whitespace in the
      condition for C-q SPC.
      (isearch-search-fun-default): Use new functions mentioned above.
      (isearch-search-forward, isearch-search-backward): Remove functions.
      (isearch-search): Don't let-bind search-spaces-regexp.
      (isearch-lazy-highlight-space-regexp): Remove variable.
      (isearch-lazy-highlight-lax-whitespace)
      (isearch-lazy-highlight-regexp-lax-whitespace): New variables.
      (isearch-lazy-highlight-new-loop): Use them.
      (isearch-lazy-highlight-search): Don't let-bind search-spaces-regexp.
      63dd1c6f
    • Chong Yidong's avatar
  10. 01 Sep, 2012 1 commit
    • Paul Eggert's avatar
      Better seed support for (random). · 0e23ef9d
      Paul Eggert authored
      * doc/lispref/numbers.texi (Random Numbers): Document new behavior of
      the calls (random) and (random STRING).
      * etc/NEWS: Document new behavior of (random), (random "string").
      * lisp/play/5x5.el, lisp/play/animate.el, lisp/play/cookie1.el:
      * lisp/play/dissociate.el, lisp/play/doctor.el, lisp/play/dunnet.el:
      * lisp/play/gomoku.el, lisp/play/landmark.el, lisp/play/mpuz.el:
      * lisp/play/tetris.el, lisp/play/zone.el:
      * lisp/calc/calc-comb.el (math-init-random-base):
      * lisp/play/blackbox.el (bb-init-board):
      * lisp/play/life.el (life):
      * lisp/server.el (server-use-tcp):
      * lisp/type-break.el (type-break):
      Remove unnecessary call to (random t).
      * lisp/net/sasl.el (sasl-unique-id-function):
      Change (random t) to (random), now that the latter is more random.
      * lisp/play/life.el (life-initialized): Remove no-longer-needed var.
      * lisp/gnus/gnus-sync.el (gnus-sync-lesync-setup):
      * lisp/gnus/message.el (message-canlock-generate, message-unique-id):
      Change (random t) to (random), now that the latter is more random.
      * lisp/org/org-id.el (org-id-uuid):
      Change (random t) to (random), now that the latter is more random.
      * src/emacs.c (main): Call init_random.
      * src/fns.c (Frandom): Set the seed from a string argument, if given.
      Remove long-obsolete Gentzel cruft.
      * src/lisp.h, src/sysdep.c (seed_random): Now takes address and size, not long.
      (init_random): New function.
      0e23ef9d
  11. 30 Aug, 2012 1 commit
  12. 29 Aug, 2012 2 commits
  13. 26 Aug, 2012 4 commits
    • Chong Yidong's avatar
      Make special-display-* and display-buffer-reuse-frames obsolete. · 77f1f99c
      Chong Yidong authored
      * lisp/window.el (special-display-regexps, special-display-frame-alist)
      (special-display-buffer-names, special-display-function)
      (display-buffer-reuse-frames): Mark as obsolete.
      
      * lisp/progmodes/compile.el: Don't use display-buffer-reuse-frames.
      
      * help.el (help-print-return-message): Don't treat
      display-buffer-reuse-frames specially.
      77f1f99c
    • Paul Eggert's avatar
      Spelling fixes. · 8b2e00a3
      Paul Eggert authored
      * Makefile.in (.PHONY): versioclean -> versionclean.
      8b2e00a3
    • Chong Yidong's avatar
      Clean up gdb-mi's usage of display-buffer. · d97af5a0
      Chong Yidong authored
      * progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): New
      variable, replacing gdb-frame-parameters.
      (gdb-frame-io-buffer, gdb-frame-breakpoints-buffer)
      (gdb-frame-threads-buffer, gdb-frame-memory-buffer)
      (gdb-frame-disassembly-buffer, gdb-frame-stack-buffer)
      (gdb-frame-locals-buffer, gdb-frame-registers-buffer): Use it.
      (def-gdb-frame-for-buffer): Macro deleted.  It is easier to define
      the functions directly with gdb-display-buffer-other-frame-action.
      (gdb-display-breakpoints-buffer, gdb-display-threads-buffer)
      (gdb-display-memory-buffer, gdb-display-disassembly-buffer)
      (gdb-display-stack-buffer, gdb-display-locals-buffer)
      (gdb-display-registers-buffer): Define directly.
      (def-gdb-display-buffer): Macro deleted.
      (gdb-display-buffer): Remove second and third args, callers don't
      use them.  Defer to the default display-buffer behavior, apart
      from making windows dedicated.
      (gdb-setup-windows): Don't call display-buffer unnecessarily.
      
      * window.el (display-buffer-pop-up-frame): Handle a
      pop-up-frame-parameters alist entry.
      (display-buffer): Document it.
      
      * progmodes/gud.el (gud-display-line): Just use display-buffer.
      d97af5a0
    • Chong Yidong's avatar
      Make ordinary isearch obey search-whitespace-regexp too. · dd7ffad6
      Chong Yidong authored
      * lisp/isearch.el (search-whitespace-regexp): Make string and nil
      values apply to both ordinary and regexp search.  Allow a cons
      cell value to distinguish between the two.
      (isearch-whitespace-regexp, isearch-search-forward)
      (isearch-search-backward): New functions.
      (isearch-occur, isearch-search-fun-default, isearch-search)
      (isearch-lazy-highlight-new-loop): Use them.
      (isearch-forward, isearch-forward-regexp): Doc fix.
      dd7ffad6
  14. 22 Aug, 2012 1 commit
  15. 18 Aug, 2012 1 commit
    • Chong Yidong's avatar
      Add yank-handled-properties; use it for `font-lock-face' and `category' · 2170b1bd
      Chong Yidong authored
      properties, instead of hard-coding these properties' special handling.
      
      * lisp/simple.el (yank-handled-properties): New defcustom.
      (yank-excluded-properties): Add font-lock-face and category.
      (yank): Doc fix.
      
      * lisp/subr.el (remove-yank-excluded-properties): Obey
      yank-handled-properties.  The special handling of font-lock-face
      and category is now done this way, instead of being hard-coded.
      (insert-for-yank-1): Remove font-lock-face handling.
      (yank-handle-font-lock-face-property)
      (yank-handle-category-property): New function.
      2170b1bd
  16. 15 Aug, 2012 4 commits
  17. 13 Aug, 2012 1 commit
  18. 10 Aug, 2012 2 commits
  19. 08 Aug, 2012 2 commits
  20. 06 Aug, 2012 2 commits
  21. 05 Aug, 2012 1 commit