1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-02 11:21:42 +00:00
Commit Graph

53221 Commits

Author SHA1 Message Date
Teodor Zlatanov
ba3bd5b6c3 nus-registry.el (gnus-registry--split-fancy-with-parent-internal): Track by subject first, then sender. 2011-04-15 14:29:02 +00:00
Stefan Monnier
daca8ba5e3 Use completion-at-point for mailalias.el
* lisp/mail/mailalias.el: Use lexical-binding.
(pattern, mailalias-done): Declare dynamic.
(mail-completion-at-point-function): New function, from mail-complete.
(mail-complete): Use it.
(mail-completion-expand): New function.
(mail-get-names): Use it.
(mail-directory, mail-directory-process, mail-directory-stream):
Don't use `pattern' for lexically bound arg.
* lisp/mail/sendmail.el (mail-mode-map): Use completion-at-point.
(mail-mode): Setup mailalias completion here instead.
2011-04-15 10:50:04 -03:00
Stefan Monnier
6f5424852f * lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Use eval-sexp-add-defvars. 2011-04-15 09:57:53 -03:00
Stefan Monnier
70f6144dbd * lisp/gnus/gnus-draft.el (gnus-draft-setup): New arg `dont-pop'.
(gnus-draft-send): Use it to avoid popping
up frames from gnus-group-send-queue.
* lisp/gnus/gnus.el (gnus-splash-svg-color-symbols): Don't use insert-file
from Lisp.
* lisp/gnus/message.el (message-bogus-system-names): Replace ^...$ => \`...\'.
2011-04-15 09:42:51 -03:00
Stefan Monnier
037e7c3fd0 * lisp/htmlfontify.el (hfy-etags-cmd): Remove inoperant eval-and-compile.
(hfy-e2x-etags-cmd, hfy-etags-cmd-alist-default)
(hfy-etags-cmd-alist): Don't eval-and-compile any more.
2011-04-15 09:35:32 -03:00
Stefan Monnier
8b05752a45 * lisp/emacs-lisp/bytecomp.el (byte-temp-output-buffer-show)
(byte-save-window-excursion, byte-temp-output-buffer-setup)
(byte-interactive-p): Define them again, for use when inlining old code.
2011-04-15 09:30:15 -03:00
Juanma Barranquero
49093f601b lisp/loadup.el: Use string-to-number', not string-to-int'. 2011-04-15 05:15:22 +02:00
Stefan Monnier
b5b8e7de51 * lisp/progmodes/gud.el (gud-gdb): Use completion-at-point instead of
gud-gdb-complete-command.
(gud-gdb-completions): New function, from gud-gdb-complete-command.
(gud-gdb-completion-at-point): New function.
(gud-gdb-completions): Remove.
2011-04-14 22:44:00 -03:00
Michael Albinus
f42efeb543 * net/tramp-sh.el (tramp-sh-handle-file-attributes): Handle the
case when the scripts fail.  Use `tramp-do-file-attributes-with-ls'
then.
(tramp-do-copy-or-rename-file-out-of-band): Do not check any
longer, whether`executable-find' is bound.

* net/tramp-smb.el (tramp-smb-handle-copy-file): Fix docstring.
2011-04-14 20:58:45 +02:00
Teodor Zlatanov
c3c65d735b gnus.texi (nnmairix caveats, Setup, Registry Article Refer Method)
(Fancy splitting to parent, Store arbitrary data): Updated gnus-registry docs.
gnus-registry.el: Updated gnus-registry docs.
2011-04-14 10:41:00 +00:00
Stefan Monnier
e240cc2188 * lisp/minibuffer.el (completion-in-region-mode-predicate)
(completion-in-region-mode--predicate): New vars.
(completion-in-region, completion-in-region--postch)
(completion-in-region-mode): Use them.
(completion--capf-wrapper): Also return the hook function.
(completion-at-point, completion-help-at-point):
Adjust and provide a predicate.
2011-04-13 21:16:11 -03:00
Stefan Monnier
c2bd2ab028 Preserve arg names for advice of subr and lexical functions.
* lisp/help-fns.el (help-function-arglist): Consolidate the subr and
new-byte-code cases.  Add argument `preserve-names' to extract names
from the docstring when needed.
* lisp/emacs-lisp/advice.el (ad-define-subr-args, ad-undefine-subr-args)
(ad-subr-args-defined-p, ad-get-subr-args, ad-subr-arglist): Remove.
(ad-arglist): Use help-function-arglist's new arg.
(ad-definition-type): Use cond.

