1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

57670 Commits

Author SHA1 Message Date
Glenn Morris
13a40633cf Default to mboxrd in Rmail, allow mboxo as an option
* lisp/mail/unrmail.el (unrmail-mbox-format): New option. 
(batch-unrmail, unrmail): Doc fixes.
(unrmail): Respect unrmail-mbox-format.
* lisp/mail/rmail.el (rmail-mbox-format): New option.
(rmail-show-message-1): Respect rmail-mbox-format.

* etc/NEWS: Related edits.

Fixes: debbugs:6574
2012-12-06 20:37:14 -08:00
Stefan Monnier
4611a3cce7 * lisp/emacs-lisp/cl-macs.el (cl-tagbody): New macro. 2012-12-06 22:56:57 -05:00
Paul Eggert
f24f2e22aa Spelling fixes. 2012-12-06 18:37:20 -08:00
Stefan Monnier
338bfefacb Further cleanup of the "cl-" namespace. Fit CL in 80 columns.
* lisp/emacs-lisp/cl-macs.el (cl--pop2, cl--optimize-safety)
(cl--optimize-speed, cl--not-toplevel, cl--parse-loop-clause)
(cl--expand-do-loop, cl--proclaim-history, cl--declare-stack)
(cl--do-proclaim, cl--proclaims-deferred): Rename from the "cl-" prefix.
(cl-progv): Don't rely on dynamic scoping to find the body.
* lisp/emacs-lisp/cl-lib.el (cl--optimize-speed, cl--optimize-safety)
(cl--proclaims-deferred): Rename from the "cl-" prefix.
(cl-declaim): Use backquotes.
* lisp/emacs-lisp/cl-extra.el (cl-make-random-state, cl-random-state-p):
Use "cl--" prefix for the object's tag.
2012-12-06 16:29:29 -05:00
Stefan Monnier
1812c7246e * lisp/ses.el: Use advice-add/remove.
(ses--advice-copy-region-as-kill, ses--advice-yank): New functions.
(copy-region-as-kill, yank): Use advice-add.
(ses-unload-function): Use advice-remove.
2012-12-06 15:16:38 -05:00
Jonas Bernoulli
24fc948039 * lisp/button.el: Make them work in header-lines.
(button-map): Add bindings for header-line and mode-line use.
(button-get, button-put, button-label): `button' may now be a string.
(button-activate): Don't make it a defsubst.
(button--area-button-p, button--area-button-string): New functions.
(make-text-button): Fix the return value when `beg' was a string.
(push-button): Handle the mode-line case.

Fixes: debbugs:12817
2012-12-06 15:10:36 -05:00
Sam Steingold
5b4d7e523f * lisp/gnus/gnus-start.el (gnus-before-resume-hook): Add.
(gnus-1): Run it when Gnus is alive.
2012-12-06 13:30:38 -05:00
Stefan Monnier
93852cb0cf * lisp/progmodes/sql.el: Use cl-lib and lexical-binding; various cleanup.
(sql-signum): Remove.  Use `cl-signum' instead.
(sql-read-passwd): Remove; use read-passwd instread.
(sql-get-login-ext): Use read-string.
(sql-get-login): Use dolist and pcase.
(sql--completion-table): Rename from sql-try-completion.
Use complete-with-action.
(sql-mode): Don't change abbrev-all-caps globally.
(sql-connect): Don't rely on dynamic scoping for `new-name'.
(sql-postgres-completion-object): Initialize vars in their `let'.
(sql-comint-sybase, sql-comint-sqlite, sql-comint-mysql)
(sql-comint-solid, sql-comint-ms, sql-comint-postgres)
(sql-comint-interbase): Use a single append, without setq.
(sql-comint-linter): Same, and unwind-protect the LINTER_MBX var.
2012-12-06 12:29:30 -05:00
Stefan Monnier
853c1ffc03 * lisp/hi-lock.el: Rework the default face and the serialize regexp code.
(hi-lock--auto-select-face-defaults): Remove.
(hi-lock-string-serialize-serial): Remove.
(hi-lock--hashcons-hash): Rename from hi-lock-string-serialize-hash;
make weak.
(hi-lock--hashcons): Rename from hi-lock-string-serialize, return an
equal string.
(hi-lock-set-pattern): Adjust accordingly.
(hi-lock--regexps-at-point): Simplify accordingly.
(hi-lock--auto-select-face-defaults): Remove.
(hi-lock--last-face): New var to replace it.
(hi-lock-read-face-name): Rewrite.
(hi-lock-unface-buffer): Arrange for the face to be the next default.

Fixes: debbugs:11095
2012-12-06 11:17:11 -05:00
Glenn Morris
347966bf30 Auto-commit of loaddefs files. 2012-12-06 06:21:08 -05:00
Michael Albinus
5504e2c7ec * net/tramp.el (tramp-replace-environment-variables): Hide
compiler warning.
(tramp-file-name-for-operation): Remove `executable-find',
`start-process', `call-process' and `call-process-region'.

