1. 01 Jan, 2016 1 commit
  2. 14 Dec, 2015 3 commits
    • Alan Mackenzie's avatar
      Ispell: Bind isearch-regexp-function to nil around call to isearch..-new-loop · 16dac3f9
      Alan Mackenzie authored
      * lisp/textmodes/ispell.el (ispell-highlight-spelling-error-overlay): bind
      isearch-regexp-function to nil around call to isearch-lazy-highligh-new-loop.
    • Alan Mackenzie's avatar
      Enhance ispell-skip-region-alist by generating part of it at runtime. · 9ae19d2f
      Alan Mackenzie authored
      * lisp/textmodes/ispell.el (ispell--\\w-filter, ispell--make-\\w-expression)
      (ispell--make-filename-or-URL-re): New functions which generate a regexp.
      (ispell-skip-region-alist): Remove the bit that matches a filename/URL, etc.
      (ispell-begin-skip-region-regexp, ispell-skip-region-list, ispell-message):
      Include the result of ispell--make-filename-or-URL-re in regexps.
    • Alan Mackenzie's avatar
      Replace GROUP argument in six window primitives by new functions. · e8937de5
      Alan Mackenzie authored
      * doc/lispref/windows.texi (Window Start and End, Textual Scrolling)
      * doc/lispref/positions.texi (Screen Lines): Remove optional GROUP argument
      from description of six window functions.  Add in description of new functions
      window-group-start, window-group-end, set-window-group-start,
      pos-visible-in-window-group-p, recenter-group and move-to-window-group-line,
      together with the six variables indirecting to the pertinent group
      * src/window.c
      * src/keyboard.c: Revert the commit from 2015-11-11 12:02:48, in so far as it
      applies to these two files, which added the GROUP argument to six window
      * lisp/follow.el (follow-mode): Use updated variable names for the indirected
      * lisp/isearch.el (isearch-update, isearch-done, isearch-string-out-of-window)
      (isearch-back-into-window, isearch-lazy-highlight-new-loop)
      (isearch-lazy-highlight-search, isearch-lazy-highlight-update): Replace calls
      to window primitives (e.g. window-start) with a GROUP argument by calls to
      new functions (e.g. window-group-start).
      * lisp/ispell.el (ispell-command-loop): Replace call to
      pos-visible-in-window-p with pos-visible-in-window-group-p.
      * lisp/window.el (window-group-start, window-group-end)
      (set-window-group-start, recenter-group, pos-visible-in-window-group-p)
      (selected-window-group, move-to-window-group-line): New functions.
      (window-group-start-function, window-group-end-function)
      (set-window-group-start-function, recenter-group-function)
      (pos-visible-in-window-group-p-function, selected-window-group-function)
      (move-to-window-group-line-function): New variables.
  3. 07 Dec, 2015 1 commit
    • Alan Mackenzie's avatar
      Further progress making Isearch, Ispell, Replace work with Follow Mode. · 3194f1cc
      Alan Mackenzie authored
      * lisp/follow.el: (follow-mode): Remove references to sit*-for-function, which
      no longer exists.  Add follow-post-command-hook to  three special purpose
      hooks at setup, and remove them at tear down.
      * lisp/isearch.el: (isearch-update): invoke isearch-update-post-hook before
      (isearch-lazy-highlight-new-loop): Restore this function to what it previously
      was, merging the functionality of isearch-lazy-highlight-maybe-new-loop into
      (isearch-lazy-highlight-maybe-new-loop): function removed.
      * lisp/replace.el: (replace-update-post-hook): New hook variable.
      (perform-replace): Add second (nil) argument to looking-back.  Invoke
      replace-update-post-hook before calling replace-highlight.
      * lisp/textmodes/ispell.el: (ispell-update-post-hook): New hook variable.
      (ispell-command-loop): invoke ispell-update-post-hook.  Add GROUP argument to
      call of pos-visible-in-window-p.
      (ispell-display-buffer): Place *Choices* window at the top of the last window
      in a window group.
  4. 06 Dec, 2015 1 commit
  5. 17 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Backslash cleanup in Elisp source files · 284c470e
      Paul Eggert authored
      This patch should not change behavior.  It typically omits backslashes
      where they are redundant (e.g., in the string literal "^\$").
      In a few places, insert backslashes where they make regular
      expressions clearer: e.g., replace "^\*" (equivalent to "^*") with
      "^\\*", which has the same effect as a regular expression.
      Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs,
      and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with
      RCS IDs, as that makes it clearer that the backslash is intended.
  6. 03 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Fix some more docstring etc. quoting problems · 26bd978d
      Paul Eggert authored
      Mostly these fixes prevent the transliteration of apostrophes
      that should stay apostrophes.  Also, prefer curved quotes in
      Bahá’í proper names, as that’s the preferred Bahá’í style and
      these names are chock-full of non-ASCII characters anyway.
      * lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload)
      * lisp/emacs-lisp/eieio.el (defclass):
      * lisp/hi-lock.el (hi-lock-mode):
      Don’t transliterate Lisp apostrophes when generating a
      doc string or diagnostic.
      * lisp/international/mule-diag.el (list-coding-systems-1):
      * lisp/international/ogonek.el (ogonek-jak, ogonek-how):
      * lisp/mail/sendmail.el (sendmail-query-user-about-smtp):
      * lisp/vc/ediff-mult.el (ediff-redraw-registry-buffer):
      * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map):
      Substitute quotes before putting them in the help buffer.
  7. 31 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Quoting fixes in lisp/textmodes · 2cac2e2e
      Paul Eggert authored
      * lisp/textmodes/bibtex.el (bibtex-validate)
      (bibtex-validate-globally, bibtex-search-entries):
      * lisp/textmodes/ispell.el (ispell-command-loop):
      * lisp/textmodes/page-ext.el (search-pages, pages-directory):
      * lisp/textmodes/texinfmt.el (texinfmt-version)
      (texinfo-format-region, texinfo-format-buffer-1):
      * lisp/textmodes/two-column.el (2C-split):
      Respect text quoting style in doc strings and diagnostics.
      * lisp/textmodes/conf-mode.el (conf-mode-map, conf-quote-normal):
      * lisp/textmodes/sgml-mode.el (sgml-specials, sgml-mode):
      Escape apostrophes in doc strings.
  8. 25 Aug, 2015 2 commits
    • Paul Eggert's avatar
      Spelling fixes · 7f67cdb6
      Paul Eggert authored
    • Paul Eggert's avatar
      Prefer directed to neutral quotes · 875a5d0e
      Paul Eggert authored
      Prefer directed to neutral quotes in docstings and diagnostics.
      In docstrings, escape apostrophes that would otherwise be translated
      to curved quotes using the newer, simpler rules.
      * admin/unidata/unidata-gen.el (unidata-gen-table):
      * lisp/align.el (align-region):
      * lisp/allout.el (allout-mode, allout-solicit-alternate-bullet):
      * lisp/bookmark.el (bookmark-default-annotation-text):
      * lisp/calc/calc-aent.el (math-read-if, math-read-factor):
      * lisp/calc/calc-lang.el (math-read-giac-subscr)
      * lisp/calc/calc-misc.el (report-calc-bug):
      * lisp/calc/calc-prog.el (calc-fix-token-name)
      * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
      * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
      * lisp/dabbrev.el (dabbrev-expand):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
      * lisp/emulation/viper-cmd.el (viper-toggle-search-style):
      * lisp/erc/erc-button.el (erc-nick-popup):
      * lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login):
      * lisp/eshell/em-dirs.el (eshell/cd):
      * lisp/eshell/em-glob.el (eshell-glob-regexp):
      * lisp/eshell/em-pred.el (eshell-parse-modifiers):
      * lisp/eshell/esh-arg.el (eshell-parse-arguments):
      * lisp/eshell/esh-opt.el (eshell-show-usage):
      * lisp/files-x.el (modify-file-local-variable):
      * lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer)
      * lisp/find-cmd.el (find-generic, find-to-string):
      * lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
      * lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
      * lisp/gnus/gnus-int.el (gnus-start-news-server):
      * lisp/gnus/gnus-registry.el:
      * lisp/gnus/gnus-score.el (gnus-summary-increase-score):
      * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
      * lisp/gnus/gnus-topic.el (gnus-topic-rename):
      * lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
      * lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
      * lisp/gnus/spam.el (spam-check-blackholes):
      * lisp/mail/feedmail.el (feedmail-run-the-queue):
      * lisp/mpc.el (mpc-playlist-rename):
      * lisp/net/ange-ftp.el (ange-ftp-shell-command):
      * lisp/net/mairix.el (mairix-widget-create-query):
      * lisp/net/tramp-cache.el:
      * lisp/obsolete/otodo-mode.el (todo-more-important-p):
      * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
      * lisp/org/ob-core.el (org-babel-goto-named-src-block)
      * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
      * lisp/org/ob-ref.el (org-babel-ref-resolve):
      * lisp/org/org-agenda.el (org-agenda-prepare):
      * lisp/org/org-bibtex.el (org-bibtex-fields):
      * lisp/org/org-clock.el (org-clock-notify-once-if-expired)
      * lisp/org/org-feed.el (org-feed-parse-atom-entry):
      * lisp/org/org-habit.el (org-habit-parse-todo):
      * lisp/org/org-mouse.el (org-mouse-popup-global-menu)
      * lisp/org/org-table.el (org-table-edit-formulas):
      * lisp/org/ox.el (org-export-async-start):
      * lisp/play/dunnet.el (dun-score, dun-help, dun-endgame-question)
      (dun-rooms, dun-endgame-questions):
      * lisp/progmodes/ada-mode.el (ada-goto-matching-start):
      * lisp/progmodes/ada-xref.el (ada-find-executable):
      * lisp/progmodes/antlr-mode.el (antlr-options-alists):
      * lisp/progmodes/flymake.el (flymake-parse-err-lines)
      * lisp/progmodes/python.el (python-define-auxiliary-skeleton):
      * lisp/progmodes/sql.el (sql-comint):
      * lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
      * lisp/server.el (server-get-auth-key):
      * lisp/subr.el (version-to-list):
      * lisp/textmodes/reftex-ref.el (reftex-label):
      * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
      * lisp/vc/ediff-diff.el (ediff-same-contents):
      * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
      * test/automated/tramp-tests.el (tramp-test33-asynchronous-requests):
      Use directed rather than neutral quotes in diagnostics.
  9. 22 Aug, 2015 2 commits
    • Eli Zaretskii's avatar
      Support invocation of Hunspell with multiple dictionaries · ff42c71d
      Eli Zaretskii authored
      * lisp/textmodes/ispell.el (ispell-parse-hunspell-affix-file): Support
      lists of dictionaries of the form "DICT1,DICT2,...".
      (ispell-hunspell-add-multi-dic): New command.  (Bug#20495)
    • Eli Zaretskii's avatar
      Minor formatting changes in ispell.el · 19efb9db
      Eli Zaretskii authored
      * lisp/textmodes/ispell.el (ispell-create-debug-buffer)
      (ispell-print-if-debug, ispell-aspell-find-dictionary)
      (ispell-aspell-add-aliases, ispell-hunspell-dict-paths-alist)
      (ispell-find-hunspell-dictionaries, ispell-send-replacement)
      (ispell-buffer-with-debug, ispell-complete-word)
      (ispell-current-dictionary, ispell-current-personal-dictionary)
      (ispell-accept-output, ispell-minor-mode)
      (ispell-personal-dictionary, ispell-dictionary-alist)
      (ispell-really-aspell, ispell-really-hunspell)
      (ispell-encoding8-command, ispell-aspell-supports-utf8)
      (ispell-aspell-dictionary-alist, ispell-set-spellchecker-params):
      Fix whitespace, inconsistent capitalization, and arguments in doc
  10. 21 May, 2015 1 commit
  11. 17 May, 2015 1 commit
  12. 16 May, 2015 1 commit
  13. 15 May, 2015 1 commit
  14. 28 Apr, 2015 1 commit
    • Eli Zaretskii's avatar
      Fix synchronous invocation of Ispell · e78aef00
      Eli Zaretskii authored
      * lisp/textmodes/ispell.el (ispell-init-process): Assign a non-nil
      value to ispell-process-directory before calling ispell-init-process.
      Don't call set-process-coding-system if ispell-async-processp is nil.
  15. 03 Mar, 2015 2 commits
  16. 01 Jan, 2015 2 commits
  17. 19 Dec, 2014 1 commit
  18. 18 Dec, 2014 1 commit
    • Martin Rudalics's avatar
      Fix ispell window handling. · 655a6f35
      Martin Rudalics authored
      * textmodes/ispell.el (ispell-command-loop): Suppress horizontal
      scroll bar on ispell's windows.  Don't count window lines and
      don't deal with dedicated windows.
      (ispell-show-choices, ispell-help): Let `ispell-display-buffer'
      do the window handling.
      (ispell-adjusted-window-height, ispell-overlay-window): Remove.
      (ispell-display-buffer): New function to reuse, create and fit
      window to ispell's buffers. (Bug#3413)
  19. 09 May, 2014 1 commit
    • Glenn Morris's avatar
      Use file-accessible-directory-p in some more places · 1d75432d
      Glenn Morris authored
      * lisp/files.el (file-expand-wildcards):
      * lisp/man.el (Man-support-local-filenames):
      * lisp/printing.el (pr-i-directory, pr-interface-directory):
      * lisp/progmodes/grep.el (lgrep, rgrep):
      * lisp/textmodes/ispell.el (ispell-call-process)
      (ispell-call-process-region, ispell-start-process)
      * lisp/mh-e/mh-e.el (mh-variants):
      Use file-accessible-directory-p.
  20. 31 Jan, 2014 1 commit
    • Juri Linkov's avatar
      Misc small fixes. · bd21bf41
      Juri Linkov authored
      * doc/lispref/searching.texi (String Search): Incremental word search fixes.
      * lisp/sort.el (delete-duplicate-lines): Remove `:weakness 'key'
      from `make-hash-table'.
      * lisp/textmodes/ispell.el (ispell-init-process): Change message format
      to be consistent with other messages.
  21. 14 Jan, 2014 1 commit
  22. 01 Jan, 2014 1 commit
  23. 09 Nov, 2013 1 commit
  24. 28 Sep, 2013 1 commit
    • Leo Liu's avatar
      Rename lookup-words to ispell-lookup-words · e090f499
      Leo Liu authored
      (ispell-complete-word, ispell-command-loop): All uses changed.
      * cedet/semantic/texi.el (semantic-analyze-possible-completions): Use
      ispell-lookup-words instead.
      Fixes: debbugs:15460
  25. 05 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      Do not call to `selected-window' where it is assumed by default. · 290d5b58
      Dmitry Antipov authored
      Affected functions are `window-minibuffer-p', `window-dedicated-p',
      `window-hscroll', `window-width', `window-height', `window-buffer',
      `window-frame', `window-start', `window-point', `next-window'
      and `window-display-table'.
      * abbrev.el (abbrev--default-expand):
      * bs.el (bs--show-with-configuration):
      * buff-menu.el (Buffer-menu-mouse-select):
      * calc/calc.el (calc):
      * calendar/calendar.el (calendar-generate-window):
      * calendar/diary-lib.el (diary-simple-display, diary-show-all-entries)
      * comint.el (send-invisible, comint-dynamic-complete-filename)
      (comint-dynamic-simple-complete, comint-dynamic-list-completions):
      * completion.el (complete):
      * dabbrev.el (dabbrev-expand, dabbrev--make-friend-buffer-list):
      * disp-table.el (describe-current-display-table):
      * doc-view.el (doc-view-insert-image):
      * ebuff-menu.el (Electric-buffer-menu-mouse-select):
      * ehelp.el (with-electric-help):
      * emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
      * emacs-lisp/edebug.el (edebug-two-window-p, edebug-pop-to-buffer):
      * emacs-lisp/helper.el (Helper-help-scroller):
      * emulation/cua-base.el (cua--post-command-handler-1):
      * eshell/esh-mode.el (eshell-output-filter):
      * ffap.el (ffap-gnus-wrapper):
      * help-macro.el (make-help-screen):
      * hilit-chg.el (highlight-compare-buffers):
      * hippie-exp.el (hippie-expand, try-expand-dabbrev-visible):
      * hl-line.el (global-hl-line-highlight):
      * icomplete.el (icomplete-simple-completing-p):
      * isearch.el (isearch-done):
      * jit-lock.el (jit-lock-stealth-fontify):
      * mail/rmailsum.el (rmail-summary-scroll-msg-up):
      * lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling):
      * mpc.el (mpc-tagbrowser, mpc):
      * net/rcirc.el (rcirc-any-buffer):
      * play/gomoku.el (gomoku-max-width, gomoku-max-height):
      * play/landmark.el (landmark-max-width, landmark-max-height):
      * play/zone.el (zone):
      * progmodes/compile.el (compilation-goto-locus):
      * progmodes/ebrowse.el (ebrowse-view/find-file-and-search-pattern):
      * progmodes/etags.el (find-tag-other-window):
      * progmodes/fortran.el (fortran-column-ruler):
      * progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe):
      * progmodes/verilog-mode.el (verilog-point-text):
      * reposition.el (reposition-window):
      * rot13.el (toggle-rot13-mode):
      * server.el (server-switch-buffer):
      * shell.el (shell-dynamic-complete-command)
      * simple.el (insert-buffer, set-selective-display)
      * speedbar.el (speedbar-timer-fn, speedbar-center-buffer-smartly)
      * startup.el (fancy-splash-head):
      * textmodes/ispell.el (ispell-command-loop):
      * textmodes/makeinfo.el (makeinfo-compilation-sentinel-region):
      * tutorial.el (help-with-tutorial):
      * vc/add-log.el (add-change-log-entry):
      * vc/compare-w.el (compare-windows):
      * vc/ediff-help.el (ediff-indent-help-message):
      * vc/ediff-util.el (ediff-setup-control-buffer, ediff-position-region):
      * vc/ediff-wind.el (ediff-skip-unsuitable-frames)
      * vc/emerge.el (emerge-position-region):
      * vc/pcvs-util.el (cvs-bury-buffer):
      * window.el (walk-windows, mouse-autoselect-window-select):
      * winner.el (winner-set-conf, winner-undo): Related users changed.
  26. 17 Apr, 2013 1 commit
  27. 15 Apr, 2013 1 commit
  28. 05 Apr, 2013 1 commit
  29. 03 Mar, 2013 1 commit
  30. 01 Mar, 2013 2 commits
  31. 28 Feb, 2013 1 commit
    • Agustín Martín's avatar
      Initial support for hunspell dictionaries auto-detection (Bug#13639) · ef3761e3
      Agustín Martín authored
      	* textmodes/ispell.el (ispell-find-hunspell-dictionaries):
      	Ask hunspell about available and default dictionaries.
      	(ispell-parse-hunspell-affix-file): Extract relevant info from
      	hunspell affix file.
      	(ispell-hunspell-fill-dictionary-entry): Fill non-initialized
      	`ispell-dictionary-alist' entry for given dictionary after info
      	provided by `ispell-parse-hunspell-affix-file'.
      	(ispell-hunspell-dict-paths-alist): New defvar to contain an alist
      	of parsed hunspell dicts and associated affix files.
      	(ispell-hunspell-dictionary-alist): New defvar to contain an alist
      	of parsed hunspell dicts and associated parameters.
      	Call `ispell-find-hunspell-dictionaries' if hunspell and not
      	previously done.
      	Call `ispell-hunspell-fill-dictionary-entry' for current
      	dictionary if it is not initialized.
      Some additional details about the implementation:
      (ispell-hunspell-dict-paths-alist): Alist that contains a list of
        parsed hunspell dicts and associated affix files.
      (ispell-hunspell-dictionary-alist): Alist of parsed hunspell dicts and
        associated parameters. It is initially just a list of found
        dictionaries except for the default dictionary where is filled with
        proper parameters.
      When spellchecker is initialized by (ispell-set-spellchecker-params)
      if the conditions: is hunspell, communication can be set to UTF-8 and
      Emacs flavor supports [:alpha:] are matched installed hunspell
      dictionaries are parsed and info passed to
      `ispell-hunspell-dictionary-alist', either full for default dictionary
      or just name for other dictionaries. These entries are used for
      `ispell-dictionary-alist' if not overriden.
      Before starting hunspell process in (ispell-start-process), if
      `ispell-dictionary-alist' entry is not yet initialized
      (ispell-hunspell-fill-dictionary-entry) is called to fill that entry
      (and all pending entries using the same affix file) after info
      extracted by (ispell-parse-hunspell-affix-file) from the associated
      affix file.
      hunspell process will then be started as usual. This delayed procedure
      is used to avoid that in systems containing many hunspell dictionaries
      all affix files are parsed (if there are many, time may be noticeable)
      for just one used dictionary.
  32. 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
  33. 21 Jan, 2013 1 commit