Giter VIP home page Giter VIP logo

orglink's Introduction

orglink's People

Contributors

nonsequitur avatar tarsius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

orglink's Issues

Links that are not links

I'm new to this mode. I quite like it, but I get several parts of elisp code linkified that are not links. For example:

(put-alist 'org-bbdb-anniversary-format-alist "obit"
       (lambda (name years suffix)
     (concat "[[bbdb:" name "][" name "'s "
         (number-to-string years)
         suffix " obit]]")))

or

(looking-back "^[[:space:]]*")

This is a bit annoying. Is it useful at all to search for links in code (i.e. outside of comments?). It is quite easy to test whether a certain POS is inside a comment by checking

(nth 4 (syntax-ppss pos))

After running `org-activate-*-links you could run through the buffer a second time, looking for property org-link, and remove those org-link propertizations that are outside of comments.

cond: Symbol’s value as variable is void: org-link-descriptive

GNU Emacs 27.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2019-08-04

command-execute: Buffer is read-only: #<buffer *Messages*>
Mark activated
Error during redisplay: (jit-lock-function 21) signaled (void-variable org-link-bracket-re) [17 times]
Error during redisplay: (jit-lock-function 100) signaled (void-variable org-link-bracket-re)
Error during redisplay: (jit-lock-function 115) signaled (void-variable org-link-bracket-re)

The future of orglink

Hi,

since org is one of very few ways to get hyperlinks in any arbitrary buffer (linkd.el is another, but not so widespread), and org is part of Emacs, this package IMHO should consequently become a part of org. I think many Emacs users unsuccessfully search for the feature this package offers in vanilla Emacs/org. Just my personal opinion,of course.

Not working with IELM, Eshell and probably other comint-derived modes

Hello Jonas,

with emacs -q,

  • if you type M-x ielm RET followed by M-x orglink-mode RET, it is not possible to type anything into the prompt;
  • and the same holds for M-x eshell RET.
  • It seems likely that other comint-derived major-modes are affected too.

Instead of inserting the input, this is echoed: funcall-interactively: Text is read-only.

Thankfully,
Mekeor

defvar-keymap is not defined

I have Emacs 28.2 and this doesn't seem to be installed, even with the compat dependency which I assume is a polyfill for the future API.

orglink mode makes buffer readonly

I can't find it orglink.el, but in my experience when I activated orglink-mode in a LUI-derived major-mode buffer it makes it readonly. Do you know what this might be about?

limitation to lisp modes

Hi,

when looking at `orglink-heading-link-search' and it's hardcoded ";;;+", it seems to me that orglink is currently limited to lisp modes. I don't see a necessity for such a limitation - do you plan to get rid of it?

Commenting a line starting with a link inserts the comment into the link

When you have (setq orglink-match-anywhere t) enabled and try to comment a line beginning with an org-link, the inside of the link description ends up commented instead of the link itself.

For example say I have a scratch buffer like this:

;; This buffer is for text that is not saved, and for Lisp evaluation.
;; To create a file, visit it with SPC f f and enter text in its buffer.

[[file:foo.html][blarg]]

On the last line if I run M-: (comment-region (line-beginning-position) (line-end-position)) I end up with

;; This buffer is for text that is not saved, and for Lisp evaluation.
;; To create a file, visit it with SPC f f and enter text in its buffer.

[[file:foo.html][;; blarg]]

Is there a way to fix this?

org-insert-link-global doesn't work with `global-orglink-mode`

I've found several other functions are also failing, and can't really work out how I'm expected to hook orglink mode since if I hook it into text-mode it gets called in org-mode and then throws an error.

Debugger entered--Lisp error: (error "Orglink Mode doesn’t make sense in Org Mode")
  signal(error ("Orglink Mode doesn’t make sense in Org Mode"))
  error("Orglink Mode doesn't make sense in Org Mode")
  orglink-mode(1)
  turn-on-orglink-mode-if-desired()
  global-orglink-mode-enable-in-buffers()
  run-hooks(after-change-major-mode-hook)
  run-mode-hooks(org-mode-hook)
  org-mode()
  org-get-local-variables()
  org-run-like-in-org-mode(org-insert-link)
  org-insert-link-global()
  funcall-interactively(org-insert-link-global)
  call-interactively(org-insert-link-global nil nil)
  command-execute(org-insert-link-global)

Note: My value of orglink-activate-in-modes is '(hledger-mode text-mode prog-mode conf-mode).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.