1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-15 07:41:09 -08:00
Commit graph

54365 commits

Author SHA1 Message Date
Juri Linkov
251730002e Fix docstrings in lisp/isearch.el.
* lisp/isearch.el (isearch-edit-string): Remove obsolete mention of
`C-w' (`isearch-yank-word-or-char') from docstring.
(isearch-query-replace): Fix typo in docstring.

Fixes: debbugs:9466
2011-09-10 14:33:38 +03:00
Juri Linkov
056e44efe8 * lisp/paren.el (show-paren-function): Don't show escaped parens.
Let-bind `unescaped' to `t' when paren is not escaped.

Fixes: debbugs:9461
2011-09-10 14:28:19 +03:00
Eli Zaretskii
c3760c17bd Add to sendmail.el a new command mail-add-attachment.
etc/NEWS: Document the new command and the alias for mail-insert-file.
 lisp/mail/sendmail.el (mml-to-mime, mml-attach-file)
 (mm-default-file-encoding): Remove autoload forms, they are
 replaced with autoload cookies in mml.el and mm-encode.el.
 (mail-add-attachment): New command.
 (mail-mode-map): Add a menu-bar item for mail-add-attachment.
 (mail-mode): Mention mail-insert-file and mail-add-attachment in
 the doc string.
 (mml-to-mime, mml-attach-file, mm-default-file-encoding): Declare.
 lisp/gnus/mm-encode.el (mm-default-file-encoding): Add autoload cookie.
 lisp/gnus/mml.el (mml-to-mime, mml-attach-file): Add autoload cookies.
 doc/emacs/sending.texi (Mail Misc): Document mail-add-attachment.
2011-09-10 11:26:12 +03:00
Reuben Thomas
fece895eff * lisp/simple.el (count-words-region): Use buffer if there's no region. 2011-09-09 23:02:06 -04:00
Juri Linkov
5e68ce4ab9 Add `wdired-isearch-filter-read-only' to lisp/wdired.el.
* lisp/wdired.el (wdired-change-to-wdired-mode): Set buffer-local
`isearch-filter-predicate' to `wdired-isearch-filter-read-only'.
(wdired-isearch-filter-read-only): New function.

Fixes: debbugs:6362
2011-09-09 18:49:00 +03:00
Katsumi Yamaoka
0861eb2e39 gnus-art.el (article-date-ut): Work properly even when
there are things like Date header in the body;
 work for forwarded parts.
2011-09-09 10:18:45 +00:00
Alan Mackenzie
0a6b962280 progmodes/cc-mode.el (awk-mode): Prevent `define-derived-mode'
spuriously generating `awk-mode-syntax-table'.  (Bug #9448).
2011-09-09 09:52:26 +00:00
Eli Zaretskii
14a29deb45 Fix bug #9392 with rmail-forward.
lisp/simple.el (mail-encode-mml): New defvar.
 lisp/mail/rmail.el (mail-encode-mml): Add a defvar.
 (rmail-enable-mime-composing): Default to t.
 (rmail-forward): Use MIME method of forwarding only if both
 rmail-enable-mime-composing and rmail-enable-mime are non-nil.
 Set mail-encode-mml non-nil if the MIME method was used.
 lisp/mail/sendmail.el (mml-to-mime): Add autoload form.
 (mail-encode-mml): Add a defvar.
 (mail-mode): Make mail-encode-mml buffer-local and initialize it
 to nil.
 (mail-send): If mail-encode-mml is non-nil, run the outgoing
 message through mml-to-mime, and reset mail-encode-mml to nil.
2011-09-09 11:59:51 +03:00
Glenn Morris
69f4b6184f * lisp/woman.el (woman-special-characters): Add hy character. 2011-09-08 23:34:59 -07:00
Glenn Morris
8aa187e7d1 * lisp/woman.el (woman-special-characters): Add oq and cq quote characters. 2011-09-08 23:32:08 -07:00
Glenn Morris
28c451307b woman.el fix for bug#9447.
* lisp/woman.el (woman-if-body): When processing an .el block,
do not delete the next .el block as well.
2011-09-08 23:23:47 -07:00
Juanma Barranquero
5e617bc2b6 Whitespace changes. 2011-09-09 03:06:52 +02:00
Martin Rudalics
9b1c252e29 Don't have previous and next buffers deal with internal windows.
* window.c (Fset_window_prev_buffers, Fset_window_next_buffers):
Operate on live windows only.

