Commit graph

54516 commits

Author SHA1 Message Date
Martin Rudalics
cf4eacfdca Rewrite code quitting windows and restoring the previous buffer.
* window.el (set-window-buffer-start-and-point): Call
set-window-start with NOFORCE argument t.  Suggested by Thierry
Volpiatto <thierry.volpiatto@gmail.com>.
(quit-window): Reword doc-string.  Handle new format of
quit-restore parameter.  Don't delete window if it has a
previous buffer we can show instead of the present one.
(display-buffer-record-window): Rewrite using a new format for
the quit-restore window parameter
(special-display-popup-frame, display-buffer-same-window)
(display-buffer-reuse-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-window, display-buffer-use-some-window):
Adapt symbol passed to display-buffer-record-window.
* help.el (help-window-setup): Handle new format of quit-restore
parameter.
2011-09-21 10:20:21 +02:00
Katsumi Yamaoka
44cb0cc967 mm-view.el (mm-display-inline-fontify): Don't run doc-view-mode because it displays images using overlays that aren't easy to copy to the article buffer. 2011-09-21 02:13:03 +00:00
Stefan Monnier
94ab793f89 * lisp/faces.el (face-list): Fix docstring.
Fixes: debbugs:9564
2011-09-20 21:31:53 -04:00
Stefan Monnier
8d28cb95b9 * lisp/window.el (display-buffer--action-function-custom-type):
Don't include internal functions in the Custom interface.
2011-09-20 21:30:35 -04:00
Gnus developers
5c7f66a032 Merge changes made in Gnus trunk.
message.el (message-indent-citation): Fix empty line removal at the end of the citation.
auth-source.el (auth-source-netrc-create): Use default value for password if specified. Evaluate default.
 (auth-source-plstore-create): Ditto.
 (auth-source-plstore-create, auth-source-netrc-create): Fix default value evaluation.
 (auth-source-netrc-create): Typo fix.
 (auth-source-plstore-create): Ditto.
2011-09-20 22:14:36 +00:00
Juri Linkov
3820edebb4 * lisp/info.el (Info-history-skip-intermediate-nodes): New defcustom.
(Info-forward-node, Info-backward-node, Info-next-preorder)
(Info-last-preorder): Use it.

Fixes: debbugs:9528
2011-09-20 23:16:42 +03:00
Juri Linkov
5147931d62 * lisp/info.el (Info-last-preorder): Visit last menu item only when
`Info-scroll-prefer-subnodes' is non-nil (third test-case of bug#9528).
2011-09-20 19:28:07 +03:00
Julien Danjou
cf499a1a42 password-cache.el (password-cache-remove): Remove entries even if the value is nil, so that password with a nil value (negative caching) is possible to invalidate.
auth-source.el (auth-source-format-cache-entry): New function.
2011-09-20 14:08:04 +00:00
Glenn Morris
e4bd058419 Auto-commit of loaddefs files. 2011-09-20 06:18:55 -04:00
Glenn Morris
9d4433a211 Tweak previous f90.el change. 2011-09-19 23:36:45 -07:00
Bill Wohler
f5954cd7f9 * mh-e.el (Version, mh-version): Update for release 8.3. 2011-09-19 21:56:51 -07:00
Bill Wohler
de77dfbd8c * mh-show.el (mh-unvisit-file): Clarify language in yes-or-no-p and
error messages.
2011-09-19 21:56:09 -07:00
Lawrence Mitchell
f84e2fe26c Fixes for f90.el filling in comments (bug#9553)
* lisp/progmodes/f90.el (f90-break-line): If breaking inside comment delete
all whitespace around breakpoint.
(f90-find-breakpoint): Only break at whitespace inside a comment.
2011-09-19 21:12:05 -07:00
Stefan Monnier
78054a469d * lisp/minibuffer.el (completion-file-name-table): Keep track of errors.
(completion-table-with-predicate): Handle the case where pred1 is nil.
* lisp/pcomplete.el (pcomplete-completions-at-point): Simplify.

Fixes: debbugs:9160
2011-09-19 21:06:29 -04:00
Katsumi Yamaoka
207c12ef2a gnus-fun.el (gnus-convert-image-to-x-face-command): Doc fix. 2011-09-20 00:21:58 +00:00
Gnus developers
a3ddc4d9c6 Merge changes made in Gnus trunk.
mm-decode.el (mm-inline-media-tests): Fix typo in regexp.
auth-source.el (auth-source-netrc-parse): Use an obfuscation method which work with things that are not ASCII.
2011-09-19 22:06:57 +00:00
Stefan Monnier
e24e27be18 * lisp/emacs-lisp/debug.el (debugger-args): Give it a docstring.
(debugger-return-value): Signal an error if the debugging context does
not await any return value.
2011-09-19 17:14:23 -04:00
Stefan Monnier
345083b2cb * lisp/ps-mule.el (ps-mule-plot-string): Don't inf-loop.
* lisp/image-mode.el (image-toggle-display-text)
(image-toggle-display-image): Stay away from evil `intangible'.

