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