From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Adam Porter <adam@alphapapa.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Add org-bookmark-heading to Org proper?
Date: Thu, 22 Sep 2016 21:35:52 +0200 [thread overview]
Message-ID: <87lgyjk9rb.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <8760podmwr.fsf@alphapapa.net> (Adam Porter's message of "Thu, 22 Sep 2016 09:33:40 -0500")
Hello,
> Given that, now might be a good time to consider merging the package
> into Org proper. It seems like something that should be in Org already,
> being able to make Emacs bookmarks that point to Org headings. It's
> actually just three functions, so not much of a "package" really.
>
> https://github.com/alphapapa/org-bookmark-heading
>
> Thoughts? :)
I think Org could benefit from a shrunk version of this library, i.e.,
`org-bookmark-make-record' and `org-bookmark-jump'.
However I'm not convinced about `org-bookmark-jump-indirect' since this
variable complicates code and the same effect can be achieved easily
once the destination headline is reached.
Besides, the helm part doesn't really belong to Org. IIUC, it is not
even needed if we drop support for `org-bookmark-jump-indirect', as
suggested above.
A few suggestions, after a cursory look:
- please switch to lexical binding as all but one file in Org core,
- it is "Org mode", not "org-mode"
- `org-replace-links-in-string-with-desc' already exists, it is
(mis)called `org-link-display-format'
- `assoc' -> `assq' when key is a symbol
- if you create a marker, unset it once useless
- first sentence in docstrings has to fit in the first line.
Thank you for your work.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2016-09-22 19:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-22 14:33 Add org-bookmark-heading to Org proper? Adam Porter
2016-09-22 15:11 ` Xebar Saram
2016-09-22 15:19 ` Kaushal Modi
2016-09-22 17:04 ` Adam Porter
2016-09-22 15:52 ` Aaron Ecay
2016-09-22 17:01 ` Adam Porter
2016-09-22 19:35 ` Nicolas Goaziou [this message]
2016-09-22 23:40 ` Adam Porter
2016-09-24 17:11 ` Nicolas Goaziou
2016-09-25 1:40 ` Adam Porter
2016-09-25 8:14 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lgyjk9rb.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=adam@alphapapa.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.