Fixes: debbugs:8457
2011-04-13 14:56:47 -03:00
Juanma Barranquero
06641a4768 lisp/autorevert.el: Use `remote-file-name-inhibit-cache'.
* autorevert.el (auto-revert-handler):
  Bind `remote-file-name-inhibit-cache', not `tramp-cache-inhibit-cache',
  which was removed in 2010-10-02T13:21:43Z!michael.albinus@gmx.de.
  Don't quote lambda.
2011-04-13 16:27:41 +02:00
Juanma Barranquero
c183f69313 lisp/image-mode.el: Fix change in 2011-04-09T20:28:01Z!cyd@stupidchicken.com. 2011-04-13 04:16:42 +02:00
Gnus developers
1e3b60017a Merge changes made in Gnus trunk.
gnus.texi (Window Layout): @itemize @code doesn't exist.  It's @table @code.
gnus-registry.el (gnus-registry--split-fancy-with-parent-internal): Fix logic bug.
 (gnus-registry-post-process-groups): Fix logging of no results and quote sender and subject.
network-stream.el (network-stream-open-starttls): Only do opportunistic STARTTLS upgrades if we have built-in gnutls support.  Upgrades via gnutls-cli are too slow to be done opportunistically.
gnus-start.el (gnus-get-unread-articles): Slight cleanup.
 (gnus-read-active-for-groups): Don't try to finish getting stuff where we had no early-data returned.
 (gnus-get-unread-articles): Add a sanity check so that we don't issue two async commands to the same server at the same time.
gnus-sum.el (gnus-summary-select-article-buffer): Doc fix.
gnus-registry.el (gnus-registry-remake-db): Put the warning on a "warning" level.
2011-04-12 22:18:02 +00:00
Juanma Barranquero
2d6af8ddfe lisp/dframe.el (dframe-current-frame): Remove spurious quote. 2011-04-12 17:39:44 +02:00
Lars Magne Ingebrigtsen
bf0ed58aa4 mm-url.el (mm-url-package-name): Removed to ease third-party reuse.
(mm-url-insert-file-contents): Don't set the package names.
2011-04-12 14:16:41 +00:00
Juanma Barranquero
099c39a447 lisp/ChangeLog: Fix date of entry. 2011-04-12 15:14:44 +02:00
Glenn Morris
088d0d61c3 Small cal-tex fix.
* lisp/calendar/cal-tex.el (cal-tex-end-document):
Try to automatically use latin1 input if needed.
2011-04-12 00:03:52 -07:00
Glenn Morris
c0749a5133 cal-hebrew fix for diary-hebrew-rosh-hodesh.
* lisp/calendar/cal-hebrew.el (diary-hebrew-rosh-hodesh):
Don't try to cons a mark onto an empty element.

Recipe showing the problem:
~/diary:
&%%(diary-rosh-hodesh)
&%%(diary-parasha)

emacs -Q --eval "(progn (add-hook 'diary-nongregorian-listing-hook
   'diary-hebrew-list-entries) (setq cal-tex-diary t))" -f calendar

Move to Jan 2011, press `t m', latex the generated file.

[Port to 23.4]
2011-04-11 21:02:38 -07:00
Teodor Zlatanov
d515dc24ca gnus-registry.el (gnus-registry-action): Remove properties and simplify subject in `gnus-registry-handle-action'.
(gnus-registry-spool-action): Get subject and sender from message if they are not passed in.
 (gnus-registry-handle-action): Remove properties and simplify subject consistently.