* window.el (window-deletable-p): Make sure window is live before
invoking window-prev-buffers.
2011-09-08 17:45:20 +02:00
Leo Liu
567457e31a New rcirc command rcirc-cmd-invite
See: http://debbugs.gnu.org/9453
2011-09-08 23:25:37 +08:00
Juri Linkov
97f0579455 * lisp/progmodes/compile.el (compilation-environment): Make it a defcustom.
Fixes: debbugs:8340
2011-09-08 15:12:18 +03:00
Juri Linkov
bfe5d7f0e3 (grep-regexp-alist): Move dangling comment to the previous rule. 2011-09-08 15:07:52 +03:00
Martin Rudalics
8b0874b519 Rewrite window/frame auto-deletion code. (Bug#9419) and (Bug#9456)
* window.el (frame-auto-delete): Rename to window-auto-delete.
Make it control auto-deletion of windows and/or frames.
(window-deletable-p): New argument FORCE.  Rewrite conditions
for deleting window/frame. (Bug#9419)
(switch-to-prev-buffer, replace-buffer-in-windows, quit-window):
Rewrite handling of case when window/frame can be deleted.
(delete-windows-on): Call window-deletable-p with new FORCE
argument t. (Bug#9456)
2011-09-08 08:28:37 +02:00
Chong Yidong
4feb6e7359 * lisp/help-mode.el (help-mode): Restore autoload. 2011-09-07 10:40:27 -04:00
Juri Linkov
91ab9c13bf * lisp/progmodes/compile.el (compilation-start): Let-bind `thisenv' to
`compilation-environment'.  Set buffer-local
`compilation-environment' to `thisenv' later after (funcall mode).
(Bug#8340)

* lisp/vc/vc-git.el (vc-git-grep): Remove --no-color.  (Bug#9408)
(vc-git-grep): Prepend "PAGER=" to `compilation-environment'
instead of replacing its value.  (Bug#8340)
2011-09-07 15:17:54 +03:00
Juri Linkov
0527e251e5 * lisp/progmodes/grep.el (grep-regexp-alist): Calculate column positions
based on text properties put by `grep-filter' instead of matching
escape sequences.
(grep-mode): Set buffer-local `compilation-error-screen-columns'
to the value of `grep-error-screen-columns'.

Fixes: debbugs:9438
2011-09-07 15:00:52 +03:00
Juri Linkov
249f792c82 * lisp/simple.el (next-error-highlight, next-error-highlight-no-select): Doc fix.
Fixes: debbugs:9432
2011-09-07 14:46:56 +03:00
Glenn Morris
7d0ee75c25 * lisp/progmodes/cc-fonts.el: Remove trailing whitespace. 2011-09-07 00:16:40 -07:00
OKAZAKI Tetsurou
ff7271b993 cc-fonts.el fix for bug#9443 (tiny change)
* lisp/progmodes/cc-fonts.el (c-font-lock-enclosing-decls):
Check for null c-opt-block-decls-with-vars-key.
2011-09-07 00:15:42 -07:00
Leo Liu
183fc730a3 Conditionally initialize rcirc-input-ring 2011-09-07 11:37:22 +08:00
Stefan Monnier
77694924d8 * lisp/emacs-lisp/find-func.el (find-function-C-source): Only set
find-function-C-source-directory after checking that we found a source
file there.

Fixes: debbugs:9440
2011-09-06 21:06:09 -04:00
Alan Mackenzie
d809b8eb5e isearch.el (isearch-other-meta-char): Wherever a key list is unread,
"unread" the prefix arg, too.  This fixes bug #8901.
2011-09-06 01:01:46 +00:00
Gnus developers
bbd6590c36 Merge changes made in Gnus trunk.
gnus-sum.el (gnus-summary-exit): Ensure we kill the proper original-article-buffer.
nnir.el (nnir-compose-result): Fix matching of server type.
 (nnir-run-swish++): Ditto.
 (nnir-run-namazu): Ditto.
 (nnir-run-notmuch): Ditto.
2011-09-05 22:07:34 +00:00
Oleksandr Gavenko
453de99fd0 * lisp/progmodes/grep.el (rgrep): Add "-type d".
Fixes: debbugs:9414
2011-09-05 12:55:11 +03:00
Juri Linkov
904399061f * lisp/progmodes/grep.el (grep-process-setup): Fix comments.
Fixes: debbugs:8084
2011-09-05 12:48:26 +03:00
Juri Linkov
f62bd84655 Grep related fixes.
* etc/grep.txt: Add `eval' to the Local Variables section that
emulates `grep-filter'.

* lisp/progmodes/grep.el (grep-filter): Avoid incomplete processing by
keeping point where processing of grep matches begins, and
continue to delete remaining escape sequences from the same point.
(grep-filter): Make leading zero optional in "0?1;31m" because
git-grep emits "\033[1;31m" escape sequences unlike expected
"\033[01;31m" as GNU Grep does.
(grep-process-setup): Replace obsolete "ml=" with newer "sl=".

Fixes: debbugs:9408
2011-09-05 11:20:02 +03:00
Juri Linkov
045820ecd3 * lisp/subr.el (y-or-n-p): Capitalize "yes". 2011-09-05 11:05:01 +03:00
Lars Magne Ingebrigtsen
052bd38a56 Merge changes made in Gnus trunk.
gnus.el (gnus-home-directory): Add warning about setting in .gnus.el (bug#9405).
gnus-score.el (gnus-summary-increase-score): Doc clarification (bug#9421).
gnus-spec.el (gnus-face-0): Make all the face specs into defcustoms (bug#9425).
gnus-art.el (gnus-treatment-function-alist): Remove CRs as the first thing (bug#9426).
2011-09-04 22:17:09 +00:00
Michael Albinus
f5e29b9b70 * net/tramp.el (top): Require 'shell. Use `tramp-unload-hook' but
`tramp-cache-unload-hook' where appropriate.
(tramp-methods): Rename `tramp-remote-sh' to
`tramp-remote-shell'.  Add `tramp-remote-shell-args'.
(tramp-handle-shell-command): New defun, moved from tramp-sh.el.

* net/tramp-sh.el (top): Don't require 'shell.
(tramp-methods): Add `tramp-remote-shell' and
`tramp-remote-shell-args' entries.
(tramp-sh-file-name-handler-alist): Use `tramp-handle-shell-command'.
(tramp-sh-handle-shell-command): Remove.
(tramp-find-shell, tramp-open-connection-setup-interactive-shell):
Use `tramp-remote-shell'.
2011-09-04 20:14:34 +02:00
Lars Magne Ingebrigtsen
bc32008719 nnimap.el (nnimap-open-connection-1): Use the correct port number in the error message. 2011-09-03 22:51:26 +00:00
Chong Yidong
2784c43403 Make sendmail-query-once update send-mail-function directly.
* mail/sendmail.el (sendmail-query-once-function): Deleted.
(sendmail-query-once): Save directly to send-mail-function.
Update message-send-mail-function too.

* mail/smtpmail.el (smtpmail-try-auth-methods): Clarify prompt.
2011-09-03 16:24:12 -04:00
Christoph Scholtes
464cdf568e * progmodes/python.el (python-mode-map): Use correct function to
start python interpreter from menu-bar (as reported by Geert
Kloosterman).
(inferior-python-mode-map): Fix typo.
(python-shell-map): Removed.
2011-09-03 12:44:37 -06:00
Deniz Dogan
d37e5c8777 * lisp/net/rcirc.el (rcirc-print): Simplify code for rcirc-scroll-show-maximum-output. There is no need to walk through all windows to find the right one. 2011-09-03 19:40:08 +02:00
Christoph Scholtes
f3ada0eeb5 * help.el (help-return-method): Doc fix. 2011-09-03 11:16:57 -06:00
Martin Rudalics
1f3c99ca9f Don't delete frame when there's a previous buffer to show (Bug#9419).
* window.el (window-deletable-p): Don't return a non-nil value
when there's a buffer that was shown in the window before.
(Bug#9419)
(display-buffer-pop-up-frame, display-buffer-pop-up-window): Set
window's previous buffers to nil.
2011-09-03 12:55:37 +02:00
Eli Zaretskii
46c3b5e12b Doc fixes in sendmail.el. 2011-09-03 13:14:32 +03:00
Eli Zaretskii
767d420a92 Add mail-add-attachment command to sendmail.el. 2011-09-03 13:08:14 +03:00
Eli Zaretskii
fd59d131bb Fix rmail-forward. 2011-09-03 13:00:13 +03:00
Eli Zaretskii
a3cf097fd0 Fix display by Rmail of bidirectional text in MIME email messages.
lisp/mail/rmailmm.el (rmail-mime-insert-tagline): Insert an extra
 newline before and after the tag line, so it doesn't interfere
 with determining the paragraph direction of bidirectional text.
2011-09-03 11:44:16 +03:00
Leo Liu
3d03de90fb Remove unused variable find-file-not-true-dirname-list
See http://debbugs.gnu.org/9422.
2011-09-03 09:41:27 +08:00
Eli Zaretskii
9af32a1a25 lisp/gnus/message.el (message-setup-1): Return t (Bug#9392). 2011-09-02 20:57:45 +03:00
Chong Yidong
c33134511b Remove pop-to-buffer-same-window.
* lisp/window.el (pop-to-buffer-1, pop-to-buffer-same-window): Deleted.
(pop-to-buffer): Change interactive spec.  Pass second argument
directly to display-buffer.
(display-buffer): Fix interactive spec.  Use functionp to
distinguish between a function and a list of functions.

* lisp/abbrev.el (edit-abbrevs):
* lisp/arc-mode.el (archive-extract):
* lisp/autoinsert.el (auto-insert):
* lisp/bookmark.el (bookmark-bmenu-list):
* lisp/files.el (find-file):
* lisp/view.el (view-buffer):
* lisp/progmodes/compile.el (compilation-goto-locus):
* lisp/textmodes/bibtex.el (bibtex-initialize): Use switch-to-buffer.

* lisp/org/ob-ref.el (org-babel-ref-goto-headline-id):
* lisp/org/org.el (org-get-location, org-tree-to-indirect-buffer)
(org-mark-ring-goto, org-refile, org-add-log-note)
(org-revert-all-org-buffers, org-switchb)
(org-cycle-agenda-files, org-submit-bug-report)
(org-goto-marker-or-bmk):
* lisp/org/org-agenda.el (org-prepare-agenda, org-agenda-switch-to):
* lisp/org/org-capture.el (org-capture-goto-target)
(org-capture-fill-template):
* lisp/org/org-clock.el (org-clock-goto):
* lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file):
* lisp/org/org-exp.el (org-export-as-org):
* lisp/org/org-feed.el (org-feed-show-raw-feed):
* lisp/org/org-html.el (org-export-htmlize-generate-css):
* lisp/org/org-id.el (org-id-goto):
* lisp/org/org-irc.el (org-irc-visit-erc):
* lisp/org/org-mobile.el (org-mobile-apply):
* lisp/org/org-publish.el (org-publish-org-to, org-publish-find-date):
* lisp/org/org-remember.el (org-go-to-remember-target):
* lisp/org/org-src.el (org-src-switch-to-buffer)
(org-edit-fixed-width-region): Use switch-to-buffer.

* lisp/org/org-compat.el (org-pop-to-buffer-same-window): Deleted.
2011-09-02 12:38:40 -04:00
Thierry Volpiatto
81ec0c88f2 Add missing piece of earlier commit.
* lisp/vc/vc-rcs.el (vc-rcs-responsible-p): Handle directories.

Fixes: debbugs:9391
2011-09-02 00:54:34 -07:00
Chong Yidong
2a7bdc1a6f Minor doc fix for last change. 2011-09-01 22:38:56 -04:00
Chong Yidong
89894cd8be Split default-buffer-default into separate display action components.
* lisp/window.el (display-buffer-alist): Doc fix.
(display-buffer): Add docstring.  Don't treat display-buffer-default specially.
(display-buffer-reuse-selected-window)
(display-buffer-same-window, display-buffer-maybe-same-window)
(display-buffer-reuse-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-window)
(display-buffer-reuse-or-pop-window)
(display-buffer-use-some-window): New functions.
(display-buffer-default-action): Use them.
(display-buffer-default): Deleted.
(pop-to-buffer-1): Fix choice of actions.
2011-09-01 22:23:43 -04:00
Stefan Monnier
ae0bc9fbe5 * lisp/minibuffer.el (completion--insert-strings): Don't get confused by
completion entries that end with an LF char.
2011-09-01 20:36:58 -04:00