emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniele Pizzolli <dan@toel.it>
To: emacs-orgmode@gnu.org
Subject: Re: "Capture"-like browser plugin?
Date: Fri, 18 Sep 2015 16:03:22 +0200	[thread overview]
Message-ID: <87k2rnzzzz4yfp@me.localhost.invalid> (raw)
In-Reply-To: CAJcAo8uBy5cFKJK0fLO3DN7W8wo+1X6=ZniJVMKsA+h7WJnchg@mail.gmail.com

On Thu, Sep 17 2015, Samuel Wales wrote:

> On 7/23/15, Daniele Pizzolli wrote:
>> https://addons.mozilla.org/it/firefox/addon/org-mode-capture/
>>
>> The latest version convert html links to org-links (disclaimer: it is my
>> little contribution).
>
> this extension is wonderful.  all you have to do is install it and
> then do what you want with it in elisp.  i use it with iceweasel
> 40.0.3 (rebranded firefox).

Hello Samuel,

Nice to hear.

> however, it (or org-protocol) is very flaky.  it works half of the
> time, but sometimes it will do nothing and say "No server buffers
> remain to edit"

So, not so wonderful..  I just found out how to reproduce this problem.

Open a page with two frames, for example:

http://www.quackit.com/html/templates/download/preview.cfm?template=../frames/css_frames/frames_2_column_left_menu.cfm

And pressing C-a (Select All) for the selection.

And then capture the page.

Please note that you can not select the text in both frames using the
mouse.

> and sometimes it will capture the link but not the
> selection.

Do you have an example page for this?  Once we have a really simple
example page with the error we can report a bug!

> it will also sometimes capture something else you copied,
> which does not appear on the page whose link gets capture.

Yes, I saw a note in the code, the /problem/ is that firefox does not
clean the selection when you change tab.  So you select something in tab
1, switch to tab 2 and you get the link and page title of page 2 and the
selection of tab 1.  Maybe there are workaround, like force the cleaning
of the selection after a tab change, but this can impact the user
experience.  I guess that usually you expect the selection to persist
until you paste it, even if you have changed tab, or not?  Coping from
tab 1 and paste in tab 2 is not an exotic use case.

I think that the selection is global and not per tab.  Maybe is possible
to add a selection per tab, by listening to some events.

Another limitation of the selection in firefox is that can not span over
frames and over 3rd party injection of content (not sure on how they do
this those days) but in a page with content and disqus.com you can not
select and capture both with the mouse. And if you use C-a you will bump
into the previous problem.

Hope you find this information useful,
Daniele

  reply	other threads:[~2015-09-18 14:03 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-23 14:18 "Capture"-like browser plugin? Peter Davis
2015-07-23 14:37 ` Jonathan Leech-Pepin
2015-07-23 14:39 ` Loris Bennett
2015-07-23 14:44 ` Cook, Malcolm
2015-07-23 14:47 ` Peter Davis
2015-07-23 14:47 ` Daniele Pizzolli
2015-07-24  7:22   ` Alan Schmitt
2015-07-28 18:58   ` Peter Davis
2015-07-28 21:20     ` Alan Schmitt
2015-07-28 22:10       ` Bob Newell
2015-07-28 22:33         ` Ken Mankoff
2015-07-29 12:27       ` Peter Davis
2015-07-29 13:03     ` Daniele Pizzolli
2015-07-29 13:18       ` Peter Davis
2015-07-29 14:05         ` Alan Schmitt
2015-07-29 14:17           ` Peter Davis
2015-07-29 14:59             ` Nick Dokos
2015-07-29 15:51               ` Peter Davis
2015-07-29 17:04                 ` Peter Davis
2015-07-29 18:23                   ` Nick Dokos
2015-07-29 19:35                     ` Peter Davis
2015-09-17 20:58   ` Samuel Wales
2015-09-18 14:03     ` Daniele Pizzolli [this message]
2015-09-18 21:25       ` Samuel Wales
2015-09-18 21:50         ` Samuel Wales
2015-10-01  0:09           ` Peter Salazar
2015-11-11 21:57             ` Samuel Wales
2015-07-29 19:48 ` Jay Dresser
2015-07-30 11:15   ` Nick Dokos

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=87k2rnzzzz4yfp@me.localhost.invalid \
    --to=dan@toel.it \
    --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).