1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-18 20:00:36 -08:00
Commit graph

49755 commits

Author SHA1 Message Date
Chong Yidong
89601c7b25 Fix commentary to reflect that ansi-color is now enabled by default. 2009-12-05 21:11:29 +00:00
Chong Yidong
925f8c7066 * shell.el (shell): Require ansi-color (Bug#5113).
* ansi-color.el (ansi-color-for-comint-mode): Default to t.
2009-12-05 21:05:51 +00:00
Chong Yidong
503edac9d6 * hl-line.el (global-hl-line-highlight): Minor doc fix (Bug#4925). 2009-12-05 20:56:42 +00:00
Alan Mackenzie
8fea6b333d *** empty log message *** 2009-12-05 20:45:39 +00:00
Chong Yidong
5d1fd962bb * textmodes/sgml-mode.el (sgml-lexical-context): Recognise
comment-start-skip to comment-end-skip as comment (Bug#4781).
2009-12-05 20:23:25 +00:00
Juri Linkov
30760c8bc7 (Info-find-node-2): Set `Info-current-subfile' to nil
for virtual nodes.  (Bug#4147)
(Info-find-node-2): Set `Info-current-node-virtual' to nil
when moving from a virtual node.
(Info-mode-menu): Add `Info-virtual-index' to the menu.
(Info-mode): Add `Info-virtual-index' to the docstring.
2009-12-05 19:49:47 +00:00
Chong Yidong
1dc5c6f318 * cedet/semantic/bovine/c.el (semantic-c-describe-environment):
Describe project macro symbols.

* cedet/semantic/complete.el (semantic-complete-do-completion):
Don't call semantic-collector-current-exact-match.

* cedet/ede.el (ede-apply-preprocessor-map): Accept lists of
ede-objects as targets.

* cedet/ede/pmake.el (ede-proj-makefile-insert-variables): Output
a target's object list even if compiler vars are already in the
Makefile.

* cedet/ede/emacs.el (ede-preprocessor-map): Add config.h to the
list of headers producing necessary macros.
2009-12-05 19:10:42 +00:00
Alan Mackenzie
a3c11552c6 Revert change 2009-07-18T21:03:43Z!acm@muc.de 2009-12-05 11:16:04 +00:00
Roland Winkler
403111a821 (bibtex-map-entries): Use marker to keep
track of the buffer position of the end of a BibTeX entry as this
position may change during reformatting.
(bibtex-format-entry): Remove whitespace before processing
numerical fields so that we recognize the latter properly.
(bibtex-reformat): Do not use push which changes the global value
of bibtex-entry-format.
(bibtex-field-braces-alist, bibtex-field-strings-alist)
(bibtex-field-re-init): Replace only space characters by regexp
for whitespace.
(bibtex-generate-url-list, bibtex-cite-matcher-alist): Fix
docstring.
(bibtex-initialize): Also update bibtex-strings.
(bibtex-kill-field): Preserve white space at end of entry.
(bibtex-kill-entry, bibtex-yank-pop, bibtex-insert-kill): Update
bibtex-reference-keys.
2009-12-05 04:08:48 +00:00
Glenn Morris
4abc318cd8 Make it less tasty. 2009-12-05 03:09:17 +00:00
Stefan Monnier
25b5462738 (completion-pcm--merge-try): Also consider placing point after a star, if
that's the only place where modifications can make progress.
2009-12-05 01:22:54 +00:00
Dan Nicolaescu
35639eb45f (vc-dir): Use the correct markup for showing keymaps
in docstrings.
2009-12-05 00:24:03 +00:00
Juri Linkov
8b78760bf5 (proced): Call `(proced-update t)' to update process
information instead of only running proced-post-display-hook.
(proced-send-signal): Add a leading space to the buffer name
" *Marked Processes*" to make this buffer ephemeral.
2009-12-04 21:47:08 +00:00
Juri Linkov
2b3489a76d (dired-auto-revert-buffer): New defcustom.
(dired-internal-noselect): Use it.
2009-12-04 21:45:29 +00:00
Juri Linkov
9b9debd1fb Change roles of modes and functions in image-mode.el (Bug#5062).
* image-mode.el: Replace `image-mode-maybe' with `image-mode'
in `auto-mode-alist'.
(image-mode-previous-major-mode): New variable.
(image-minor-mode-map): Rename from `image-mode-text-map'.
(image-mode): Move graceful error-handling code from
`image-minor-mode' to here.  On errors call `image-mode-as-text'.
(image-minor-mode): Remove all image-handling code.
Replace `image-mode-text-map' with `image-minor-mode-map'.
Check for `image-type' in mode-line format string.
(image-mode-maybe): Make obsolete with an alias to `image-mode'.
(image-mode-as-text): New function with most code from
`image-mode-maybe'.
(image-toggle-display-text): Move code that removes image
properties from `image-toggle-display' to here.
(image-toggle-display-image): New function with code that adds
image properties copied from `image-toggle-display'.
(image-toggle-display): Remove most code with leaving only code
that toggles between `image-mode-as-text' and `image-mode'.
2009-12-04 21:43:07 +00:00
Ulf Jasper
0c74a3010d Newsticker fixes/changes. 2009-12-04 19:27:42 +00:00
Sam Steingold
9eaeec5ba8 (log-view-mode-map): "q" calls quit-window,
like in all the other non-self-insert buffers.
2009-12-04 16:34:22 +00:00
Glenn Morris
a67972b794 Regenerate autoloads. 2009-12-04 05:00:44 +00:00
Stefan Monnier
b2bf5be549 Minor cleanup.
* term.el (term-send-raw, term-send-raw-meta): Use read-key-sequence's
key decoding rather than do it manually via last-input-event + ascii-character.
(term-exec): Use delete-and-extract-region.
(term-handle-ansi-terminal-messages): Remove unused var `end'.
(term-process-pager): Remove unused var `i'.
(term-dynamic-simple-complete): Make obsolete.
(serial-update-config-menu): Remove unused vars `y' and `str'.
(term-update-mode-line): Remove unused var `temp'.
2009-12-04 04:39:21 +00:00
Dan Nicolaescu
46e5c897b4 Limit the number of log entries displayed by default.
* vc.el (vc-print-log-internal): Fix check for limit-unsupported.
(vc-print-log, vc-print-root-log): Use vc-log-show-limit when not
using a prefix argument.
2009-12-03 19:12:52 +00:00
Glenn Morris
627e0a14e8 (class): Restore still useful declaration.
Restore comment that is still relevant.
2009-12-03 17:14:33 +00:00
Alan Mackenzie
0ec1d2c5bb Enhance `c-parse-state' to run efficiently in "brace desserts".
* progmodes/cc-mode.el (c-basic-common-init): Call
c-state-cache-init.
(c-neutralize-syntax-in-and-mark-CPP):  Renamed from
c-extend-and-neutralize-syntax-in-CPP.  Mark each CPP construct by
placing `category' properties value 'c-cpp-delimiter at its
boundaries.

* progmodes/cc-langs.el (c-before-font-lock-function):
c-extend-and-neutralize-syntax-in-CPP has been renamed
c-neutralize-syntax-in-and-mark-CPP.

* progmodes/cc-fonts.el (c-cpp-matchers): Mark template brackets
with `category' properties now, not `syntax-table' ones.

* progmodes/cc-engine.el (c-syntactic-end-of-macro): A new
enhanced (but slower) version of c-end-of-macro that won't land
inside a literal or on another awkward character.
(c-state-cache-too-far, c-state-cache-start)
(c-state-nonlit-pos-interval, c-state-nonlit-pos-cache)
(c-state-nonlit-pos-cache-limit, c-state-point-min)
(c-state-point-min-lit-type, c-state-point-min-lit-start)
(c-state-min-scan-pos, c-state-brace-pair-desert)
(c-state-old-cpp-beg, c-state-old-cpp-end): New constants and
buffer local variables.
(c-state-literal-at, c-state-lit-beg)
(c-state-cache-non-literal-place, c-state-get-min-scan-pos)
(c-state-mark-point-min-literal, c-state-cache-top-lparen)
(c-state-cache-top-paren, c-state-cache-after-top-paren)
(c-get-cache-scan-pos, c-get-fallback-scan-pos)
(c-state-balance-parens-backwards, c-parse-state-get-strategy)
(c-renarrow-state-cache)
(c-append-lower-brace-pair-to-state-cache)
(c-state-push-any-brace-pair, c-append-to-state-cache)
(c-remove-stale-state-cache)
(c-remove-stale-state-cache-backwards, c-state-cache-init)
(c-invalidate-state-cache-1, c-parse-state-1)
(c-invalidate-state-cache): New defuns/defmacros/defsubsts.
(c-parse-state): Enhanced and refactored.
(c-debug-parse-state): Amended to deal with all the new variables.

* progmodes/cc-defs.el (c-<-as-paren-syntax, c-mark-<-as-paren)
(c->-as-paren-syntax, c-mark->-as-paren, c-unmark-<->-as-paren):
modify to use category text properties rather than syntax-table
ones.
(c-suppress-<->-as-parens, c-restore-<->-as-parens): new defsubsts
to switch off/on the syntactic paren property of C++ template
delimiters using the category property.
(c-with-<->-as-parens-suppressed): Macro to invoke code with
template delims suppressed.
(c-cpp-delimiter, c-set-cpp-delimiters, c-clear-cpp-delimiters):
New constant/macros which apply category properties to the start
and end of preprocessor constructs.
(c-comment-out-cpps, c-uncomment-out-cpps): defsubsts which
"comment out" the syntactic value of characters in preprocessor
constructs.
(c-with-cpps-commented-out)
(c-with-all-but-one-cpps-commented-out): Macros to invoke code
with characters in all or all but one preprocessor constructs
"commented out".
2009-12-03 16:02:10 +00:00
Alan Mackenzie
4267d85910 Correct conflicts in previous patch. 2009-12-03 15:56:29 +00:00
Alan Mackenzie
8578c224af *** empty log message *** 2009-12-03 15:52:37 +00:00
Roland Winkler
0d4dc44285 (proced-filter-alist): Use regexp-quote. 2009-12-03 14:34:04 +00:00
Michael Albinus
a09dc9bf9c Cleanup.
* eshell/em-unix.el (top): Require 'esh-opt and 'pcomplete.
(eshell/su, eshell/sudo): Require 'tramp.  Fix problems reading
arguments.  Expand `default-directory'.

* net/tramp.el (tramp-handle-file-remote-p): Expand FILENAME for
the benefit of returning an expanded localname.
(tramp-tramp-file-p): Handle the case NAME is not a string.
2009-12-03 11:34:11 +00:00
Dan Nicolaescu
a3abb176e3 (vc-bzr-dir-extra-headers): Fix typo. 2009-12-03 08:53:06 +00:00
Dan Nicolaescu
4dfb3b9cd5 Add support for bzr shelve/unshelve.
* vc-bzr.el (vc-bzr-shelve-map, vc-bzr-shelve-menu-map)
(vc-bzr-extra-menu-map): New variables.
(vc-bzr-extra-menu, vc-bzr-extra-status-menu, vc-bzr-shelve)
(vc-bzr-shelve-apply, vc-bzr-shelve-list)
(vc-bzr-shelve-get-at-point, vc-bzr-shelve-delete-at-point)
(vc-bzr-shelve-apply-at-point, vc-bzr-shelve-menu): New functions.
(vc-bzr-dir-extra-headers): Display shelves.
2009-12-03 07:46:13 +00:00
Dan Nicolaescu
3f6bd7904e (vc-bzr-print-log): Deal with nil arguments better. 2009-12-03 07:31:15 +00:00
Stefan Monnier
842d73a12e (bibtex-complete-internal): Use completion-in-region.
(bibtex-text-in-field-bounds): Remove unused var `opoint'.
2009-12-03 05:41:17 +00:00
Dan Nicolaescu
7fa4876f18 Support applying stashes. Improve UI.
* vc-git.el (vc-git-dir-extra-headers): Add tooltips.
(vc-git-stash-apply, vc-git-stash-pop)
(vc-git-stash-apply-at-point, vc-git-stash-pop-at-point)
(vc-git-stash-menu): New functions.
(vc-git-stash-menu-map): New variable.
(vc-git-stash-map): Add bindings to popup a menu and to apply stashes.
2009-12-03 04:08:08 +00:00
Glenn Morris
d6e824528b (log-view-vc-backend, log-view-vc-fileset): Declare.
(vc-print-log-internal): Fix previous change.
(vc-revert): Correct pluralization.
2009-12-03 03:11:14 +00:00
Stefan Monnier
ea52206ba0 (makefile-special-targets-list): No need for it to be an alist any more.
(makefile-complete): Use completion-in-region.
2009-12-03 03:02:34 +00:00
Stefan Monnier
69a94a37cd (octave-complete-symbol): Use completion-in-region. 2009-12-03 02:58:16 +00:00
Stefan Monnier
8d2221483a Misc cleanup.
* progmodes/idlwave.el (idlwave-comment-hook): Simplify with `or'.
(idlwave-code-abbrev, idlwave-display-user-catalog-widget)
(idlwave-complete-class): Don't quote lambda.
(idlwave-find-symbol-syntax-table, idlwave-mode-syntax-table)
(idlwave-mode-map): Move initialization into declaration.
(idlwave-action-and-binding): Use backquotes.
(idlwave-in-quote, idlwave-reset-sintern, idlwave-complete-in-buffer):
Simplify.
(idlwave-is-pointer-dereference): Remove unused var `pos'.
(idlwave-xml-create-rinfo-list): Remove unused var `entry'.
(idlwave-convert-xml-clean-sysvar-aliases): Remove unused vars `new',
`parts', and `all-parts'.
(idlwave-xml-create-sysvar-alist): Remove unused var `fields'.
(idlwave-convert-xml-system-routine-info): Remove unused string
`version-string'.
(idlwave-display-user-catalog-widget): Use dolist.
(idlwave-scanning-lib): Declare dynamically-scoped var.
(idlwave-scan-library-catalogs): Remove unused var `flags'.
(completion-highlight-first-word-only): Declare to silence bytecomp.
(idlwave-popup-select): Tighten scope of `resp'.
(idlwave-find-struct-tag): Remove unused var `beg'.
(idlwave-after-load-rinfo-hook): Declare.
(idlwave-sintern-class-info): Remove unused var `taglist'.
(idlwave-find-class-definition): Remove unused var `list'.
(idlwave-complete-sysvar-tag-help): Remove unused var `main-base'.
(idlwave-what-module-find-class): Remove unused var `classes'.
2009-12-03 02:57:16 +00:00
Juanma Barranquero
3bb8691bce * progmodes/pascal.el: Require CL when compiling (for lexical-let). 2009-12-03 01:43:23 +00:00
Stefan Monnier
f72f0c2393 (try-expand-dabbrev-visible): Preserve point in the
buffers visited.  Remove redundant current-buffer-saving.
2009-12-03 01:33:56 +00:00
Stefan Monnier
601a9508c9 Use completion-in-buffer and remove uses of dynamic scoping.
* progmodes/pascal.el (pascal-str, pascal-all, pascal-pred)
(pascal-buffer-to-use, pascal-flag): Don't declare.
(pascal-func-completion, pascal-type-completion, pascal-var-completion)
(pascal-get-completion-decl, pascal-keyword-completion):
Add `pascal-str' argument, save-excursion,
return the found completions, and don't filter with pascal-pred.
(pascal-completion-cache): New var.
(pascal-completion): Don't switch buffer any more (it was never
necessary).  Don't save-excursion any more (it's done by the called
subroutines).  Use a cache to avoid redundant computations.
Use complete-with-action rather than pascal-completion-response and
let it apply the predicate as well.
(pascal-complete-word): Use completion-in-buffer when
pascal-toggle-completions is nil.
(pascal-show-completions): Don't bind pascal-buffer-to-use since it's
not used any more.
(pascal-comp-defun): Don't change buffer any more.
Use complete-with-action rather than pascal-completion-response and
let it apply the predicate as well.
(pascal-goto-defun): Change buffer before calling pascal-comp-defun
when neded.
2009-12-02 18:31:26 +00:00
Kenichi Handa
1ff4cb9823 Include ZWJ and ZWNJ in the patterns to shape for all Indic scripts. 2009-12-02 08:01:02 +00:00
Stefan Monnier
bb12edf129 Use completion-in-buffer.
(widget-field-text-end): New function.
(widget-field-value-get): Use it.
(widget-string-complete, widget-file-complete)
(widget-color-complete): Use it and completion-in-region.
(widget-complete): Don't narrow the buffer.
2009-12-02 04:11:08 +00:00
Stefan Monnier
96bdcdc44e (message-completion-in-region): New compatibility function.
(message-expand-group): Use it.
2009-12-02 03:11:38 +00:00
Glenn Morris
60f2013c9e Replace all pop-to-buffer calls with rmail-pop-to-buffer, to prevent
horizontal splits.
2009-12-02 03:05:14 +00:00
Glenn Morris
c920f22245 (rmail-pop-to-buffer): New function. (Bug#2282)
(rmail-select-summary): Use rmail-pop-to-buffer.
2009-12-02 03:04:43 +00:00
Glenn Morris
5813f6ef75 (diary-list-entries): Replace superfluous save-excursion with
save-current-buffer.
Widen before searching.  (Bug#5093)
(diary-list-sexp-entries): Remove superfluous save-excursion.
2009-12-02 03:03:48 +00:00
Glenn Morris
c79fb97624 Comment. 2009-12-02 03:02:10 +00:00
Glenn Morris
34b1d75011 2009-12-02 Michael Welsh Duggan <mwd at cert.org>
(woman-make-bufname): Handle man-pages with "." in the name.  (Bug#5038)
2009-12-02 03:01:44 +00:00
Glenn Morris
b2d5f31abf Andreas Politz <politza at fh-trier.de> (tiny change)
(ido-file-internal): Handle filenames at point that do not have a
directory part.  (Bug#5049)
2009-12-02 03:00:41 +00:00
Juanma Barranquero
c710ac3c08 * mpc.el (mpc-intersection, mpc-host, mpc-songs-playlist)
(mpc-songs-jump-to, mpc-resume): Doc fixes.
2009-12-02 02:08:21 +00:00
Katsumi Yamaoka
7fa123c8f7 (gnus-group-prepare-flat): Check also whether groups with no unread article
should be listed if the 2nd arg `predicate' is given.
2009-12-02 00:48:21 +00:00
Stefan Monnier
9946be4640 (tpu-cursor-free-mode): Emit message.
(tpu-set-cursor-free, tpu-set-cursor-bound): Don't emit a message any more.
2009-12-01 20:44:21 +00:00