Fixes: debbugs:5108
2011-09-19 15:27:30 -04:00
Leo Liu
08d355e3eb Fixes for Occur Edit mode.
* replace.el (occur-revert-arguments): Make it permanent-local.
(occur-mode): Don't call font-lock-defontify.
2011-09-19 14:57:55 -04:00
Chong Yidong
f01da43fd2 Add missing ChangeLog entry for ldap.el change in 2011-09-17T21:28:17Z!cyd@stupidchicken.com. 2011-09-19 14:45:55 -04:00
Stefan Monnier
b6072fa6a4 * lisp/whitespace.el (whitespace-newline-mode): Disable it right.
Fixes: debbugs:9550
2011-09-19 14:06:14 -04:00
Stefan Monnier
85cb5d5706 org/org.el: Add FIXMEs for odd chunks of code 2011-09-19 12:48:36 -04:00
Michael Albinus
443d66962e * net/tramp-sh.el (tramp-inline-compress-commands): Add "xz".
Suggested by Liam Stitt <stittl@cuug.ab.ca>.
2011-09-19 08:53:45 +02:00
Juri Linkov
7cc6e15441 Capitalize non-function content words in menu item strings.
* lisp/buff-menu.el (Buffer-menu-mode-map):
* lisp/dired.el (dired-mode-map):
* lisp/emacs-lisp/lisp-mode.el (emacs-lisp-mode-map)
(lisp-interaction-mode-map):
* lisp/emacs-lisp/package.el (package-menu-mode-map):
* lisp/epa.el (epa-key-list-mode-map):
* lisp/menu-bar.el (menu-bar-showhide-tool-bar-menu)
(menu-bar-options-menu):
* lisp/outline.el (outline-mode-menu-bar-map):
* lisp/vc/vc-bzr.el (vc-bzr-shelve-menu-map, vc-bzr-extra-menu-map):
* lisp/vc/vc-dir.el (vc-dir-menu-map):
* lisp/vc/vc-git.el (vc-git-stash-menu-map, vc-git-extra-menu-map):
Capitalize non-function content words in menu item strings.

* lisp/dired.el (dired-mode-map): Add menu item for
`image-dired-dired-toggle-marked-thumbs'.
2011-09-18 23:43:20 +03:00
Juri Linkov
80302a817e Preserve current isearch case-fold value in `isearch-edit-string'.
* lisp/isearch.el (isearch-edit-string): Bind `isearch-new-case-fold'
to `isearch-case-fold-search' and restore its original value
after the `isearch-mode' call.
2011-09-18 23:28:45 +03:00
Juri Linkov
46c5cf6650 * lisp/progmodes/grep.el (grep-process-setup): Don't check code for 1
because `zgrep' returns 1 for successful matches.

