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
Glenn Morris
73b0cd5003
Convert consecutive FSF copyright years to ranges.
2011-01-24 20:08:28 -08:00
Stefan Monnier
8dabbfd632
Don't mess with *temp*.
...
* lisp/obsolete/spell.el: Move from textmodes/spell.el.
(spell-string):
* lisp/term.el (term-read-input-ring):
* lisp/startup.el (display-startup-echo-area-message):
* lisp/progmodes/antlr-mode.el (antlr-directory-dependencies):
* lisp/gnus/message.el (message-mailer-swallows-blank-line):
* lisp/comint.el (comint-read-input-ring): Use with-temp-buffer.
* lisp/international/mule.el (ctext-pre-write-conversion):
Don't hardcode point-min==1.
* lisp/gnus/mm-util.el (mm-find-buffer-file-coding-system): Don't forget to
kill the temp buffer.
2011-01-20 17:36:12 -05:00
Stefan Monnier
9cc3a0c79c
* lisp/textmodes/tex-mode.el (tex-font-lock-verb): Make sure \verb
...
highlighting doesn't spill over subsequent lines.
2011-01-17 23:07:36 -05:00
Glenn Morris
e9bffc61f2
Refill some copyright headers.
2011-01-15 18:21:30 -08:00
Glenn Morris
0d9f702fd0
Nuke arch-tags.
2011-01-15 15:16:57 -08:00
Stefan Monnier
77ab81d054
Merge from emacs-23
2011-01-14 12:18:41 -05:00
Stefan Monnier
4d789d84b8
Use run-mode-hooks for major mode hooks.
...
* lisp/textmodes/reftex-toc.el (reftex-toc-mode-map):
Rename from reftex-toc-map.
(reftex-toc-mode): Use define-derived-mode.
* lisp/textmodes/reftex-sel.el (reftex-select-shared-map): New map.
(reftex-select-label-mode-map, reftex-select-bib-mode-map):
Rename from reftex-select-(label|bib)-map. Move init into declaration.
(reftex-select-label-mode, reftex-select-bib-mode):
Use define-derived-mode.
* lisp/textmodes/reftex-index.el (reftex-index-phrases-mode-map)
(reftex-index-mode-map): Rename from reftex-index(-phrases)-map.
Move init into delcaration.
(reftex-index-mode, reftex-index-phrases-mode):
Use define-derived-mode.
* lisp/speedbar.el (speedbar-mode-syntax-table): Renaqme from
speedbar-syntax-table. Move init into declaration.
(speedbar-mode-map): Rename from speedbar-key-map.
Move init into declaration.
(speedbar-file-key-map): Move init into declaration.
(speedbar-mode): Use define-derived-mode.
* lisp/recentf.el (recentf-mode): Don't run hook (or message) redundantly.
* lisp/net/rcirc.el (rcirc-mode): Use run-mode-hooks.
* lisp/emacs-lisp/chart.el (chart-mode-map): Rename from chart-map.
(chart-face-list): Move initialization into declaration.
(chart-mode): Use define-derived-mode.
* lisp/calculator.el (calculator-mode-map): Move init into declaration.
(calculator-mode): Use define-derived-mode.
* lisp/cedet/srecode/srt-mode.el (srecode-template-mode):
Use define-derived-mode.
* lisp/cedet/semantic/symref/list.el (semantic-symref-results-mode):
Use run-mode-hooks.
* lisp/erc/erc.el (erc-mode):
* lisp/erc/erc-dcc.el (erc-dcc-chat-mode): Use define-derived-mode.
* lisp/org/org-remember.el (org-remember-mode):
* lisp/org/org-capture.el (org-capture-mode): Don't run hook redundantly.
Fixes: debbugs:513
2011-01-13 18:14:30 -05:00
Glenn Morris
3f1b6eb290
* lisp/textmodes/rst.el (rst-compile-toolsets): Add pdf and s5 to option alist.
2011-01-04 09:04:10 -08:00
Andreas Schwab
c3e4b003c2
* lisp/textmodes/rst.el (rst-compile-pdf-preview)
...
(rst-compile-slides-preview): Remove extra line.
2011-01-04 11:09:13 +01:00
Glenn Morris
ef4271fe82
Small rst.el stuff.
...
* lisp/textmodes/rst.el (rst-compile-toolsets): Make it a defcustom.
Add `pdf' and `s5' entries. Use `prog.py' if found, otherwise
default to `prog' without a .py extension.
(rst-compile-pdf-preview, rst-compile-slides-preview):
Use program names from rst-compile-toolsets, rather than hard-coding.
(rst-portable-mark-active-p): Fix presumed typo.
2011-01-03 20:47:39 -08:00
Glenn Morris
5df4f04cd3
Add 2011 to FSF/AIST copyright years.
2011-01-02 15:50:46 -08:00
Chong Yidong
7c420169ba
Merge changes from emacs-23 branch
2011-01-02 15:31:19 -05:00
Chong Yidong
5ae0867f43
* lisp/textmodes/conf-mode.el (conf-font-lock-keywords): Minor tweak (Bug#7712).
...
Use single quote instead of unused backquote.
2010-12-29 19:02:48 +08:00
Chong Yidong
c1cf05f4bb
Use make-temp-file in rst.el (Bug#7646).
...
* textmodes/rst.el (rst-compile-pdf-preview)
(rst-compile-slides-preview): Use make-temp-file.
2010-12-16 09:11:21 +08:00
Glenn Morris
6961d41cfb
* lisp/textmodes/sgml-mode.el (sgml-xml-guess): Add .xhtml extension.
2010-12-10 18:50:58 -08:00
Stefan Monnier
61f91c0476
* lisp/textmodes/texinfo.el (texinfo-mode-map): Bind texinfo-insert-@end.
...
(texinfo-mode): Don't disable adaptive-fill-mode.
(texinfo-insert-block): Adjust cursor placement for blocks with arg.
(texinfo-insert-@end, texinfo-insert-braces, texinfo-insert-@code)
(texinfo-insert-@dfn, texinfo-insert-@email, texinfo-insert-@emph)
(texinfo-insert-@example, texinfo-insert-@file, texinfo-insert-@item)
(texinfo-insert-@kbd, texinfo-insert-@node, texinfo-insert-@noindent)
(texinfo-insert-@quotation, texinfo-insert-@samp)
(texinfo-insert-@strong, texinfo-insert-@table, texinfo-insert-@var)
(texinfo-insert-@uref): Use define-skeleton.
(texinfo-insert-@-with-arg): Delete.
2010-12-10 09:10:08 -05:00
Tassilo Horn
c799747bd6
* textmodes/reftex-ref.el (reftex-goto-label): Use the current
...
\ref's or \pageref's value as default instead of initial input.
2010-11-22 09:09:41 +01:00
Tassilo Horn
9061f667df
* textmodes/reftex-ref.el (reftex-goto-label): If point is inside
...
a \ref{} or \pageref{} macro, then use its value as initial input.
2010-11-19 12:18:15 +01:00
Stefan Monnier
4a47c27573
Merge from emacs-23
2010-11-17 22:54:14 -05:00
Stefan Monnier
8bbb7dd8a6
* lisp/textmodes/rst.el: Minor cleanup to improve style.
...
(rst-get-decoration): Eliminate unneeded assignment.
(rst-update-section, rst-promote-region, rst-straighten-decorations)
(rst-section-tree, rst-adjust): Use point-marker.
(rst-toc-mode-mouse-goto): Avoid setq.
(rst-shift-region-guts, rst-shift-region-left)
(rst-iterate-leftmost-paragraphs, rst-iterate-leftmost-paragraphs-2)
(rst-convert-bullets-to-enumeration): Use copy-marker.
2010-11-17 22:02:15 -05:00