Commit graph

49722 commits

Author SHA1 Message Date
Dan Nicolaescu
cebf8ec6d9 Make vc-revert change VC state from 'added to 'unregistered.
* vc-git.el (vc-git-revert): Call git reset first.
2009-12-06 21:25:55 +00:00
Chong Yidong
238a0f3a0d * log-view.el (log-view-mode-map): Bind "=" to log-view-diff too. 2009-12-06 20:25:36 +00:00
Chong Yidong
2c6bb71a57 * vc-bzr.el (vc-bzr-annotate-command): Show author in annotation.
Handle empty author field (Bug#4144).  Suggested by Óscar Fuentes.
(vc-bzr-annotate-time, vc-bzr-annotate-extract-revision-at-line):
Update annotation regexp.
2009-12-06 20:22:16 +00:00
Ulf Jasper
8e39154d85 Fixed Bug#5096. 2009-12-06 19:49:04 +00:00
Chong Yidong
ef187c24a3 * simple.el (beginning-of-visual-line): Constrain to field
boundaries (Bug#5106).
2009-12-06 18:48:48 +00:00
Ulf Jasper
571855b631 Fixed Bug#5008. 2009-12-06 18:13:19 +00:00
Chong Yidong
b857059c0a * progmodes/js.el (js--js-not): Add null to the list of values. 2009-12-06 15:34:59 +00:00
Chong Yidong
c2dae51b68 * ansi-color.el (ansi-color-for-comint-mode): Add :version
keyword.
2009-12-06 15:33:09 +00:00
Roland Winkler
ed0f72d260 * textmodes/bibtex.el (bibtex-enclosing-field): Exclude entry delimiter
if it is at the end of the current line.
(bibtex-generate-url-list): Fix docstring.
2009-12-06 05:05:36 +00:00
Roland Winkler
4106334cac (bibtex-enclosing-field): Exclude entry delimiter if it is at the end
of the current line.
(bibtex-generate-url-list): Fix docstring.
2009-12-06 05:03:26 +00:00
Stefan Monnier
365b9a6296 (minibuffer-complete-and-exit): Don't replace the
minibuffer's content with itself.
Fold the confirm-after-completion case into the `confirm' case.
(completion-pcm-word-delimiters): Add : and / to the delimiters.
2009-12-06 01:25:41 +00:00
Stefan Monnier
3e38b2bd42 (completion-in-region): Improve docstring. 2009-12-06 00:58:40 +00:00
Kevin Ryde
8b5a10dbc6 * info-look.el: Add setup for apropos-mode to use emacs-lisp-mode
manuals, similar to existing setup for help-mode.  (My bug#3913.)
2009-12-06 00:42:19 +00:00
Kevin Ryde
990a9cb177 * ffap.el (ffap-rfc-path): Make this a defcustom since
`ffap-rfc-directories' is also a defcustom.  (My Bug#4514.)
2009-12-06 00:22:51 +00:00
Juri Linkov
065543e754 Save and restore dired buffer's point positions too. (Bug#4880)
(dired-save-positions): Return in the first element
buffer's position in format (BUFFER DIRED-FILENAME BUFFER-POINT).
Doc fix.
(dired-restore-positions): First restore buffer's position.
While restoring window's positions, check if window still displays
the original buffer.
2009-12-05 23:22:03 +00:00
Chong Yidong
9a594ee6ea * bindings.el (complete-symbol): Call semantic-ia-complete-symbol if
possible.

* cedet/semantic/ia.el (semantic-ia-complete-symbol): Make argument
optional.
2009-12-05 22:01:00 +00:00
Glenn Morris
212c5aef95 Add bug ref. 2009-12-05 21:33:48 +00:00
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