comparison lisp/calendar/appt.el @ 104820:408195c2a9e5

(appt-check): Don't call substitute-in-file-name on diary-file.
author Glenn Morris <rgm@gnu.org>
date Thu, 03 Sep 2009 06:35:25 +0000
parents 9b52cad1866b
children 1d1d5d9bd884
comparison
equal deleted inserted replaced
104819:1468c5df344a 104820:408195c2a9e5
329 (if (assoc 'appt-make-list diary-hook) 329 (if (assoc 'appt-make-list diary-hook)
330 diary-hook 330 diary-hook
331 (cons 'appt-make-list diary-hook)))) 331 (cons 'appt-make-list diary-hook))))
332 (diary)) 332 (diary))
333 (let* ((diary-display-function 'appt-make-list) 333 (let* ((diary-display-function 'appt-make-list)
334 (d-buff (find-buffer-visiting 334 (d-buff (find-buffer-visiting diary-file))
335 (substitute-in-file-name diary-file)))
336 (selective 335 (selective
337 (if d-buff ; diary buffer exists 336 (if d-buff ; diary buffer exists
338 (with-current-buffer d-buff 337 (with-current-buffer d-buff
339 diary-selective-display)))) 338 diary-selective-display))))
340 (diary) 339 (diary)
341 ;; If the diary buffer existed before this command, 340 ;; If the diary buffer existed before this command,
342 ;; restore its display state. Otherwise, kill it. 341 ;; restore its display state. Otherwise, kill it.
343 (if d-buff 342 (if d-buff
344 ;; Displays the diary buffer. 343 ;; Displays the diary buffer.
345 (or selective (diary-show-all-entries)) 344 (or selective (diary-show-all-entries))
346 (and (setq d-buff (find-buffer-visiting 345 (and (setq d-buff (find-buffer-visiting diary-file))
347 (substitute-in-file-name diary-file)))
348 (kill-buffer d-buff))))) 346 (kill-buffer d-buff)))))
349 (error nil))) 347 (error nil)))
350 (setq appt-prev-comp-time cur-comp-time 348 (setq appt-prev-comp-time cur-comp-time
351 appt-mode-string nil 349 appt-mode-string nil
352 appt-display-count nil) 350 appt-display-count nil)