1. 08 Feb, 2014 1 commit
  2. 01 Jan, 2014 1 commit
  3. 20 Dec, 2013 2 commits
    • Juri Linkov's avatar
      * lisp/replace.el (read-regexp-defaults-function): New defcustom. · 24da7273
      Juri Linkov authored
      (read-regexp-suggestions): New function.
      (read-regexp): Use `read-regexp-defaults-function' to get default values.
      Use `read-regexp-suggestions'.  Add non-empty default to history
      for empty input.
      (occur-read-regexp-defaults-function): Remove function.
      (occur-read-primary-args): Use `regexp-history-last' instead of
      * lisp/hi-lock.el (hi-lock-read-regexp-defaults-function): Remove function.
      (hi-lock-line-face-buffer, hi-lock-face-buffer)
      (hi-lock-face-phrase-buffer): Use `regexp-history-last' instead of
      `hi-lock-read-regexp-defaults-function'.  Doc fix.
      (hi-lock-face-symbol-at-point): Replace `find-tag-default-as-regexp'
      with `find-tag-default-as-symbol-regexp'.  Doc fix.
      (hi-lock-read-regexp-defaults): Remove function.
      (hi-lock-regexp-okay): Add check for null.
      * lisp/progmodes/grep.el (grep-read-regexp): Use `grep-tag-default' for
      the arg DEFAULTS.  Move formatting of the prompt to `read-regexp'.
      * lisp/subr.el (find-tag-default-as-symbol-regexp): New function.
      (find-tag-default-as-regexp): Move symbol regexp formatting to
      Fixes: debbugs:14405
    • Juri Linkov's avatar
      * lisp/replace.el (occur-engine): Use `add-face-text-property' · 501158bc
      Juri Linkov authored
      to add the face property to matches and titles. 
      * lisp/hi-lock.el (hi-green): Use lighter color "light green" closer to
      the palette of other hi-lock colors.
      (hi-lock-set-pattern): Prepend hi-lock face to the existing face.
      Fixes: debbugs:14645
  4. 19 Dec, 2013 1 commit
    • Juri Linkov's avatar
      query-replace backward · 3ee4cd64
      Juri Linkov authored
      * lisp/replace.el (query-replace-read-args): Split a non-negative arg
      and a negative arg into separate elements.
      (query-replace, query-replace-regexp, replace-string)
      (replace-regexp): Add arg `backward'.  Doc fix.
      (replace-match-maybe-edit): When new arg `backward' is non-nil,
      move point to the beginning of the match.
      (replace-search, replace-highlight): Use new arg `backward'
      to set the value of `isearch-forward'.
      (perform-replace): Add arg `backward' and use it to perform
      replacement backward. 
      * lisp/isearch.el (isearch-query-replace): Use a negative prefix arg
      to call `perform-replace' with a non-nil arg `backward'.
      Fixes: debbugs:14979
  5. 18 Dec, 2013 1 commit
  6. 30 Nov, 2013 1 commit
    • Glenn Morris's avatar
      Make the `interactive-only' bytecomp warning like the `obsolete' one · 3e2fb4db
      Glenn Morris authored
      * emacs-lisp/bytecomp.el (byte-compile-form):
      Make the `interactive-only' warning like the `obsolete' one.
      * comint.el (comint-run):
      * files.el (insert-file-literally, insert-file):
      * replace.el (replace-string, replace-regexp):
      * simple.el (beginning-of-buffer, end-of-buffer, delete-backward-char)
      (goto-line, insert-buffer, next-line, previous-line):
      Tweak `interactive-only' spec.
  7. 25 Nov, 2013 1 commit
  8. 13 Nov, 2013 1 commit
  9. 13 Oct, 2013 1 commit
  10. 06 Sep, 2013 1 commit
  11. 05 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      Revert introduction of isearch-filter-predicates. · dc6c0eda
      Stefan Monnier authored
      Rely on add-function instead.
      * lisp/loadup.el: Preload nadvice.
      * lisp/isearch.el (isearch-filter-predicates): Rename it back to
      (isearch-message-prefix): Use advice-function-mapc and advice
      properties to get the isearch-message-prefix.
      (isearch-search, isearch-lazy-highlight-search): Revert to funcall
      instead of run-hook-with-args-until-failure.
      (isearch-filter-visible): Not obsolete any more.
      * lisp/replace.el (perform-replace): Revert to funcall
      instead of run-hook-with-args-until-failure.
      * lisp/wdired.el (wdired-change-to-wdired-mode): Use add-function.
      * lisp/dired-aux.el (dired-isearch-filenames-mode): Rename from
      dired-isearch-filenames-toggle; make it into a proper minor mode.
      Use add/remove-function.
      (dired-isearch-filenames-setup, dired-isearch-filenames-end):
      Call the minor-mode rather than add/remove-hook.
      Remove isearch-message-prefix property.
      * lisp/info.el (Info--search-loop): New function, extracted from Info-search.
      Funcall isearch-filter-predicate instead of
      run-hook-with-args-until-failure isearch-filter-predicates.
      (Info-search): Use it.
      (Info-mode): Use isearch-filter-predicate instead of
      * src/lisp.mk (lisp): Add nadvice.elc.
      * lib-src/makefile.w32-in (lisp2): Add nadvice.elc.
      Fixes: debbugs:14714
  12. 13 Jun, 2013 1 commit
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-query-replace): Add " symbol" and other · bc5c8c5a
      Juri Linkov authored
      possible search modes from `isearch-message-prefix' to the prompt.
      (isearch-occur): Use `with-isearch-suspended' to not exit Isearch
      when reading a regexp to collect.
      * lisp/replace.el (perform-replace): Display "symbol " and other search
      modes from `isearch-message-prefix' in the *Help* buffer.
  13. 11 Jun, 2013 1 commit
    • Juanma Barranquero's avatar
      Fix typos. · fa6bc6fd
      Juanma Barranquero authored
      * lisp/replace.el (query-replace, occur-read-regexp-defaults-function)
      * lisp/subr.el (declare-function, number-sequence, local-set-key)
        (substitute-key-definition, locate-user-emacs-file)
        (with-silent-modifications, split-string, eval-after-load):
        Fix typos, remove unneeded backslashes and reflow some docstrings.
  14. 30 May, 2013 1 commit
  15. 29 May, 2013 2 commits
    • Juri Linkov's avatar
      * lisp/replace.el (occur-engine): Rename `globalcount' to `global-lines' · ac44d6c1
      Juri Linkov authored
      for total count of matching lines.  Add `global-matches' for total
      count of matches.  Rename `matches' to `lines' for count of
      matching lines.  Add `matches' for count of matches.
      Rename `lines' to `curr-line' for line count.  Rename `prev-lines'
      to `prev-line' for line number of prev match endpt.
      Increment `matches' for every match.  Print the number of
      matching lines in the header.
      (occur-context-lines): Rename `lines' to `curr-line'.
      Rename `prev-lines' to `prev-line'.
      Fixes: debbugs:14017
    • Juri Linkov's avatar
      * lisp/replace.el (perform-replace): Add `skip-read-only-count', · 3c9c9d38
      Juri Linkov authored
      `skip-filtered-count', `skip-invisible-count' let-bound to 0.
      Increment them for corresponding conditions and report the number
      of skipped occurrences in the final message. 
      (query-replace, query-replace-regexp, query-replace-regexp-eval)
      (replace-string, replace-regexp): Doc fix.
      Fixes: debbugs:11746
  16. 27 May, 2013 2 commits
  17. 24 Mar, 2013 1 commit
    • Juri Linkov's avatar
      * lisp/replace.el (list-matching-lines-prefix-face): New defcustom. · ddfa3cb4
      Juri Linkov authored
      (occur-1): Pass `list-matching-lines-prefix-face' to the function
      `occur-engine' if `face-differs-from-default-p' returns t.
      (occur-engine): Add `,' inside backquote construct to evaluate
      `prefix-face'.  Propertize the prefix with the `prefix-face' face.
      Pass `prefix-face' to the functions `occur-context-lines' and
      (occur-engine-add-prefix, occur-context-lines): Add optional arg
      `prefix-face' and propertize the prefix with `prefix-face'.
      Fixes: debbugs:14017
  18. 10 Mar, 2013 1 commit
  19. 08 Mar, 2013 1 commit
    • Jambunathan K's avatar
      Provide for customizing default regexp in hi-lock commands (Bug#13892). · eb1a6e15
      Jambunathan K authored
      * lisp/hi-lock.el (hi-lock-read-regexp-defaults-function): New var.
      (hi-lock-read-regexp-defaults):	 New defun.
      (hi-lock-line-face-buffer, hi-lock-face-buffer)
      (hi-lock-face-phrase-buffer): Propagate above change.  Update
      * lisp/subr.el (find-tag-default-as-regexp): New defun.
      * lisp/replace.el (read-regexp): Propagate above change.
  20. 25 Feb, 2013 1 commit
  21. 21 Feb, 2013 1 commit
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-lazy-highlight-new-loop): · 54d9de11
      Juri Linkov authored
      Set `isearch-lazy-highlight-start' and `isearch-lazy-highlight-end'
      to `isearch-other-end' if it is not nil. 
      * lisp/replace.el (replace-highlight): Let-bind `isearch-other-end'
      to `match-beg'.
      * lisp/textmodes/ispell.el (ispell-highlight-spelling-error-overlay):
      Let-bind `isearch-other-end' to `start', `isearch-forward' to t
      and `isearch-error' to nil.
      Fixes: debbugs:13402
  22. 16 Feb, 2013 1 commit
  23. 01 Feb, 2013 1 commit
    • Juri Linkov's avatar
      * lisp/replace.el (perform-replace): Move let-bindings of isearch-* · dc2bc295
      Juri Linkov authored
      variables deeper to the loop that searches for the next match.
      Add bindings for `isearch-nonincremental' and `isearch-adjusted'.
      Use `isearch-search-fun-default' instead of `isearch-search-fun'.
      * lisp/isearch.el (isearch-search-fun-default): Check for null
      first element of isearch-cmds as a precaution when it's used
      with inactive isearch.
      Fixes: debbugs:13579
  24. 01 Jan, 2013 1 commit
  25. 16 Oct, 2012 1 commit
  26. 04 Oct, 2012 1 commit
    • Juri Linkov's avatar
      * lisp/replace.el (query-replace-interactive): Declare obsolete. · 0e2ae83d
      Juri Linkov authored
      (query-replace-read-from): Add the last incremental search string
      to the list of default values accessible via M-n.
      (map-query-replace-regexp): Use `read-regexp'.
      (query-replace, query-replace-regexp, query-replace-regexp-eval)
      (map-query-replace-regexp, replace-string, replace-regexp):
      Fix docstrings to replace mentions of `query-replace-interactive'
      with alternatives.
      Fixes: debbugs:12526
  27. 25 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Use declare forms, where possible, to mark obsolete functions. · 59f7af81
      Chong Yidong authored
      * lisp/allout.el (allout-passphrase-hint-string): Likewise.
      (allout-init): Use a declare form to mark obsolete.
      * lisp/calendar/calendar.el (calendar-version):
      * lisp/calendar/icalendar.el (icalendar-extract-ical-from-buffer)
      * lisp/cus-edit.el (custom-mode):
      * lisp/ansi-color.el (ansi-color-unfontify-region):
      * lisp/international/latin1-disp.el (latin1-char-displayable-p):
      * lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
      * lisp/progmodes/which-func.el (which-func-update-1): Use
      * lisp/bookmark.el (bookmark-jump-noselect): Use a declare form to mark
      this function obsolete.
      * lisp/calendar/cal-x.el (calendar-two-frame-setup)
      (calendar-only-one-frame-setup, calendar-one-frame-setup):
      * lisp/calendar/calendar.el (american-calendar, european-calendar)
      * lisp/comint.el (comint-dynamic-simple-complete)
      (comint-dynamic-complete-as-filename, comint-unquote-filename):
      * lisp/desktop.el (desktop-load-default):
      * lisp/dired-x.el (dired-omit-here-always)
      (dired-hack-local-variables, dired-default-directory):
      * lisp/emacs-lisp/derived.el (derived-mode-class):
      * lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
      * lisp/emacs-lock.el (toggle-emacs-lock):
      * lisp/epa.el (epa-display-verify-result):
      * lisp/epg.el (epg-sign-keys, epg-start-sign-keys)
      * lisp/eshell/esh-util.el (eshell-for):
      * lisp/eshell/eshell.el (eshell-remove-from-window-buffer-names)
      * lisp/files.el (locate-file-completion):
      * lisp/imenu.el (imenu-example--create-c-index)
      * lisp/international/mule-cmds.el (princ-list):
      * lisp/international/mule-diag.el (decode-codepage-char):
      * lisp/international/mule-util.el (detect-coding-with-priority):
      * lisp/iswitchb.el (iswitchb-read-buffer):
      * lisp/mail/mailalias.el (mail-complete):
      * lisp/mail/sendmail.el (mail-sent-via):
      * lisp/mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar)
      * lisp/password-cache.el (password-read-and-add):
      * lisp/pcomplete.el (pcomplete-parse-comint-arguments):
      * lisp/progmodes/sh-script.el (sh-maybe-here-document):
      * lisp/replace.el (query-replace-regexp-eval):
      * lisp/savehist.el (savehist-load):
      * lisp/simple.el (choose-completion-delete-max-match):
      * lisp/term.el (term-dynamic-simple-complete):
      * lisp/vc/ediff-init.el (ediff-check-version):
      * lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically):
      * lisp/vc/vc.el (vc-diff-switches-list):
      * lisp/view.el (view-return-to-alist-update): Likewise.
      * lisp/iswitchb.el (iswitchb-read-buffer): Move code of
      iswitchb-define-mode-map here, and delete that obsolete function.
      * lisp/subr.el (eval-next-after-load, makehash, insert-string)
      (assoc-ignore-representation, assoc-ignore-case): Use declare to
      mark obsolete.
      (mode-line-inverse-video): Variable deleted.
      * lisp/emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that
      this applies to functions.
      * lisp/erc/erc.el (erc-send-command): Use define-obsolete-function-alias.
      * lisp/international/mule-util.el (string-to-sequence): Remove.
      * lisp/net/newst-backend.el (newsticker-cache-filename):
      * lisp/net/newst-treeview.el (newsticker-groups-filename): Fix
      incorrect obsolescence declaration.
      * lisp/net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete
      * lisp/url/url-parse.el (url-recreate-url-attributes):
      * lisp/url/url-util.el (url-generate-unique-filename): Use declare to mark
      * src/xdisp.c (mode_line_inverse_video): Delete obsolete variable.
  28. 20 Sep, 2012 4 commits
  29. 09 Sep, 2012 2 commits
    • Juri Linkov's avatar
      * lisp/replace.el (replace-regexp-lax-whitespace): New defcustom. · 3231d532
      Juri Linkov authored
      (replace-lax-whitespace, query-replace-regexp)
      (query-replace-regexp-eval, replace-regexp): Doc fix.
      (perform-replace, replace-highlight): Let-bind
      isearch-lax-whitespace to replace-lax-whitespace and
      isearch-regexp-lax-whitespace to replace-regexp-lax-whitespace.
      * lisp/isearch.el (isearch-query-replace): Let-bind
      replace-lax-whitespace to isearch-lax-whitespace and
      replace-regexp-lax-whitespace to
      Fixes: debbugs:10885
    • 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
      * 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
  30. 06 Sep, 2012 2 commits
    • 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
    • Juri Linkov's avatar
      Use `isearch-search-fun' in `perform-replace' (bug#10885, bug#10887). · 1ec5e41d
      Juri Linkov authored
      * lisp/replace.el (replace-search-function)
      (replace-re-search-function): Set default values to nil.
      (perform-replace): Let-bind isearch-related variables based on
      replace-related values, call `isearch-search-fun' and let-bind
      the result to `search-function'.  Remove code that sets
      `search-function' and `search-string' separately for
      (replace-highlight): Add new argument `delimited-flag' and
      rename other arguments to the names used in `perform-replace'.
      Let-bind `isearch-word' to the argument `delimited-flag'.
  31. 06 Aug, 2012 1 commit
    • Chong Yidong's avatar
      Add inhibit-switch-frame parameter for display-buffer, and use it in occur-edit. · 90749b53
      Chong Yidong authored
      * replace.el (occur-after-change-function): Avoid losing focus by
      using the inhibit-switch-frame display action option.
      * window.el (window--maybe-raise-frame): New function.
      (window--display-buffer): Split off from here.
      (display-buffer-reuse-window, display-buffer-pop-up-frame)
      (display-buffer-pop-up-window, display-buffer-use-some-window):
      Obey an inhibit-switch-frame action alist entry.
      (display-buffer): Update doc.
      Fixes: debbugs:12139
  32. 02 Aug, 2012 1 commit