* net/tramp-compat.el (top): Don't require 'tramp-util and 'tramp-vc.

* net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Ensure backward
compatibility.

* net/tramp-sh.el (top): Remove `tramp-sh-handle-call-process-region'.
2012-12-06 10:15:27 +01:00
Glenn Morris
7fc5e83f7f Convert consecutive copyright years to range 2012-12-05 23:33:20 -08:00
Glenn Morris
d8ad4d3ff9 Merge from emacs-24; up to 2012-11-24T16:58:43Z!cyd@gnu.org 2012-12-05 22:17:10 -08:00
Katsumi Yamaoka
b7f3003fdd spam.el: Fix last change 2012-12-06 04:37:54 +00:00
Katsumi Yamaoka
da9462398a gmm-utils.el (gmm-called-interactively-p): Restore as a macro.
gnus-art.el (article-unsplit-urls)
gnus-bookmark.el (gnus-bookmark-bmenu-list)
gnus-registry.el (gnus-registry-get-article-marks)
message.el (message-goto-body): Use it.
  (message-called-interactively-p): Remove.

spam-stat.el (spam-stat-called-interactively-p): New macro.
  (spam-stat-score-buffer): Use it.

spam.el: Silence the warnings against BBDB functions when compiling.

gnus-score.el (gnus-score-decode-text-parts):
  Use append+mapcar instead of the cl function mapcan.
2012-12-06 04:28:00 +00:00
Katsumi Yamaoka
9ad948e2fd Avoid letf macro use from Gnus
gnus/gmm-utils.el (gmm-flet): Remove.
gnus/gnus-sync.el (gnus-sync-lesync-call): Avoid overriding json-alist-p.
gnus/message.el (message-read-from-minibuffer): Avoid overriding mail-abbrev-in-expansion-header-p.
mail/mailabbrev.el (mail-abbrev-expand-wrapper): Work in minibuffer so as to enable message-read-from-minibuffer to expand mail aliases.
2012-12-06 03:30:23 +00:00
Chong Yidong
e1d51545ce * ffap.el (ffap-replace-file-component): Fix typo. 2012-12-06 11:04:21 +08:00
Stefan Monnier
4b5c89eefe * lisp/minibuf-eldef.el (minibuf-eldef-update-minibuffer): Don't mess with
the `intangible' property.
Suggested by Christopher Schmidt <christopher@ch.ristopher.com>
2012-12-05 20:39:03 -05:00
Sam Steingold
ffcee8d7c4 * lisp/gnus/gnus.el (gnus-delete-gnus-frame): Extract from `gnus-other-frame'.
(gnus-other-frame): Add `gnus-delete-gnus-frame' to
`gnus-suspend-gnus-hook' in addition to `gnus-exit-gnus-hook'.
2012-12-05 13:13:38 -05:00
Deniz Dogan
5602a53a2c * lisp/net/rcirc.el (rcirc-urls): Update documentation.
(rcirc-condition-filter): New function.
(rcirc-browse-url, rcirc-markup-urls): Use only URLs before point
and exclude consecutive duplicate URLs.

