bpt/emacs.git
14 years agoGet the background mode from the terminal for xterm, and set
Dan Nicolaescu [Mon, 7 Dec 2009 06:30:30 +0000 (06:30 +0000)]
Get the background mode from the terminal for xterm, and set
faces accordingly.
* term/xterm.el (xterm-set-background-mode): New function.
(terminal-init-xterm): Use it in case xterm supports background
color queries.  Recompute faces after getting the background
color.

14 years agoUlrich Mueller <ulm at gentoo.org>
Glenn Morris [Mon, 7 Dec 2009 06:21:27 +0000 (06:21 +0000)]
Ulrich Mueller  <ulm at gentoo.org>

(byte-compile-insert-header): Put the version number comment back on
its own line, for easier parsing by external tools.

14 years agoMake it work for non-file buffers (bug#5102).
Stefan Monnier [Mon, 7 Dec 2009 02:37:42 +0000 (02:37 +0000)]
Make it work for non-file buffers (bug#5102).
* doc-view.el (doc-view-current-cache-dir):
Use doc-view-buffer-file-name rather than buffer-file-name.
(doc-view-mode): Use buffer-name when buffer-file-name is nil.

14 years ago* vc-bzr.el (vc-bzr-annotate-command): Handle the case where the
Chong Yidong [Sun, 6 Dec 2009 23:27:55 +0000 (23:27 +0000)]
* vc-bzr.el (vc-bzr-annotate-command): Handle the case where the
author field is too short.

14 years ago*** empty log message ***
Dan Nicolaescu [Sun, 6 Dec 2009 22:36:11 +0000 (22:36 +0000)]
*** empty log message ***

14 years ago* vc-git.el (vc-git-print-log): Handle a limit argument. Display
Dan Nicolaescu [Sun, 6 Dec 2009 22:18:03 +0000 (22:18 +0000)]
* vc-git.el (vc-git-print-log): Handle a limit argument.  Display
the short log in graph form and with labels.
(vc-git-log-view-mode): Handle labels.

14 years agoMake vc-revert change VC state from 'added to 'unregistered.
Dan Nicolaescu [Sun, 6 Dec 2009 21:25:55 +0000 (21:25 +0000)]
Make vc-revert change VC state from 'added to 'unregistered.
* vc-git.el (vc-git-revert): Call git reset first.

14 years ago* log-view.el (log-view-mode-map): Bind "=" to log-view-diff too.
Chong Yidong [Sun, 6 Dec 2009 20:25:36 +0000 (20:25 +0000)]
* log-view.el (log-view-mode-map): Bind "=" to log-view-diff too.

14 years ago* vc-bzr.el (vc-bzr-annotate-command): Show author in annotation.
Chong Yidong [Sun, 6 Dec 2009 20:22:16 +0000 (20:22 +0000)]
* 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.

14 years agoFixed Bug#5096.
Ulf Jasper [Sun, 6 Dec 2009 19:49:04 +0000 (19:49 +0000)]
Fixed Bug#5096.

14 years ago* simple.el (beginning-of-visual-line): Constrain to field
Chong Yidong [Sun, 6 Dec 2009 18:48:48 +0000 (18:48 +0000)]
* simple.el (beginning-of-visual-line): Constrain to field
boundaries (Bug#5106).

14 years agoFixed Bug#5008.
Ulf Jasper [Sun, 6 Dec 2009 18:13:19 +0000 (18:13 +0000)]
Fixed Bug#5008.

14 years ago* progmodes/js.el (js--js-not): Add null to the list of values.
Chong Yidong [Sun, 6 Dec 2009 15:34:59 +0000 (15:34 +0000)]
* progmodes/js.el (js--js-not): Add null to the list of values.

14 years ago* ansi-color.el (ansi-color-for-comint-mode): Add :version
Chong Yidong [Sun, 6 Dec 2009 15:33:09 +0000 (15:33 +0000)]
* ansi-color.el (ansi-color-for-comint-mode): Add :version
keyword.

14 years ago* textmodes/bibtex.el (bibtex-enclosing-field): Exclude entry delimiter
Roland Winkler [Sun, 6 Dec 2009 05:05:36 +0000 (05:05 +0000)]
* 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.

14 years ago(bibtex-enclosing-field): Exclude entry delimiter if it is at the end
Roland Winkler [Sun, 6 Dec 2009 05:03:26 +0000 (05:03 +0000)]
(bibtex-enclosing-field): Exclude entry delimiter if it is at the end
of the current line.
(bibtex-generate-url-list): Fix docstring.

14 years ago(minibuffer-complete-and-exit): Don't replace the
Stefan Monnier [Sun, 6 Dec 2009 01:25:41 +0000 (01:25 +0000)]
(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.

14 years ago(completion-in-region): Improve docstring.
Stefan Monnier [Sun, 6 Dec 2009 00:58:40 +0000 (00:58 +0000)]
(completion-in-region): Improve docstring.

14 years ago* info-look.el: Add setup for apropos-mode to use emacs-lisp-mode
Kevin Ryde [Sun, 6 Dec 2009 00:42:19 +0000 (00:42 +0000)]
* info-look.el: Add setup for apropos-mode to use emacs-lisp-mode
manuals, similar to existing setup for help-mode.  (My bug#3913.)

14 years ago* ffap.el (ffap-rfc-path): Make this a defcustom since
Kevin Ryde [Sun, 6 Dec 2009 00:22:51 +0000 (00:22 +0000)]
* ffap.el (ffap-rfc-path): Make this a defcustom since
`ffap-rfc-directories' is also a defcustom.  (My Bug#4514.)

14 years agoCopyedit several NEWS entries.
Chong Yidong [Sat, 5 Dec 2009 23:51:26 +0000 (23:51 +0000)]
Copyedit several NEWS entries.

14 years agoSave and restore dired buffer's point positions too. (Bug#4880)
Juri Linkov [Sat, 5 Dec 2009 23:22:03 +0000 (23:22 +0000)]
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.

14 years ago* xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
Chong Yidong [Sat, 5 Dec 2009 22:49:00 +0000 (22:49 +0000)]
* xdisp.c (push_display_prop): Don't set avoid_cursor_p.  Return 0
if push failed.
(handle_line_prefix): Set avoid_cursor_p here.  Check return value
of push_display_prop (Bug#5000).

14 years ago* bindings.el (complete-symbol): Call semantic-ia-complete-symbol if
Chong Yidong [Sat, 5 Dec 2009 22:01:00 +0000 (22:01 +0000)]
* bindings.el (complete-symbol): Call semantic-ia-complete-symbol if
possible.

* cedet/semantic/ia.el (semantic-ia-complete-symbol): Make argument
optional.

14 years agoAdd bug ref.
Glenn Morris [Sat, 5 Dec 2009 21:33:48 +0000 (21:33 +0000)]
Add bug ref.

14 years ago* misc.texi (Shell Options): ansi-color is now default.
Chong Yidong [Sat, 5 Dec 2009 21:12:19 +0000 (21:12 +0000)]
* misc.texi (Shell Options): ansi-color is now default.

14 years agoFix commentary to reflect that ansi-color is now enabled by default.
Chong Yidong [Sat, 5 Dec 2009 21:11:29 +0000 (21:11 +0000)]
Fix commentary to reflect that ansi-color is now enabled by default.

14 years agoansi-color is now enabled by default in the shell.
Chong Yidong [Sat, 5 Dec 2009 21:08:09 +0000 (21:08 +0000)]
ansi-color is now enabled by default in the shell.

14 years ago* shell.el (shell): Require ansi-color (Bug#5113).
Chong Yidong [Sat, 5 Dec 2009 21:05:51 +0000 (21:05 +0000)]
* shell.el (shell): Require ansi-color (Bug#5113).
* ansi-color.el (ansi-color-for-comint-mode): Default to t.

14 years ago* hl-line.el (global-hl-line-highlight): Minor doc fix (Bug#4925).
Chong Yidong [Sat, 5 Dec 2009 20:56:42 +0000 (20:56 +0000)]
* hl-line.el (global-hl-line-highlight): Minor doc fix (Bug#4925).

14 years ago*** empty log message ***
Alan Mackenzie [Sat, 5 Dec 2009 20:45:39 +0000 (20:45 +0000)]
*** empty log message ***

14 years agoMinor doc fix.
Chong Yidong [Sat, 5 Dec 2009 20:38:05 +0000 (20:38 +0000)]
Minor doc fix.

14 years ago* textmodes/sgml-mode.el (sgml-lexical-context): Recognise
Chong Yidong [Sat, 5 Dec 2009 20:23:25 +0000 (20:23 +0000)]
* textmodes/sgml-mode.el (sgml-lexical-context): Recognise
comment-start-skip to comment-end-skip as comment (Bug#4781).

14 years ago* xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
Chong Yidong [Sat, 5 Dec 2009 20:16:42 +0000 (20:16 +0000)]
* xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
value of font_list_entities (Bug#5085).

14 years agoFix a comment and delete trailing whitespace.
Chong Yidong [Sat, 5 Dec 2009 20:09:49 +0000 (20:09 +0000)]
Fix a comment and delete trailing whitespace.

14 years ago(Info-find-node-2): Set `Info-current-subfile' to nil
Juri Linkov [Sat, 5 Dec 2009 19:49:47 +0000 (19:49 +0000)]
(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.

14 years ago* cedet/semantic/bovine/c.el (semantic-c-describe-environment):
Chong Yidong [Sat, 5 Dec 2009 19:10:42 +0000 (19:10 +0000)]
* 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.

14 years ago(next_element_from_ellipsis): Fix a typo in the commentary.
Eli Zaretskii [Sat, 5 Dec 2009 13:32:18 +0000 (13:32 +0000)]
(next_element_from_ellipsis): Fix a typo in the commentary.

14 years ago(next_element_from_display_vector): Fix a typo in the commentary.
Eli Zaretskii [Sat, 5 Dec 2009 13:21:49 +0000 (13:21 +0000)]
(next_element_from_display_vector): Fix a typo in the commentary.

14 years agoRevert change 2009-07-18T21:03:43Z!acm@muc.de
Alan Mackenzie [Sat, 5 Dec 2009 11:16:04 +0000 (11:16 +0000)]
Revert change 2009-07-18T21:03:43Z!acm@muc.de

14 years ago(bibtex-map-entries): Use marker to keep
Roland Winkler [Sat, 5 Dec 2009 04:08:48 +0000 (04:08 +0000)]
(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.

14 years agoDocumented diary view-mode.
Glenn Morris [Sat, 5 Dec 2009 03:49:58 +0000 (03:49 +0000)]
Documented diary view-mode.

14 years ago(Diary Display): Mention View mode.
Glenn Morris [Sat, 5 Dec 2009 03:49:36 +0000 (03:49 +0000)]
(Diary Display): Mention View mode.

14 years ago(Displaying the Diary): Mention keys apply to calendar.
Glenn Morris [Sat, 5 Dec 2009 03:39:03 +0000 (03:39 +0000)]
(Displaying the Diary): Mention keys apply to calendar.

14 years agoA bit rusty on the alphabet.
Glenn Morris [Sat, 5 Dec 2009 03:27:24 +0000 (03:27 +0000)]
A bit rusty on the alphabet.

14 years agoPut calendar and diary hooks back in alphabetical order following
Glenn Morris [Sat, 5 Dec 2009 03:25:57 +0000 (03:25 +0000)]
Put calendar and diary hooks back in alphabetical order following
previous change.

14 years agoDocumented diary fancy display.
Glenn Morris [Sat, 5 Dec 2009 03:10:32 +0000 (03:10 +0000)]
Documented diary fancy display.

14 years agoMake it less tasty.
Glenn Morris [Sat, 5 Dec 2009 03:09:17 +0000 (03:09 +0000)]
Make it less tasty.

14 years ago(Top): Update menu for cal-xtra node changes.
Glenn Morris [Sat, 5 Dec 2009 03:08:48 +0000 (03:08 +0000)]
(Top): Update menu for cal-xtra node changes.

14 years ago(Displaying the Diary): Holidays may be in the buffer
Glenn Morris [Sat, 5 Dec 2009 03:08:30 +0000 (03:08 +0000)]
(Displaying the Diary): Holidays may be in the buffer
or mode line.  Don't mention invisible text or the details of
diary-print-entries here, only in cal-xtra.
(Format of Diary File): Mention that the "date on first line" format
only really affects the simple display.

14 years ago(Advanced Calendar/Diary Usage): Update menu.
Glenn Morris [Sat, 5 Dec 2009 03:08:05 +0000 (03:08 +0000)]
(Advanced Calendar/Diary Usage): Update menu.
(Diary Customizing): Holidays may be in the buffer or mode line.
Move diary-print-entries to the "Diary Display" section.
(Diary Display): New section, split out from "Fancy Diary Display".
Explain the limitations of simple display, and how to print it.

14 years ago(Standard Hooks): Remove diary-display-hook, replaced by
Glenn Morris [Sat, 5 Dec 2009 03:07:26 +0000 (03:07 +0000)]
(Standard Hooks): Remove diary-display-hook, replaced by
diary-display-function, and no longer recommended to be a hook.
Update for changes in the names of calendar and diary hooks.
diary-print-entries-hook has changed section.

14 years ago* quail/cyrillic.el (russian-typewriter): Change keyboard layout.
Chong Yidong [Sat, 5 Dec 2009 02:54:21 +0000 (02:54 +0000)]
* quail/cyrillic.el (russian-typewriter): Change keyboard layout.
(Bug#904)

14 years ago(completion-pcm--merge-try): Also consider placing point after a star, if
Stefan Monnier [Sat, 5 Dec 2009 01:22:54 +0000 (01:22 +0000)]
(completion-pcm--merge-try): Also consider placing point after a star, if
that's the only place where modifications can make progress.

14 years ago(vc-dir): Use the correct markup for showing keymaps
Dan Nicolaescu [Sat, 5 Dec 2009 00:24:03 +0000 (00:24 +0000)]
(vc-dir): Use the correct markup for showing keymaps
in docstrings.

14 years ago(proced): Call `(proced-update t)' to update process
Juri Linkov [Fri, 4 Dec 2009 21:47:08 +0000 (21:47 +0000)]
(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.

14 years ago(dired-auto-revert-buffer): New defcustom.
Juri Linkov [Fri, 4 Dec 2009 21:45:29 +0000 (21:45 +0000)]
(dired-auto-revert-buffer): New defcustom.
(dired-internal-noselect): Use it.

14 years agoChange roles of modes and functions in image-mode.el (Bug#5062).
Juri Linkov [Fri, 4 Dec 2009 21:43:07 +0000 (21:43 +0000)]
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'.

14 years agoNewsticker fixes/changes.
Ulf Jasper [Fri, 4 Dec 2009 19:27:42 +0000 (19:27 +0000)]
Newsticker fixes/changes.

14 years ago(log-view-mode-map): "q" calls quit-window,
Sam Steingold [Fri, 4 Dec 2009 16:34:22 +0000 (16:34 +0000)]
(log-view-mode-map): "q" calls quit-window,
like in all the other non-self-insert buffers.

14 years agoFix `string-to-number' to deal consistently with integers and floats.
Juanma Barranquero [Fri, 4 Dec 2009 16:16:26 +0000 (16:16 +0000)]
Fix `string-to-number' to deal consistently with integers and floats.
* lread.c (isfloat_string): New argument ignore_trailing to accept all
  trailing characters, not just whitespace.
  (read1): Pass new arg 0 to keep old behavior.
* data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
  trailing chars, as it is already done for integers.  Doc fixes.
* lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.

14 years ago(enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete unused enumeration value.
Eli Zaretskii [Fri, 4 Dec 2009 10:51:37 +0000 (10:51 +0000)]
(enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete unused enumeration value.

14 years agoRegenerate autoloads.
Glenn Morris [Fri, 4 Dec 2009 05:00:44 +0000 (05:00 +0000)]
Regenerate autoloads.

14 years agoMinor cleanup.
Stefan Monnier [Fri, 4 Dec 2009 04:39:21 +0000 (04:39 +0000)]
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'.

14 years ago(lisp, shortlisp): Replace indian.el with indian.elc.
Eli Zaretskii [Thu, 3 Dec 2009 20:03:55 +0000 (20:03 +0000)]
(lisp, shortlisp): Replace indian.el with indian.elc.

14 years agoLimit the number of log entries displayed by default.
Dan Nicolaescu [Thu, 3 Dec 2009 19:12:52 +0000 (19:12 +0000)]
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.

14 years ago(Fmake_network_process): Fix up the tests for
Stefan Monnier [Thu, 3 Dec 2009 19:01:36 +0000 (19:01 +0000)]
(Fmake_network_process): Fix up the tests for
"connectionless socket", so they DTRT for seqpacket sockets as well.

14 years ago(Qseqpacket): New symbol.
Stefan Monnier [Thu, 3 Dec 2009 18:51:32 +0000 (18:51 +0000)]
(Qseqpacket): New symbol.
(HAVE_SEQPACKET): New macro.
(Fmake_network_process): Accept new :type `seqpacket'.
(init_process): Add `seqpacket' feature when applicable.
(syms_of_process): Initialize Qseqpacket.

14 years ago(class): Restore still useful declaration.
Glenn Morris [Thu, 3 Dec 2009 17:14:33 +0000 (17:14 +0000)]
(class): Restore still useful declaration.
Restore comment that is still relevant.

14 years agoEnhance `c-parse-state' to run efficiently in "brace desserts".
Alan Mackenzie [Thu, 3 Dec 2009 16:02:10 +0000 (16:02 +0000)]
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".

14 years agoCorrect conflicts in previous patch.
Alan Mackenzie [Thu, 3 Dec 2009 15:56:29 +0000 (15:56 +0000)]
Correct conflicts in previous patch.

14 years ago*** empty log message ***
Alan Mackenzie [Thu, 3 Dec 2009 15:52:37 +0000 (15:52 +0000)]
*** empty log message ***

14 years ago(proced-filter-alist): Use regexp-quote.
Roland Winkler [Thu, 3 Dec 2009 14:34:04 +0000 (14:34 +0000)]
(proced-filter-alist): Use regexp-quote.

14 years agoCleanup.
Michael Albinus [Thu, 3 Dec 2009 11:34:11 +0000 (11:34 +0000)]
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.

14 years agoRevert previous accidental commit.
Glenn Morris [Thu, 3 Dec 2009 08:53:54 +0000 (08:53 +0000)]
Revert previous accidental commit.

14 years ago(vc-bzr-dir-extra-headers): Fix typo.
Dan Nicolaescu [Thu, 3 Dec 2009 08:53:06 +0000 (08:53 +0000)]
(vc-bzr-dir-extra-headers): Fix typo.

14 years agoAdd support for bzr shelve/unshelve.
Dan Nicolaescu [Thu, 3 Dec 2009 07:46:13 +0000 (07:46 +0000)]
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.

14 years ago(vc-bzr-print-log): Deal with nil arguments better.
Dan Nicolaescu [Thu, 3 Dec 2009 07:31:15 +0000 (07:31 +0000)]
(vc-bzr-print-log): Deal with nil arguments better.

14 years ago(bibtex-complete-internal): Use completion-in-region.
Stefan Monnier [Thu, 3 Dec 2009 05:41:17 +0000 (05:41 +0000)]
(bibtex-complete-internal): Use completion-in-region.
(bibtex-text-in-field-bounds): Remove unused var `opoint'.

14 years agoSupport applying stashes. Improve UI.
Dan Nicolaescu [Thu, 3 Dec 2009 04:08:08 +0000 (04:08 +0000)]
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.

14 years ago(log-view-vc-backend, log-view-vc-fileset): Declare.
Glenn Morris [Thu, 3 Dec 2009 03:11:14 +0000 (03:11 +0000)]
(log-view-vc-backend, log-view-vc-fileset): Declare.
(vc-print-log-internal): Fix previous change.
(vc-revert): Correct pluralization.

14 years ago(Free Software and Free Manuals): Update URL, and remove duplicate text.
Glenn Morris [Thu, 3 Dec 2009 03:09:45 +0000 (03:09 +0000)]
(Free Software and Free Manuals): Update URL, and remove duplicate text.

14 years ago(makefile-special-targets-list): No need for it to be an alist any more.
Stefan Monnier [Thu, 3 Dec 2009 03:02:34 +0000 (03:02 +0000)]
(makefile-special-targets-list): No need for it to be an alist any more.
(makefile-complete): Use completion-in-region.

14 years ago(octave-complete-symbol): Use completion-in-region.
Stefan Monnier [Thu, 3 Dec 2009 02:58:16 +0000 (02:58 +0000)]
(octave-complete-symbol): Use completion-in-region.

14 years agoMisc cleanup.
Stefan Monnier [Thu, 3 Dec 2009 02:57:16 +0000 (02:57 +0000)]
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'.

14 years ago* progmodes/pascal.el: Require CL when compiling (for lexical-let).
Juanma Barranquero [Thu, 3 Dec 2009 01:43:23 +0000 (01:43 +0000)]
* progmodes/pascal.el: Require CL when compiling (for lexical-let).

14 years ago(try-expand-dabbrev-visible): Preserve point in the
Stefan Monnier [Thu, 3 Dec 2009 01:33:56 +0000 (01:33 +0000)]
(try-expand-dabbrev-visible): Preserve point in the
buffers visited.  Remove redundant current-buffer-saving.

14 years agoUse completion-in-buffer and remove uses of dynamic scoping.
Stefan Monnier [Wed, 2 Dec 2009 18:31:26 +0000 (18:31 +0000)]
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.

14 years agoInclude ZWJ and ZWNJ in the patterns to shape for all Indic scripts.
Kenichi Handa [Wed, 2 Dec 2009 08:01:02 +0000 (08:01 +0000)]
Include ZWJ and ZWNJ in the patterns to shape for all Indic scripts.

14 years agoUse completion-in-buffer.
Stefan Monnier [Wed, 2 Dec 2009 04:11:08 +0000 (04:11 +0000)]
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.

14 years ago(message-completion-in-region): New compatibility function.
Stefan Monnier [Wed, 2 Dec 2009 03:11:38 +0000 (03:11 +0000)]
(message-completion-in-region): New compatibility function.
(message-expand-group): Use it.

14 years agoReplace all pop-to-buffer calls with rmail-pop-to-buffer, to prevent
Glenn Morris [Wed, 2 Dec 2009 03:05:14 +0000 (03:05 +0000)]
Replace all pop-to-buffer calls with rmail-pop-to-buffer, to prevent
horizontal splits.

14 years ago(rmail-pop-to-buffer): New function. (Bug#2282)
Glenn Morris [Wed, 2 Dec 2009 03:04:43 +0000 (03:04 +0000)]
(rmail-pop-to-buffer): New function.  (Bug#2282)
(rmail-select-summary): Use rmail-pop-to-buffer.

14 years ago(diary-list-entries): Replace superfluous save-excursion with
Glenn Morris [Wed, 2 Dec 2009 03:03:48 +0000 (03:03 +0000)]
(diary-list-entries): Replace superfluous save-excursion with
save-current-buffer.
Widen before searching.  (Bug#5093)
(diary-list-sexp-entries): Remove superfluous save-excursion.

14 years agoComment.
Glenn Morris [Wed, 2 Dec 2009 03:02:10 +0000 (03:02 +0000)]
Comment.

14 years ago2009-12-02 Michael Welsh Duggan <mwd at cert.org>
Glenn Morris [Wed, 2 Dec 2009 03:01:44 +0000 (03:01 +0000)]
2009-12-02  Michael Welsh Duggan  <mwd at cert.org>

(woman-make-bufname): Handle man-pages with "." in the name.  (Bug#5038)

14 years agoAndreas Politz <politza at fh-trier.de> (tiny change)
Glenn Morris [Wed, 2 Dec 2009 03:00:41 +0000 (03:00 +0000)]
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)

14 years ago* mpc.el (mpc-intersection, mpc-host, mpc-songs-playlist)
Juanma Barranquero [Wed, 2 Dec 2009 02:08:21 +0000 (02:08 +0000)]
* mpc.el (mpc-intersection, mpc-host, mpc-songs-playlist)
  (mpc-songs-jump-to, mpc-resume): Doc fixes.

14 years ago(gnus-group-prepare-flat): Check also whether groups with no unread article
Katsumi Yamaoka [Wed, 2 Dec 2009 00:48:21 +0000 (00:48 +0000)]
(gnus-group-prepare-flat): Check also whether groups with no unread article
 should be listed if the 2nd arg `predicate' is given.

14 years ago(tpu-cursor-free-mode): Emit message.
Stefan Monnier [Tue, 1 Dec 2009 20:44:21 +0000 (20:44 +0000)]
(tpu-cursor-free-mode): Emit message.
(tpu-set-cursor-free, tpu-set-cursor-bound): Don't emit a message any more.