2011-04-11 22:17:30 +00:00
Leo Liu
5c90fde028 Enable ido to kill virtual buffers 2011-04-11 11:44:54 +08:00
Stefan Monnier
f8fc0578a8 * lisp/gnus/registry.el: Require CL before using defmacro*. 2011-04-10 22:18:19 -03:00
Katsumi Yamaoka
f8342cf544 gnus-art.el (article-treat-date): Assume that gnus-article-date-headers may be a group parameter. 2011-04-11 00:28:41 +00:00
Chong Yidong
369e974dc0 Fix bad interaction between icomplete and completion inline help (Bug#5849).
* lisp/minibuffer.el (completion-show-inline-help): New var.
(completion--do-completion, minibuffer-complete)
(minibuffer-force-complete, minibuffer-complete-word): Inhibit
minibuffer messages if completion-show-inline-help is nil.

* lisp/icomplete.el (icomplete-mode): Bind completion-show-inline-help
to avoid interference from inline help.
2011-04-10 17:31:14 -04:00
Leo Liu
37f1c9309e Fix typo in tabulated-list-print-entry 2011-04-10 22:21:26 +08:00
Chong Yidong
a32d40405d Cleanups to the ImageMagick code and docstrings.
* lisp/image-mode.el (image-toggle-display-image): Signal an error if
not in Image mode.
(image-transform-mode, image-transform-resize)
(image-transform-set-rotation): Doc fix.
(image-transform-set-resize): Deleted.
(image-transform-set-scale, image-transform-fit-to-height)
(image-transform-fit-to-width): Handle image-toggle-display-image
and image-transform-resize directly.

* src/image.c (Fimagemagick_types): Doc fix, and comment cleanup.
2011-04-09 16:28:01 -04:00
Glenn Morris
8546720e6f Merge from emacs-23; up to 2010-06-08T03:06:47Z!dann@ics.uci.edu. 2011-04-09 10:40:29 -07:00
Glenn Morris
140745c368 Mark tiny change. 2011-04-09 10:37:33 -07:00
Eli Zaretskii
04f33f1ed9 Produce more accurate results from file-size-human-readable.
lisp/files.el (file-size-human-readable): Produce one digit after
 decimal, like "ls -lh" does.
 lisp/ls-lisp.el (ls-lisp-format-file-size): Allow for 7 characters in
 the file size representation.
2011-04-09 09:59:26 +03:00
Tassilo Horn
d7b898799f Fit contents to emacs window support for doc-view by Sho Nakatani.
2011-03-28  Sho Nakatani <lay.sakura <at> gmail.com>

	* doc-view.el (doc-view-fit-width-to-window)
	(doc-view-fit-height-to-window, doc-view-fit-page-to-window): New
	functions for fitting the shown image to the Emacs window size.
	(doc-view-mode-map): Add bindings for the new functions.
2011-04-08 22:09:19 +02:00
Chong Yidong
6b8bc57071 Merge changes from emacs-23 branch 2011-04-08 14:53:26 -04:00
Eli Zaretskii
3726838a9c Bail out from list-processes if async subprocesses aren't available.
lisp/simple.el (list-processes): If async subprocesses are not
 available, error out with a clear error message.
2011-04-08 20:08:17 +03:00
Chong Yidong
cbb5934231 Remove internal_with_output_to_temp_buffer, replacing sole user with Lisp.
* lisp/help.el (help-form-show): New function, to be called from C.
Put help-form output in a buffer named differently than *Help*.

* src/keyboard.c (read_char): Call Lisp function help-form-show,
instead of using internal_with_output_to_temp_buffer.
(Qhelp_form_show): New var.

* src/lisp.h (internal_with_output_to_temp_buffer): Remove prototype.

* src/print.c (internal_with_output_to_temp_buffer): Function deleted.
2011-04-08 11:37:15 -04:00
Eli Zaretskii
e3971c4440 New function file-size-human-readable.
lisp/files.el (file-size-human-readable): New function.
 lisp/ls-lisp.el (ls-lisp-format-file-size): Use it, instead of
 computing the representation inline.  Don't require `cl'.
2011-04-08 18:31:33 +03:00
Glenn Morris
a1de6c6a05 * lisp/man.el (Man-page-header-regexp): Solaris < 2.6 no longer supported. 2011-04-07 20:30:26 -07:00
Glenn Morris
3c4671f409 browse-url.el trivia.
* lisp/net/browse-url.el (browse-url-firefox):
Test system-type, not system-configuration.
2011-04-07 20:26:40 -07:00
Glenn Morris
b605679c8e log-edit.el fix for bug#7598.
* lisp/vc/log-edit.el (log-edit-empty-buffer-p): New function.
(log-edit-insert-cvs-template, log-edit-insert-cvs-rcstemplate):
Use log-edit-empty-buffer-p.
2011-04-07 20:21:30 -07:00
Glenn Morris
56442f0c3d rlogin.el trivia.
* lisp/net/rlogin.el (rlogin-process-connection-type): Simplify.
(rlogin-mode-map): Initialize in the defvar.
(rlogin): Use ignore-errors.
2011-04-07 20:11:31 -07:00
Glenn Morris
12544bbe75 * lisp/replace.el (occur-mode-map): Some fixes for menu items. 2011-04-07 20:05:58 -07:00
Juanma Barranquero
135377f157 Fix typos in comments. 2011-04-08 01:59:27 +02:00
Gnus developers
4523dc7f80 gnus-registry.el (gnus-registry-handle-action): More debugging.
gnus-start.el (gnus-gnus-to-newsrc-format): Add a way to run interactively so the newsrc file can contain foreign groups too.  Useful for debugging but not much for users.
registry.el (registry-usage-test): Only do `registry-lookup-breaks-before-lexbind' testing for Emacs24 with lexical binding.
2011-04-07 22:48:21 +00:00
Aaron S. Hawley
eb237b0f7f * lisp/play/morse.el (denato-region): Handle varying case.
Fixes: debbugs:8386
2011-04-06 20:27:15 -07:00
Gnus developers
2237da9c04 Merge changes made in Gnus trunk.
registry.el, gnus-registry.el: Use `ignore-errors' instead of third argument NOERROR for `require', since XEmacs 21.4 does not support it.
registry.el (initialize-instance): Change :after to :AFTER to be compatible with old EIEIO version in XEmacs.
gnus-registry.el (gnus-registry-post-process-groups)
 (gnus-registry--split-fancy-with-parent-internal): Fix splitting bugs and provide better messaging.
gnus-registry.el: Load ERT unconditionally anyway, discarding errors.
registry.el: Load ERT unconditionally anyway, discarding errors.
2011-04-06 22:08:31 +00:00
Chong Yidong
e67a13abd8 Remove list-processes C function; misc fixes to last change.
* src/process.c (Flist_processes): Removed to Lisp.
(list_processes_1): Deleted.

* lisp/emacs-lisp/cconv.el (cconv--analyse-use): Ignore "ignored" when
issuing unused warnings.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Use lambda
macro directly.
2011-04-06 17:55:08 -04:00
Chong Yidong
7d668f2c18 Reimplement list-processes in Lisp.
* lisp/simple.el: Lisp reimplement of list-processes.  Based on an
earlier reimplementation by Leo Liu, but using tabulated-list.el.
(process-menu-mode): New major mode.
(list-processes--refresh, list-processes):
(process-menu-visit-buffer): New functions.

* lisp/files.el (save-buffers-kill-emacs): Don't assume any return
value of list-processes, which is undocumented anyway.
2011-04-06 17:13:17 -04:00
Chong Yidong
e91a96fefd Make Package Menu a child of Tabulated List mode.
* emacs-lisp/package.el: Use Tabulated List mode.
(package-menu-mode-map): Inherit from tabulated-list-mode-map.
(package-menu-mode): Derive from tabulated-list-mode.  Set up the
table format using Tabulated List mode variables.
(package--push): New macro, replacing package-list-maybe-add.
(package-menu--generate): Use package--push.  Renamed from
package--generate-package-list.
(package-menu-refresh, list-packages): Use it.
(package-menu--print-info): Renamed from package-print-package.
Return insertion data instead of inserting it directly.
(package-menu-describe-package, package-menu-execute): Use
tabulated-list-get-id.
(package-menu-mark-delete, package-menu-mark-install)
(package-menu-mark-unmark, package-menu-backup-unmark)
(package-menu-mark-obsolete-for-deletion): Use
tabulated-list-put-tag.
(package--list-packages, package-menu-revert)
(package-menu-get-package, package-menu-get-version)
(package-menu-sort-by-column): Functions deleted.
(package-menu-package-list, package-menu-sort-key): Vars deleted.
(package-menu--status-predicate, package-menu--version-predicate)
(package-menu--name-predicate)
(package-menu--description-predicate): Handle arguments in the
Tabulated List format.
(package-list-packages-no-fetch): Call list-packages.
2011-04-06 16:33:30 -04:00
Chong Yidong
a83ec3c99a * lisp/emacs-lisp/tabulated-list.el: New file. 2011-04-06 16:10:51 -04:00
Juanma Barranquero
3e214b503e New variable `revert-buffer-in-progress-p'.
* lisp/files.el (after-find-file-from-revert-buffer): Remove variable.
  (after-find-file): Dont' bind it.
  (revert-buffer-in-progress-p): New variable.
  (revert-buffer): Bind it.
  Pass nil for `after-find-file-from-revert-buffer'.

* lisp/saveplace.el (save-place-find-file-hook): Use new variable
  `rever-buffer-in-progress-p', not `after-find-file-from-revert-buffer'.

* etc/NEWS: New variable `revert-buffer-in-progress-p'.
2011-04-06 21:38:46 +02:00
Teodor Zlatanov
42b237655f gnus-registry.el: Don't use ERT if it's not available.
(gnus-registry-delete-entries): New convenience function.
 (gnus-registry-import-eld): Import from old .eld registry.
registry.el: Don't use ERT if it's not available.
proto-stream.el (gnutls-negotiate): Revert inadvertent commit of the version from the Claudio Bley GnuTLS patch (extra optional parametersnand host name).
2011-04-06 12:55:49 +00:00