1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-22 13:40:44 -08:00
Commit graph

49755 commits

Author SHA1 Message Date
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
Stefan Monnier
cb190d7d5f (string-prefix-p): New function. 2009-11-25 03:59:19 +00:00
Stefan Monnier
e2ec6dd513 (Man-completion-cache): New var.
(Man-completion-table): Use it.
2009-11-25 03:51:00 +00:00
Stefan Monnier
eb708e6624 (vc-print-log-internal): Make `limit' optional for better
compatibility (e.g. with vc-annotate.el).
2009-11-25 03:28:24 +00:00
Kevin Ryde
f69c67b6f7 * emacs-lisp/checkdoc.el (checkdoc-proper-noun-regexp): Build
value with regexp-opt instead of explicit joining loop.  (My
Bug#4927.)
2009-11-24 23:13:55 +00:00
Kevin Ryde
4cf8971b40 * emacs-lisp/elint.el (elint-add-required-env): Better error message
when .el source file not found or other error.
2009-11-24 23:08:15 +00:00
Stefan Monnier
d204c46c61 (linum-update-window): Ignore intangible (bug#4996). 2009-11-24 22:28:01 +00:00
Stefan Monnier
449c27f045 Handle the [back] button properly (bug#4979).
* descr-text.el (describe-text-properties): Add a `buffer' argument.
Use help-setup-xref, help-buffer, and with-help-window.
(describe-char): Add `buffer' argument.
Pass proper command to help-setup-xref.  Don't meddle with
help-xref-stack-item directly.
(describe-text-category): Use with-help-window and help-buffer.
2009-11-24 22:23:49 +00:00
Stefan Monnier
32fe5377a3 (list-load-path-shadows): Setup a major mode
for the displayed buffer (bug#4887).
2009-11-24 21:36:10 +00:00
Stefan Monnier
bb301b9aff (Man-completion-table): New function.
(man): Use it.
2009-11-24 20:00:41 +00:00
David Reitter
35179414e4 vc-git-registered: use checkout directory (where .git is)
rather than the file's directory and a relative path spec to work around a bug in git.
2009-11-24 15:31:01 +00:00
Michael Albinus
605a20a988 Improve handling of processes on remote hosts.
* eshell/esh-util.el (eshell-path-env): New defvar.
(eshell-parse-colon-path): New defun.
(eshell-file-attributes): Use `eshell-parse-colon-path'.

* eshell/esh-ext.el (eshell-search-path): Use
`eshell-parse-colon-path'.
(eshell-remote-command): Remove argument HANDLER.
(eshell-external-command): Check for FTP remote connection.

* eshell/esh-proc.el (eshell-gather-process-output): Use
`file-truename', in order to start also symlinked files. Apply
`start-file-process' instead of `start-process'. Shorten `command'
to the local file name part.

* eshell/em-cmpl.el (eshell-complete-commands-list): Use
`eshell-parse-colon-path'.

* eshell/em-unix.el (eshell/du): Check for FTP remote connection.

* net/tramp.el (tramp-eshell-directory-change): New defun.  Add it
to `eshell-directory-change-hook'.
2009-11-24 10:25:54 +00:00
Katsumi Yamaoka
937e60c88b (message-from-style, message-interactive, message-signature): Always set
default values from the corresponding mail-* variables.
(message-cite-prefix-regexp, message-sendmail-envelope-from)
(message-yank-prefix, message-indentation-spaces, message-signature-file)
(message-default-headers): Use boundp rather than (featurep 'xemacs) to check
 if the corresponding mail-* variables exist.
2009-11-24 09:19:09 +00:00
Tassilo Horn
d1d33062d3 * doc-view.el (doc-view-mode): Switch off view-mode explicitly,
because it could be enabled automatically if view-read-only is
	non-nil.
2009-11-24 07:47:45 +00:00
Michael Kifer
a34d856516 2009-11-24 Michael Kifer <kifer@cs.stonybrook.edu>
* ediff-vers.el (ediff-rcs-get-output-buffer): Revert the change
	made on 2009-11-22.
2009-11-24 03:16:38 +00:00
Glenn Morris
65235b0a38 (global-semantic-idle-scheduler-mode): Move after definition of
global-semantic-idle-tag-highlight-mode.
2009-11-24 02:38:08 +00:00
Glenn Morris
c83b8d1bc7 (bookmark-bmenu-hide-filenames): Remove assignment to deleted variable
bookmark-bmenu-bookmark-column.
2009-11-24 02:37:05 +00:00
Stefan Monnier
83505cfea1 (bookmark-bmenu-search): Clear echo area when exiting. 2009-11-24 02:21:32 +00:00
Chong Yidong
5241b291dd * net/browse-url.el (browse-url-filename-alist): On Windows, add
two slashes to the "file:" prefix.
(browse-url-file-url): De-munge Cygwin filenames before passing
them to Windows browser.
(browse-url-default-windows-browser): Use call-process.
2009-11-23 20:58:55 +00:00
Juri Linkov
aefcadb650 Implement DocView Continuous mode. (Bug#4896)
* doc-view.el (doc-view-continuous-mode): New defcustom.
(doc-view-mode-map): Bind C-n/<down> to `doc-view-next-line-or-next-page',
C-p/<up> to `doc-view-previous-line-or-previous-page'.
(doc-view-next-line-or-next-page)
(doc-view-previous-line-or-previous-page): New commands.
2009-11-23 20:34:53 +00:00
Juri Linkov
0d62bcea27 Implement Isearch in comint input history. (Bug#3746)
* comint.el (comint-mode): Add `comint-history-isearch-setup' to
`isearch-mode-hook'.
(comint-history-isearch): New defcustom.
(comint-history-isearch-backward)
(comint-history-isearch-backward-regexp): New commands.
(comint-history-isearch-message-overlay): New buffer-local variable.
(comint-history-isearch-setup, comint-history-isearch-end)
(comint-goto-input, comint-history-isearch-search)
(comint-history-isearch-message, comint-history-isearch-wrap)
(comint-history-isearch-push-state)
(comint-history-isearch-pop-state): New functions.
2009-11-23 20:30:33 +00:00
Michael Albinus
b593f1055a * net/tramp.el (tramp-shell-prompt-pattern): Use \r for carriage
return.
(tramp-handle-make-symbolic-link)
(tramp-handle-dired-compress-file, tramp-handle-expand-file-name):
Quote file names.
(tramp-send-command-and-check): New argument DONT-SUPPRESS-ERR.
(tramp-handle-process-file): Use it.
2009-11-23 15:59:07 +00:00
Stefan Monnier
0f202d5d8f (move-to-window-line-last-op): Remove.
(move-to-window-line-top-bottom): Reuse recenter-last-op instead.
2009-11-23 05:37:34 +00:00