Fixes: debbugs:6082
2012-12-05 17:45:37 +01:00
Michael Albinus
82176fcdeb * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Check error
code also on MS-Windows machines.
2012-12-05 16:50:32 +01:00
Michael Albinus
d5f97f6295 * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Check return code of copy command.
2012-12-05 15:06:06 +01:00
Glenn Morris
4038c7a2fd Auto-commit of loaddefs files. 2012-12-05 07:20:55 -05:00
Katsumi Yamaoka
aa7e16fc84 lisp/gnus/ChangeLog: Fix typo 2012-12-05 10:29:31 +00:00
Katsumi Yamaoka
299a66e982 gmm-utils.el (gmm-called-interactively-p): Revert. This seems to causes Emacs to get stuck! 2012-12-05 10:27:16 +00:00
Michael Albinus
51b890acbf * net/tramp-adb.el (tramp-adb-sdk-dir, tramp-adb-prompt): Use
group `tramp'.  Add version.
2012-12-05 11:09:54 +01:00
Katsumi Yamaoka
ad6fe94df2 gmm-utils.el (gmm-called-interactively-p): New function.
gnus-art.el (article-unsplit-urls)
gnus-bookmark.el (gnus-bookmark-bmenu-list)
gnus-registry.el (gnus-registry-get-article-marks)
message.el (message-goto-body): Use it.
  (message-called-interactively-p): Remove.
2012-12-05 09:24:27 +00:00
Chong Yidong
a368019460 Improve url matching in ffap.el.
* ffap.el (ffap-url-regexp): Don't require matching at front of string.
(ffap-url-p): If only a substring matches, return that.
(ffap-url-at-point): Use the return value of ffap-url-p.
(ffap-read-file-or-url, ffap-read-file-or-url-internal)
(find-file-at-point, dired-at-point, dired-at-point-prompter)
(ffap-guess-file-name-at-point): Likewise.
(ffap-replace-file-component): Fix typo.

Fixes: debbugs:4952
2012-12-05 15:29:02 +08:00
Chong Yidong
04b14f2b27 Improve completion behavior of info-display-manual.
* lisp/info.el (info-display-manual): Add existing Info buffers, whose
files may not be in Info-directory-list, to the completion.
(info--manual-names): New helper function.
2012-12-05 14:14:11 +08:00
Stefan Monnier
ef54d315e8 * lisp/progmodes/octave-mod.el (octave-mark-block): Move out of tokens and
fix open-paren-like token test.

Fixes: debbugs:12785
2012-12-05 00:30:58 -05:00
Katsumi Yamaoka
066f0e09bc gmm-util.el: Re-introduce gmm-flet using cl-letf 2012-12-05 02:26:15 +00:00
Glenn Morris
49596095d0 Add conflict detection/resolution to vc-hg (bug#10709)
* lisp/vc/vc-hg.el (vc-hg-resolve-when-done, vc-hg-find-file-hook):
New functions, for detecting and resolving conflicts.
2012-12-04 20:49:31 -05:00
Katsumi Yamaoka
f2484dffa2 gmm-utils.el (gmm-labels): Doc fix 2012-12-05 00:18:23 +00:00
Katsumi Yamaoka
1191913260 gmm-utils.el (gmm-flet): Remove.
gnus-sync.el (gnus-sync-lesync-call)
message.el (message-read-from-minibuffer): Don't use it.
2012-12-05 00:13:56 +00:00
Katsumi Yamaoka
b2b049bc37 gmm-utils.el (gmm-labels): Dox fix 2012-12-04 23:33:24 +00:00
Katsumi Yamaoka
68c2d59da4 gmm-utils.el (gmm-labels): Use cl-labels if available 2012-12-04 23:24:24 +00:00
Jambunathan K
b85aec936c * lisp/hi-lock.el (hi-lock-auto-select-face): New user variable.
(hi-lock-auto-select-face-defaults): New buffer local variable.
(hi-lock-read-face-name): Honor `hi-lock-auto-select-face'.
(hi-lock-unface-buffer): Prompt user with useful defaults.
With prefix arg, unhighlight all hi-lock patterns in buffer.

