emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: refreshing agenda moves all lines up [9.4.6 (9.4.6-12-gdcc3a8-elpa @ /Users/pu/.emacs.d/elpa/org-20210802/)]
@ 2021-08-06  7:20 pat
  2021-08-11  1:04 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: pat @ 2021-08-06  7:20 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 7724 bytes --]

Hello everybody,

my first bug report so I hope this is useful.

Since the last org-mode update, whenever I press "r" to refresh my customised agenda view (org-agenda-redo),
the whole buffer moves up by 1 line, which hasn't been the case until now.

Emacs : GNU Emacs 27.2 (build 1, aarch64-apple-darwin20.5.0, NS appkit-2022.50 Version 11.4 (Build 20F71))
 of 2021-06-05
Package: Org mode version 9.4.6 (9.4.6-12-gdcc3a8-elpa @ /Users/pu/.emacs.d/elpa/org-20210802/)

current state:
==============
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-capture-prepare-finalize-hook '(org-roam-capture--install-finalize)
 org-link-shell-confirm-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-roam-db-node-include-function #[0 "300207" [t] 1]
 org-refile-targets '((nil :maxlevel . 9))
 org-agenda-files '("/Users/pu/nc/Emacs/org/work.org"
 "/Users/pu/nc/Emacs/org-roam/20210724155503-vakanz_cl.org"
 "/Users/pu/nc/Emacs/org-roam/20210725223625-geofencing.org"
 "/Users/pu/nc/Emacs/org-roam/20210726130719-borgbackup.org"
 "/Users/pu/nc/Emacs/org-roam/20210726131153-backup.org"
 "/Users/pu/nc/Emacs/org-roam/20210727000115-agile.org"
 "/Users/pu/nc/Emacs/org-roam/20210727001222-gdpr.org"
 "/Users/pu/nc/Emacs/org-roam/20210727105327-emacs.org"
 "/Users/pu/nc/Emacs/org-roam/20210727105409-toc.org"
 "/Users/pu/nc/Emacs/org-roam/20210728145813-alter_ego.org"
 "/Users/pu/nc/Emacs/org-roam/20210730111443-communication.org"
 "/Users/pu/nc/Emacs/org-roam/20210730111506-sync_vs_async.org"
 "/Users/pu/nc/Emacs/org-roam/20210801155154-ios_backups.org")
 org-mode-hook '(#[0 "300301302303304$207"
 [add-hook change-major-mode-hook org-show-all append local] 5]
 #[0 "300301302303304$207"
 [add-hook change-major-mode-hook org-babel-show-result-all append local]
 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-outline-path-complete-in-steps nil
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-roam-capture-new-node-hook '(org-roam-capture--insert-ref)
 org-agenda-use-time-grid nil
 org-confirm-elisp-link-function 'yes-or-no-p
 org-todo-repeat-to-state "TODO"
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function #[257 "300236A207" [:title] 3 "nn(fn ENTRY)"]
 org-babel-pre-tangle-hook '(save-buffer)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-hide-leading-stars t
 org-load-hook '((closure (t) nil (define-key org-mode-map "a" 'org-agenda)
 (setq org-hide-leading-stars t) (setq org-return-follows-link t)
 (setq org-agenda-show-future-repeats nil) (setq org-tags-column -90)
 (setq org-todo-keyword-faces
 '(("WAIT" :foreground "dark cyan") ("TODO" :foreground "orange")
 ("DELG" :foreground "brown") ("DONE" :foreground "grey"))
 )
 (setq calendar-week-start-day 1) (setq org-deadline-warning-days 0)
 (setq org-todo-repeat-to-state "TODO")
 (setq org-agenda-sorting-strategy
 '((agenda priority-down todo-state-down alpha-up)
 (todo priority-down category-keep) (tags priority-down category-keep)
 (search category-keep))
 )
 (setq org-agenda-custom-commands
 '(("L" "PU's view"
 ((todo "TODO"
 ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled))
 (org-agenda-prefix-format '((todo . " "))))
 )
 (agenda ""
 ((org-agenda-span 15) (org-agenda-prefix-format '((agenda . " ")))))
 nil ("~/nc/Emacs/org/agenda.txt"))
 )
 )
 )
 (setq org-agenda-start-with-follow-mode t))
 )
 org-agenda-loop-over-headlines-in-active-region nil
 org-roam-mode-section-functions '(org-roam-backlinks-section org-roam-reflinks-section
 org-roam-unlinked-references-section)
 org-roam-find-file-hook '(org-roam-open-id-with-org-roam-db-h
 org-roam--replace-roam-links-on-save-h
 org-roam--register-completion-functions
 org-roam-buffer--setup-redisplay-h org-roam-db--update-on-save-h)
 org-occur-hook '(org-first-headline-recenter)
 org-agenda-mode-hook '((closure (t) nil
 (define-key org-agenda-mode-map "360" 'org-agenda-backward-block)
 (define-key org-agenda-mode-map "356" 'org-agenda-forward-block))
 (closure (t) nil (define-key org-agenda-mode-map "k" 'kan)))
 org-log-into-drawer t
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
 org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)
 org-roam-node-annotation-function 'org-roam-node--annotation
 org-tags-column -90
 org-return-follows-link t
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("attachment" :follow org-attach-follow :complete
 org-attach-complete-link)
 ("eww" :follow org-eww-open :store org-eww-store-link)
 ("rmail" :follow org-rmail-open :store org-rmail-store-link)
 ("mhe" :follow org-mhe-open :store org-mhe-store-link)
 ("irc" :follow org-irc-visit :store org-irc-store-link :export
 org-irc-export)
 ("info" :follow org-info-open :export org-info-export :store
 org-info-store-link)
 ("gnus" :follow org-gnus-open :store org-gnus-store-link)
 ("docview" :follow org-docview-open :export org-docview-export :store
 org-docview-store-link)
 ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
 ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete
 org-bbdb-complete-link :store org-bbdb-store-link)
 ("w3m" :store org-w3m-store-link)
 ("deft" :follow deft--org-follow-link :store org-deft-store-link
 :complete deft--org-complete)
 ("roam" :follow org-roam-link-follow-link) ("id" :follow org-id-open)
 ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell)
 ("news" :follow
 #[514 "301300302Q"207" ["news" browse-url ":"] 6
 "nn(fn URL ARG)"]
 )
 ("mailto" :follow
 #[514 "301300302Q"207" ["mailto" browse-url ":"] 6
 "nn(fn URL ARG)"]
 )
 ("https" :follow
 #[514 "301300302Q"207" ["https" browse-url ":"] 6
 "nn(fn URL ARG)"]
 )
 ("http" :follow
 #[514 "301300302Q"207" ["http" browse-url ":"] 6
 "nn(fn URL ARG)"]
 )
 ("ftp" :follow
 #[514 "301300302Q"207" ["ftp" browse-url ":"] 6
 "nn(fn URL ARG)"]
 )
 ("help" :follow org-link--open-help)
 ("file" :complete org-link-complete-file)
 ("elisp" :follow org-link--open-elisp)
 ("doi" :follow org-link--open-doi))
 org-agenda-skip-scheduled-if-done t
 org-agenda-start-with-follow-mode t
 org-capture-templates '(("t" "Todo (work)" entry
 (file+headline "~/nc/Emacs/org/work.org" "Capture")
 "* TODO %^{Task Description}" :prepend t)
 ("n" "Note (work)" entry
 (file+headline "~/nc/Emacs/org/work.org" "Capture")
 (file "~/nc/Emacs/org/capture-note.txt") :prepend t)
 )
 org-link-elisp-confirm-function 'yes-or-no-p
 org-todo-keyword-faces '(("WAIT" :foreground "dark cyan") ("TODO" :foreground "orange")
 ("DELG" :foreground "brown") ("DONE" :foreground "grey"))
 org-roam-directory "/Users/pu/nc/Emacs/org-roam"
 org-deadline-warning-days 0
 org-agenda-custom-commands '(("L" "PU's view"
 ((todo "TODO"
 ((org-agenda-skip-function
 '(org-agenda-skip-entry-if 'scheduled))
 (org-agenda-prefix-format '((todo . " "))))
 )
 (agenda ""
 ((org-agenda-span 15)
 (org-agenda-prefix-format '((agenda . " "))))
 )
 nil ("~/nc/Emacs/org/agenda.txt"))
 )
 )
 org-agenda-sorting-strategy '((agenda priority-down todo-state-down alpha-up)
 (todo priority-down category-keep)
 (tags priority-down category-keep) (search category-keep))
 org-agenda-show-future-repeats nil
 )

