1. 10 Oct, 2014 1 commit
  2. 08 Aug, 2014 1 commit
  3. 07 Aug, 2014 1 commit
  4. 25 Jun, 2014 1 commit
    • Dmitry Antipov's avatar
      Do not allow out-of-range character position in Fcompare_strings. · 5697ca55
      Dmitry Antipov authored
      * src/fns.c (validate_subarray): Add prototype.
      (Fcompare_substring): Use validate_subarray to check ranges.
      Adjust comment to mention that the semantics was changed.  Also see
      http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00447.html.
      * lisp/files.el (dir-locals-find-file, file-relative-name):
      * lisp/info.el (Info-complete-menu-item):
      * lisp/minibuffer.el (completion-table-subvert): Prefer string-prefix-p
      to compare-strings to avoid out-of-range errors.
      * lisp/subr.el (string-prefix-p): Adjust to match strict range
      checking in compare-strings.
      * test/automated/fns-tests.el (fns-tests-compare-string): New test.
      5697ca55
  5. 11 May, 2014 1 commit
  6. 24 Apr, 2014 1 commit
  7. 21 Mar, 2014 1 commit
    • Glenn Morris's avatar
      Cosmetic tweaks for the output of `info-finder' · f428101f
      Glenn Morris authored
      * lisp/info.el (info--prettify-description): New function,
      to give info-finder descriptions consistent case, punctuation.
      (Info-finder-find-node): Use it.  Sort packages.
      Refer to "description" rather than "commentary".
      f428101f
  8. 14 Mar, 2014 1 commit
  9. 28 Feb, 2014 2 commits
  10. 15 Feb, 2014 1 commit
  11. 10 Feb, 2014 1 commit
  12. 13 Jan, 2014 1 commit
    • Juri Linkov's avatar
      * lisp/info.el (Info-find-file): Go to DIR before displaying the error · 3c0c4562
      Juri Linkov authored
      about a nonexistent file if no previous Info file is visited.
      Use `user-error' instead of `error' for "Info file %s does not exist".
      (Info-find-node-2): In case of a nonexistent node in unwind forms
      go to the Top node if there is no previous node to revert to.
      
      Fixes: debbugs:16405
      3c0c4562
  13. 10 Jan, 2014 2 commits
  14. 01 Jan, 2014 1 commit
  15. 11 Sep, 2013 1 commit
    • Stefan Monnier's avatar
      Use define-derived-mode (and derived-mode-p). · 1b3b87df
      Stefan Monnier authored
      * lisp/play/snake.el (snake-mode):
      * lisp/play/mpuz.el (mpuz-mode):
      * lisp/play/landmark.el (lm-mode):
      * lisp/play/blackbox.el (blackbox-mode):
      * lisp/play/5x5.el (5x5-mode):
      * lisp/obsolete/options.el (Edit-options-mode):
      * lisp/net/quickurl.el (quickurl-list-mode):
      * lisp/net/newst-treeview.el (newsticker-treeview-mode):
      * lisp/mail/rmailsum.el (rmail-summary-mode):
      * lisp/mail/mspools.el (mspools-mode):
      * lisp/locate.el (locate-mode):
      * lisp/ibuffer.el (ibuffer-mode):
      * lisp/emulation/ws-mode.el (wordstar-mode):
      * lisp/emacs-lisp/debug.el (debugger-mode):
      * lisp/array.el (array-mode):
      * lisp/net/eudc.el (eudc-mode): Use define-derived-mode.
      * lisp/net/mairix.el (mairix-searches-mode-font-lock-keywords):
      Move initialization into declaration.
      (mairix-searches-mode): Use define-derived-mode.
      * lisp/net/eudc-hotlist.el (eudc-hotlist-mode): Use define-derived-mode.
      (eudc-edit-hotlist): Use dolist.
      * lisp/man.el (Man-mode-syntax-table): Rename from man-mode-syntax-table.
      (Man-mode): Use define-derived-mode.
      * lisp/info.el (Info-edit-mode-map): Rename from Info-edit-map.
      (Info-edit-mode): Use define-derived-mode.
      (Info-cease-edit): Use Info-mode.
      * lisp/eshell/esh-mode.el (eshell-mode-syntax-table): Move initialization
      into declaration.
      (eshell-mode): Use define-derived-mode.
      * lisp/chistory.el (command-history-mode-map): Rename from
      command-history-map.
      (command-history-mode): Use define-derived-mode.
      * lisp/calc/calc.el (calc-trail-mode-map): New var.
      (calc-trail-mode): Use define-derived-mode.
      (calc-trail-buffer): Set calc-main-buffer manually.
      * lisp/bookmark.el (bookmark-insert-annotation): New function.
      (bookmark-edit-annotation): Use it.
      (bookmark-edit-annotation-mode): Make it a proper major mode.
      (bookmark-send-edited-annotation): Use derived-mode-p.
      * lisp/arc-mode.el (archive-mode): Move kill-all-local-variables a tiny bit
      closer to its ideal place.  Use \' to match EOS.
      
      * lisp/cedet/semantic/grammar.el (semantic-grammar-mode): Use define-derived-mode.
      (semantic-grammar-mode-syntax-table): Rename from
      semantic-grammar-syntax-table.
      (semantic-grammar-mode-map): Rename from semantic-grammar-map.
      * lisp/cedet/data-debug.el (data-debug-mode-map): Rename from data-debug-map.
      (data-debug-mode): Use define-derived-mode.
      
      * lisp/gnus/score-mode.el (gnus-score-mode-map): Move initialization
      into declaration.
      (gnus-score-mode): Use define-derived-mode.
      * lisp/gnus/gnus-srvr.el (gnus-browse-mode): Use define-derived-mode.
      * lisp/gnus/gnus-kill.el (gnus-kill-file-mode-map): Move initialization
      into declaration.
      (gnus-kill-file-mode): Use define-derived-mode.
      (gnus-kill-file-edit-file, gnus-kill-file-enter-kill, gnus-kill):
      Use derived-mode-p.
      * lisp/gnus/gnus-group.el (gnus-group-mode): Use define-derived-mode.
      (gnus-group-setup-buffer, gnus-group-name-at-point)
      (gnus-group-make-web-group, gnus-group-enter-directory)
      (gnus-group-suspend): Use derived-mode-p.
      * lisp/gnus/gnus-cus.el (gnus-custom-mode): Use define-derived-mode.
      * lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode): Use define-derived-mode.
      * lisp/gnus/gnus-art.el (gnus-article-mode): Use define-derived-mode.
      (gnus-article-setup-buffer, gnus-article-prepare)
      (gnus-article-prepare-display, gnus-sticky-article)
      (gnus-kill-sticky-article-buffer, gnus-kill-sticky-article-buffers)
      (gnus-bind-safe-url-regexp, gnus-article-check-buffer)
      (gnus-article-read-summary-keys): Use derived-mode-p.
      1b3b87df
  16. 06 Sep, 2013 1 commit
  17. 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-filter-predicate.
      (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.
      (dired-isearch-filter-filenames):
      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
      isearch-filter-predicates.
      * src/lisp.mk (lisp): Add nadvice.elc.
      * lib-src/makefile.w32-in (lisp2): Add nadvice.elc.
      
      Fixes: debbugs:14714
      dc6c0eda
  18. 03 Jul, 2013 1 commit
    • Glenn Morris's avatar
      Make info-xref checks case-sensitive by default · 9b057d61
      Glenn Morris authored
      * lisp/info.el (Info-find-node, Info-find-in-tag-table)
      (Info-find-node-in-buffer, Info-find-node-2, Info-goto-node):
      Add option for exact case matching of nodes.
      
      * lisp/info-xref.el (info-xref): New custom group.
      (info-xref-case-fold): New option.
      (info-xref-goto-node-p): Pass info-xref-case-fold to Info-goto-node.
      9b057d61
  19. 27 Jun, 2013 1 commit
  20. 27 May, 2013 1 commit
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-filter-predicates): Rename from `isearch-filter-predicate'. · 66fc57e3
      Juri Linkov authored
      Doc fix. 
      (isearch-message-prefix): Display text from the property
      `isearch-message-prefix' of the currently active filters.
      (isearch-search): Don't compare `isearch-filter-predicate' with
      `isearch-filter-visible'.  Call `run-hook-with-args-until-failure'
      on `isearch-filter-predicates'.  Also check `search-invisible' for t
      or call `isearch-range-invisible'.
      (isearch-filter-visible): Make obsolete.
      (isearch-lazy-highlight-search):
      Call `run-hook-with-args-until-failure' on
      `isearch-filter-predicates' and use `isearch-range-invisible'.
      
      * lisp/info.el (Info-search): Call `run-hook-with-args-until-failure' on
      `isearch-filter-predicates' instead of `funcall'ing
      `isearch-filter-predicate'.
      (Info-mode): Set `Info-isearch-filter' to
      `isearch-filter-predicates' instead of `isearch-filter-predicate'.
      
      * lisp/dired-aux.el (dired-isearch-filter-predicate-orig): Remove variable.
      (dired-isearch-filenames-toggle, dired-isearch-filenames-setup)
      (dired-isearch-filenames-end): Add and remove
      `dired-isearch-filter-filenames' in `isearch-filter-predicates'
      instead of changing the value of `isearch-filter-predicate'.
      Rebind `dired-isearch-filenames-toggle' from "\M-sf" to "\M-sff".
      (dired-isearch-filter-filenames): Don't use `isearch-filter-visible'.
      Put property `isearch-message-prefix' to "filename " on
      `dired-isearch-filter-filenames'.
      
      * lisp/wdired.el (wdired-change-to-wdired-mode):
      Add `isearch-filter-predicates' to `wdired-isearch-filter-read-only'
      locally instead of changing `isearch-filter-predicate'.
      (wdired-isearch-filter-read-only): Don't use `isearch-filter-visible'.
      
      Fixes: debbugs:11378
      66fc57e3
  21. 22 May, 2013 1 commit
    • Glenn Morris's avatar
      Small speedbar-related clean-up · 0cdffd7d
      Glenn Morris authored
      * lisp/dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape):
      Remove unnecessary declarations.
      (dframe-message): Doc fix.
      
      * lisp/info.el (dframe-select-attached-frame, dframe-current-frame):
      Declare.
      
      * lisp/speedbar.el (speedbar-message): Make it an obsolete alias.
      Update all callers.
      (speedbar-with-attached-buffer)
      (speedbar-maybee-jump-to-attached-frame): Make these aliases obsolete.
      (speedbar-with-writable): Use backquote.
      
      * lisp/emacs-lisp/eieio-opt.el (eieio-describe-class-sb):
      
      * lisp/emacs-lisp/eieio-speedbar.el (eieio-speedbar-handle-click):
      Use dframe-with-attached-buffer, dframe-maybee-jump-to-attached-frame
      rather than speedbar- aliases.
      
      * lisp/mail/rmail.el: Load dframe rather than speedbar when compiling.
      (speedbar-make-specialized-keymap, speedbar-insert-button)
      (dframe-select-attached-frame, dframe-maybee-jump-to-attached-frame)
      (speedbar-do-function-pointer): Declare.
      (rmail-speedbar-button, rmail-speedbar-find-file)
      (rmail-speedbar-move-message):
      Use dframe-with-attached-buffer rather than speedbar- alias.
      
      * lisp/progmodes/gud.el: Load dframe rather than speedbar when compiling.
      (dframe-message, speedbar-make-specialized-keymap)
      (speedbar-add-expansion-list, speedbar-mode-functions-list)
      (speedbar-make-tag-line, speedbar-remove-localized-speedbar-support)
      (speedbar-insert-button, dframe-select-attached-frame)
      (dframe-maybee-jump-to-attached-frame)
      (speedbar-change-initial-expansion-list)
      (speedbar-previously-used-expansion-list-name): Declare.
      (gud-speedbar-item-info, gud-gdb-goto-stackframe):
      Use dframe-message, dframe-with-attached-buffer rather than
      speedbar- aliases.
      (gud-sentinel): Silence compiler.
      
      * lisp/progmodes/vhdl-mode.el (speedbar-refresh)
      (speedbar-do-function-pointer, speedbar-add-supported-extension)
      (speedbar-add-mode-functions-list, speedbar-make-specialized-keymap)
      (speedbar-change-initial-expansion-list, speedbar-add-expansion-list)
      (speedbar-extension-list-to-regex, speedbar-directory-buttons)
      (speedbar-file-lists, speedbar-make-tag-line)
      (speedbar-line-directory, speedbar-goto-this-file)
      (speedbar-center-buffer-smartly, speedbar-change-expand-button-char)
      (speedbar-delete-subblock, speedbar-position-cursor-on-line)
      (speedbar-make-button, speedbar-reset-scanners)
      (speedbar-files-item-info, speedbar-line-text)
      (speedbar-find-file-in-frame, speedbar-set-timer)
      (dframe-maybee-jump-to-attached-frame, speedbar-line-file): Declare.
      (speedbar-with-writable): Do not (re)define it.
      (vhdl-speedbar-find-file): Use dframe-maybee-jump-to-attached-frame
      rather than speedbar- alias.
      
      * lisp/cedet/ede/speedbar.el (ede-file-find, ede-tag-find):
      * lisp/cedet/semantic/sb.el (semantic-sb-token-jump):
      Use dframe-maybee-jump-to-attached-frame rather than speedbar- alias.
      
      * lisp/mh-e/mh-speed.el (mh-speed-view):
      Use dframe-with-attached-buffer rather than speedbar- alias.
      0cdffd7d
  22. 05 May, 2013 1 commit
  23. 12 Apr, 2013 1 commit
  24. 23 Mar, 2013 1 commit
    • Juri Linkov's avatar
      * lisp/info.el (info-index-match): New face. · e38e6780
      Juri Linkov authored
      (Info-index, Info-apropos-matches): Add a nested subgroup to the
      main pattern and add text properties with the new face to matches
      in index entries relative to the beginning of the index entry.
      
      Fixes: debbugs:14015
      e38e6780
  25. 20 Mar, 2013 1 commit
    • Juri Linkov's avatar
      Info footnote fontification and navigation. · afff09d0
      Juri Linkov authored
      * lisp/info.el (Info-next-reference-or-link)
      (Info-prev-reference-or-link): New functions.
      (Info-next-reference, Info-prev-reference): Use them.
      (Info-try-follow-nearest-node): Handle footnote navigation.
      (Info-fontify-node): Fontify footnotes.
      
      Fixes: debbugs:13989
      afff09d0
  26. 21 Feb, 2013 1 commit
  27. 14 Feb, 2013 1 commit
  28. 12 Feb, 2013 1 commit
    • Glenn Morris's avatar
      Make S-SPC scroll in the opposite direction to SPC · 958614cf
      Glenn Morris authored
      * lisp/calc/calc-graph.el (calc-graph-show-dumb):
      * lisp/calendar/calendar.el (calendar-mode-map):
      * lisp/cus-edit.el (custom-mode-map):
      * lisp/ehelp.el (electric-help-map):
      * lisp/emulation/vip.el (vip-mode-map):
      * lisp/epa.el (epa-key-list-mode-map):
      * lisp/info.el (Info-mode-map):
      * lisp/mail/rmail.el (rmail-mode-map):
      * lisp/mail/rmailsum.el (rmail-summary-mode-map):
      * lisp/man.el (Man-mode-map):
      * lisp/net/newst-plainview.el (newsticker-mode-map):
      * lisp/progmodes/cpp.el (cpp-edit-mode-map):
      * lisp/progmodes/grep.el (grep-mode-map):
      * lisp/progmodes/idlw-help.el (idlwave-help-mode-map):
      * lisp/simple.el (special-mode-map):
      * lisp/startup.el (splash-screen-keymap):
      * lisp/view.el (view-mode-map):
      Make S-SPC scroll in the opposite sense to SPC.
      
      Fixes: debbugs:2145
      958614cf
  29. 01 Feb, 2013 1 commit
  30. 11 Jan, 2013 1 commit
    • Aaron S. Hawley's avatar
      Disambiguate function and variable references in docstrings. · 9fc9a531
      Aaron S. Hawley authored
      * lisp/comint.el (comint-history-isearch-message): Fix ambiguous doc
       string cross-reference(s).
      
      * lisp/ffap.el (ffap-string-at-point-region, ffap-next)
      (ffap-string-at-point, ffap-string-around)
      (ffap-copy-string-as-kill, ffap-highlight-overlay)
      (ffap-literally): Fix ambiguous doc string cross-reference(s).
      
      * lisp/font-lock.el (font-lock-keywords-alist)
      (font-lock-removed-keywords-alist): Fix ambiguous doc string
              cross-reference(s).
      
      * lisp/help-mode.el (help-xref-symbol-regexp): Add "call" as a hint for
      a cross-reference to a function.
      
      * lisp/info.el (Info-find-emacs-command-nodes): Fix ambiguous doc
       string cross-reference(s).
      
      * lisp/isearch.el (isearch-message-function, isearch-fail-pos): Fix
       ambiguous doc string cross-reference(s).
      
      * lisp/misearch.el (multi-isearch-next-buffer-function): Fix ambiguous
       doc string cross-reference(s).
      
      * lisp/newcomment.el (comment-box): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/printing.el (pr-txt-printer-alist, pr-ps-printer-alist)
      (pr-setting-database): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/ps-print.el (ps-even-or-odd-pages, ps-spool-buffer-with-faces)
      (ps-n-up-filling-database): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/server.el (server-buffer, server-log): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/simple.el (newline, delete-backward-char, delete-forward-char)
      (minibuffer-history-isearch-message, kill-line, track-eol)
      (temporary-goal-column): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/whitespace.el (whitespace-point)
      (whitespace-font-lock-refontify, whitespace-bob-marker)
      (whitespace-eob-marker): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/calc/calc.el (calc-highlight-selections-with-faces)
       (calc-dispatch): Fix ambiguous doc string cross-reference(s).
      
      * lisp/emacs-lisp/edebug.el (edebug-read, edebug-eval-defun): Fix
       ambiguous doc string cross-reference(s).
      
      * lisp/gnus/gnus-start.el (gnus-check-new-newsgroups): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/gnus/gnus-sum.el (gnus-summary-newsgroup-prefix): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/international/mule.el (add-to-coding-system-list): Fix ambiguous
       doc string cross-reference(s).
      
      * lisp/progmodes/cc-fonts.el (c-font-lock-keywords-3)
      (c++-font-lock-keywords-3, objc-font-lock-keywords-3)
      (java-font-lock-keywords-3, idl-font-lock-keywords-3)
      (pike-font-lock-keywords-3): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/progmodes/compile.el (compile): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/progmodes/etags.el (tags-table-files)
      (tags-table-files-function, tags-included-tables-function): Fix
       ambiguous doc string cross-reference(s).
      
      * lisp/progmodes/gdb-mi.el (gdb, gdb-setup-windows)
      (gdb-restore-windows): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/textmodes/flyspell.el (flyspell-mark-duplications-flag)
      (flyspell-default-deplacement-commands): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/textmodes/ispell.el (ispell-accept-output): Fix ambiguous doc
       string cross-reference(s).
      
      * lisp/textmodes/sgml-mode.el (html-tag-help): Fix ambiguous doc string
       cross-reference(s).
      
      * lisp/vc/compare-w.el (compare-ignore-whitespace)
      (compare-ignore-case, compare-windows-dehighlight): Fix ambiguous
       doc string cross-reference(s).
      
      * lisp/vc/diff.el (diff): Fix ambiguous doc string cross-reference(s).
      
      * src/insdel.c (Fcombine_after_change_execute, syms_of_insdel): Fix
       ambiguous doc string cross-reference(s).
      
      * src/keyboard.c (Fcommand_execute, syms_of_keyboard): Fix ambiguous
       doc string cross-reference(s).
      
      * src/window.c (Fwindow_point, syms_of_window): Fix ambiguous doc
       string cross-reference(s).
      
      Fixes: debbugs:12686
      9fc9a531
  31. 08 Jan, 2013 2 commits
  32. 01 Jan, 2013 1 commit
  33. 29 Dec, 2012 1 commit
  34. 27 Dec, 2012 1 commit
    • Juri Linkov's avatar
      * lisp/info.el (Info-file-completions): New variable. · 313f39aa
      Juri Linkov authored
      (Info-read-node-name-1): Complete node names in the Info file
      when a file name is given.  Call `Info-build-node-completions'
      with a file name.
      (Info-build-node-completions): Add new arg `file'.  When it is
      non-nil, visit it in a temporary buffer and cache its completions in
      `Info-current-file-completions'.  Move most of the function body to
      `Info-build-node-completions-1'.
      (Info-build-node-completions-1): New function with the body from
      `Info-build-node-completions'.
      
      Fixes: debbugs:12456
      313f39aa
  35. 08 Dec, 2012 1 commit
  36. 07 Dec, 2012 1 commit
  37. 05 Dec, 2012 1 commit