1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00
Commit Graph

92987 Commits

Author SHA1 Message Date
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
Juanma Barranquero
be95bee9b8 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.
2009-12-04 16:16:26 +00:00
Eli Zaretskii
24c2d7ce87 (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete unused enumeration value. 2009-12-04 10:51:37 +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
Eli Zaretskii
7e6947958e (lisp, shortlisp): Replace indian.el with indian.elc. 2009-12-03 20:03:55 +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
Stefan Monnier
84b318269c (Fmake_network_process): Fix up the tests for
"connectionless socket", so they DTRT for seqpacket sockets as well.
2009-12-03 19:01:36 +00:00
Stefan Monnier
f00c449ba1 (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.
2009-12-03 18:51:32 +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
Glenn Morris
228fb9b59e Revert previous accidental commit. 2009-12-03 08:53:54 +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
Glenn Morris
31b62755af (Free Software and Free Manuals): Update URL, and remove duplicate text. 2009-12-03 03:09:45 +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
Stefan Monnier
e7440df4ec (comint-insert-input): Ignore clicks to the right of
the field.  Reported by Bob Nnamtrop <bobnnamtrop@gmail.com>.
2009-12-01 20:31:57 +00:00
Stefan Monnier
c767b6650c (vc-print-log-internal): Don't wait for the prcess to
terminate before setting up the major mode.
2009-12-01 20:08:20 +00:00
Stefan Monnier
f3b757f540 (pcomplete/cd): Complete more than one argument, just in case. 2009-12-01 19:42:28 +00:00
Stefan Monnier
a2877f1d6f (pcomplete-std-complete): Don't try to complete past the last element. 2009-12-01 19:39:52 +00:00
Chong Yidong
4e14547fd4 * message.el: Revert last change. 2009-12-01 19:01:41 +00:00
Stefan Monnier
b08016f2fc (normal-erase-is-backspace-mode): Fix thinko in message. 2009-12-01 18:06:06 +00:00
Glenn Morris
9e13b2f462 Add etc/images/mpc directory. 2009-12-01 17:06:30 +00:00
Glenn Morris
782d6e3016 (window--display-buffer-2): Fix previous changes. 2009-12-01 17:04:55 +00:00