save-restriction in `org-mobile-push'
* lisp/org-mobile.el (org-mobile-push): add `save-restriction' The fact that pushing org-file loses my narrow context annoys me. TINYCHANGE
This commit is contained in:
parent
2b9f8c9433
commit
59eff74fad
|
@ -319,6 +319,7 @@ create all custom agenda views, for upload to the mobile phone."
|
|||
(org-agenda-tag-filter org-agenda-tag-filter)
|
||||
(org-agenda-redo-command org-agenda-redo-command))
|
||||
(save-excursion
|
||||
(save-restriction
|
||||
(save-window-excursion
|
||||
(run-hooks 'org-mobile-pre-push-hook)
|
||||
(org-mobile-check-setup)
|
||||
|
@ -335,7 +336,7 @@ create all custom agenda views, for upload to the mobile phone."
|
|||
(org-mobile-create-index-file)
|
||||
(message "Writing checksums...")
|
||||
(org-mobile-write-checksums)
|
||||
(run-hooks 'org-mobile-post-push-hook)))
|
||||
(run-hooks 'org-mobile-post-push-hook))))
|
||||
(setq org-agenda-buffer-name org-agenda-curbuf-name
|
||||
org-agenda-this-buffer-name org-agenda-curbuf-name))
|
||||
(redraw-display)
|
||||
|
|
Loading…
Reference in New Issue