From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Marco Wahl <marcowahlsoft@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Kill in eww and keep the links for org
Date: Tue, 07 Oct 2014 12:41:16 +0200 [thread overview]
Message-ID: <87wq8c2mcz.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <84fvf01961.fsf@tm6592.fritz.box> (Marco Wahl's message of "Tue, 07 Oct 2014 12:11:34 +0200")
Hello,
Marco Wahl <marcowahlsoft@gmail.com> writes:
> to kill in a w3m-buffer and yank into an org-mode-buffer by keeping the
> links is a long known feature in org-module org-w3m. The patch below
> provides this functionality for eww. Note that the code is very similar
> to the code for the w3m case.
>
> What do you think? Shall I try to push the code?
Since the file is in contrib and you're its author, you can obviously
push the code.
Some minor comments follow.
> +;;; org-eww.el --- Store url and kill from eww-mode for Org
Eww mode
> +(defun org-eww-no-next-link-p ()
> + "Whether there is no next link after the cursor.
> +Return t if there is no next link; otherwise, return nil."
> + (save-excursion
> + (equal (point) (org-eww-goto-next-url-property-change))))
(eq (point) (org-eww-goto-next-url-property-change))
> +(defun org-eww-url-below-point-p ()
> + "Return t if below point there is a url; otherwise, return nil."
> + (not (eq nil (org-eww-url-below-point))))
(org-eww-url-below-point)
or, if you insist on returning t,
(and (org-eww-url-below-point) t)
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2014-10-07 10:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-07 10:11 [PATCH] Kill in eww and keep the links for org Marco Wahl
2014-10-07 10:41 ` Nicolas Goaziou [this message]
2014-10-07 14:16 ` Marco Wahl
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=87wq8c2mcz.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=marcowahlsoft@gmail.com \
/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).