Fixes: debbugs:11095
2012-12-04 16:13:47 -05:00
Glenn Morris
52d129cd62 rmail-new-summary fix for bug#13066
* lisp/mail/rmailsum.el (rmail-new-summary):
Tweak for rmail-maybe-display-summary changing buffer.
2012-12-04 13:08:01 -05:00
Stefan Monnier
8515507f1f * lisp/obsolete/terminal.el, lisp/obsolete/longlines.el: Add obsolecence info. 2012-12-04 12:04:01 -05:00
Michael Albinus
72cebfb7b1 * Makefile.in (TRAMP_SRC):
* makefile.w32-in (TRAMP_SRC): Add tramp-adb.el.
2012-12-04 17:56:04 +01:00
Juergen Hoetzel
0ec3f7ead1 * net/tramp-adb.el: New package. 2012-12-04 17:53:01 +01:00
Katsumi Yamaoka
46a2cc4470 gmm-utils.el (gmm-flet, gmm-labels): New macros.
gnus-sync.el (gnus-sync-lesync-call)
message.el (message-read-from-minibuffer): Use gmm-flet.
gnus-score.el (gnus-score-decode-text-parts): Use gmm-labels.
gnus-util.el (gnus-macroexpand-all): Remove.
2012-12-04 08:22:12 +00:00
Chong Yidong
ce3e7725b4 Obsolete terminal.el.
* terminal.el: Move to obsolete/.
2012-12-04 11:04:31 +08:00
Chong Yidong
770de7cf72 Obsolete longlines.el.
* longlines.el: Move to obsolete/.

* lisp/org/org-bibtex.el (org-bibtex-ask): Use visual-line-mode instead of
longlines-mode.

* lisp/vc/ediff-diff.el (ediff-extract-diffs, ediff-extract-diffs3):
Remove code referring to longlines mode.
2012-12-04 10:47:43 +08:00
Juri Linkov
c38a186c2e * lisp/sort.el (delete-duplicate-lines): New command.
Fixes: debbugs:13032
2012-12-04 01:49:08 +02:00
Juri Linkov
68bf4e0964 * lisp/info.el (Info-fontify-node): Don't hide the last newline.
Fixes: debbugs:12272
2012-12-04 01:38:56 +02:00
Katsumi Yamaoka
9320b007d5 gnus-sync.el (gnus-sync-newsrc-offsets): Add :version 2012-12-03 22:08:37 +00:00
Agustín Martín
475eea6f70 Fix my last Changelog entry. 2012-12-03 18:23:42 +01:00
Agustín Martín
214bd48163 ispell.el: Use expanded values of personal dictionary for process restart checks.
(ispell-internal-change-dictionary):
 Improve ispell process restart checks by using expanded values for ispell
  personal dictionary and for related restart check.

(ispell-start-process):
 * Remove apparently redundant code that seems better handled from
  (ispell-internal-change-dictionary)
 * No longer need to expand ispell personal dictionary, it is already
   expanded.

Fixes: debbugs:13019
2012-12-03 18:15:32 +01:00
Agustín Martín
329bfd64c2 ispell.el: Fix ispell personal dictionary name expansion.
textmodes/ispell.el (ispell-init-process, ispell-start-process): 
Make sure ispell personal dictionary name is expanded after initial
`default-directory' value (Bug#13019).
2012-12-03 17:08:23 +01:00