profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/brabalan/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

bcpierce00/unison 2108

Unison file synchronizer

brabalan/org-review 26

Track when you have done a review in org mode

tilk/LambdaCert 2

Certified LambdaJS semantics and interpreter.

brabalan/homebrew 1

The missing package manager for OS X.

brabalan/opam 1

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.

brabalan/agendas 0

TC39 meeting agendas

brabalan/code.pyret.org 0

Website for serving Pyret to folks.

brabalan/doom-emacs 0

An Emacs configuration for the stubborn martian vimmer

brabalan/ecma262 0

Status, process, and documents for ECMA262

issue commentorg-roam/org-roam

(invalid-function (target (org-roam-capture--get :if-new)))

I confirm it works. Thanks!

brabalan

comment created time in 19 days

issue commentorg-roam/org-roam

(invalid-function (target (org-roam-capture--get :if-new)))

I tried another workaround, (advice-remove 'org-roam-capture--get-target #'org-roam-capture--get-if-new-target-a), and it works. I asked on the doom discord if there are known issues about compiling advices in 27.2 (I seem to remember reading something, but I cannot find it.)

I guess this issue can be closed if you cannot reproduce it.

brabalan

comment created time in 21 days

issue commentorg-roam/org-roam

(invalid-function (target (org-roam-capture--get :if-new)))

If I evaluate the advice org-roam-capture--get-if-new-target-a in org-roam-compat.el, things work. So there is a compilation issue with that advice in doom.

brabalan

comment created time in 21 days

issue commentorg-roam/org-roam

(invalid-function (target (org-roam-capture--get :if-new)))

I just did a doom build and I get the same error. I’m going to try to edebug it.

brabalan

comment created time in 21 days

issue openedorg-roam/org-roam

(invalid-function (target (org-roam-capture--get :if-new)))

Description

After updating org-roam, my dailies templates no longer work. I renamed if-new to target in the templates, to no avail.

Steps to Reproduce

  • call (org-roam-dailies-goto-today)
  • choose a template

Backtrace

