1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

49627 Commits

Author SHA1 Message Date
Stefan Monnier
20565545f2 Minor cleanup and simplification.
* filecache.el (file-cache-add-directory, file-cache-add-directory-recursively)
(file-cache-add-from-file-cache-buffer)
(file-cache-delete-file-regexp, file-cache-delete-directory)
(file-cache-files-matching-internal, file-cache-display): Use dolist.
(file-cache-temp-minibuffer-message): Delete function.
(file-cache-minibuffer-complete): Use minibuffer-message instead.
2009-11-30 13:49:13 +00:00
Stefan Monnier
7a9547ca15 (perl-font-lock-special-syntactic-constructs):
Don't signal an error when bumping into EOB in tr, s, or y.
2009-11-30 13:43:51 +00:00
Juri Linkov
08e968f330 (describe-char-unidata-list): Use lowercase name
for "Unicode name" like in other tags.
2009-11-29 23:55:57 +00:00
Juri Linkov
6a3e0319bf (fancy-about-text): Fix wording of Guided Tour. (Bug#4960) 2009-11-29 23:54:41 +00:00
Juri Linkov
f8d170a48f (ediff-minibuffer-with-setup-hook): New compatibility macro.
(ediff-read-file-name): Use it instead of `minibuffer-with-setup-hook'.
2009-11-29 23:52:16 +00:00
Juri Linkov
5aa75bd889 * gnus-sum.el (gnus-recenter): Use `recenter-top-bottom'
when it is fboundp in GNU Emacs 23.1.
Put `isearch-scroll' property on `gnus-recenter'. (Bug#4981)
2009-11-29 23:38:18 +00:00
Juri Linkov
0116abbdeb Add defcustom to define the cycling order of `recenter-top-bottom'. (Bug#4981)
* window.el (recenter-last-op): Doc fix.
(recenter-positions): New defcustom.
(recenter-top-bottom): Rewrite to use `recenter-positions'.
(move-to-window-line-top-bottom): Rewrite to use `recenter-positions'.
2009-11-29 23:34:05 +00:00
Michael Albinus
61eef560b9 * eshell/esh-util.el (top): Require also Tramp when compiling.
(eshell-directory-files-and-attributes): Check for FTP remote
connection.
(eshell-parse-ange-ls): Let-bind `ange-ftp-name-format',
`ange-ftp-ftp-name-arg', `ange-ftp-ftp-name-res'.
(eshell-file-attributes): Handle ".".  Return `entry'.
2009-11-29 20:19:48 +00:00
Michael Albinus
e7b538cd65 * eshell/em-unix (eshell/whoami): Make it a defun but a defalias.
(eshell/su): Flatten args.  Apply better args parsing.  Use "cd".
(eshell/sudo): Flatten args.  Let-bind `default-directory'.
2009-11-29 20:10:29 +00:00
Michael Albinus
e2a421af39 * net/tramp.el (tramp-maybe-open-connection): Open the remote
shell with "exec" when possible.  This prevents trailing prompts
in `start-file-process'.
2009-11-29 20:05:23 +00:00
Michael Albinus
f06dbf7ea9 * net/ange-ftp.el (ange-ftp-parse-filename): Use `save-match-data'.
(ange-ftp-directory-files-and-attributes)
(ange-ftp-real-directory-files-and-attributes): New defuns.
2009-11-29 20:04:08 +00:00
Stefan Monnier
21f49db9e9 Try and remove assumptions about point-min==1.
* nxml/rng-valid.el (rng-validate-mode): Don't hardcode point-min==1.
(rng-compute-mode-line-string): Show the validation percentage in
terms of the narrowed text, not the widened text.
(rng-do-some-validation): Don't catch internal errors when debugging.
(rng-first-error): Simplify.
(rng-after-change-function): Remove work around.  AFAIK the bug has
been fixed a while ago.
2009-11-28 21:32:06 +00:00
Stefan Monnier
26224fafa0 (image-minor-mode): Exit more gracefully when the image
cannot be displayed (e.g. when doing C-x C-f some-new-file.svg RET).
2009-11-28 20:45:19 +00:00
Stefan Monnier
d7117720c9 (Man-completion-table): Make it easier to enter "<sec> <name>". 2009-11-28 20:28:51 +00:00
Stefan Monnier
f5467d3f9e * eshell/em-prompt.el (eshell-prompt-function): Abbreviate pwd, since
`cd' doesn't always do it for us (bug#5067).
* pcomplete.el (pcomplete-entries): Revert change installed mistakenly
on 2009-10-25 as part of some other change (bug#5067).
2009-11-28 17:06:30 +00:00
Stefan Monnier
62a258a71d (byte-compile-warning-types): New type `suspicious'.
(byte-compile-warnings): Use byte-compile-warning-types.
(byte-compile-save-excursion): Warn about use of set-buffer right
after save-excursion.
2009-11-27 22:03:04 +00:00
Stefan Monnier
c5269f1cd5 (gud-basic-call): Don't only save the buffer but the excursion as well. 2009-11-27 19:31:57 +00:00
Michael Albinus
3ba30eb837 * eshell/em-unix.el (eshell/su, eshell/sudo): New defuns,
providing a Tramp related implementation of "su" and "sudo".
(eshell-unix-initialize): Add "su" and "sudo".
2009-11-27 16:29:03 +00:00
Daiki Ueno
6c6f788d8a (socks-send-command): Convert binary request to
unibyte before sending.  This fixes mishandling of some port
numbers such as 129.
2009-11-27 07:35:14 +00:00
Stefan Monnier
6f06a17190 (describe-bindings-internal): Remove `interactive'. 2009-11-27 04:24:47 +00:00
Stefan Monnier
10c877fedc (Man-completion-table): Trim a terminating "(".
Remove the space between name page a section.
Add the command's description on the `help-echo' property.
Remove `process-connection-type' binding since it's unused by call-process.
Provide completion for the "<section> <name>" format as well.
(Man-default-man-entry): Remove spurious var shadowing the argument.
2009-11-27 04:08:04 +00:00
Stefan Monnier
c074ba4a56 (url-generic-parse-url): Bind deactivate-mark. 2009-11-27 01:27:04 +00:00
Kevin Ryde
9d58f08130 * sha1.el (sha1-string-external): default-directory "/" in case
otherwise non-existent.  process-connection-type pipe for touch of
efficiency recommended by elisp manual.  (An aside in Bug#3911.)
2009-11-26 23:39:32 +00:00
Kevin Ryde
c44a48223e * log-view.el: Add "Keywords: tools", since its other keywords
aren't in finder-known-keywords, and following vc.el.
2009-11-26 23:19:53 +00:00
Stefan Monnier
72fe6b25a2 Misc coding convention cleanups.
* htmlfontify.el (hfy-init-kludge-hook): Rename from hfy-init-kludge-hooks.
(hfy-etags-cmd, hfy-flatten-style, hfy-invisible-name, hfy-face-at)
(hfy-fontify-buffer, hfy-prepare-index-i, hfy-subtract-maps)
(hfy-save-kill-buffers, htmlfontify-copy-and-link-dir): Use dolist and push.
(hfy-slant, hfy-weight): Use tables rather than code.
(hfy-box-to-border-assoc, hfy-box-to-style, hfy-decor)
(hfy-face-to-style-i, hfy-fontify-buffer): Use `case'.
(hfy-face-attr-for-class): Initialize `face-spec' directly.
(hfy-face-to-css): Remove `nconc' with single arg.
(hfy-p-to-face-lennart): Use `or'.
(hfy-face-at): Hoist common code.  Remove spurious quotes in `case'.
(hfy-overlay-props-at, hfy-mark-tag-hrefs): Eta-reduce.
(hfy-compile-stylesheet, hfy-merge-adjacent-spans)
(hfy-compile-face-map, hfy-parse-tags-buffer): Use push.
(hfy-force-fontification): Use run-hooks.
2009-11-26 16:24:36 +00:00
Stefan Monnier
85e0a5363c Various minor fixes.
* htmlfontify.el (hfy-default-header): Add toggle_invis since
Javascript belongs in the header, not the body.
(hfy-javascript): Remove.
(hfy-fontify-buffer): Don't insert it any more.
(hfy-face-at): Handle (face0 face1 face2) style face properties.
Fix bug in invis handling when there were no invis props in a chunk.
2009-11-26 15:22:27 +00:00
Stefan Monnier
62ccc42c60 (vc-bzr-annotate-command): Make operation asynchronous. 2009-11-26 14:50:28 +00:00
Dan Nicolaescu
2643c7aa2d (finder-mode-map): Add a menu. 2009-11-26 03:27:10 +00:00
Dan Nicolaescu
0e5c8aedd0 * verilog-mode.el (verilog-at-struct-p): Support "signed" and
"unsigned" structs.

(verilog-leap-to-head, verilog-backward-token): Handle "disable
fork" statement better.

* verilog-mode.el (verilog-auto-insert-lisp, verilog-delete-auto)
(verilog-delete-empty-auto-pair, verilog-library-filenames): Fix
AUTOINSERTLISP to support insert-file.  Reported by Clay Douglass.

(verilog-auto-inst, verilog-auto-star-safe)
(verilog-delete-auto-star-implicit, verilog-read-sub-decls): Fix
removing "// Interfaces" when saving .* expansions.  Reported by
Pierre-David Pfister.
2009-11-26 03:18:31 +00:00
Glenn Morris
7629c4e745 (eshell/cd): Don't throw to a tag outside the scope.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557572
2009-11-26 03:09:58 +00:00
Glenn Morris
5cf751b4a3 Fix format. 2009-11-26 03:08:30 +00:00
Kevin Ryde
8cb5ffe835 * arc-mode.el: Add "Keywords: files", so the details in its
commentary can be reached from finder-by-keyword.
2009-11-26 00:15:17 +00:00
Kevin Ryde
b8dfcf54e9 * textmodes/bibtex-style.el: Add "Keywords: tex".
* international/isearch-x.el, international/ja-dic-cnv.el,
international/ja-dic-utl.el, international/kkc.el:
Add "Keywords: i18n", so they can be reached from finder-by-keyword.
2009-11-26 00:07:01 +00:00
Kevin Ryde
49e6422842 * international/isearch-x.el, international/ja-dic-cnv.el,
international/ja-dic-utl.el, international/kkc.el,
international/robin.el: Add "Keywords: i18n", so they can be
reached from finder-by-keyword.
2009-11-26 00:04:36 +00:00
Kevin Ryde
f0fd77be4f * textmodes/bibtex-style.el: Add "Keywords: tex". 2009-11-26 00:01:20 +00:00
Kevin Ryde
34607612c5 * textmodes/dns-mode.el: Add "Keywords: comm". It's only an
editing mode, but it's comms related and sgml-mode.el has "comm"
on that basis too.
2009-11-25 23:52:00 +00:00
Johan Bockgård
a5d358f83c (vc-annotate-revision-previous-to-line): Really use previous revision. 2009-11-25 23:47:31 +00:00
Kevin Ryde
573f4575dc (man): completion-ignore-case t for friendliness and since man
itself is case-insensitive on the command line.
2009-11-25 22:52:02 +00:00
Kevin Ryde
002cbde51f * man.el (Man-completion-table): default-directory "/" in case
doesn't otherwise exist.  process-environment COLUMNS=999 so as
not to truncate long names.  process-connection-type pipe to avoid
any chance of hitting the pseudo-tty TIOCGWINSZ.  (Further to
Bug#3717.)
2009-11-25 22:42:11 +00:00
Juri Linkov
1e2d9ba1ea (Man-completion-table): Modify regexp to include section names
to completion strings.  (Bug#3717)
2009-11-25 21:16:58 +00:00
Juri Linkov
a601d31340 Search recursively in gzipped files. (Bug#4982)
(grep-highlight-matches): Add new options
`always' and `auto'.  Doc fix.
(grep-process-setup): Check `grep-highlight-matches' for
`auto-detect' to determine the need to compute grep defaults.
Move Windows/DOS specific --colors settings handling
to `grep-compute-defaults'.  Check `grep-highlight-matches'
to get the value of "--color=".
(grep-compute-defaults): Compute `grep-highlight-matches' when it
has the value `auto-detect'.  Move Windows/DOS specific settings
from `grep-process-setup'.
(zrgrep): New command with alias `rzgrep'.
2009-11-25 17:23:45 +00:00
Juri Linkov
bde04ea9ca (doc-view-mode): Set buffer-local `view-read-only' to nil
instead of switching off view-mode.  (Bug#4896)
2009-11-25 17:21:12 +00:00
Juri Linkov
7d6b4d3cad Mouse-wheel scrolling for DocView Continuous mode. (Bug#4896)
* mwheel.el (mwheel-scroll-up-function)
(mwheel-scroll-down-function): New defvars.
(mwheel-scroll): Funcall `mwheel-scroll-up-function' instead of
`scroll-up', and `mwheel-scroll-down-function' instead of
`scroll-down'.

* doc-view.el (doc-view-scroll-up-or-next-page)
(doc-view-scroll-down-or-previous-page): Add optional ARG.
Use this ARG in the call to image-scroll-up/image-scroll-down.
Change `interactive' spec to "P".  Goto next/previous page only
when `doc-view-continuous-mode' is non-nil or ARG is nil (for the
SPC/DEL case).  Doc fix.
(doc-view-next-line-or-next-page)
(doc-view-previous-line-or-previous-page): Rename arg to ARG
for consistency.
(doc-view-mode): Set buffer-local `mwheel-scroll-up-function' to
`doc-view-scroll-up-or-next-page', and buffer-local
`mwheel-scroll-down-function' to
`doc-view-scroll-down-or-previous-page'.
2009-11-25 17:18:26 +00:00
Juri Linkov
e237085f03 Provide additional default values (directories at other Dired
windows) via M-n in the minibuffer of some Dired commands.

* dired-aux.el (dired-diff, dired-compare-directories)
(dired-do-create-files): Use `dired-dwim-target-defaults' to set
`minibuffer-default' in `minibuffer-with-setup-hook'.
(dired-dwim-target-directory): Find a window that displays Dired
buffer instead of failing when the next window is not Dired.
Use `get-window-with-predicate' to find for the next Dired window.
(dired-dwim-target-defaults): New function.

* ediff-util.el (ediff-read-file-name):
Use `dired-dwim-target-defaults' to set `minibuffer-default'
in `minibuffer-with-setup-hook'.
2009-11-25 17:15:19 +00:00
Juri Linkov
7d371eac64 Provide additional default values (file name at point or at the
current Dired line) via M-n for file reading minibuffers.  (Bug#5010)

* minibuffer.el (read-file-name-defaults): New function.
(read-file-name): Reset `minibuffer-default' to nil when
it duplicates initial input `insdef'.
Bind `minibuffer-default-add-function' to lambda that
calls `read-file-name-defaults' in `minibuffer-selected-window'.
(minibuffer-insert-file-name-at-point): New command.

* files.el (file-name-at-point-functions): New defcustom.
(find-file-default): Remove defvar.
(find-file-read-args): Don't use `find-file-default'.
Move `minibuffer-with-setup-hook' that sets `minibuffer-default'
to `read-file-name'.
(find-file-literally): Use `read-file-name' with
`confirm-nonexistent-file-or-buffer'.

* ffap.el (ffap-guess-file-name-at-point): New autoloaded function.

* dired.el (dired-read-dir-and-switches):
Move `minibuffer-with-setup-hook' that sets `minibuffer-default'
to `read-file-name'.
(dired-file-name-at-point): New function.
(dired-mode): Add hook `dired-file-name-at-point' to
`file-name-at-point-functions'.
2009-11-25 17:11:29 +00:00
Stefan Monnier
04ae543a28 Really make the *Completions* window soft-dedicated (bug#5030).
* window.el (window--display-buffer-2): Add `dedicated' argument.
(display-buffer): Pass it when needed so the dedicated flag is set
after calling set-window-buffer, which would otherwise reset it.
2009-11-25 16:36:04 +00:00
Stefan Monnier
d6b8d4e75e * progmodes/meta-mode.el (meta-complete-symbol):
* progmodes/etags.el (complete-tag): Use completion-in-region.
2009-11-25 06:08:42 +00:00
Stefan Monnier
e2d4ea5aba (mail-abbrev-complete-alias): Use completion-in-region. 2009-11-25 06:02:01 +00:00
Stefan Monnier
5f24557b12 (dabbrev--minibuffer-origin): Use minibuffer-selected-window.
(dabbrev-completion): Use completion-in-region.
(dabbrev--abbrev-at-point): Simplify regexp.
2009-11-25 05:31:05 +00:00
Stefan Monnier
fe4346f0da (abbrev--before-point): Use word-motion functions
if :regexp is not specified (bug#5031).
2009-11-25 04:59:02 +00:00