Fixes: debbugs:9226
2011-09-18 23:20:08 +03:00
Juri Linkov
d18b513ba7 * lisp/info.el (Info-extract-menu-node-name): Check the second match
for empty string (second test-case of bug#9528).
(Info-last-preorder): Let-bind `Info-history' to nil to not add
intermediate nodes to the history (first test-case of bug#9528).
2011-09-18 23:14:16 +03:00
Juri Linkov
72753f87ca * lisp/info.el (Info-mode-syntax-table): New variable.
(Info-mode): Set `:syntax-table' to `Info-mode-syntax-table'.

Fixes: debbugs:3312
2011-09-18 22:56:12 +03:00
Juri Linkov
c9384295aa * lisp/info.el (Info-file-supports-index-cookies): Increment
line-beginning-position's arg from 3 to 4 because makeinfo outputs
one more line for long file names.

Fixes: debbugs:4142
2011-09-18 22:49:13 +03:00
Chong Yidong
d473dce830 Fix for uncommentin in Fundamental mode.
* newcomment.el (comment-normalize-vars): If prompting for
comment-start, set comment-start-skip too.

Fixes: debbugs:8424
2011-09-18 14:10:01 -04:00
Johan Bockgård
2176854d0f Fix previous fix of Bug#5849.
* icomplete.el (icomplete-mode): Don't set completion-show-inline-help.
(icomplete-minibuffer-setup): Set completion-show-inline-help
locally during icompletion.
2011-09-18 12:13:01 -04:00
Chong Yidong
c940224fe6 Fix yet another woman parser snafu.
* woman.el (woman2-process-escapes): Don't delete unrecognized
escapes (Bug#7843).
2011-09-18 12:03:48 -04:00
Chong Yidong
3aace4e4b3 Allow visiting files with malformed prop-lines.
* files.el (inhibit-first-line-modes-regexps): Add image files.
(hack-local-variables-prop-line): Return nil for malformed prop-lines.

Fixes: debbugs:9044
2011-09-18 11:30:10 -04:00
Michael Albinus
710dec6300 * net/tramp.el (top): Don't require 'shell.
(tramp-methods): Fix docstring.
(tramp-get-remote-tmpdir): New defun, moved from tramp-sh.el.
Return complete remote file name.  Handle "smb" case.  Use
`tramp-tmpdir', if defined for the respective method.
(tramp-make-tramp-temp-file): Adapt call of `tramp-get-remote-tmpdir'.

* net/tramp-compat.el (top): Require 'shell.

* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection): Use `tramp-file-name-real-host' for
`tramp-current-host'.
(tramp-get-remote-tmpdir): Remove.

* net/tramp-smb.el (tramp-methods): Add `tramp-remote-shell' and
`tramp-tmpdir' entries.
(tramp-smb-errors): Add "NT_STATUS_IMAGE_ALREADY_LOADED".
(tramp-smb-handle-file-attributes): Ignore errors.
(tramp-smb-wait-for-output): Check also for process end.
2011-09-18 13:26:15 +02:00
Lars Magne Ingebrigtsen
5d5ac8ec03 (smtpmail-via-smtp): Ignore errors that arise when sending QUIT.
Fixes: debbugs:9312
2011-09-18 09:36:20 +02:00
Chong Yidong
8c0f49f09c * lisp/replace.el (occur-mode-map): Rebind occur-edit-mode to "e".
(occur-edit-mode-map): Bind C-c C-c to occur-cease-edit and C-o to
occur-mode-display-occurrence.
(occur-edit-mode): Add usage message.
(occur-cease-edit): New command.
(occur-after-change-function): Use text properties to find the
position of the prefix text.
(occur-engine): Set stickiness of prefix text properties.

Fixes: debbugs:8463
2011-09-17 17:28:17 -04:00
Glenn Morris
8f1383f708 complete-tag fix for bug#9526
* lisp/progmodes/etags.el (complete-tag):
Fix call to completion-in-region. (cf info-complete).
2011-09-17 12:05:52 -07:00
Juanma Barranquero
8d5ed89901 Fix typos. 2011-09-17 14:19:04 +02:00
Juri Linkov
744ba0e3ee * lisp/textmodes/ispell.el (ispell-word): Add to the error message
the word, ispell program name and current dictionary.
(ispell-tex-arg-end): Capitalize "error" in the error message.

Fixes: debbugs:9121
2011-09-17 15:07:50 +03:00
Lars Magne Ingebrigtsen
d1fbe1c393 mm-decode.el (mm-inline-media-tests): Support imagemagick images. 2011-09-17 12:02:10 +00:00
Andreas Schwab
d9bbf40098 * lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode): Fix overflow
check.  (Bug#4251)
2011-09-17 11:29:01 +02:00
Lars Magne Ingebrigtsen
540e44dbc8 Indent. 2011-09-17 06:53:25 +02:00
Juri Linkov
8da11505d3 lisp/window.el (window-safe-min-height, window-safe-min-width): Fix typos.
Fixes: debbugs:9522
2011-09-17 02:46:59 +02:00
Sven Joachim
a91adc7e1f lisp/window.el (window-min-width, window-state-put): Fix typos (bug#9522). 2011-09-17 02:42:13 +02:00
Eli Zaretskii
064f328a6a Fix bug #971 with next/previous-line when goal-column is set.
lisp/simple.el (line-move): If goal-column is set, move by logical
 lines, not by display lines.
 (next-line, previous-line, goal-column, line-move-visual): Doc fix
 to reflect the above change.
2011-09-16 20:15:16 +03:00
Stefan Monnier
e69df51669 * lisp/image.el (imagemagick-register-types): Use regexp-opt. 2011-09-16 09:46:42 -04:00
Chong Yidong
cbb0f9ab98 Make the user customizable display-buffer variable empty by default.
* lisp/window.el (display-buffer-base-action): Rename from
display-buffer-default-action.  Make default value empty.
(display-buffer-overriding-action): Convert to defvar.
(display-buffer-fallback-action): New var.
2011-09-15 11:12:15 -04:00
Lars Magne Ingebrigtsen
7985478fe5 gnus-sum.el (gnus-summary-read-group-1): Bump the "Retrieving" message level. 2011-09-15 05:46:40 +00:00
Chong Yidong
d770725a3d Add package-menu-mark-upgrades to the Package Menu menu bar map. 2011-09-14 22:05:17 -04:00
Chong Yidong
25322144fc Add an "mark upgradable packages" command to Package Menu mode.
* lisp/emacs-lisp/package.el (package-alist): Fix risky-local-variable
declaration.
(package--add-to-archive-contents): If there is a duplicate entry
with an older version, remove it.
(package-menu-mark-delete, package-menu-mark-install)
(package-menu-mark-unmark): Make unused args optional.
(package-menu-mark-obsolete-for-deletion): Use
package-menu-get-status instead of a regexp search.
(package-menu-get-status): Use tabulated-list-entry.
(package-menu-mark-upgrades): New command.
(package-menu-mode-map): Bind it to U.
(package-menu-execute): Do installation before deletion.
(package-menu-refresh, package-menu-execute): Use derived-mode-p
instead of checking major-mode.
(package-menu--find-upgrades): New function.
2011-09-14 21:57:54 -04:00