[-- Attachment #2: Type: text/html, Size: 8391 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: refreshing agenda moves all lines up [9.4.6 (9.4.6-12-gdcc3a8-elpa @ /Users/pu/.emacs.d/elpa/org-20210802/)]
  2021-08-06  7:20 Bug: refreshing agenda moves all lines up [9.4.6 (9.4.6-12-gdcc3a8-elpa @ /Users/pu/.emacs.d/elpa/org-20210802/)] pat
@ 2021-08-11  1:04 ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2021-08-11  1:04 UTC (permalink / raw)
  To: emacs-orgmode

pat@disroot.org writes:

> Hello everybody,
>
> my first bug report so I hope this is useful.
>
> Since the last org-mode update, whenever I press "r" to refresh my customised agenda view (org-agenda-redo),
> the whole buffer moves up by 1 line, which hasn't been the case until now.
>

This was probably a bad interaction with `visual-line-mode', although
what exactly that means is not clear to me: see

    https://emacs.stackexchange.com/questions/67999/refresh-org-agenda-org-agenda-redo-scrolls-buffer-by-1-line

for some more details.

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-11  1:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-06  7:20 Bug: refreshing agenda moves all lines up [9.4.6 (9.4.6-12-gdcc3a8-elpa @ /Users/pu/.emacs.d/elpa/org-20210802/)] pat
2021-08-11  1:04 ` Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).