Debugger entered--Lisp error: (invalid-function (target (org-roam-capture--get :if-new)))
  (target (org-roam-capture--get :if-new))()
  org-roam-capture--get-if-new-target-a((closure (org-end-time-was-given t) nil "Get the current capture :target for the capture te..." (or (org-roam-capture--get :target) (user-error "Template needs to specify `:target'"))))
  apply(org-roam-capture--get-if-new-target-a (closure (org-end-time-was-given t) nil "Get the current capture :target for the capture te..." (or (org-roam-capture--get :target) (user-error "Template needs to specify `:target'"))) nil)
  org-roam-capture--get-target()
  (let* ((val (org-roam-capture--get-target))) (if (consp val) (let* ((x103 (car val))) (cond ((eq x103 'file) (let* ((x104 ...)) (if (consp x104) (let* ... ...) nil))) ((eq x103 'file+olp) (let* ((x107 ...)) (if (consp x107) (let* ... ...) nil))) ((eq x103 'file+head) (let* ((x112 ...)) (if (consp x112) (let* ... ...) nil))) ((eq x103 'file+head+olp) (let* ((x117 ...)) (if (consp x117) (let* ... ...) nil))) ((eq x103 'file+datetree) (let* ((x124 ...)) (if (consp x124) (let* ... ...) nil))) ((eq x103 'node) (let* ((x129 ...)) (if (consp x129) (let* ... ...) nil))) (t nil))) nil))
  (let (p new-file-p) (let* ((val (org-roam-capture--get-target))) (if (consp val) (let* ((x103 (car val))) (cond ((eq x103 'file) (let* (...) (if ... ... nil))) ((eq x103 'file+olp) (let* (...) (if ... ... nil))) ((eq x103 'file+head) (let* (...) (if ... ... nil))) ((eq x103 'file+head+olp) (let* (...) (if ... ... nil))) ((eq x103 'file+datetree) (let* (...) (if ... ... nil))) ((eq x103 'node) (let* (...) (if ... ... nil))) (t nil))) nil)) (save-excursion (goto-char p) (let* ((node (and t org-roam-capture--node)) (id (and node (progn (or ... ...) (aref node 5))))) (if id (org-entry-put p "ID" id))) (prog1 (org-id-get-create) (run-hooks 'org-roam-capture-new-node-hook))))
  org-roam-capture--setup-target-location()
  (cond ((run-hook-with-args-until-success 'org-roam-capture-preface-hook)) (t (org-roam-capture--setup-target-location)))
  (let ((id (cond ((run-hook-with-args-until-success 'org-roam-capture-preface-hook)) (t (org-roam-capture--setup-target-location))))) (org-roam-capture--adjust-point-for-capture-type) (org-capture-put :template (org-roam-capture--fill-template (org-capture-get :template))) (org-roam-capture--put :id id) (org-roam-capture--put :finalize (or (org-capture-get :finalize) (org-roam-capture--get :finalize))))
  org-roam-capture--prepare-buffer()
  org-capture-set-target-location()
  org-capture-goto-target(nil)
  #f(compiled-function (&optional goto keys) "Capture something.\n\\<org-capture-mode-map>\nThis will let you select a template from `org-capture-templates', and\nthen file the newly captured information.  The text is immediately\ninserted at the target location, and an indirect buffer is shown where\nyou can edit it.  Pressing `\\[org-capture-finalize]' brings you back to the previous\nstate of Emacs, so that you can continue your work.\n\nWhen called interactively with a `\\[universal-argument]' prefix argument GOTO, don't\ncapture anything, just go to the file/headline where the selected\ntemplate stores its notes.\n\nWith a `\\[universal-argument] \\[universal-argument]' prefix argument, go to the last note stored.\n\nWhen called with a `C-0' (zero) prefix, insert a template at point.\n\nWhen called with a `C-1' (one) prefix, force prompting for a date when\na datetree entry is made.\n\nELisp programs can set KEYS to a string associated with a template\nin `org-capture-templates'.  In this case, interactive selection\nwill be bypassed.\n\nIf `org-capture-use-agenda-date' is non-nil, capturing from the\nagenda will use the date at point as the default date.  Then, a\n`C-1' prefix will tell the capture process to use the HH:MM time\nof the day at point (if any) or the current HH:MM time." (interactive "P") #<bytecode 0x1560693fedb9>)((4) nil)
  apply(#f(compiled-function (&optional goto keys) "Capture something.\n\\<org-capture-mode-map>\nThis will let you select a template from `org-capture-templates', and\nthen file the newly captured information.  The text is immediately\ninserted at the target location, and an indirect buffer is shown where\nyou can edit it.  Pressing `\\[org-capture-finalize]' brings you back to the previous\nstate of Emacs, so that you can continue your work.\n\nWhen called interactively with a `\\[universal-argument]' prefix argument GOTO, don't\ncapture anything, just go to the file/headline where the selected\ntemplate stores its notes.\n\nWith a `\\[universal-argument] \\[universal-argument]' prefix argument, go to the last note stored.\n\nWhen called with a `C-0' (zero) prefix, insert a template at point.\n\nWhen called with a `C-1' (one) prefix, force prompting for a date when\na datetree entry is made.\n\nELisp programs can set KEYS to a string associated with a template\nin `org-capture-templates'.  In this case, interactive selection\nwill be bypassed.\n\nIf `org-capture-use-agenda-date' is non-nil, capturing from the\nagenda will use the date at point as the default date.  Then, a\n`C-1' prefix will tell the capture process to use the HH:MM time\nof the day at point (if any) or the current HH:MM time." (interactive "P") #<bytecode 0x1560693fedb9>) ((4) nil))
  (let ((+file-templates-inhibit t)) (apply fn args))
  +file-templates-inhibit-in-org-capture-a(#f(compiled-function (&optional goto keys) "Capture something.\n\\<org-capture-mode-map>\nThis will let you select a template from `org-capture-templates', and\nthen file the newly captured information.  The text is immediately\ninserted at the target location, and an indirect buffer is shown where\nyou can edit it.  Pressing `\\[org-capture-finalize]' brings you back to the previous\nstate of Emacs, so that you can continue your work.\n\nWhen called interactively with a `\\[universal-argument]' prefix argument GOTO, don't\ncapture anything, just go to the file/headline where the selected\ntemplate stores its notes.\n\nWith a `\\[universal-argument] \\[universal-argument]' prefix argument, go to the last note stored.\n\nWhen called with a `C-0' (zero) prefix, insert a template at point.\n\nWhen called with a `C-1' (one) prefix, force prompting for a date when\na datetree entry is made.\n\nELisp programs can set KEYS to a string associated with a template\nin `org-capture-templates'.  In this case, interactive selection\nwill be bypassed.\n\nIf `org-capture-use-agenda-date' is non-nil, capturing from the\nagenda will use the date at point as the default date.  Then, a\n`C-1' prefix will tell the capture process to use the HH:MM time\nof the day at point (if any) or the current HH:MM time." (interactive "P") #<bytecode 0x1560693fedb9>) (4) nil)
  apply(+file-templates-inhibit-in-org-capture-a #f(compiled-function (&optional goto keys) "Capture something.\n\\<org-capture-mode-map>\nThis will let you select a template from `org-capture-templates', and\nthen file the newly captured information.  The text is immediately\ninserted at the target location, and an indirect buffer is shown where\nyou can edit it.  Pressing `\\[org-capture-finalize]' brings you back to the previous\nstate of Emacs, so that you can continue your work.\n\nWhen called interactively with a `\\[universal-argument]' prefix argument GOTO, don't\ncapture anything, just go to the file/headline where the selected\ntemplate stores its notes.\n\nWith a `\\[universal-argument] \\[universal-argument]' prefix argument, go to the last note stored.\n\nWhen called with a `C-0' (zero) prefix, insert a template at point.\n\nWhen called with a `C-1' (one) prefix, force prompting for a date when\na datetree entry is made.\n\nELisp programs can set KEYS to a string associated with a template\nin `org-capture-templates'.  In this case, interactive selection\nwill be bypassed.\n\nIf `org-capture-use-agenda-date' is non-nil, capturing from the\nagenda will use the date at point as the default date.  Then, a\n`C-1' prefix will tell the capture process to use the HH:MM time\nof the day at point (if any) or the current HH:MM time." (interactive "P") #<bytecode 0x1560693fedb9>) ((4) nil))
  org-capture((4) nil)
  (let* ((props (plist-put props :call-location (point-marker))) (org-capture-templates (mapcar #'(lambda (template) (org-roam-capture--convert-template template props)) (or templates org-roam-capture-templates))) (org-roam-capture--node node) (org-roam-capture--info info)) (if (and (not keys) (= (length org-capture-templates) 1)) (progn (setq keys (car (car org-capture-templates))))) (org-capture goto keys))
  (progn (let ((--cl-keys-- --cl-rest--)) (while --cl-keys-- (cond ((memq (car --cl-keys--) '(:goto :keys :node :info :props :templates :allow-other-keys)) (setq --cl-keys-- (cdr (cdr --cl-keys--)))) ((car (cdr (memq ... --cl-rest--))) (setq --cl-keys-- nil)) (t (error "Keyword argument %s not one of (:goto :keys :node ..." (car --cl-keys--)))))) (let* ((props (plist-put props :call-location (point-marker))) (org-capture-templates (mapcar #'(lambda (template) (org-roam-capture--convert-template template props)) (or templates org-roam-capture-templates))) (org-roam-capture--node node) (org-roam-capture--info info)) (if (and (not keys) (= (length org-capture-templates) 1)) (progn (setq keys (car (car org-capture-templates))))) (org-capture goto keys)))
  (let* ((goto (car (cdr (plist-member --cl-rest-- ':goto)))) (keys (car (cdr (plist-member --cl-rest-- ':keys)))) (node (car (cdr (plist-member --cl-rest-- ':node)))) (info (car (cdr (plist-member --cl-rest-- ':info)))) (props (car (cdr (plist-member --cl-rest-- ':props)))) (templates (car (cdr (plist-member --cl-rest-- ':templates))))) (progn (let ((--cl-keys-- --cl-rest--)) (while --cl-keys-- (cond ((memq (car --cl-keys--) '...) (setq --cl-keys-- (cdr ...))) ((car (cdr ...)) (setq --cl-keys-- nil)) (t (error "Keyword argument %s not one of (:goto :keys :node ..." (car --cl-keys--)))))) (let* ((props (plist-put props :call-location (point-marker))) (org-capture-templates (mapcar #'(lambda ... ...) (or templates org-roam-capture-templates))) (org-roam-capture--node node) (org-roam-capture--info info)) (if (and (not keys) (= (length org-capture-templates) 1)) (progn (setq keys (car (car org-capture-templates))))) (org-capture goto keys))))
  org-roam-capture-(:goto (4) :node #s(org-roam-node :file nil :file-hash nil :file-atime nil :file-mtime nil :id nil :level nil :point nil :todo nil :priority nil :scheduled nil :deadline nil :title nil :properties nil :olp nil :tags nil :aliases nil :refs nil) :templates (("j" "journal" entry "* %<%H:%M> %?" :target (file+head+olp "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d (%A)>\n#+startup: showall\n* Dai..." ("Journal"))) ("t" "do today" item "[ ] %a" :target (file+head+olp "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d (%A)>\n#+startup: showall\n* Dai..." ("Do Today")) :immediate-finish t) ("m" "maybe do today" item "[ ] %a" :target (file+head+olp "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d (%A)>\n#+startup: showall\n* Dai..." ("Maybe Do Today")) :immediate-finish t)) :props (:override-default-time (24873 3148 670062 984000) :call-location #<marker at 1 in 20210707175728-exporting_pdfs_with_annotations_on_remarkable_2.org>))
  (let ((org-roam-directory (expand-file-name org-roam-dailies-directory org-roam-directory))) (org-roam-capture- :goto (if goto (progn '(4))) :node (record 'org-roam-node nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil) :templates org-roam-dailies-capture-templates :props (list :override-default-time time)))
  org-roam-dailies--capture((24873 3148 670062 984000) t)
  org-roam-dailies-capture-today(t)
  org-roam-dailies-goto-today()
  funcall-interactively(org-roam-dailies-goto-today)
  call-interactively(org-roam-dailies-goto-today nil nil)
  command-execute(org-roam-dailies-goto-today)

Environment

  • Emacs: GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4) of 2021-03-26
  • Framework: Doom
  • Org: Org mode version 9.5 (9.5-b83ae59 @ /home/schmitta/.emacs-configs/doom-emacs/.local/straight/build-27.2/org/)
  • Org-roam: v2.1.0-10-gcfabe0e

created time in 21 days

issue commenthlissner/doom-emacs

Coq's Proof General fails to install on first run.

I no longer have the symbolic link and I’m no longer seeing the error. I think this can be closed.

brettgilio

comment created time in 24 days

issue commenthlissner/doom-emacs

Impossible to toggle flyspell in `notmuch-message-mode` buffers

This issue is still relevant, and the workaround proposed still works.

brabalan

comment created time in 25 days

issue openedhlissner/doom-emacs

`consult-notmuch` raises the error `Symbol’s value as variable is void: consult-async-default-split`

What package(s) should be bumped?

  • consult-notmuch
  • consult

Why should Doom bump these packages early?

  • The pinned version of consult-notmuch uses a void variable consult-async-default-split, this has been fixed in https://codeberg.org/jao/consult-notmuch/commit/b8d476f523abc97c2540a7cd66ff16875967cf42
  • the current version of consult-notmuch needs a recent version of consult (I think since https://codeberg.org/jao/consult-notmuch/commit/a5133b9e1f19b6d51e51dd5c5e3a4f236ca29b57)

created time in a month

issue commentorg-roam/org-roam

v2: All the variants of `:if-new (file+[headline] ...)` don't capture to the right places

Thank you for the explanation!

Wetlize

comment created time in a month

issue commentorg-roam/org-roam

v2: All the variants of `:if-new (file+[headline] ...)` don't capture to the right places

@Wetlize Ah, thank you, I confirm it works. I was surprised the goto command was bringing up the capture template dialog. What would it be used for?

Wetlize

comment created time in a month

issue commentorg-roam/org-roam

v2: All the variants of `:if-new (file+[headline] ...)` don't capture to the right places

I’m also having an issue with file+head+olp. Should the following work?

    (setq org-roam-dailies-capture-templates
          (let ((head
                 (concat "#+title: %<%Y-%m-%d (%A)>\n#+startup: showall\n* Daily Overview\n"
                         "#+begin_src emacs-lisp :results value raw\n"
                         "(as/get-daily-agenda \"%<%Y-%m-%d>\")\n"
                         "#+end_src\n"
                         "* [/] Do Today\n* [/] Maybe Do Today\n* Journal\n")))
            `(("j" "journal" entry
               "* %<%H:%M> %?" :if-new
               (file+head+olp "%<%Y-%m-%d>.org" ,head ("Journal"))))))

When I test it, the file is created with the correct template, but the Journal item (with the current time) is not inserted.

Please let me know if I should open another issue for it.

Wetlize

comment created time in a month

issue commenthlissner/doom-emacs

No binding for evil-easymotion in orgmode using bepo layout

I just tested it, and g s in org-mode is org-backward-element (g é is evilmotion prefix). There is a little bit of inconsistency here as g t is workspace switching, except in motion mode (where it is org-forward-element).

brabalan

comment created time in a month

issue commenthlissner/doom-emacs

layout +bepo does not work with notmuch

Everything is working fine now in notmuch mode.

brabalan

comment created time in a month

issue closedhlissner/doom-emacs

layout +bepo does not work with notmuch

In notmuch-show-mode with layout +bepo enabled, the navigation keys do not work, except t to go down and c to go left:

  • s is still notmuch-search
  • r is a prefix key
  • C-t opens a new workspace (instead of going to the next message)
  • C-s starts isearch (instead of going to the previous message)

closed time in a month

brabalan

issue commenthlissner/doom-emacs

No binding for evil-easymotion in orgmode using bepo layout

I think this can be closed, evil-easymotion is accessible both through g s and g é.

brabalan

comment created time in a month

issue commenthlissner/doom-emacs

Layout bepo is remapped by evil-snipe

Sorry, I had misunderstood. Yes, I confirm everything is fixed here.

rbocheux

comment created time in 2 months

issue commenthlissner/doom-emacs

Layout bepo is remapped by evil-snipe

I never had it pinned. I did not notice this before as I restart emacs very rarely.

rbocheux

comment created time in 2 months

issue commenthlissner/doom-emacs

Layout bepo is remapped by evil-snipe

I’ve updated to latest doom, and I still need to have (remove-hook 'doom-first-input-hook #'evil-snipe-mode) to keep the correct binding to s. In addition, I need to run (evil-snipe-override-mode) to get t back.

rbocheux

comment created time in 2 months