diff options
| author | Eli Zaretskii | 2013-04-24 22:12:03 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-04-24 22:12:03 +0300 |
| commit | 2800c4d3155df0768410a675359fb360dfe2e791 (patch) | |
| tree | 26f88ac8793567324f8860b616fa5dc674945e22 /lisp | |
| parent | 54ab7d34c56aca38b600cdc3e37fc215e7abec06 (diff) | |
| parent | 6139439fac7839d2c13ec9c1045b581d3941b2fc (diff) | |
| download | emacs-2800c4d3155df0768410a675359fb360dfe2e791.tar.gz emacs-2800c4d3155df0768410a675359fb360dfe2e791.zip | |
Merge from trunk.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 45 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 10 | ||||
| -rw-r--r-- | lisp/startup.el | 69 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-vars.el | 3 | ||||
| -rw-r--r-- | lisp/textmodes/reftex.el | 1 | ||||
| -rw-r--r-- | lisp/textmodes/remember.el | 24 | ||||
| -rw-r--r-- | lisp/vc/vc-bzr.el | 14 | ||||
| -rw-r--r-- | lisp/vc/vc-cvs.el | 3 | ||||
| -rw-r--r-- | lisp/vc/vc-git.el | 8 | ||||
| -rw-r--r-- | lisp/vc/vc-hg.el | 9 | ||||
| -rw-r--r-- | lisp/vc/vc-mtn.el | 4 | ||||
| -rw-r--r-- | lisp/vc/vc-rcs.el | 12 | ||||
| -rw-r--r-- | lisp/vc/vc-sccs.el | 3 | ||||
| -rw-r--r-- | lisp/vc/vc-svn.el | 7 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 21 |
15 files changed, 145 insertions, 88 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 59e2a227e42..f69e60e50a7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,14 +1,47 @@ | |||
| 1 | 2013-04-23 Tassilo Horn <tsdh@gnu.org> | 1 | 2013-04-24 Reuben Thomas <rrt@sc3d.org> |
| 2 | 2 | ||
| 3 | * textmodes/reftex.el (reftex-compile-variables): Add autoload | 3 | * textmodes/remember.el (remember-handler-functions): Add an |
| 4 | cookie. | 4 | option for a new handler `remember-store-in-files'. |
| 5 | (remember-data-directory, remember-directory-file-name-format): | ||
| 6 | New options. | ||
| 7 | (remember-store-in-files): New function to store remember notes | ||
| 8 | as separate files within a directory. | ||
| 9 | |||
| 10 | 2013-04-24 Magnus Henoch <magnus.henoch@gmail.com> | ||
| 11 | |||
| 12 | * progmodes/compile.el (compilation-next-error-function): | ||
| 13 | Pass "formats" to compilation-find-file (bug#11777). | ||
| 14 | |||
| 15 | 2013-04-24 Glenn Morris <rgm@gnu.org> | ||
| 16 | |||
| 17 | * vc/vc-bzr.el (vc-bzr-print-log): | ||
| 18 | * vc/vc-hg.el (vc-hg-print-log): | ||
| 19 | * vc/vc-svn.el (vc-svn-print-log): | ||
| 20 | Fix START-REVISION with LIMIT != 1. (Bug#14168) | ||
| 21 | |||
| 22 | * vc/vc-bzr.el (vc-bzr-print-log): | ||
| 23 | * vc/vc-cvs.el (vc-cvs-print-log): | ||
| 24 | * vc/vc-git.el (vc-git-print-log): | ||
| 25 | * vc/vc-hg.el (vc-hg-print-log): | ||
| 26 | * vc/vc-mtn.el (vc-mtn-print-log): | ||
| 27 | * vc/vc-rcs.el (vc-rcs-print-log): | ||
| 28 | * vc/vc-sccs.el (vc-sccs-print-log): | ||
| 29 | * vc/vc-svn.el (vc-svn-print-log): | ||
| 30 | * vc/vc.el (vc-print-log-internal): Doc fixes. | ||
| 31 | |||
| 32 | 2013-04-23 Glenn Morris <rgm@gnu.org> | ||
| 33 | |||
| 34 | * startup.el (normal-no-mouse-startup-screen, normal-about-screen): | ||
| 35 | Remove venerable code attempting to avoid substitute-command-keys. | ||
| 36 | |||
| 37 | 2013-04-23 Tassilo Horn <tsdh@gnu.org> | ||
| 5 | 38 | ||
| 6 | * textmodes/reftex-vars.el (reftex-label-regexps): Call | 39 | * textmodes/reftex-vars.el (reftex-label-regexps): |
| 7 | `reftex-compile-variables' after changes to this variable. | 40 | Call `reftex-compile-variables' after changes to this variable. |
| 8 | 41 | ||
| 9 | 2013-04-23 Stefan Monnier <monnier@iro.umontreal.ca> | 42 | 2013-04-23 Stefan Monnier <monnier@iro.umontreal.ca> |
| 10 | 43 | ||
| 11 | * jit-lock.el: Fix signals in jit-lock-force-redisplay. | 44 | * jit-lock.el: Fix signals in jit-lock-force-redisplay (bug#13542). |
| 12 | Use lexical-binding. | 45 | Use lexical-binding. |
| 13 | (jit-lock-force-redisplay): Use markers, check buffer's continued | 46 | (jit-lock-force-redisplay): Use markers, check buffer's continued |
| 14 | existence and beware narrowed buffers. | 47 | existence and beware narrowed buffers. |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 98a89bb2363..d6f136ec92d 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -2382,10 +2382,12 @@ This is the value of `next-error-function' in Compilation buffers." | |||
| 2382 | ;; (setq timestamp compilation-buffer-modtime))) | 2382 | ;; (setq timestamp compilation-buffer-modtime))) |
| 2383 | ) | 2383 | ) |
| 2384 | (with-current-buffer | 2384 | (with-current-buffer |
| 2385 | (compilation-find-file | 2385 | (apply #'compilation-find-file |
| 2386 | marker | 2386 | marker |
| 2387 | (caar (compilation--loc->file-struct loc)) | 2387 | (caar (compilation--loc->file-struct loc)) |
| 2388 | (cadr (car (compilation--loc->file-struct loc)))) | 2388 | (cadr (car (compilation--loc->file-struct loc))) |
| 2389 | (compilation--file-struct->formats | ||
| 2390 | (compilation--loc->file-struct loc))) | ||
| 2389 | (let ((screen-columns | 2391 | (let ((screen-columns |
| 2390 | ;; Obey the compilation-error-screen-columns of the target | 2392 | ;; Obey the compilation-error-screen-columns of the target |
| 2391 | ;; buffer if its major mode set it buffer-locally. | 2393 | ;; buffer if its major mode set it buffer-locally. |
diff --git a/lisp/startup.el b/lisp/startup.el index dc21005ab94..b7b4c156f02 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1856,11 +1856,8 @@ To quit a partially entered command, type Control-g.\n") | |||
| 1856 | (insert "\n" (emacs-version) | 1856 | (insert "\n" (emacs-version) |
| 1857 | "\n" emacs-copyright)) | 1857 | "\n" emacs-copyright)) |
| 1858 | 1858 | ||
| 1859 | ;; No mouse menus, so give help using kbd commands. | ||
| 1860 | (defun normal-no-mouse-startup-screen () | 1859 | (defun normal-no-mouse-startup-screen () |
| 1861 | 1860 | "Show a splash screen suitable for displays without mouse support." | |
| 1862 | ;; If keys have their default meanings, | ||
| 1863 | ;; use precomputed string to save lots of time. | ||
| 1864 | (let* ((c-h-accessible | 1861 | (let* ((c-h-accessible |
| 1865 | ;; If normal-erase-is-backspace is used on a tty, there's | 1862 | ;; If normal-erase-is-backspace is used on a tty, there's |
| 1866 | ;; no way to invoke C-h and you have to use F1 instead. | 1863 | ;; no way to invoke C-h and you have to use F1 instead. |
| @@ -1938,47 +1935,24 @@ If you have no Meta key, you may instead type ESC followed by the character.)") | |||
| 1938 | 'follow-link t) | 1935 | 'follow-link t) |
| 1939 | (insert "\n") | 1936 | (insert "\n") |
| 1940 | (insert "\n" (emacs-version) "\n" emacs-copyright "\n") | 1937 | (insert "\n" (emacs-version) "\n" emacs-copyright "\n") |
| 1941 | 1938 | (insert (substitute-command-keys | |
| 1942 | (if (and (eq (key-binding "\C-h\C-c") 'describe-copying) | 1939 | " |
| 1943 | (eq (key-binding "\C-h\C-o") 'describe-distribution) | ||
| 1944 | (eq (key-binding "\C-h\C-w") 'describe-no-warranty)) | ||
| 1945 | (progn | ||
| 1946 | (insert | ||
| 1947 | " | ||
| 1948 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for ") | ||
| 1949 | (insert-button "full details" | ||
| 1950 | 'action (lambda (_button) (describe-no-warranty)) | ||
| 1951 | 'follow-link t) | ||
| 1952 | (insert ". | ||
| 1953 | Emacs is Free Software--Free as in Freedom--so you can redistribute copies | ||
| 1954 | of Emacs and modify it; type C-h C-c to see ") | ||
| 1955 | (insert-button "the conditions" | ||
| 1956 | 'action (lambda (_button) (describe-copying)) | ||
| 1957 | 'follow-link t) | ||
| 1958 | (insert ". | ||
| 1959 | Type C-h C-d for information on ") | ||
| 1960 | (insert-button "getting the latest version" | ||
| 1961 | 'action (lambda (_button) (describe-distribution)) | ||
| 1962 | 'follow-link t) | ||
| 1963 | (insert ".")) | ||
| 1964 | (insert (substitute-command-keys | ||
| 1965 | " | ||
| 1966 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for ")) | 1940 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for ")) |
| 1967 | (insert-button "full details" | 1941 | (insert-button "full details" |
| 1968 | 'action (lambda (_button) (describe-no-warranty)) | 1942 | 'action (lambda (_button) (describe-no-warranty)) |
| 1969 | 'follow-link t) | 1943 | 'follow-link t) |
| 1970 | (insert (substitute-command-keys ". | 1944 | (insert (substitute-command-keys ". |
| 1971 | Emacs is Free Software--Free as in Freedom--so you can redistribute copies | 1945 | Emacs is Free Software--Free as in Freedom--so you can redistribute copies |
| 1972 | of Emacs and modify it; type \\[describe-copying] to see ")) | 1946 | of Emacs and modify it; type \\[describe-copying] to see ")) |
| 1973 | (insert-button "the conditions" | 1947 | (insert-button "the conditions" |
| 1974 | 'action (lambda (_button) (describe-copying)) | 1948 | 'action (lambda (_button) (describe-copying)) |
| 1975 | 'follow-link t) | 1949 | 'follow-link t) |
| 1976 | (insert (substitute-command-keys". | 1950 | (insert (substitute-command-keys". |
| 1977 | Type \\[describe-distribution] for information on ")) | 1951 | Type \\[describe-distribution] for information on ")) |
| 1978 | (insert-button "getting the latest version" | 1952 | (insert-button "getting the latest version" |
| 1979 | 'action (lambda (_button) (describe-distribution)) | 1953 | 'action (lambda (_button) (describe-distribution)) |
| 1980 | 'follow-link t) | 1954 | 'follow-link t) |
| 1981 | (insert "."))) | 1955 | (insert ".")) |
| 1982 | 1956 | ||
| 1983 | (defun normal-about-screen () | 1957 | (defun normal-about-screen () |
| 1984 | (insert "\n" (emacs-version) "\n" emacs-copyright "\n\n") | 1958 | (insert "\n" (emacs-version) "\n" emacs-copyright "\n\n") |
| @@ -2027,14 +2001,11 @@ Type \\[describe-distribution] for information on ")) | |||
| 2027 | (insert "\tBuying printed manuals from the FSF\n")) | 2001 | (insert "\tBuying printed manuals from the FSF\n")) |
| 2028 | 2002 | ||
| 2029 | (defun startup-echo-area-message () | 2003 | (defun startup-echo-area-message () |
| 2030 | (cond ((daemonp) | 2004 | (if (daemonp) |
| 2031 | "Starting Emacs daemon.") | 2005 | "Starting Emacs daemon." |
| 2032 | ((eq (key-binding "\C-h\C-a") 'about-emacs) | 2006 | (substitute-command-keys |
| 2033 | "For information about GNU Emacs and the GNU system, type C-h C-a.") | 2007 | "For information about GNU Emacs and the GNU system, type \ |
| 2034 | (t | 2008 | \\[about-emacs]."))) |
| 2035 | (substitute-command-keys | ||
| 2036 | "For information about GNU Emacs and the GNU system, type \ | ||
| 2037 | \\[about-emacs].")))) | ||
| 2038 | 2009 | ||
| 2039 | (defun display-startup-echo-area-message () | 2010 | (defun display-startup-echo-area-message () |
| 2040 | (let ((resize-mini-windows t)) | 2011 | (let ((resize-mini-windows t)) |
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index a220002286e..7343d86b06f 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el | |||
| @@ -880,7 +880,8 @@ When changed from Lisp, make sure to call | |||
| 880 | effective." | 880 | effective." |
| 881 | :set (lambda (symbol value) | 881 | :set (lambda (symbol value) |
| 882 | (set symbol value) | 882 | (set symbol value) |
| 883 | (reftex-compile-variables)) | 883 | (when (fboundp 'reftex-compile-variables) |
| 884 | (reftex-compile-variables))) | ||
| 884 | :group 'reftex-defining-label-environments | 885 | :group 'reftex-defining-label-environments |
| 885 | :type '(repeat (regexp :tag "Regular Expression"))) | 886 | :type '(repeat (regexp :tag "Regular Expression"))) |
| 886 | 887 | ||
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index 8b5dee5a037..21083fd188a 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el | |||
| @@ -811,7 +811,6 @@ This enforces rescanning the buffer on next use." | |||
| 811 | (reftex-kill-buffer (reftex-make-index-buffer-name tag))) | 811 | (reftex-kill-buffer (reftex-make-index-buffer-name tag))) |
| 812 | (cdr (assoc 'index-tags (symbol-value reftex-docstruct-symbol))))) | 812 | (cdr (assoc 'index-tags (symbol-value reftex-docstruct-symbol))))) |
| 813 | 813 | ||
| 814 | ;;;###autoload | ||
| 815 | (defun reftex-compile-variables () | 814 | (defun reftex-compile-variables () |
| 816 | ;; Compile the information in reftex-label-alist & Co. | 815 | ;; Compile the information in reftex-label-alist & Co. |
| 817 | 816 | ||
diff --git a/lisp/textmodes/remember.el b/lisp/textmodes/remember.el index 16b99627400..1286e5d803e 100644 --- a/lisp/textmodes/remember.el +++ b/lisp/textmodes/remember.el | |||
| @@ -216,10 +216,11 @@ All functions are run in the remember buffer." | |||
| 216 | Each function is called with the current buffer narrowed to what the | 216 | Each function is called with the current buffer narrowed to what the |
| 217 | user wants remembered. | 217 | user wants remembered. |
| 218 | If any function returns non-nil, the data is assumed to have been | 218 | If any function returns non-nil, the data is assumed to have been |
| 219 | recorded somewhere by that function. " | 219 | recorded somewhere by that function." |
| 220 | :type 'hook | 220 | :type 'hook |
| 221 | :options '(remember-store-in-mailbox | 221 | :options '(remember-store-in-mailbox |
| 222 | remember-append-to-file | 222 | remember-append-to-file |
| 223 | remember-store-in-files | ||
| 223 | remember-diary-extract-entries | 224 | remember-diary-extract-entries |
| 224 | org-remember-handler) | 225 | org-remember-handler) |
| 225 | :group 'remember) | 226 | :group 'remember) |
| @@ -429,6 +430,27 @@ If you want to remember a region, supply a universal prefix to | |||
| 429 | (run-hook-with-args-until-success 'remember-handler-functions)) | 430 | (run-hook-with-args-until-success 'remember-handler-functions)) |
| 430 | (remember-destroy)))) | 431 | (remember-destroy)))) |
| 431 | 432 | ||
| 433 | (defcustom remember-data-directory "~/remember" | ||
| 434 | "The directory in which to store remember data as files." | ||
| 435 | :type 'file | ||
| 436 | :group 'remember) | ||
| 437 | |||
| 438 | (defcustom remember-directory-file-name-format "%Y-%m-%d_%T-%z" | ||
| 439 | "Format string for the file name in which to store unprocessed data." | ||
| 440 | :type 'file | ||
| 441 | :group 'remember) | ||
| 442 | |||
| 443 | (defun remember-store-in-files () | ||
| 444 | "Store remember data in a file in `remember-data-directory'. | ||
| 445 | The file is named after `remember-directory-file-name-format'." | ||
| 446 | (let ((name (format-time-string | ||
| 447 | remember-directory-file-name-format (current-time))) | ||
| 448 | (text (buffer-string))) | ||
| 449 | (with-temp-buffer | ||
| 450 | (insert text) | ||
| 451 | (write-file (convert-standard-filename | ||
| 452 | (format "%s/%s" remember-data-directory name)))))) | ||
| 453 | |||
| 432 | ;;;###autoload | 454 | ;;;###autoload |
| 433 | (defun remember-clipboard () | 455 | (defun remember-clipboard () |
| 434 | "Remember the contents of the current clipboard. | 456 | "Remember the contents of the current clipboard. |
diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el index d72c1f7f859..06942ad283c 100644 --- a/lisp/vc/vc-bzr.el +++ b/lisp/vc/vc-bzr.el | |||
| @@ -694,7 +694,10 @@ REV non-nil gets an error." | |||
| 694 | ("^ *timestamp: \\(.*\\)" (1 'change-log-date-face))))))) | 694 | ("^ *timestamp: \\(.*\\)" (1 'change-log-date-face))))))) |
| 695 | 695 | ||
| 696 | (defun vc-bzr-print-log (files buffer &optional shortlog start-revision limit) | 696 | (defun vc-bzr-print-log (files buffer &optional shortlog start-revision limit) |
| 697 | "Get bzr change log for FILES into specified BUFFER." | 697 | "Print commit log associated with FILES into specified BUFFER. |
| 698 | If SHORTLOG is non-nil, use --line format. | ||
| 699 | If START-REVISION is non-nil, it is the newest revision to show. | ||
| 700 | If LIMIT is non-nil, show no more than this many entries." | ||
| 698 | ;; `vc-do-command' creates the buffer, but we need it before running | 701 | ;; `vc-do-command' creates the buffer, but we need it before running |
| 699 | ;; the command. | 702 | ;; the command. |
| 700 | (vc-setup-buffer buffer) | 703 | (vc-setup-buffer buffer) |
| @@ -709,6 +712,15 @@ REV non-nil gets an error." | |||
| 709 | (when shortlog '("--line")) | 712 | (when shortlog '("--line")) |
| 710 | (when start-revision (list (format "-r..%s" start-revision))) | 713 | (when start-revision (list (format "-r..%s" start-revision))) |
| 711 | (when limit (list "-l" (format "%s" limit))) | 714 | (when limit (list "-l" (format "%s" limit))) |
| 715 | ;; This is to remove --forward, if it has been added by an alias. | ||
| 716 | ;; There is no sensible way to combine --limit and --forward, | ||
| 717 | ;; and it breaks the meaning of START-REVISION as the | ||
| 718 | ;; _newest_ revision. See bug#14168. | ||
| 719 | ;; FIXME There may be other alias stuff we want to keep. | ||
| 720 | ;; Is there a way to just suppress --forward? | ||
| 721 | ;; As of 2013/4 the only caller uses limit = 1, so it does | ||
| 722 | ;; not matter much. | ||
| 723 | (and start-revision limit (> limit 1) '("--no-aliases")) | ||
| 712 | (if (stringp vc-bzr-log-switches) | 724 | (if (stringp vc-bzr-log-switches) |
| 713 | (list vc-bzr-log-switches) | 725 | (list vc-bzr-log-switches) |
| 714 | vc-bzr-log-switches))))) | 726 | vc-bzr-log-switches))))) |
diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el index 334683898be..7a8f8107509 100644 --- a/lisp/vc/vc-cvs.el +++ b/lisp/vc/vc-cvs.el | |||
| @@ -503,7 +503,8 @@ Will fail unless you have administrative privileges on the repo." | |||
| 503 | (declare-function vc-rcs-print-log-cleanup "vc-rcs" ()) | 503 | (declare-function vc-rcs-print-log-cleanup "vc-rcs" ()) |
| 504 | 504 | ||
| 505 | (defun vc-cvs-print-log (files buffer &optional _shortlog _start-revision limit) | 505 | (defun vc-cvs-print-log (files buffer &optional _shortlog _start-revision limit) |
| 506 | "Get change logs associated with FILES." | 506 | "Print commit log associated with FILES into specified BUFFER. |
| 507 | Remaining arguments are ignored." | ||
| 507 | (require 'vc-rcs) | 508 | (require 'vc-rcs) |
| 508 | ;; It's just the catenation of the individual logs. | 509 | ;; It's just the catenation of the individual logs. |
| 509 | (vc-cvs-command | 510 | (vc-cvs-command |
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 17de931628b..06474cb4604 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el | |||
| @@ -732,9 +732,11 @@ This prompts for a branch to merge from." | |||
| 732 | ;;; HISTORY FUNCTIONS | 732 | ;;; HISTORY FUNCTIONS |
| 733 | 733 | ||
| 734 | (defun vc-git-print-log (files buffer &optional shortlog start-revision limit) | 734 | (defun vc-git-print-log (files buffer &optional shortlog start-revision limit) |
| 735 | "Get change log associated with FILES. | 735 | "Print commit log associated with FILES into specified BUFFER. |
| 736 | Note that using SHORTLOG requires at least Git version 1.5.6, | 736 | If SHORTLOG is non-nil, use a short format based on `vc-git-root-log-format'. |
| 737 | for the --graph option." | 737 | \(This requires at least Git version 1.5.6, for the --graph option.) |
| 738 | If START-REVISION is non-nil, it is the newest revision to show. | ||
| 739 | If LIMIT is non-nil, show no more than this many entries." | ||
| 738 | (let ((coding-system-for-read vc-git-commits-coding-system)) | 740 | (let ((coding-system-for-read vc-git-commits-coding-system)) |
| 739 | ;; `vc-do-command' creates the buffer, but we need it before running | 741 | ;; `vc-do-command' creates the buffer, but we need it before running |
| 740 | ;; the command. | 742 | ;; the command. |
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index 033e78c20cd..feec015e52a 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el | |||
| @@ -152,7 +152,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 152 | (2 'change-log-list) | 152 | (2 'change-log-list) |
| 153 | (3 'change-log-name) | 153 | (3 'change-log-name) |
| 154 | (4 'change-log-date))) | 154 | (4 'change-log-date))) |
| 155 | "Mercurial log template for `vc-print-root-log'. | 155 | "Mercurial log template for `vc-hg-print-log' short format. |
| 156 | This should be a list (TEMPLATE REGEXP KEYWORDS), where TEMPLATE | 156 | This should be a list (TEMPLATE REGEXP KEYWORDS), where TEMPLATE |
| 157 | is the \"--template\" argument string to pass to Mercurial, | 157 | is the \"--template\" argument string to pass to Mercurial, |
| 158 | REGEXP is a regular expression matching the resulting Mercurial | 158 | REGEXP is a regular expression matching the resulting Mercurial |
| @@ -246,7 +246,10 @@ highlighting the Log View buffer." | |||
| 246 | :group 'vc-hg) | 246 | :group 'vc-hg) |
| 247 | 247 | ||
| 248 | (defun vc-hg-print-log (files buffer &optional shortlog start-revision limit) | 248 | (defun vc-hg-print-log (files buffer &optional shortlog start-revision limit) |
| 249 | "Get change log associated with FILES." | 249 | "Print commit log associated with FILES into specified BUFFER. |
| 250 | If SHORTLOG is non-nil, use a short format based on `vc-hg-root-log-format'. | ||
| 251 | If START-REVISION is non-nil, it is the newest revision to show. | ||
| 252 | If LIMIT is non-nil, show no more than this many entries." | ||
| 250 | ;; `vc-do-command' creates the buffer, but we need it before running | 253 | ;; `vc-do-command' creates the buffer, but we need it before running |
| 251 | ;; the command. | 254 | ;; the command. |
| 252 | (vc-setup-buffer buffer) | 255 | (vc-setup-buffer buffer) |
| @@ -257,7 +260,7 @@ highlighting the Log View buffer." | |||
| 257 | buffer | 260 | buffer |
| 258 | (apply 'vc-hg-command buffer 0 files "log" | 261 | (apply 'vc-hg-command buffer 0 files "log" |
| 259 | (nconc | 262 | (nconc |
| 260 | (when start-revision (list (format "-r%s:" start-revision))) | 263 | (when start-revision (list (format "-r%s:0" start-revision))) |
| 261 | (when limit (list "-l" (format "%s" limit))) | 264 | (when limit (list "-l" (format "%s" limit))) |
| 262 | (when shortlog (list "--template" (car vc-hg-root-log-format))) | 265 | (when shortlog (list "--template" (car vc-hg-root-log-format))) |
| 263 | vc-hg-log-switches))))) | 266 | vc-hg-log-switches))))) |
diff --git a/lisp/vc/vc-mtn.el b/lisp/vc/vc-mtn.el index 06827a5e027..fbfd89561b7 100644 --- a/lisp/vc/vc-mtn.el +++ b/lisp/vc/vc-mtn.el | |||
| @@ -202,6 +202,10 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 202 | ;; ) | 202 | ;; ) |
| 203 | 203 | ||
| 204 | (defun vc-mtn-print-log (files buffer &optional _shortlog start-revision limit) | 204 | (defun vc-mtn-print-log (files buffer &optional _shortlog start-revision limit) |
| 205 | "Print commit logs associated with FILES into specified BUFFER. | ||
| 206 | _SHORTLOG is ignored. | ||
| 207 | If START-REVISION is non-nil, it is the newest revision to show. | ||
| 208 | If LIMIT is non-nil, show no more than this many entries." | ||
| 205 | (apply 'vc-mtn-command buffer 0 files "log" | 209 | (apply 'vc-mtn-command buffer 0 files "log" |
| 206 | (append | 210 | (append |
| 207 | (when start-revision (list "--from" (format "%s" start-revision))) | 211 | (when start-revision (list "--from" (format "%s" start-revision))) |
diff --git a/lisp/vc/vc-rcs.el b/lisp/vc/vc-rcs.el index 40d8acb7e07..0a2fc804e6d 100644 --- a/lisp/vc/vc-rcs.el +++ b/lisp/vc/vc-rcs.el | |||
| @@ -567,10 +567,14 @@ directory the operation is applied to all registered files beneath it." | |||
| 567 | (when (looking-at "[\b\t\n\v\f\r ]+") | 567 | (when (looking-at "[\b\t\n\v\f\r ]+") |
| 568 | (delete-char (- (match-end 0) (match-beginning 0)))))) | 568 | (delete-char (- (match-end 0) (match-beginning 0)))))) |
| 569 | 569 | ||
| 570 | (defun vc-rcs-print-log (files buffer &optional shortlog start-revision-ignored limit) | 570 | (defun vc-rcs-print-log (files buffer &optional shortlog |
| 571 | "Get change log associated with FILE. If FILE is a | 571 | start-revision-ignored limit) |
| 572 | directory the operation is applied to all registered files beneath it." | 572 | "Print commit log associated with FILES into specified BUFFER. |
| 573 | (vc-do-command (or buffer "*vc*") 0 "rlog" (mapcar 'vc-name (vc-expand-dirs files))) | 573 | Remaining arguments are ignored. |
| 574 | If FILE is a directory the operation is applied to all registered | ||
| 575 | files beneath it." | ||
| 576 | (vc-do-command (or buffer "*vc*") 0 "rlog" | ||
| 577 | (mapcar 'vc-name (vc-expand-dirs files))) | ||
| 574 | (with-current-buffer (or buffer "*vc*") | 578 | (with-current-buffer (or buffer "*vc*") |
| 575 | (vc-rcs-print-log-cleanup)) | 579 | (vc-rcs-print-log-cleanup)) |
| 576 | (when limit 'limit-unsupported)) | 580 | (when limit 'limit-unsupported)) |
diff --git a/lisp/vc/vc-sccs.el b/lisp/vc/vc-sccs.el index bfbe42222e9..d3cf650ddf9 100644 --- a/lisp/vc/vc-sccs.el +++ b/lisp/vc/vc-sccs.el | |||
| @@ -350,7 +350,8 @@ revert all subfiles." | |||
| 350 | ;;; | 350 | ;;; |
| 351 | 351 | ||
| 352 | (defun vc-sccs-print-log (files buffer &optional shortlog start-revision-ignored limit) | 352 | (defun vc-sccs-print-log (files buffer &optional shortlog start-revision-ignored limit) |
| 353 | "Get change log associated with FILES." | 353 | "Print commit log associated with FILES into specified BUFFER. |
| 354 | Remaining arguments are ignored." | ||
| 354 | (setq files (vc-expand-dirs files)) | 355 | (setq files (vc-expand-dirs files)) |
| 355 | (vc-sccs-do-command buffer 0 "prs" (mapcar 'vc-name files)) | 356 | (vc-sccs-do-command buffer 0 "prs" (mapcar 'vc-name files)) |
| 356 | (when limit 'limit-unsupported)) | 357 | (when limit 'limit-unsupported)) |
diff --git a/lisp/vc/vc-svn.el b/lisp/vc/vc-svn.el index 923888b460b..a94bf0d6117 100644 --- a/lisp/vc/vc-svn.el +++ b/lisp/vc/vc-svn.el | |||
| @@ -494,7 +494,10 @@ or svn+ssh://." | |||
| 494 | (set (make-local-variable 'log-view-per-file-logs) nil)) | 494 | (set (make-local-variable 'log-view-per-file-logs) nil)) |
| 495 | 495 | ||
| 496 | (defun vc-svn-print-log (files buffer &optional shortlog start-revision limit) | 496 | (defun vc-svn-print-log (files buffer &optional shortlog start-revision limit) |
| 497 | "Get change log(s) associated with FILES." | 497 | "Print commit log associated with FILES into specified BUFFER. |
| 498 | SHORTLOG is ignored. | ||
| 499 | If START-REVISION is non-nil, it is the newest revision to show. | ||
| 500 | If LIMIT is non-nil, show no more than this many entries." | ||
| 498 | (save-current-buffer | 501 | (save-current-buffer |
| 499 | (vc-setup-buffer buffer) | 502 | (vc-setup-buffer buffer) |
| 500 | (let ((inhibit-read-only t)) | 503 | (let ((inhibit-read-only t)) |
| @@ -512,7 +515,7 @@ or svn+ssh://." | |||
| 512 | (append | 515 | (append |
| 513 | (list | 516 | (list |
| 514 | (if start-revision | 517 | (if start-revision |
| 515 | (format "-r%s" start-revision) | 518 | (format "-r%s:1" start-revision) |
| 516 | ;; By default Subversion only shows the log up to the | 519 | ;; By default Subversion only shows the log up to the |
| 517 | ;; working revision, whereas we also want the log of the | 520 | ;; working revision, whereas we also want the log of the |
| 518 | ;; subsequent commits. At least that's what the | 521 | ;; subsequent commits. At least that's what the |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 7f03affb6b7..5e1d27c0ea3 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -356,9 +356,11 @@ | |||
| 356 | ;; If LIMIT is true insert only insert LIMIT log entries. If the | 356 | ;; If LIMIT is true insert only insert LIMIT log entries. If the |
| 357 | ;; backend does not support limiting the number of entries to show | 357 | ;; backend does not support limiting the number of entries to show |
| 358 | ;; it should return `limit-unsupported'. | 358 | ;; it should return `limit-unsupported'. |
| 359 | ;; If START-REVISION is given, then show the log starting from the | 359 | ;; If START-REVISION is given, then show the log starting from that |
| 360 | ;; revision. At this point START-REVISION is only required to work | 360 | ;; revision ("starting" in the sense of it being the _newest_ |
| 361 | ;; in conjunction with LIMIT = 1. | 361 | ;; revision shown, rather than the working revision, which is normally |
| 362 | ;; the case). Not all backends support this. At present, this is | ||
| 363 | ;; only ever used with LIMIT = 1 (by vc-annotate-show-log-revision-at-line). | ||
| 362 | ;; | 364 | ;; |
| 363 | ;; * log-outgoing (backend remote-location) | 365 | ;; * log-outgoing (backend remote-location) |
| 364 | ;; | 366 | ;; |
| @@ -2111,14 +2113,11 @@ or if PL-RETURN is 'limit-unsupported." | |||
| 2111 | &optional is-start-revision limit) | 2113 | &optional is-start-revision limit) |
| 2112 | "For specified BACKEND and FILES, show the VC log. | 2114 | "For specified BACKEND and FILES, show the VC log. |
| 2113 | Leave point at WORKING-REVISION, if it is non-nil. | 2115 | Leave point at WORKING-REVISION, if it is non-nil. |
| 2114 | If IS-START-REVISION is non-nil, start the log from WORKING-REVISION. | 2116 | If IS-START-REVISION is non-nil, start the log from WORKING-REVISION |
| 2115 | Show up to LIMIT entries (non-nil means unlimited). | 2117 | \(not all backends support this); i.e., show only WORKING-REVISION and |
| 2116 | \(IS-START-REVISION non-nil might not work correctly if LIMIT is not 1.)" | 2118 | earlier revisions. Show up to LIMIT entries (non-nil means unlimited)." |
| 2117 | ;; The parenthetical remark is based on the commentary of vc.el for | 2119 | ;; As of 2013/04 the only thing that passes IS-START-REVISION non-nil |
| 2118 | ;; "print log": "At this point START-REVISION is only required to work | 2120 | ;; is vc-annotate-show-log-revision-at-line, which sets LIMIT = 1. |
| 2119 | ;; in conjunction with LIMIT = 1." The only thing that passes | ||
| 2120 | ;; IS-START-REVISION non-nil is vc-annotate-show-log-revision-at-line, | ||
| 2121 | ;; which sets LIMIT = 1. | ||
| 2122 | 2121 | ||
| 2123 | ;; Don't switch to the output buffer before running the command, | 2122 | ;; Don't switch to the output buffer before running the command, |
| 2124 | ;; so that any buffer-local settings in the vc-controlled | 2123 | ;; so that any buffer-local settings in the vc-controlled |