markdown-mode icon indicating copy to clipboard operation
markdown-mode copied to clipboard

feature request: make links work with the emacs buttons package

Open nrnrnr opened this issue 3 years ago • 0 comments

Proposed Behavior

When a buffer is rendered using markdown-mode, links are set up in such a way that a mouse click on the link will follow the link (e.g., by invoking browse-url). I would like these links also to be "buttons" in the sense of the buttons package. In particular, I would like commands forward-button, backward-button, and push-button to work with these links.

Current Behavior

Running forward-button in a buffer rendered with markdown-mode results in a message No buttons!.

Steps to Reproduce

  1. Create a file test.md with the following contents:

    (Home page)[http://www.cs.tufts.edu/~nr/].
    
  2. Load the markdown-mode package.

  3. Run M-x markdown-mode.

  4. Confirm that clicking the link launches a browser.

  5. Confirm that forward-button finds no buttons.

Software Versions

OS is

  • Markdown Mode: markdown-mode, version 2.5-dev
  • Emacs: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-27, modified by Debian
  • OS: Debian stable (bullseye)

Other

My Emacs Lisp skills are somewhat limited, but I'm willing to try to do something to make this happen.

nrnrnr avatar Sep 23 '21 19:09 nrnrnr