mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-09 15:50:21 +00:00
(list-yahrzeit-dates): Use calendar-in-read-only-buffer to replace
previous code and disable undo.
This commit is contained in:
parent
9449f9ebe4
commit
318a548888
@ -687,8 +687,7 @@ from the cursor position."
|
||||
(h-month (extract-calendar-month h-date))
|
||||
(h-day (extract-calendar-day h-date))
|
||||
(h-year (extract-calendar-year h-date)))
|
||||
(set-buffer (get-buffer-create cal-hebrew-yahrzeit-buffer))
|
||||
(setq buffer-read-only nil)
|
||||
(calendar-in-read-only-buffer cal-hebrew-yahrzeit-buffer
|
||||
(calendar-set-mode-line
|
||||
(format "Yahrzeit dates for %s = %s"
|
||||
(calendar-date-string death-date)
|
||||
@ -697,8 +696,6 @@ from the cursor position."
|
||||
calendar-hebrew-month-name-array-leap-year
|
||||
calendar-hebrew-month-name-array-common-year)))
|
||||
(calendar-date-string h-date nil t))))
|
||||
(erase-buffer)
|
||||
(goto-char (point-min))
|
||||
(calendar-for-loop i from start-year to end-year do
|
||||
(insert
|
||||
(calendar-date-string
|
||||
@ -707,12 +704,7 @@ from the cursor position."
|
||||
h-date
|
||||
(extract-calendar-year
|
||||
(calendar-hebrew-from-absolute
|
||||
(calendar-absolute-from-gregorian
|
||||
(list 1 1 i))))))) "\n"))
|
||||
(goto-char (point-min))
|
||||
(set-buffer-modified-p nil)
|
||||
(setq buffer-read-only t)
|
||||
(display-buffer cal-hebrew-yahrzeit-buffer)
|
||||
(calendar-absolute-from-gregorian (list 1 1 i))))))) "\n")))
|
||||
(message "Computing Yahrzeits...done")))
|
||||
|
||||
(defvar date)
|
||||
|
Loading…
Reference in New Issue
Block a user