aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Berman2013-05-17 23:41:09 +0200
committerStephen Berman2013-05-17 23:41:09 +0200
commit17de84fb54684da90fbaf41184a36d25e65688b3 (patch)
treeb07575a90181272f4f0dc8490d3bf322aad5f695
parent60c9e803176c0635724a372f74752103e803a534 (diff)
downloademacs-17de84fb54684da90fbaf41184a36d25e65688b3.tar.gz
emacs-17de84fb54684da90fbaf41184a36d25e65688b3.zip
* todos.el (todos-done-separator): Use window-width for length, in
anticipation of bug#2749 being fixed.
-rw-r--r--lisp/calendar/ChangeLog5
-rw-r--r--lisp/calendar/todos.el16
2 files changed, 13 insertions, 8 deletions
diff --git a/lisp/calendar/ChangeLog b/lisp/calendar/ChangeLog
index 5a6bab346fc..10ea01075ce 100644
--- a/lisp/calendar/ChangeLog
+++ b/lisp/calendar/ChangeLog
@@ -1,5 +1,10 @@
12013-05-17 Stephen Berman <stephen.berman@gmx.net> 12013-05-17 Stephen Berman <stephen.berman@gmx.net>
2 2
3 * todos.el (todos-done-separator): Use window-width for length, in
4 anticipation of bug#2749 being fixed.
5
62013-05-17 Stephen Berman <stephen.berman@gmx.net>
7
3 * todos.el (todos-category-completions): Restore point after 8 * todos.el (todos-category-completions): Restore point after
4 ensuring category is properly displayed. 9 ensuring category is properly displayed.
5 10
diff --git a/lisp/calendar/todos.el b/lisp/calendar/todos.el
index 855ae7753e5..5b707de31dc 100644
--- a/lisp/calendar/todos.el
+++ b/lisp/calendar/todos.el
@@ -1147,14 +1147,14 @@ number as its value."
1147 "Return string used as value of variable `todos-done-separator'." 1147 "Return string used as value of variable `todos-done-separator'."
1148 (let ((sep todos-done-separator-string)) 1148 (let ((sep todos-done-separator-string))
1149 (propertize (if (= 1 (length sep)) 1149 (propertize (if (= 1 (length sep))
1150 ;; If separator's length is window-width, then 1150 ;; Until bug#2749 is fixed, if separator's length
1151 ;; with non-nil todos-wrap-lines and 1151 ;; is window-width, then with non-nil
1152 ;; todos-wrap-and-indent as value of 1152 ;; todos-wrap-lines and todos-wrap-and-indent as
1153 ;; todos-line-wrapping-function, an indented empty 1153 ;; value of todos-line-wrapping-function, an
1154 ;; line appears between the separator and the 1154 ;; indented empty line appears between the
1155 ;; first done item. 1155 ;; separator and the first done item.
1156 (make-string (1- (window-width)) (string-to-char sep)) 1156 ;; (make-string (1- (window-width)) (string-to-char sep))
1157 ;; (make-string (window-width) (string-to-char sep)) 1157 (make-string (window-width) (string-to-char sep))
1158 todos-done-separator-string) 1158 todos-done-separator-string)
1159 'face 'todos-done-sep))) 1159 'face 'todos-done-sep)))
1160 1160