[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Kill in eww and keep the links for org
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] Kill in eww and keep the links for org |
Date: |
Tue, 07 Oct 2014 12:41:16 +0200 |
Hello,
Marco Wahl <address@hidden> 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