Stefan Merten
6665a6fd19
(rst-cvs-header, rst-svn-rev, rst-svn-timestamp)
...
(rst-official-version, rst-official-cvs-rev): Update version
information.
2012-06-16 11:48:23 +02:00
Stefan Merten
7ae2ea1075
Added and corrected some comments.
...
(rst-re-alist-def): Improve symbol syntax.
(rst-mode-syntax-table): Correct syntax entries.
2012-06-16 11:33:58 +02:00
Stefan Monnier
ccf1dc189c
* lisp/textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB.
...
Fixes: debbugs:11646
2012-06-13 09:56:57 -04:00
Chong Yidong
f1a4e679f3
Various minor variable/hook cleanups.
...
* lisp/emacs-lisp/edebug.el (edebug-inhibit-emacs-lisp-mode-bindings):
Rename from gud-inhibit-global-bindings.
* lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-hooks): Doc fix.
* lisp/erc/erc-dcc.el (erc-dcc-chat-filter-functions): Rename from
erc-dcc-chat-filter-hook, since this is an abnormal hook.
* lisp/nxml/nxml-glyph.el (nxml-glyph-set-functions): Rename abnormal
hook from nxml-glyph-set-hook.
* lisp/progmodes/cwarn.el (cwarn-mode): Remove redundant variable
declaration.
* lisp/progmodes/pascal.el (pascal-toggle-completions): Doc fix.
* lisp/textmodes/bibtex.el (bibtex-string-file-path, bibtex-file-path):
Convert to defcustom.
* lisp/url/url-handlers.el (url-handler-regexp):
* lisp/url/url-nfs.el (url-nfs-automounter-directory-spec):
* lisp/url/url-vars.el (url-load-hook): Convert to defcustom.
2012-06-12 13:47:14 +08:00
Chong Yidong
4b56d0fe74
Face cleanups. Remove some uses of old-style face spec and :bold/:italic.
...
* faces.el (set-face-attribute): Doc fix.
(modify-face): Don't use :bold and :italic.
(error, warning, success): Tweak definitions.
* cus-edit.el (custom-modified, custom-invalid, custom-rogue)
(custom-modified, custom-set, custom-changed, custom-themed)
(custom-saved, custom-button, custom-button-mouse)
(custom-button-pressed, custom-state, custom-comment-tag)
(custom-variable-tag, custom-group-tag-1, custom-group-tag)
(custom-group-subtitle): Use new-style face specs.
(custom-invalid-face, custom-rogue-face, custom-modified-face)
(custom-set-face, custom-changed-face, custom-saved-face)
(custom-button-face, custom-button-pressed-face)
(custom-documentation-face, custom-state-face)
(custom-comment-face, custom-comment-tag-face)
(custom-variable-tag-face, custom-variable-button-face)
(custom-face-tag-face, custom-group-tag-face-1)
(custom-group-tag-face): Remove obsolete face alias.
* epa.el (epa-validity-high, epa-validity-medium)
(epa-validity-low, epa-mark, epa-field-name, epa-string)
(epa-field-name, epa-field-body):
* font-lock.el (font-lock-comment-face, font-lock-string-face)
(font-lock-keyword-face, font-lock-builtin-face)
(font-lock-function-name-face, font-lock-variable-name-face)
(font-lock-type-face, font-lock-constant-face):
* ido.el (ido-first-match, ido-only-match, ido-subdir)
(ido-virtual, ido-indicator, ido-incomplete-regexp):
* speedbar.el (speedbar-button-face, speedbar-file-face)
(speedbar-directory-face, speedbar-tag-face)
(speedbar-selected-face, speedbar-highlight-face)
(speedbar-separator-face):
* whitespace.el (whitespace-newline, whitespace-space)
(whitespace-hspace, whitespace-tab, whitespace-trailing)
(whitespace-line, whitespace-space-before-tab)
(whitespace-space-after-tab, whitespace-indentation)
(whitespace-empty):
* emulation/cua-base.el (cua-global-mark):
* eshell/em-prompt.el (eshell-prompt):
* net/newst-plainview.el (newsticker-new-item-face)
(newsticker-old-item-face, newsticker-immortal-item-face)
(newsticker-obsolete-item-face, newsticker-date-face)
(newsticker-statistics-face, newsticker-default-face):
* net/newst-reader.el (newsticker-feed-face)
(newsticker-extra-face, newsticker-enclosure-face):
* net/newst-treeview.el (newsticker-treeview-face)
(newsticker-treeview-new-face, newsticker-treeview-old-face)
(newsticker-treeview-immortal-face)
(newsticker-treeview-obsolete-face)
(newsticker-treeview-selection-face):
* net/rcirc.el (rcirc-my-nick, rcirc-other-nick)
(rcirc-bright-nick, rcirc-server, rcirc-timestamp)
(rcirc-nick-in-message, rcirc-nick-in-message-full-line)
(rcirc-prompt, rcirc-track-keyword, rcirc-url, rcirc-keyword):
* nxml/nxml-outln.el (nxml-heading, nxml-outline-indicator)
(nxml-outline-active-indicator, nxml-outline-ellipsis):
* play/mpuz.el (mpuz-unsolved, mpuz-solved, mpuz-trivial)
(mpuz-text):
* progmodes/vera-mode.el (vera-font-lock-number)
(vera-font-lock-function, vera-font-lock-interface):
* textmodes/table.el (table-cell): Use new-style face specs, and
don't use the old :bold and :italic attributes.
* erc-button.el (erc-button):
* erc-goodies.el (erc-bold-face, erc-inverse-face)
(erc-underline-face, fg:erc-color-*):
* erc-match.el (erc-current-nick-face, erc-dangerous-host-face)
(erc-pal-face, erc-fool-face, erc-keyword-face):
* erc-stamp.el (erc-timestamp-face): Likewise.
* erc.el (erc-direct-msg-face, erc-header-line, erc-input-face)
(erc-command-indicator-face, erc-notice-face, erc-action-face)
(erc-error-face, erc-my-nick-face, erc-nick-default-face)
(erc-nick-msg-face): Use new-style face specs, and avoid :bold.
* progmodes/ebrowse.el (ebrowse-tree-mark, ebrowse-root-class)
(ebrowse-member-attribute, ebrowse-default, ebrowse-file-name)
(ebrowse-member-class, ebrowse-progress): Likewise.
(ebrowse-tree-mark-face, ebrowse-root-class-face)
(ebrowse-file-name-face, ebrowse-default-face)
(ebrowse-member-attribute-face, ebrowse-member-class-face)
(ebrowse-progress-face): Remove obsolete faces.
* progmodes/flymake.el (flymake-errline, flymake-warnline):
Inherit from error and warning faces respectively.
* textmodes/flyspell.el (flyspell-incorrect, flyspell-duplicate):
Likewise.
(flyspell-incorrect-face, flyspell-duplicate-face): Remove
obsolete aliases.
* display.texi (Face Attributes): Font family does not accept
wildcards. De-document obsolete :bold and :italic attributes.
(Defining Faces): Use new-style face spec format.
2012-06-09 00:39:49 +08:00
Juanma Barranquero
595ef4ad76
lisp/textmodes/texinfmt.el: Fix bug#11640 (reverts part of 2008-07-31T05:33:56Z!dann@ics.uci.edu).
...
(texinfo-format-printindex): Use `texinfo-sort-region' in all platforms,
instead of calling external sort utility.
(texinfo-sort-region, texinfo-sort-startkeyfun): Restore functions.
2012-06-08 14:24:27 +02:00
Stefan Merten
7b4cdbf41d
* rst.el: Use `eval-when-compile' for requiring
...
`cl.el'. Silence compiler warnings. Fix versions.
(rst-position-if, rst-position, rst-some, rst-signum): New
functions.
(rst-shift-region, rst-adornment-level, rst-compute-tabs)
(rst-indent-line, rst-shift-region, rst-forward-line): Use new
functions.
(rst-package-emacs-version-alist): Correct Emacs version to
represent major merge with upstream.
(rst-transition, rst-adornment, rst-compile-toolsets): Fix
versions.
2012-06-07 11:20:41 +02:00
Stefan Merten
d8a52e1551
rst.el: Add comments.
...
(rst-transition, rst-adornment): New faces.
(rst-adornment-faces-alist): Make default safe to reevaluate.
Fixes
http://sourceforge.net/tracker/?func=detail&atid=422030&aid=3479603&group_id=38414 .
Improve customization tags.
(rst-define-level-faces): Clarify meaning.
2012-06-03 19:20:24 +02:00
Stefan Merten
4cf9b38dd5
(rst-mode-map): Fix meaning of C-M-a / C-M-e.
2012-06-02 14:29:21 +02:00
Chong Yidong
3726946669
Remove incorrect uses of "modeline".
...
* ansi-color.el (ansi-color-faces-vector): Change default faces.
* cus-edit.el (mode-line):
* dframe.el (dframe-mouse-hscroll):
* emacs-lisp/re-builder.el:
* emacs-lisp/easy-mmode.el (define-minor-mode):
* frame.el (set-frame-name):
* help.el (lookup-minor-mode-from-indicator):
* net/rcirc.el (rcirc-activity-string, rcirc-short-buffer-name):
* progmodes/cc-cmds.el (c-toggle-auto-newline)
(c-toggle-hungry-state):
* progmodes/antlr-mode.el (antlr-language-alist):
* progmodes/idlw-shell.el (idlwave-shell-electric-stop-line-face):
* progmodes/vhdl-mode.el (vhdl-mode):
* progmodes/which-func.el (which-func, which-func-cleanup-function):
* term/ns-win.el (ns-face-at-pos):
* term/sup-mouse.el (sup-mouse-report):
* textmodes/flyspell.el (flyspell-mode-line-string):
* textmodes/ispell.el (ispell-highlight-face):
* textmodes/reftex-global.el:
* vc/vc-arch.el (vc-arch-mode-line-string):
* vc/vc-cvs.el (vc-cvs-mode-line-string):
* vc/vc-git.el (vc-git-mode-line-string):
* vc/vc-hooks.el (vc-display-status)
(vc-default-mode-line-string):
* vc/vc-mtn.el (vc-mtn-mode-line-string): Doc fixes.
* dired.el (dired-sort-set-mode-line): Rename from
dired-sort-set-modeline. All callers changed.
* foldout.el (foldout-mode-line-string): Rename from
foldout-modeline-string. All callers changed.
(foldout-update-mode-line): Rename from foldout-update-modeline.
* strokes.el (strokes-lighter): Rename from
strokes-modeline-string.
* subr.el (redraw-modeline): Make into obsolete alias.
* calendar/timeclock.el (timeclock-mode-line-display): Rename from
timeclock-modeline-display. Make old name an alias.
(timeclock-update-mode-line): Likewise. All callers changed.
(timeclock-mode-line-display): No need to check before using
add-hook.
(timeclock-relative, timeclock-day-over-hook)
(timeclock-use-elapsed, timeclock-mode-string)
(timeclock-mode-line-display): Doc fix, "modeline" -> "mode line".
* emulation/crisp.el (crisp-mode-mode-line-string): Rename from
crisp-mode-modeline-string.
* erc-track.el (erc-track, erc-track-faces-priority-list)
(erc-track-faces-normal-list, erc-track-find-face)
(erc-track-modified-channels): Fix modeline -> mode line in docs.
* eshell/esh-mode.el (eshell-status-in-mode-line): Rename from
eshell-status-in-modeline.
* org-clock.el (org-clock-string-limit)
(org-clock-modeline-total, org-clock-task-overrun-text)
(org-clock-mode-line-entry): Doc fix, "modeline" -> "mode line".
* play/solitaire.el (solitaire-build-mode-line): Rename from
solitaire-build-modeline. All callers changed.
* play/zone.el (zone-hiding-mode-line): Rename from
zone-hiding-modeline. All callers changed.
(zone): Remove unusued `modeline-hidden-level' property.
* progmodes/xscheme.el (xscheme-mode-line-initialize): Rename from
xscheme-modeline-initialize. All callers changed.
* textmodes/sgml-mode.el (html-face-tag-alist)
(html-tag-face-alist): Use mode-line face instead of obsolete
alias modeline.
Fixes: debbugs:10329
2012-06-02 18:56:09 +08:00
Stefan Merten
42152ee471
Always require `cl'.
2012-06-02 11:43:51 +02:00
Agustín Martín
6e8a178669
ispell.el: Define ispell-with-no-warnings' as a macro. Deal with obsolete
interactive-p'
...
* Current `ispell-with-no-warnings' definition does not avoid warnings.
Use a macro definition taken from orgmode.
* Deal with a couple of occurrences of obsolete `interactive-p'.
2012-05-30 18:14:37 +02:00
Stefan Merten
6d3f7c2fff
Silence `checkdoc-ispell' errors where possible. Fix authors. Improve
...
comments. Improve loading of `cl'.
(rst-mode-abbrev-table): Merge definition.
(rst-mode): Make sure `font-lock-defaults' is buffer local.
(rst-define-key, rst-deprecated-keys, rst-call-deprecated): Refactor.
2012-05-29 22:14:18 +02:00
Juri Linkov
8cbd80f713
* lisp/isearch.el (isearch-search-fun-default): New function.
...
(isearch-search-fun): Move default part to the new function
`isearch-search-fun-default'.
(isearch-search-fun-function): Set the default value to
`isearch-search-fun-default'.
* lisp/comint.el (comint-history-isearch-end):
Use `isearch-search-fun-default'.
(comint-history-isearch-search): Use `isearch-search-fun-default'
and remove spacial case for `isearch-word'.
(comint-history-isearch-wrap): Remove spacial case for
`isearch-word'.
* lisp/hexl.el (hexl-isearch-search-function):
Use `isearch-search-fun-default'.
* lisp/info.el (Info-isearch-search): Use `isearch-search-fun-default'.
Use `word-search-regexp' for `isearch-word'.
* lisp/misearch.el (multi-isearch-search-fun):
Use `isearch-search-fun-default'.
* lisp/simple.el (minibuffer-history-isearch-search):
Use `isearch-search-fun-default' and remove spacial case for
`isearch-word'.
(minibuffer-history-isearch-wrap): Remove spacial case for
`isearch-word'.
* lisp/textmodes/reftex-global.el (reftex-isearch-wrap-function):
Remove spacial case for `isearch-word'.
(reftex-isearch-isearch-search): Use `isearch-search-fun-default'.
Fixes: debbugs:11381
2012-05-29 12:09:38 +03:00
Paul Eggert
c846da4383
Spelling fixes.
2012-05-28 23:16:49 -07:00
Agustín Martín
85c8c5b653
textmodex/{ispell,flyspell}.el: Decrease XEmacs incompatibilities.
...
* flyspell.el:
(flyspell-check-pre-word-p): Use `string-match'.
(flyspell-delete-region-overlays): Use alternative definition for XEmacs.
(flyspell-delete-all-overlays): Use `flyspell-delete-region-overlays'.
(flyspell-word): Use `process-kill-without-query' if XEmacs.
(flyspell-mode-on): Use `interactive-p' if XEmacs.
(flyspell-incorrect-face, flyspell-duplicate-face):
Do not use `define-obsolete-face-alias' under XEmacs, but old method.
* ispell.el:
(ispell-with-no-warnings): XEmacs alternative `with-no-warnings'
definition or Emacs alias.
(ispell-command-loop, ispell-message): Use `ispell-with-no-warnings'.
(ispell-word): Do not use `region-p' if XEmacs.
2012-05-28 18:11:15 +02:00
Agustín Martín
8cab9efc05
textmodes/ispell.el: Fix variable name. Show spellchecker on process start.
...
* (ispell-find-aspell-dictionaries): Check for
`ispell-dictionary-base-alist' instead of full `ispell-dictionary-alist'.
* (ispell-init-process): Show spellchecker when starting new Ispell process.
2012-05-28 16:36:27 +02:00
Stefan Monnier
60c4db3a60
* lisp/textmodes/flyspell.el: Commenting style, plus code simplifications.
...
(flyspell-default-deplacement-commands): Don't spell check after
repeated window/frame switches (e.g. triggered by mouse-movement).
(flyspell-delay-commands, flyspell-deplacement-commands): Use mapc.
(flyspell-debug-signal-word-checked): Simplify and fit in 80 cols.
(flyspell-casechars-cache, flyspell-ispell-casechars-cache)
(flyspell-not-casechars-cache, flyspell-ispell-not-casechars-cache):
Remove unused vars.
(flyspell-get-casechars, flyspell-get-not-casechars):
Simplify; Don't bother removing a ] just to add it back.
* lisp/textmodes/ispell.el (ispell-program-name): Use executable-find.
2012-05-18 15:04:07 -04:00
Agustín Martín
80a511622c
textmodes/flyspell.el: Minor change over last 2012-05-18T07:04:04Z!agustin.martin@hispalinux.es change. Use ispell-otherchars variable.
...
Use ispell-otherchars variable rather than (ispell-get-otherchars).
2012-05-18 09:36:09 +02:00
Agustín Martín
3f1b25b580
textmodes/flyspell.el: Protect delay handling for otherchars against empty otherchars.
...
(flyspell-check-pre-word-p, flyspell-check-word-p,flyspell-debug-signal-word-checked)
2012-05-18 09:04:04 +02:00
Agustín Martín
65034a51d6
textmodes/flyspell.el: Delay for otherchars as for normal word components.
...
(flyspell-check-pre-word-p,
flyspell-check-word-p,
flyspell-debug-signal-word-checked):
Use for otherchars the same delay used for other word components, so word
is not inmediately checked unless we are in a char that is neither a normal
word component nor an otherchar.
2012-05-16 10:35:11 +02:00
Stefan Merten
51fa99f1e6
(rst-re-alist): Fix loading (bug#11462).
2012-05-14 11:31:08 +02:00
Stefan Monnier
e5bd0a2895
Move define-obsolete-variable-alias before the var's definition.
...
* lisp/vc/log-edit.el (vc-comment-ring, vc-comment-ring-index):
* lisp/tooltip.el (tooltip-hook):
* lisp/textmodes/reftex-toc.el (reftex-toc-map):
* lisp/textmodes/reftex-sel.el (reftex-select-label-map)
(reftex-select-bib-map):
* lisp/textmodes/reftex-index.el (reftex-index-map)
(reftex-index-phrases-map):
* lisp/speedbar.el (speedbar-syntax-table, speedbar-key-map):
* lisp/progmodes/meta-mode.el (meta-mode-map):
* lisp/novice.el (disabled-command-hook):
* lisp/loadhist.el (unload-hook-features-list):
* lisp/frame.el (blink-cursor):
* lisp/files.el (find-file-not-found-hooks, write-file-hooks)
(write-contents-hooks):
* lisp/emulation/tpu-edt.el (GOLD-map):
* lisp/emacs-lock.el (emacs-lock-from-exiting):
* lisp/emacs-lisp/generic.el (generic-font-lock-defaults):
* lisp/emacs-lisp/chart.el (chart-map):
* lisp/dos-fns.el (register-name-alist):
* lisp/dired-x.el (dired-omit-files-p):
* lisp/desktop.el (desktop-enable):
* lisp/cus-edit.el (custom-mode-hook):
* lisp/buff-menu.el (buffer-menu-mode-hook):
* lisp/bookmark.el (bookmark-read-annotation-text-func)
(bookmark-exit-hooks):
* lisp/allout.el (allout-mode-deactivate-hook)
(allout-exposure-change-hook, allout-structure-added-hook)
(allout-structure-deleted-hook, allout-structure-shifted-hook):
* lisp/dirtrack.el (dirtrack-toggle, dirtrackp, dirtrack-debug-toggle)
(dirtrack-debug): Move call to define-obsolete-variable-alias so it
comes before the corresponding variable's definition.
2012-05-12 23:05:06 -04:00
Juanma Barranquero
8f6b6da8ec
lisp/textmodes/rst.el: Silence byte-compiler warnings.
...
(rst-re-alist, rst-reset-section-caches): Move around.
(rst-re): Use `characterp', not `char-valid-p'.
(font-lock-beg, font-lock-end): Declare.
2012-05-09 02:57:18 +02:00
Stefan Merten
d13c8be67c
2012-05-05 Stefan Merten <smerten@oekonux.de>
...
* rst.el: Major merge with upstream development up to Docutils
SVN r7399 / rst.el V1.2.1.
Clarified maintainership and authors.
(rst-extract-version, rst-cvs-header, rst-cvs-rev)
(rst-cvs-timestamp, rst-svn-rev, rst-svn-timestamp)
(rst-official-version, rst-official-cvs-rev, rst-version)
(rst-package-emacs-version-alist): New functions and variables
for version information.
(rst-bullets, rst-uri-schemes, rst-adornment-chars)
(rst-max-inline-length, rst-re-alist-def, rst-re-alist)
(rst-mode-syntax-table, rst-mode): New and corrected functions
and variables representing reStructuredText features.
(rst-re): New function for reStructuredText regexes. Used in
many places.
(rst-deprecated-keys, rst-call-deprecated, rst-define-key)
(rst-mode-map): Rebound keys.
(rst-mode-lazy, rst-font-lock-keywords)
(rst-font-lock-extend-region)
(rst-font-lock-extend-region-internal)
(rst-font-lock-extend-region-extend)
(rst-font-lock-find-unindented-line-limit)
(rst-font-lock-find-unindented-line-match)
(rst-adornment-level, rst-font-lock-adornment-level)
(rst-font-lock-adornment-match)
(rst-font-lock-handle-adornment-pre-match-form)
(rst-font-lock-handle-adornment-matcher): Major revision of
font-locking. Integrated with other code. `jit-lock-mode' is
used now.
(rst-preferred-adornments, rst-adjust-hook)
(rst-new-adornment-down, rst-preferred-bullets)
(rst-preferred-bullets, rst-indent, rst-indent-width)
(rst-indent-field, rst-indent-literal-normal)
(rst-indent-literal-minimized, rst-indent-comment): Changed,
extended and improved customization.
(rst-line-homogeneous-p, rst-line-homogeneous-nodent-p)
(rst-normalize-cursor-position, rst-get-decoration)
(rst-straighten-deco-spacing, rst-re-bullets, rst-re-items)
(rst-rstrip, rst-toc-insert-find-delete-contents)
(rst-shift-fill-region, rst-compute-bullet-tabs)
(rst-debug-print-tabs, rst-debug-mark-found)
(rst-shift-region-guts, rst-shift-region-right)
(rst-shift-region-left, rst-use-char-classes)
(rst-font-lock-keywords-function)
(rst-font-lock-indentation-point)
(rst-font-lock-find-unindented-line-begin)
(rst-font-lock-find-unindented-line-end)
(rst-font-lock-find-unindented-line)
(rst-font-lock-adornment-point, rst-font-lock-level)
(rst-adornment-level-alist): Removed functions and variables.
(rst-compare-adornments, rst-get-adornment-match)
(rst-suggest-new-adornment, rst-get-adornments-around)
(rst-adornment-complete-p, rst-get-next-adornment)
(rst-adjust-adornment, rst-display-adornments-hierarchy)
(rst-straighten-adornments): Standardized function names to
use "adornment" instead of "decoration". Corrected callers.
Similar standardizing happened in many places.
(rst-update-section, rst-adjust, rst-promote-region)
(rst-enumerate-region, rst-bullet-list-region)
(rst-repeat-last-character): Corrected use of `interactive'.
(rst-classify-adornment, rst-find-all-adornments)
(rst-get-hierarchy, rst-adjust-adornment, rst-toc-update)
(rst-find-leftmost-column, rst-repeat-last-character):
Refactored functions.
(rst-find-title-line, rst-reset-section-caches)
(rst-get-adornments-around, rst-adjust-adornment-work)
(rst-arabic-to-roman, rst-roman-to-arabic)
(rst-insert-list-pos, rst-insert-list-new-item)
(rst-insert-list-continue, rst-insert-list, rst-forward-line):
New functions.
(rst-all-sections, rst-section-hierarchy)
(rst-arabic-to-roman, rst-initial-enums, rst-initial-items):
New variables.
(rst-toc-return-wincfg, rst-toc-quit-window): Using window
configuration instead of only buffer. Changed where necessary.
(rst-line-tabs, rst-compute-tabs, rst-indent-line)
(rst-shift-region, rst-adaptive-fill): New functions for
indentation and filling.
(rst-comment-line-break, rst-comment-indent)
(rst-comment-insert-comment, rst-comment-region)
(rst-uncomment-region): New functions for handling comments.
(rst-compile): Shell arguments are quoted.
(rst-compile-pdf-preview, rst-compile-slides-preview):
Temporary files are deleted after use.
2012-05-07 21:51:25 +02:00
Agustín Martín
da00640ab7
ispell.el,flyspell.el: Preserve session localwords when switching back buffers.
...
Once a word is declared valid for a session and a buffer it should
stay valid for that buffer regardless buffer switches unless ispell
process is explicitly killed or dictionary changed for that buffer.
However, it is currently lost when we switch to a different buffer
that triggers a new ispell process and then switch back to the
original buffer (triggering a new ispell restart).
These changes try to keep buffer session localwords accepted in above
case.
2012-04-23 12:33:25 +02:00
Agustín Martín
f621ccf5b8
Remove obsolete usage of (ispell-insert-word)
...
`ispell-insert-word' is a plain `insert' together with word filtering
through `translation-table-for-input' for character code unification.
This was useful in Emacs 22, but is not needed for Emacs 23 and above
since unification is now direct.
Since XEmacs does not have `translation-table-for-input' there is no
need at all to keep this old code, but use (insert) directly.
2012-04-23 12:03:33 +02:00
Chong Yidong
cf20dee024
Tweaks to Customize interface. Set custom-reset-button-menu to t.
...
* cus-edit.el (custom-commands, custom-reset-menu)
(Custom-reset-standard): Tweak labels.
(custom-reset-button-menu): Change default to t.
(custom-buffer-create-internal): For the custom-reset-button-menu
case, put the revert button first.
(custom-group-subtitle): New face.
(custom-group-value-create): Align docstring to a specific column.
* wid-edit.el (widget-documentation-link-add): Don't handle
indentation in this function.
(widget-documentation-string-indent-to): New function.
(widget-documentation-string-value-create): Use it.
* autorevert.el (auto-revert):
* epg-config.el (epg):
* ibuffer.el (ibuffer):
* mpc.el (mpc):
* ses.el (ses):
* eshell/eshell.el (eshell):
* net/ange-ftp.el (ange-ftp):
* progmodes/ebnf2ps.el (postscript):
* progmodes/flymake.el (flymake):
* progmodes/prolog.el (prolog):
* progmodes/verilog-mode.el (verilog-mode):
* progmodes/which-func.el (which-func):
* textmodes/picture.el (picture):
* textmodes/tildify.el (tildify):
* vc/ediff.el (ediff): Tweak defgroups to improve presentation in
customization buffers.
2012-04-22 21:58:00 +08:00
Juanma Barranquero
4d6769e1bb
lisp/*: Add declarations, remove unused bindings, mark unused args.
...
* lisp/avoid.el (mouse-avoidance-mode): Mark unused arg.
(mouse-avoidance-nudge-mouse): Remove unused binding.
* lisp/imenu.el (imenu-default-goto-function): Mark unused args.
(imenu-progress-message): Remove obsolete macro; all callers changed.
* lisp/mouse.el (mouse-menu-major-mode-map):
* lisp/emacs-lisp/authors.el (authors-scan-change-log)
(authors-add-to-author-list):
* lisp/emacs-lisp/avl-tree.el (avl-tree--enter-balance):
* lisp/emacs-lisp/smie.el (smie-auto-fill):
* lisp/mail/sendmail.el (mail-bury):
* lisp/mail/unrmail.el (unrmail):
* lisp/net/tls.el (open-tls-stream):
* lisp/textmodes/picture.el (picture-mouse-set-point):
Remove unused bindings.
* lisp/subr.el (keymap-canonicalize): Remove unused binding.
(read-passwd): Mark unused arg.
* lisp/tutorial.el (tutorial--display-changes): Remove unused binding.
(tutorial--save-tutorial-to): Remove unused variable.
* lisp/emacs-lisp/package.el (define-package, package-menu-mark-delete)
(package-menu-mark-install, package-menu-mark-unmark): Mark unused args.
(package-generate-autoloads, package-menu--generate)
(package-menu--find-upgrades): Remove unused bindings.
* lisp/emulation/cua-rect.el (cua-restrict-regexp-rectangle)
(cua-restrict-prefix-rectangle): Doc fixes. Remove unused bindings.
(cua--mouse-ignore, cua--delete-rectangle, cua--extract-rectangle)
(cua--indent-rectangle, cua-open-rectangle, cua-close-rectangle)
(cua-blank-rectangle, cua-string-rectangle, cua-replace-in-rectangle)
(cua-incr-rectangle, cua-sequence-rectangle, cua--convert-rectangle-as)
(cua--rectangle-aux-replace, cua--left-fill-rectangle)
(cua-scroll-rectangle-up, cua-scroll-rectangle-down)
(cua-delete-char-rectangle): Mark unused args.
(cua-align-rectangle): Remove unused binding.
* lisp/mail/rmail.el (compilation--message->loc)
(epa--find-coding-system-for-mime-charset): Declare.
* lisp/net/dbus.el (dbus-register-service): Declare.
(dbus-name-owner-changed-handler): Remove unused binding.
* lisp/nxml/nxml-mode.el (nxml-electric-slash, nxml-in-mixed-content-p)
(nxml-compute-indent-from-matching-start-tag): Remove unused variables.
(nxml-scan-backward-within): Mark unused arg.
(nxml-dynamic-markup-word): Remove unused binding.
2012-04-19 19:20:26 +02:00
Glenn Morris
121b8917ec
Replace independent implementations of string-prefix-p
...
* vc/vc.el (vc-string-prefix-p):
* vc/pcvs-util.el (cvs-string-prefix-p):
* textmodes/tex-mode.el (latex-string-prefix-p, tex-string-prefix-p):
* mpc.el (mpc-string-prefix-p):
Make all of these into obsolete aliases for string-prefix-p.
Update callers.
* vc/pcvs.el, vc/vc-dispatcher.el, vc/vc-dir.el: Update callers.
2012-04-16 19:57:09 -04:00
Glenn Morris
1197ecfa84
two-column.el small cleanup
...
* lisp/textmodes/two-column.el: Move custom options to the start.
(frame-width): Remove compat definition.
(2C-associate-buffer, 2C-dissociate):
Use with-current-buffer rather than save-excursion.
(2C-dissociate): Force a mode-line update.
(2C-autoscroll): Use ignore-errors.
2012-04-16 16:13:38 -04:00
Glenn Morris
5a0978ce61
picture.el small cleanup
...
* lisp/textmodes/picture.el (picture-desired-column)
(picture-update-desired-column): Convert comments to doc-strings.
(picture-substitute): Remove function.
(picture-mode-map): Initialize in the defvar.
2012-04-16 14:53:06 -04:00
Agustín Martín
3851314bd4
(ispell-dictionary-base-alist): Revert to original XEmacs friendly default value.
...
Having [:alpha:] here is no longer needed. If possible [:alpha:] will be
set in `ispell-set-spellchecker-params' (and will always be for Emacs).
2012-04-16 19:32:02 +02:00
Agustín Martín
177eca34cb
ispell.el (ispell-set-spellchecker-params): Make dicts use [:alpha:] if
...
possible.
If Emacs flavour supports [:alpha:] regexps, use it for Casechars
and Not-Casechars. This currently means use it unless flavour is
XEmacs.
Fixes: debbugs:11200
2012-04-16 11:49:51 +02:00
Glenn Morris
35dc09a19c
Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.org
2012-04-13 18:46:06 -07:00
Agustín Martín
64a440db71
textmodes/flyspell.el (flyspell-large-region): Specify encoding for hunspell with ("-i" ENCODING).
...
As done for ispell in in 2012-04-08T17:09:03Z!eliz@gnu.org, in flyspell-large-region we also need
to specify encoding for hunspell with ("-i" ENCODING), in 2 separate
command-line arguments, as expected by hunspell.
2012-04-12 16:19:40 +02:00
William Stevenson
ac3cf14a97
(artist-mode): Convert artist-mode to use define-minor-mode.
...
Fixes: debbugs:10760
2012-04-11 13:57:21 +02:00
Lars Magne Ingebrigtsen
24d78a88ad
(fill-region): Leave point and mark where they were before filling
...
Fixes: debbugs:5399
2012-04-10 04:06:19 +02:00
Chong Yidong
fb7ada5f94
Remove * characters from the front of variable docstrings.
2012-04-09 21:05:48 +08:00
Eli Zaretskii
e2627d2130
Support Hebrew spell-checking in ispell.el.
...
lisp/textmodes/ispell.el (ispell-dictionary-base-alist): Add data for Hebrew.
2012-04-08 20:13:15 +03:00
Eli Zaretskii
b39bb7e124
Fix invocation of Hunspell by ispell.el.
...
lisp/textmodes/ispell.el (ispell-check-version): For hunspell, set
ispell-encoding8-command to "-i", without a trailing space.
(ispell-start-process): For hunspell, use '("-i" ENCODING), in 2
separate command-line arguments, to specify the encoding, since
that's how hunspell expects it.
2012-04-08 20:09:03 +03:00
Agustín Martín
935d1290a6
ispell.el (ispell-get-extended-character-mode): Make sure extended-character-mode is nil for hunspell
...
Work around hunspell not ignoring extended-character-mode
set from pipe mode by making sure extended-character-mode
is nil for hunspell.
2012-03-30 11:45:11 +02:00
Paul Eggert
425df10c7b
Spelling fixes.
2012-03-28 00:24:26 -07:00
Tassilo Horn
ee52ebf3e2
* textmodes/artist.el (artist-menu-map): Bind Rectangle menu item
...
to draw rectangles, not squares. (Regression introduced by
2011-03-02T03:48:01Z!cyd@stupidchicken.com)
2012-03-20 09:13:11 +01:00
Eli Zaretskii
d9a8eb664e
Fix doc strings in ispell.el/.
...
lisp/textmodes/ispell.el (ispell-skip-tib, ispell-keep-choices-win)
(ispell-choices-win-default-height, ispell-silently-savep)
(ispell-dictionary-alist, ispell-encoding8-command)
(ispell-check-version, ispell-aspell-find-dictionary)
(ispell-valid-dictionary-list, ispell-words-keyword)
(ispell-get-word, ispell-internal-change-dictionary)
(ispell-region, ispell-skip-region-list)
(ispell-begin-skip-region-regexp, ispell-ignore-fcc)
(ispell-process-line, ispell-minor-mode, ispell-minor-check)
(ispell-message-text-end, ispell-message)
(ispell-buffer-local-parsing): Doc fix.
2012-03-17 21:46:52 +02:00
Eli Zaretskii
9ac7a13f08
Improve error message in ispell-get-decoded-string.
...
lisp/textmodes/ispell.el (ispell-get-decoded-string): Make the error
message mention the alists that need to be fixed.
2012-03-17 11:13:19 +02:00
Glenn Morris
44e97401cd
Standardize possessive apostrophe usage in manuals, docs, and comments
...
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00649.html
2012-02-28 00:17:21 -08:00
Glenn Morris
5f8dc2cad6
Fix picture-mode C-c C-d binding
...
* lisp/textmodes/picture.el (picture-delete-char): Newalias.
(picture-mode-map): Use it.
(picture-mode): Doc fix.
* admin/FOR-RELEASE: Related markup.
Fixes: debbugs:10860
2012-02-21 09:09:19 -08:00
Glenn Morris
f9a998c365
Checked picture-xtra.texi
...
* doc/emacs/picture-xtra.texi (Basic Picture): C-a does get remapped.
* lisp/textmodes/picture.el (picture-motion, picture-motion-reverse)
(picture-self-insert, picture-tab-chars): Doc fix.
(picture-mode-map): Fix C-a, C-e.
* admin/FOR-RELEASE: Related markup.
2012-02-21 00:28:18 -08:00
Glenn Morris
b2096d7233
Add missing defcustom :version tags
...
* lisp/textmodes/bibtex.el:
Add missing :version tags for new/changed defcustoms.
* etc/NEWS: Related edits.
2012-02-10 00:23:33 -08:00
Glenn Morris
e1ac4066d1
Minor-mode doc fixes for ARG behavior
...
* lisp/completion.el (dynamic-completion-mode):
* lisp/dirtrack.el (dirtrack-debug-mode):
* lisp/electric.el (electric-layout-mode):
* lisp/epa-mail.el (epa-mail-mode, epa-global-mail-mode):
* lisp/face-remap.el (text-scale-mode, buffer-face-mode):
* lisp/iimage.el (iimage-mode):
* lisp/image-mode.el (image-transform-mode):
* lisp/minibuffer.el (completion-in-region-mode):
* lisp/scroll-lock.el (scroll-lock-mode):
* lisp/simple.el (next-error-follow-minor-mode):
* lisp/tar-mode.el (tar-subfile-mode):
* lisp/tooltip.el (tooltip-mode):
* lisp/vcursor.el (vcursor-use-vcursor-map):
* lisp/wid-browse.el (widget-minor-mode):
* lisp/emulation/tpu-edt.el (tpu-edt-mode):
* lisp/emulation/tpu-extras.el (tpu-cursor-free-mode):
* lisp/international/iso-ascii.el (iso-ascii-mode):
* lisp/language/thai-util.el (thai-word-mode):
* lisp/mail/supercite.el (sc-minor-mode):
* lisp/net/goto-addr.el (goto-address-mode):
* lisp/net/rcirc.el (rcirc-multiline-minor-mode, rcirc-track-minor-mode):
* lisp/progmodes/cwarn.el (cwarn-mode):
* lisp/progmodes/flymake.el (flymake-mode):
* lisp/progmodes/glasses.el (glasses-mode):
* lisp/progmodes/hideshow.el (hs-minor-mode):
* lisp/progmodes/pascal.el (pascal-outline-mode):
* lisp/textmodes/enriched.el (enriched-mode):
* lisp/vc/smerge-mode.el (smerge-mode):
Doc fixes (minor mode argument).
* etc/NEWS: Related markup.
2012-02-07 21:12:24 -05:00
Roland Winkler
e70ee68111
lisp/textmodes/bibtex.el: minor doc fix
2012-01-28 12:25:03 -06:00
Roland Winkler
ace88aa20f
lisp/textmodes/bibtex.el: allow bibtex-dialect as file-local variable (Bug#10254)
2012-01-28 12:06:10 -06:00
Chong Yidong
9962192ea1
* doc/lispref/modes.texi (Example Major Modes): Update Lisp example code
...
to current sources. Delete the old non-derived-major-mode
example, which has diverged badly from current sources.
* lisp/text-mode.el (text-mode): Minor tweak to make the mirrored
manual node nicer.
2012-01-28 11:49:22 +08:00
Glenn Morris
04e74403a1
Comments.
2012-01-11 23:34:46 -08:00
Glenn Morris
acaf905b11
Add 2012 to FSF copyright years for Emacs files
2012-01-05 01:46:05 -08:00
Paul Eggert
22bcf20469
Spelling fixes.
2011-12-30 17:27:15 -08:00
Paul Eggert
9858f6c326
Spelling fixes.
2011-12-29 18:52:49 -08:00
Paul Eggert
6196cffecf
Spelling fixes.
2011-12-21 01:58:39 -08:00
Paul Eggert
99d990817c
Spelling fixes.
2011-12-18 22:21:24 -08:00
Paul Eggert
301b181a14
Spelling fixes.
2011-12-16 22:51:13 -08:00
Eli Zaretskii
b8830d2864
Fix bug #2975 with insufficient docs of texinfo-master-menu.
...
lisp/textmodes/texnfo-upd.el: Correct outdated description about
texinfo-master-menu.
(texinfo-master-menu): Explain better in the doc string what the
function really does.
(texinfo-insert-master-menu-list): Improve the error message
displayed if there's no menu in the Top node.
2011-12-10 14:22:25 +02:00
Eli Zaretskii
e5d84bfe06
Fix documentation and one misfeature of Texinfo mode update commands.
...
lisp/textmodes/texnfo-upd.el: Update commentary. Add a warning not
to use texinfo-update-node and commands that call it if the
Texinfo file uses @node lines without next/prev/up pointers.
(texinfo-all-menus-update, texinfo-master-menu)
(texinfo-update-node, texinfo-every-node-update)
(texinfo-multiple-files-update): Doc fix. Warn against updating
all the @node lines.
(texinfo-master-menu): Only call texinfo-update-node if the prefix
argument is numeric. See also this thread:
http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00156.html .
Fixes: debbugs:2975
2011-12-10 12:49:33 +02:00
Juanma Barranquero
a98edce9ec
Fix typos.
2011-12-06 02:30:54 +01:00
Paul Eggert
fa46310344
Spelling fixes.
2011-12-05 00:55:25 -08:00
Paul Eggert
c80e3b4aed
Spelling fixes.
2011-12-04 00:02:42 -08:00
Glenn Morris
5e605a2e52
* lisp/textmodes/texinfmt.el (batch-texinfo-format): Doc fix.
...
Fixes: debbugs:10207
2011-12-03 12:44:19 -08:00
Juanma Barranquero
5c32d3f2f9
Fix typos.
2011-11-30 17:33:05 +01:00
Paul Eggert
e9a452d9cd
Spelling fixes (mostly "inactive" vs "deactivate").
2011-11-27 10:17:40 -08:00
Paul Eggert
e47695319f
Spelling fixes.
2011-11-26 20:43:11 -08:00
Glenn Morris
3adbe22462
Give some autoloaded things doc-strings.
...
* lisp/lpr.el (lpr-windows-system, lpr-lp-system):
* lisp/mail/binhex.el (binhex-begin-line):
* lisp/progmodes/grep.el (grep-history, grep-find-history):
* lisp/textmodes/flyspell.el:
* lisp/vc/pcvs-defs.el (cvs-global-menu):
* lisp/vc/vc-bzr.el (vc-bzr-admin-checkout-format-file):
* lisp/vc/vc-mtn.el (vc-mtn-admin-dir, vc-mtn-admin-format):
* lisp/vc/vc-cvs.el (vc-cvs-registered): Give them basic doc-strings.
2011-11-24 00:21:03 -08:00
Juanma Barranquero
20db1522fe
Fix typos.
2011-11-24 02:58:14 +01:00
Paul Eggert
ee7683ebb7
Spelling fixes.
2011-11-22 23:03:56 -08:00
Juanma Barranquero
fe7a3057a3
Fix typos.
2011-11-20 20:35:27 +01:00
Paul Eggert
40ba43b4b7
Spelling fixes.
2011-11-19 23:30:16 -08:00
Juanma Barranquero
cd1181dbec
Fix typos.
2011-11-20 04:48:53 +01:00
Paul Eggert
e1dbe924b5
Spelling fixes.
2011-11-19 18:29:42 -08:00
Paul Eggert
5396468298
Spelling fixes.
2011-11-19 01:18:31 -08:00
Paul Eggert
3ed8598c49
Spelling fixes.
2011-11-18 00:31:02 -08:00
Paul Eggert
c5e87d104b
Spelling fixes.
2011-11-17 09:40:48 -08:00
Juanma Barranquero
df85d31593
Fix typos.
2011-11-17 13:16:44 +01:00
Paul Eggert
4c36be58ca
Spelling fixes.
2011-11-17 01:09:20 -08:00
Juanma Barranquero
7877f37394
Fix typos.
2011-11-16 18:47:25 +01:00
Juanma Barranquero
58179ccebd
Fix typos.
2011-11-16 13:34:47 +01:00
Juanma Barranquero
c701515351
Fix typos.
2011-11-15 18:37:37 +01:00
Paul Eggert
da6062e6ea
Spelling fixes.
2011-11-14 23:55:13 -08:00
Paul Eggert
91af3942e9
Spelling fixes.
2011-11-14 15:59:56 -08:00
Juanma Barranquero
0b381c7eb8
Fix typos.
2011-11-14 22:00:24 +01:00
Paul Eggert
09e80d9fb9
Spelling fixes.
2011-11-13 22:27:12 -08:00
Paul Eggert
f6b1b0a848
Spelling fixes.
2011-11-12 23:48:23 -08:00
Juanma Barranquero
40a8bdf60f
Fix typos.
2011-11-12 00:17:16 +01:00
Paul Eggert
fe3c566957
Spelling fixes.
2011-11-08 22:10:51 -08:00
Chong Yidong
2d197ffbe2
Rename split-window-{above-each-other|split-window-side-by-side}
...
to split-window-below and split-window-right.
* lisp/window.el (split-window-below, split-window-right): Rename from
split-window-above-each-other and split-window-side-by-side
respectively. All callers changed.
(split-window-sensibly, split-window-sensibly): Use them.
(split-window-keep-point): Doc fix.
* lisp/isearch.el: Add isearch-scroll property to split-window-below
and split-window-right.
* lisp/follow.el (follow-mode):
* lisp/vc/pcvs-util.el (cvs-pop-to-buffer-same-frame):
* lisp/progmodes/ada-xref.el (ada-gdb-application):
* lisp/emulation/vip.el (vip-buffer-in-two-windows):
* lisp/image-dired.el (image-dired-dired-with-window-configuration):
* lisp/dired-x.el (dired-do-find-marked-files):
* lisp/dired.el (dired-pop-to-buffer):
* lisp/bs.el (bs--show-with-configuration):
* lisp/vc/emerge.el (emerge-setup-windows):
* lisp/textmodes/two-column.el (2C-two-columns):
* lisp/textmodes/reftex-toc.el (reftex-toc):
* lisp/progmodes/gdb-mi.el (gdb-setup-windows):
* lisp/progmodes/fortran.el (fortran-window-create):
* lisp/net/newst-treeview.el (newsticker--treeview-window-init):
* lisp/emulation/ws-mode.el (wordstar-C-o-map, wordstar-mode):
* lisp/emulation/tpu-edt.el (tpu-gold-map):
* lisp/emulation/crisp.el (crisp-mode-map):
* lisp/calendar/calendar.el (calendar-basic-setup): Callers changed.
2011-10-30 09:56:03 +08:00
Chong Yidong
5d2ece3cd2
* flyspell.el (flyspell-word): Fix char offset for forged Ispell output.
...
Fixes: debbugs:7904
2011-10-29 12:37:29 +08:00
Juanma Barranquero
a7ef684b46
Fix typos.
2011-10-26 16:07:31 +02:00
Chong Yidong
ac6c8639bd
Fix more minor mode docstrings.
...
* lisp/emulation/cua-base.el (cua-mode):
* lisp/mail/footnote.el (footnote-mode):
* lisp/mail/mailabbrev.el (mail-abbrevs-mode):
* lisp/net/xesam.el (xesam-minor-mode):
* lisp/progmodes/bug-reference.el (bug-reference-mode):
* lisp/progmodes/cap-words.el (capitalized-words-mode):
* lisp/progmodes/compile.el (compilation-minor-mode)
(compilation-shell-minor-mode):
* lisp/progmodes/gud.el (gud-tooltip-mode):
* lisp/progmodes/hideif.el (hide-ifdef-mode):
* lisp/progmodes/idlw-shell.el (idlwave-shell-electric-debug-mode):
* lisp/progmodes/subword.el (subword-mode):
* lisp/progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
* lisp/progmodes/which-func.el (which-function-mode):
* lisp/term/tvi970.el (tvi970-set-keypad-mode):
* lisp/term/vt100.el (vt100-wide-mode):
* lisp/textmodes/flyspell.el (flyspell-mode):
* lisp/textmodes/ispell.el (ispell-minor-mode):
* lisp/textmodes/nroff-mode.el (nroff-electric-mode):
* lisp/textmodes/paragraphs.el (use-hard-newlines):
* lisp/textmodes/refill.el (refill-mode):
* lisp/textmodes/reftex.el (reftex-mode):
* lisp/textmodes/rst.el (rst-minor-mode):
* lisp/textmodes/sgml-mode.el (html-autoview-mode)
(sgml-electric-tag-pair-mode):
* lisp/textmodes/tex-mode.el (latex-electric-env-pair-mode):
* lisp/vc/diff-mode.el (diff-auto-refine-mode, diff-minor-mode):
* lisp/emulation/crisp.el (crisp-mode):
* lisp/emacs-lisp/eldoc.el (eldoc-mode):
* lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode): Doc fixes for new
minor mode behavior.
* lisp/erc/erc-fill.el (erc-fill-mode):
* lisp/erc/erc-track.el (erc-track-minor-mode): Doc fix.
* lisp/erc/erc.el (define-erc-module): Fix autogenerated docstring to
reflect Emacs 24 minor mode changes.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Doc fix (in Emacs 24,
calling a minor mode from Lisp with nil arg enables it, so we have to
make the working a bit ambiguous here).
2011-10-19 20:26:14 -04:00
Agustín Martín
8b7a997c1a
flyspell.el (flyspell-large-region): Use extended character mode if defined (Bug#1339).
...
flyspell-large-region was not setting extended character mode for the
external ispell process. This was affecting ispell with 8bit charsets
not being the default, like in german.
Since extended character mode was not used, process used default 7bit
pseudo-charset resulting in some messages like
-> rterbuch - 68: word not found
about words not found.
This may be related to (Bug#1339).
2011-10-13 20:37:57 +02:00
Stefan Monnier
e1b0b23a7d
* lisp/textmodes/flyspell.el (flyspell-word): Move with-local-quit from here...
...
(flyspell-post-command-hook): ...to here.
2011-10-11 22:48:40 -04:00
Richard M. Stallman
e488d29cec
For moving backward sentences,
...
distinguish start of paragraph from start of its text.
2011-09-23 19:55:52 -04:00
Peter J. Weisberg
eca3f3ea3a
* lisp/textmodes/picture.el: Make motion commands obey shift-select-mode.
...
(picture-newline): Use forward-line so as to ignore fields.
2011-09-23 10:47:01 -04:00
Richard M. Stallman
8f09851614
Fix bug that C-x DEL deleted a newline before paragraph.
2011-09-22 09:34:02 -04:00
Juri Linkov
744ba0e3ee
* lisp/textmodes/ispell.el (ispell-word): Add to the error message
...
the word, ispell program name and current dictionary.
(ispell-tex-arg-end): Capitalize "error" in the error message.
Fixes: debbugs:9121
2011-09-17 15:07:50 +03:00
Stefan Monnier
3fe48822c3
* textmodes/bibtex.el (bibtex-complete-string-cleanup)
...
(bibtex-complete-crossref-cleanup): Adjust to accommodate needs of
bibtex-completion-at-point-function.
(bibtex-completion-at-point-function): Use them.
2011-09-14 17:43:36 -04:00
Lars Magne Ingebrigtsen
129808371c
* textmodes/flyspell.el: Remove obsolete comment
...
Fixes: debbugs:9368
2011-09-11 04:14:10 +02:00
Chong Yidong
3199b96fc5
Fix various uses of display-buffer and pop-to-buffer
...
to avoid using special-display-* and same-window-* variables.
* lisp/buff-menu.el (Buffer-menu-switch-other-window): Use second arg
of display-buffer.
(Buffer-menu-2-window): Use switch-to-buffer-other-window.
* lisp/replace.el (occur-mode-goto-occurrence)
(occur-mode-display-occurrence) Use second arg of pop-to-buffer
and display-buffer.
* lisp/window.el (display-buffer-alist): Add *Python*.
* lisp/mail/reporter.el (reporter-submit-bug-report): Use second arg of
display-buffer.
* lisp/mail/sendmail.el (sendmail-user-agent-compose): Don't bind the
special-display and same-window variables.
(mail-other-window): Use switch-to-buffer-other-window.
(mail-other-frame): USe switch-to-buffer-other-frame.
* lisp/progmodes/gdb-mi.el (gdb-frame-gdb-buffer): Use
display-buffer-other-frame.
(gdb-display-gdb-buffer): Use pop-to-buffer.
* lisp/progmodes/gud.el (gud-goto-info): Use info-other-window.
* lisp/progmodes/python.el: Don't set same-window-buffer-names.
* lisp/textmodes/bibtex.el (bibtex-search-entry): Use switch-to-buffer.
2011-09-10 17:15:28 -04:00
Chong Yidong
c33134511b
Remove pop-to-buffer-same-window.
...
* lisp/window.el (pop-to-buffer-1, pop-to-buffer-same-window): Deleted.
(pop-to-buffer): Change interactive spec. Pass second argument
directly to display-buffer.
(display-buffer): Fix interactive spec. Use functionp to
distinguish between a function and a list of functions.
* lisp/abbrev.el (edit-abbrevs):
* lisp/arc-mode.el (archive-extract):
* lisp/autoinsert.el (auto-insert):
* lisp/bookmark.el (bookmark-bmenu-list):
* lisp/files.el (find-file):
* lisp/view.el (view-buffer):
* lisp/progmodes/compile.el (compilation-goto-locus):
* lisp/textmodes/bibtex.el (bibtex-initialize): Use switch-to-buffer.
* lisp/org/ob-ref.el (org-babel-ref-goto-headline-id):
* lisp/org/org.el (org-get-location, org-tree-to-indirect-buffer)
(org-mark-ring-goto, org-refile, org-add-log-note)
(org-revert-all-org-buffers, org-switchb)
(org-cycle-agenda-files, org-submit-bug-report)
(org-goto-marker-or-bmk):
* lisp/org/org-agenda.el (org-prepare-agenda, org-agenda-switch-to):
* lisp/org/org-capture.el (org-capture-goto-target)
(org-capture-fill-template):
* lisp/org/org-clock.el (org-clock-goto):
* lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file):
* lisp/org/org-exp.el (org-export-as-org):
* lisp/org/org-feed.el (org-feed-show-raw-feed):
* lisp/org/org-html.el (org-export-htmlize-generate-css):
* lisp/org/org-id.el (org-id-goto):
* lisp/org/org-irc.el (org-irc-visit-erc):
* lisp/org/org-mobile.el (org-mobile-apply):
* lisp/org/org-publish.el (org-publish-org-to, org-publish-find-date):
* lisp/org/org-remember.el (org-go-to-remember-target):
* lisp/org/org-src.el (org-src-switch-to-buffer)
(org-edit-fixed-width-region): Use switch-to-buffer.
* lisp/org/org-compat.el (org-pop-to-buffer-same-window): Deleted.
2011-09-02 12:38:40 -04:00
Alan Mackenzie
9980ebf354
textmodes/paragraphs.el. Undo previous accidental patch.
2011-08-27 11:14:50 +00:00
Alan Mackenzie
3fc9b21845
progmodes/cc-menus.el (cc-imenu-c++-generic-expression): Make it handle
...
function pointer parameters properly.
2011-08-27 08:41:23 +00:00
Juri Linkov
f65d1611ff
* lisp/textmodes/ispell.el (ispell-command-loop): Add newline
...
at the end of the "Use option `i'..." line.
2011-08-25 22:54:07 +03:00
Lars Magne Ingebrigtsen
81746738bb
Include EN DASH as an indentation character
...
* textmodes/fill.el (adaptive-fill-regexp): Include EN DASH as an
indentation character.
Fixes: debbugs:6380
2011-07-16 22:05:54 +02:00
Roland Winkler
ff8be6ef07
lisp/textmodes/bibtex.el: small bug fixes
2011-07-12 08:37:38 -05:00
Roland Winkler
2de69e00f3
lisp/textmodes/bibtex.el: add support for biblatex
2011-07-05 12:44:15 -05:00
Julien Danjou
1d3cdbc7be
* textmodes/rst.el (rst-define-level-faces): Use `facep' rather
...
than `boundp' to check if face is set.
2011-07-05 12:02:48 +02:00
Richard Kim
9a51c6c761
* textmodes/texnfo-upd.el (texinfo-insert-menu): Don't insert
...
unnecessary spaces.
Fixes: debbugs:8987
2011-07-03 18:11:37 +02:00
Lars Magne Ingebrigtsen
a8392169cd
* textmodes/fill.el (fill-region): Remove the "Ordinarily" from
...
the doc string, since it appears that using `fill-column' always
controls the width (bug#7845).
2011-07-02 23:42:49 +02:00
Glenn Morris
d224ac8375
Replace runtime CL function, as flagged by the compiler.
...
* lisp/textmodes/flyspell.el (flyspell-word-search-backward):
Replace CL function.
2011-07-01 14:13:17 -04:00
Lars Magne Ingebrigtsen
887d14add7
textmodes/flyspell.el (flyspell-word): Consider words that differ only
...
in case as potential doublons (bug#5687).
2011-07-01 01:19:45 +02:00
Glenn Morris
887a0b3446
Silence reftex-parse compilation.
...
* lisp/textmodes/reftex-parse.el (index-tags): Declare.
Nuke trailing whitespace.
2011-06-29 19:50:20 -07:00
Deniz Dogan
ec49bd31ea
* textmodes/css-mode.el (css-proprietary-nmstart-re): Use `regexp-opt'.
2011-06-28 13:37:05 +02:00
Deniz Dogan
ad85fe1f1b
* textmodes/css-mode.el (css-font-lock-keywords): Fix grouped selectors.
...
Fixes: debbugs:5732
2011-06-28 13:23:01 +02:00
Roland Winkler
297dde5a97
lisp/textmodes/bibtex.el: minor cleanup and bug fixes
2011-06-22 15:59:48 -05:00
Chong Yidong
770802895c
* lisp/textmodes/fill.el (default-justification): Add :safe (Bug#8879).
2011-06-18 15:21:16 -04:00
Roland Winkler
34699b85fd
lisp/textmodes/bibtex.el: new command bibtex-search-entries
2011-06-05 00:46:43 -05:00
Roland Winkler
004dedd364
lisp/textmodes/bibtex.el: various small bug fixes
2011-06-04 23:58:39 -05:00
Roland Winkler
022fe7ce8b
lisp/textmodes/bibtex.el (bibtex-search-entry-globally): New variable
2011-06-04 23:47:45 -05:00
Roland Winkler
b7c3692a4c
lisp/textmodes/bibtex.el (bibtex-entry-format): new option sort-fields
2011-06-04 23:39:40 -05:00
Julien Danjou
51d5b4eca9
* textmodes/rst.el (rst-define-level-faces): Do not define face
...
symbol if it is already defined.
2011-05-25 11:03:59 +02:00
Stefan Monnier
a2a25d2435
Add an :exit-function for completion-at-point.
...
* lisp/minibuffer.el (completion--done): New fun.
(completion--do-completion): Use it. New arg `expect-exact'.
(minibuffer-complete, minibuffer-complete-word): Don't output message,
since completion--do-completion does it for us now.
(minibuffer-force-complete): Use completion--done and
completion--replace. Handle sole-completion case with more care.
(minibuffer-complete-and-exit): Use new `expect-exact' arg.
(completion-extra-properties): New var.
(completion-annotate-function): Make obsolete.
(minibuffer-completion-help): Adjust accordingly.
Use completion-list-insert-choice-function.
(completion-at-point, completion-help-at-point):
Bind completion-extra-properties.
(completion-pcm-word-delimiters): Add | (for uniquify, for example).
* lisp/simple.el (completion-list-insert-choice-function): New var.
(completion-setup-function): Preserve it.
(choose-completion): Pay attention to it, shuffle the code a bit.
(choose-completion-string): New arg `insert-function'.
* lisp/textmodes/bibtex.el: Convert to lexical binding.
(bibtex-mode-map): Use completion-at-point.
(bibtex-mode): Use define-derived-mode&completion-at-point-functions.
(bibtex-completion-at-point-function): New fun, from bibtex-complete.
(bibtex-complete): Define as obsolete alias.
(bibtex-complete-internal): Remove.
(bibtex-format-entry): Remove unused sub-group in regexp.
* lisp/shell.el (shell--command-completion-data)
(shell-environment-variable-completion):
* lisp/pcomplete.el (pcomplete-completions-at-point):
* lisp/comint.el (comint--complete-file-name-data): Use :exit-function
instead of completion-table-with-terminator so it also works for
choose-completion.
2011-05-23 23:45:50 -03:00
Stefan Monnier
4f91a8160f
Don't quote lambda expressions with `quote'.
2011-05-23 14:57:17 -03:00
U. Ser
9b053e766d
fix many doubled-word typos
2011-05-10 15:57:12 +02:00
Agustín Martín
5192af462f
ispell.el (ispell-add-per-file-word-list): Use `concat' to create string for insertion.
...
Fixes: debbugs:8579
2011-05-03 16:11:39 +02:00
Stefan Monnier
5767d190ca
* lisp/textmodes/bibtex.el (bibtex-fill-field-bounds, bibtex-fill-entry):
...
Avoid open-line which runs post-self-insert-hook.
(bibtex-fill-entry): Remove unused `end' var.
2011-05-03 11:03:48 -03:00
Agustín Martín
bf242939d9
ispell.el (ispell-add-per-file-word-list): Protect against nil' value of
comment-start' (Bug#8579).
2011-05-03 13:08:15 +02:00
Stefan Monnier
52d3c2d04d
* lisp/textmodes/ispell.el (lookup-words): Use with-temp-buffer; signal
...
error directly rather via storing it into `results'.
2011-05-02 22:48:32 -03:00
Glenn Morris
4ffd0d6b56
Merge from emacs-23; up to 2010-06-09T17:54:28Z!albinus@detlef.
2011-04-22 20:07:16 -07:00
Chong Yidong
7e735aaf4d
Fix for what-page (Bug#6825).
...
* textmodes/page.el (what-page): Use line-number-at-pos to
calculate line number.
2011-04-10 16:52:31 -04:00
Chong Yidong
c11325f772
Improvements to flyspell-mark-duplications-exceptions.
...
* lisp/textmodes/flyspell.el (flyspell-word): Recognize default
dictionary case for flyspell-mark-duplications-exceptions. Use
regexp matching for languages.
(flyspell-mark-duplications-exceptions): Add "that" and "had" for
default dictionary (Bug#7926).
2011-04-03 16:59:45 -04:00
Stefan Monnier
cafdcef32d
Merge from trunk
2011-03-21 12:42:16 -04:00
Stefan Monnier
ba83908c4b
Misc fixes, and use lexical-binding in more files.
...
* lisp/subr.el (letrec): New macro.
(with-wrapper-hook): Move from lisp/simple.el and don't use CL.
* simple.el (with-wrapper-hook): Move with-wrapper-hook to subr.el.
* lisp/help-fns.el (help-function-arglist): Handle subroutines as well.
(describe-variable): Use special-variable-p to filter completions.
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Don't expand `declare'
in defmacros.
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form):
Handle `declare'.
* lisp/emacs-lisp/cl.el (pushnew): Silence unfixable warning.
* lisp/emacs-lisp/cl-macs.el (defstruct, define-compiler-macro):
Mark unused arg as unused.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-lapcode): Use memq.
* lisp/emacs-lisp/autoload.el (make-autoload): Don't assume the macro's
first sexp is a list.
(autoload-generate-file-autoloads): Improve error message.
* lisp/emacs-lisp/advice.el (ad-arglist): Use help-function-arglist
to understand the new byte-code arg format.
* lisp/vc/smerge-mode.el:
* lisp/vc/log-view.el:
* lisp/vc/log-edit.el:
* lisp/vc/cvs-status.el:
* lisp/uniquify.el:
* lisp/textmodes/css-mode.el:
* lisp/textmodes/bibtex-style.el:
* lisp/reveal.el:
* lisp/newcomment.el:
* lisp/emacs-lisp/smie.el:
* lisp/abbrev.el: Use lexical-binding.
* src/eval.c (Fprog1, Fprog2): Simplify and use XCDR/XCAR.
(Fdefvar): Remove redundant SYMBOLP check.
(Ffunctionp): Don't signal an error for undefined aliases.
* doc/lispref/variables.texi (Converting to Lexical Binding): New node.
2011-03-11 15:04:22 -05:00
Arni Magnusson
25bbfb31d5
texinfo.el addition for bug#2783.
...
* lisp/textmodes/texinfo.el (texinfo-environments):
Add deftypecv, deftypeivar, deftypemethod, deftypeop, html.
2011-03-07 20:42:40 -08:00
Kevin Ryde
14369ab313
* lisp/textmodes/sgml-mode.el (sgml-fill-nobreak): Give it a doc. (Bug#5326)
2011-03-05 18:30:44 -08:00
Juanma Barranquero
845fc5e555
* lisp/bookmark.el:
...
* lisp/desktop.el:
* lisp/emacs-lock.el:
* lisp/ps-print.el:
* lisp/saveplace.el:
* lisp/net/tramp-cache.el:
* lisp/textmodes/reftex.el:
* lisp/org/org-id.el: Don't set `kill-emacs-hook' on noninteractive sessions.
Fixes: debbugs:8137
2011-03-06 01:30:16 +01:00
Chong Yidong
d77aaf6f83
Add a menu-bar entry for Artist mode.
...
* lisp/textmodes/artist.el (artist-curr-go): Default to pen-line.
(artist-select-op-pen-line): New function.
(artist-menu-map): New variable.
(artist-mode-map): Add a menu to the menu-bar.
2011-03-01 22:48:01 -05:00
Glenn Morris
2b0c733045
Merge from emacs-23; up to 2010-06-03T05:41:49Z!rgm@gnu.org.
2011-02-27 17:07:29 -08:00
Glenn Morris
97610156f4
Fix spelling of "precede".
2011-02-22 23:08:12 -08:00
Chong Yidong
84eb0351d8
Merge changes from emacs-23 branch
2011-02-12 18:40:43 -05:00
Juanma Barranquero
b762841f95
Fix trivial typos in comments and ChangeLogs.
2011-02-12 04:17:00 +01:00
Stefan Monnier
b016851cb1
Move keymap initialization into declaration.
...
* lisp/textmodes/enriched.el (enriched-mode-map):
* lisp/textmodes/bib-mode.el (bib-mode-map):
* lisp/term/lk201.el (lk201-function-map):
* lisp/tar-mode.el (tar-mode-map):
* lisp/replace.el (occur-mode-map):
* lisp/progmodes/idlwave.el (idlwave-rinfo-mouse-map, idlwave-rinfo-map):
* lisp/progmodes/idlw-help.el (idlwave-help-mode-map):
* lisp/progmodes/gdb-mi.el (gdb-memory-format-menu, gdb-memory-unit-menu):
* lisp/play/solitaire.el (solitaire-mode-map):
* lisp/play/snake.el (snake-mode-map, snake-null-map):
* lisp/play/pong.el (pong-mode-map):
* lisp/play/handwrite.el (menu-bar-handwrite-map):
* lisp/play/gametree.el (gametree-mode-map):
* lisp/net/rcirc.el (rcirc-mode-map, rcirc-browse-url-map
(rcirc-multiline-minor-mode-map, rcirc-track-minor-mode-map):
* lisp/net/newst-plainview.el (newsticker-menu, newsticker-mode-map)
(newsticker--url-keymap):
* lisp/net/net-utils.el (nslookup-mode-map, ftp-mode-map):
* lisp/menu-bar.el (menu-bar-file-menu, menu-bar-i-search-menu)
(menu-bar-search-menu, menu-bar-replace-menu, menu-bar-goto-menu)
(menu-bar-edit-menu, menu-bar-custom-menu)
(menu-bar-showhide-fringe-ind-menu, menu-bar-showhide-fringe-menu)
(menu-bar-showhide-scroll-bar-menu, menu-bar-showhide-menu)
(menu-bar-line-wrapping-menu, menu-bar-options-menu)
(menu-bar-games-menu, menu-bar-encryption-decryption-menu)
(menu-bar-tools-menu, menu-bar-describe-menu)
(menu-bar-search-documentation-menu, menu-bar-manuals-menu)
(menu-bar-help-menu):
* lisp/mail/rmailsum.el (rmail-summary-mode-map):
* lisp/kmacro.el (kmacro-step-edit-map):
* lisp/ibuffer.el (ibuffer-mode-groups-popup, ibuffer-mode-map)
(ibuffer-mode-operate-map):
* lisp/hi-lock.el (hi-lock-menu, hi-lock-map):
* lisp/emulation/vip.el (vip-mode-map):
* lisp/emacs-lisp/re-builder.el (reb-lisp-mode-map):
* lisp/bookmark.el (bookmark-bmenu-mode-map):
* lisp/help-mode.el (help-mode-map):
* lisp/erc/erc-list.el (erc-list-menu-mode-map):
* lisp/org/org-remember.el (org-remember-mode-map):
* lisp/org/org-src.el (org-src-mode-map): Move initialization into declaration.
2011-02-10 11:56:00 -05:00
Stefan Monnier
5e853d0190
* lisp/textmodes/tex-mode.el: Get rid of compilation-parse-errors-function
...
(tex-old-error-file-name): New function,
extracted from tex-compilation-parse-errors.
(tex-compilation-parse-errors): Remove.
(tex-error-regexp-alist): New var.
(tex-shell): Use it to avoid compilation-parse-errors-function.
2011-01-28 16:16:04 -05:00
Glenn Morris
95df8112a0
Refill some long/short copyright headers.
2011-01-26 00:36:39 -08:00