aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2016-05-01 18:07:57 -0700
committerPaul Eggert2016-05-01 18:07:57 -0700
commita8da4d033d98f6bee89f3fd3f067389705c45d4d (patch)
tree37a25e04d242d85980579076be228cdeecf8d7f1 /lisp
parentce92397425d29ec27fc701c36c589a5e1f894898 (diff)
parent71fb0e06e7e04d8300be10feffd3d314a76b4d27 (diff)
downloademacs-a8da4d033d98f6bee89f3fd3f067389705c45d4d.tar.gz
emacs-a8da4d033d98f6bee89f3fd3f067389705c45d4d.zip
Merge from origin/emacs-25
71fb0e0 Improve last change to vc-git-mode-line-string 6858e77 Todo mode doc bug fix e55d0db Fix revision calculation in vc-git-mode-line-string ca87b34 ; Fix errant revert ccb75d7 40bfebe Add Python 3.5 keyword "await" fa7886a Add new keywords of Python 3.5 ccb75d7 Partially revert previous change. 8ee168a ; * etc/NEWS: Update entry about color fonts on OS X with a w... b09ca27 Say why text-quoting-style is not a user option
Diffstat (limited to 'lisp')
-rw-r--r--lisp/calendar/todo-mode.el16
-rw-r--r--lisp/rect.el8
-rw-r--r--lisp/vc/vc-git.el2
3 files changed, 12 insertions, 14 deletions
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index 9574c03043e..0529e970333 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -612,11 +612,12 @@ Otherwise, `todo-show' always visits `todo-default-todo-file'."
612(defun todo-show (&optional solicit-file interactive) 612(defun todo-show (&optional solicit-file interactive)
613 "Visit a todo file and display one of its categories. 613 "Visit a todo file and display one of its categories.
614 614
615When invoked in Todo mode, prompt for which todo file to visit. 615When invoked in Todo mode, Todo Archive mode or Todo Filtered
616When invoked outside of Todo mode with non-nil prefix argument 616Items mode, or when invoked anywhere else with a prefix argument,
617SOLICIT-FILE prompt for which todo file to visit; otherwise visit 617prompt for which todo file to visit. When invoked outside of a
618`todo-default-todo-file'. Subsequent invocations from outside 618Todo mode buffer without a prefix argument, visit
619of Todo mode revisit this file or, with option 619`todo-default-todo-file'. Subsequent invocations from outside of
620Todo mode revisit this file or, with option
620`todo-show-current-file' non-nil (the default), whichever todo 621`todo-show-current-file' non-nil (the default), whichever todo
621file was last visited. 622file was last visited.
622 623
@@ -643,10 +644,7 @@ In Todo mode just the category's unfinished todo items are shown
643by default. The done items are hidden, but typing 644by default. The done items are hidden, but typing
644`\\[todo-toggle-view-done-items]' displays them below the todo 645`\\[todo-toggle-view-done-items]' displays them below the todo
645items. With non-nil user option `todo-show-with-done' both todo 646items. With non-nil user option `todo-show-with-done' both todo
646and done items are always shown on visiting a category. 647and done items are always shown on visiting a category."
647
648Invoking this command in Todo Archive mode visits the
649corresponding todo file, displaying the corresponding category."
650 (interactive "P\np") 648 (interactive "P\np")
651 (when todo-default-todo-file 649 (when todo-default-todo-file
652 (todo-check-file (todo-absolute-file-name todo-default-todo-file))) 650 (todo-check-file (todo-absolute-file-name todo-default-todo-file)))
diff --git a/lisp/rect.el b/lisp/rect.el
index 53fe46772b2..8803a47215f 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -788,7 +788,7 @@ Ignores `line-move-visual'."
788 (if (not old) 788 (if (not old)
789 (let ((ol (make-overlay left right))) 789 (let ((ol (make-overlay left right)))
790 (overlay-put ol 'window window) 790 (overlay-put ol 'window window)
791 (overlay-put ol 'face 'rectangle-preview) 791 (overlay-put ol 'face 'region)
792 ol) 792 ol)
793 (let ((ol (pop old))) 793 (let ((ol (pop old)))
794 (move-overlay ol left right (current-buffer)) 794 (move-overlay ol left right (current-buffer))
@@ -820,7 +820,7 @@ Ignores `line-move-visual'."
820 (overlay-put ol 'after-string nil))) 820 (overlay-put ol 'after-string nil)))
821 ((< mright rightcol) ;`rightcol' is past EOL. 821 ((< mright rightcol) ;`rightcol' is past EOL.
822 (let ((str (rectangle--space-to rightcol))) 822 (let ((str (rectangle--space-to rightcol)))
823 (put-text-property 0 (length str) 'face 'rectangle-preview str) 823 (put-text-property 0 (length str) 'face 'region str)
824 ;; If cursor happens to be here, draw it at the right place. 824 ;; If cursor happens to be here, draw it at the right place.
825 (rectangle--place-cursor leftcol left str) 825 (rectangle--place-cursor leftcol left str)
826 (overlay-put ol 'after-string str))) 826 (overlay-put ol 'after-string str)))
@@ -832,7 +832,7 @@ Ignores `line-move-visual'."
832 (overlay-put ol 'after-string nil) 832 (overlay-put ol 'after-string nil)
833 (goto-char right) 833 (goto-char right)
834 (let ((str (rectangle--space-to rightcol))) 834 (let ((str (rectangle--space-to rightcol)))
835 (put-text-property 0 (length str) 'face 'rectangle-preview str) 835 (put-text-property 0 (length str) 'face 'region str)
836 (when (= left right) 836 (when (= left right)
837 (rectangle--place-cursor leftcol left str)) 837 (rectangle--place-cursor leftcol left str))
838 (overlay-put ol 'after-string str)))) 838 (overlay-put ol 'after-string str))))
@@ -842,7 +842,7 @@ Ignores `line-move-visual'."
842 ;; Make zero-width rectangles visible! 842 ;; Make zero-width rectangles visible!
843 (overlay-put ol 'after-string 843 (overlay-put ol 'after-string
844 (concat (propertize " " 844 (concat (propertize " "
845 'face '(rectangle-preview (:height 0.2))) 845 'face '(region (:height 0.2)))
846 (overlay-get ol 'after-string)))) 846 (overlay-get ol 'after-string))))
847 (push ol nrol))) 847 (push ol nrol)))
848 start end)) 848 start end))
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 8568a94bbdb..16cbeef57ea 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -278,7 +278,7 @@ Should be consistent with the Git config value i18n.logOutputEncoding."
278 278
279(defun vc-git-mode-line-string (file) 279(defun vc-git-mode-line-string (file)
280 "Return a string for `vc-mode-line' to put in the mode line for FILE." 280 "Return a string for `vc-mode-line' to put in the mode line for FILE."
281 (let* ((rev (vc-working-revision file)) 281 (let* ((rev (vc-working-revision file 'Git))
282 (disp-rev (or (vc-git--symbolic-ref file) 282 (disp-rev (or (vc-git--symbolic-ref file)
283 (substring rev 0 7))) 283 (substring rev 0 7)))
284 (def-ml (vc-default-mode-line-string 'Git file)) 284 (def-ml (vc-default-mode-line-string 'Git file))