From: "Christopher M. Miles" <numbchild@gmail.com>
To: Org Mode (org-mode) <emacs-orgmode@gnu.org>
Subject: [BUG] (org-element-context) on some link does not return search-option correctly
Date: Sat, 20 Nov 2021 19:13:45 +0800 [thread overview]
Message-ID: <PAXPR08MB66406A7C83E53D9C4A20711CA39D9@PAXPR08MB6640.eurprd08.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
When I put point on an custom org link:
#+begin_src org
[[pdf:~/Org/Wiki/Computer Technology/Programming/Programming Languages/Clojure/data/Books/Clojure经典实例.pdf::40++0.00][Clojure经典实例.pdf: Page 40]]
#+end_src
Then press =[M-: (org-element-context) RET]= to get link element properties. I got:
#+begin_example
(link (:type "pdf" :path "~/Org/Wiki/Computer Technology/Programming/Programming Languages/Clojure/data/Books/Clojure经典实例.pdf::40++0.00" :format bracket :raw-link "pdf:~/Org/Wiki/Computer Technology/Programming/Programming Languages/Clojure/data/Books/Clojure经典实例.pdf::40++0.00" :application nil :search-option nil ...))
#+end_example
You can see the result ~:search-option nil~. It suppose to be ~40++0.00~.
I tested with other link like this:
#+begin_src org
[[file:hs_err_pid20491.log::kkk+2]]
#+end_src
It returns ~:search-option~ correctly:
#+begin_example
(link (:type "file" :path "hs_err_pid20491.log" :format bracket :raw-link "file:hs_err_pid20491.log::kkk+2" :application nil :search-option "kkk+2" ...))
#+end_example
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2021-11-20 11:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-20 11:13 Christopher M. Miles [this message]
2021-11-20 12:28 ` [BUG] (org-element-context) on some link does not return search-option correctly Ihor Radchenko
2021-11-21 8:15 ` [ANSWERED] " Christopher M. Miles
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PAXPR08MB66406A7C83E53D9C4A20711CA39D9@PAXPR08MB6640.eurprd08.prod.outlook.com \
--to=numbchild@gmail.com \
--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 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).