emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-capture does not work with "long" extracts of text
@ 2011-03-24 15:47 Sébastien Vauban
  2011-03-25  9:04 ` Giovanni Ridolfi
  0 siblings, 1 reply; 4+ messages in thread
From: Sébastien Vauban @ 2011-03-24 15:47 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi,

I'm using for months Org-capture, with a lot of interest. In the beginning, it
was on Firefox/Ubuntu, now it is (for external reasons) on Firefox/Windows XP.

I think I can relate the limitation I'll expose with the switch from Linux to
Windows. However, that does not necessarily mean that Windows is the culprit,
as there are so many (little) differences between the two systems.

So, what's the limitation?  I can only capture _short text_ extracts from the
Web. Once it gets over 20 lines of text or so, the "Org-capture" button still
does not do anything.

On the same page (whichever, in fact) as the one exhibiting the above problem,
selecting a shorter region of text makes the behavior of the button come back
to life.

So, it really is related somehow to the length of the copied text (words,
lines, bytes, ...?).

Any idea or workaround for this?

Best regards,
  Seb

-- 
Sébastien Vauban

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Org-capture does not work with "long" extracts of text
  2011-03-24 15:47 Org-capture does not work with "long" extracts of text Sébastien Vauban
@ 2011-03-25  9:04 ` Giovanni Ridolfi
  2011-03-25  9:55   ` Sébastien Vauban
  0 siblings, 1 reply; 4+ messages in thread
From: Giovanni Ridolfi @ 2011-03-25  9:04 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs-orgmode

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:

 Hi, Sébastien,
>
> Org-capture, [...]  on Firefox/Windows XP.
>
[...]
> So, what's the limitation?  I can only capture _short text_ extracts from the
> Web. Once it gets over 20 lines of text or so, the "Org-capture" button still
> does not do anything.

would you please share some details and a brief tutorial so that I can 
try to reproduce this behaviour?

tia,
Giovanni

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Org-capture does not work with "long" extracts of text
  2011-03-25  9:04 ` Giovanni Ridolfi
@ 2011-03-25  9:55   ` Sébastien Vauban
  2011-03-25 10:29     ` Giovanni Ridolfi
  0 siblings, 1 reply; 4+ messages in thread
From: Sébastien Vauban @ 2011-03-25  9:55 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Giovanni,

Giovanni Ridolfi wrote:
> Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:
>> Org-capture, [...] on Firefox/Windows XP. [...]
>>
>> So, what's the limitation? I can only capture _short text_ extracts from
>> the Web. Once it gets over 20 lines of text or so, the "Org-capture" button
>> still does not do anything.
>
> would you please share some details and a brief tutorial so that I can try
> to reproduce this behaviour?

I followed quite precisely the instructions given on
http://orgmode.org/worg/org-contrib/org-protocol.php

In particular, for Windows, I created the following =.reg= file:

#+begin_src txt :tangle org-protocol-setup.reg
REGEDIT4

[HKEY_CLASSES_ROOT\org-protocol]
@="URL:Org Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\org-protocol\shell]
[HKEY_CLASSES_ROOT\org-protocol\shell\open]
[HKEY_CLASSES_ROOT\org-protocol\shell\open\command]
@="\"C:\\Program Files\\Emacs\\emacs\\bin\\emacsclientw.exe\" \"%1\""
#+end_src

and double-click it.

Then I created JavaScript bookmarklets, by adding new bookmarks, with the
following *names* and *addresses*:

- =org-capture=

  #+BEGIN_SRC javascript
  javascript:location.href='org-protocol://capture://'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)+'/'+encodeURIComponent(window.getSelection())
  #+END_SRC

- =org-store-link=

  #+BEGIN_SRC javascript
  javascript:location.href='org-protocol://store-link://'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)+'/'+encodeURIComponent(window.getSelection())
  #+END_SRC

- =org-open-source=

  #+BEGIN_SRC javascript
  javascript:location.href='org-protocol://open-source://'+encodeURIComponent(location.href)
  #+END_SRC

Best regards,
  Seb

-- 
Sébastien Vauban

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: Org-capture does not work with "long" extracts of text
  2011-03-25  9:55   ` Sébastien Vauban
@ 2011-03-25 10:29     ` Giovanni Ridolfi
  0 siblings, 0 replies; 4+ messages in thread
From: Giovanni Ridolfi @ 2011-03-25 10:29 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs-orgmode

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:

> Hi Giovanni,
>
> Giovanni Ridolfi wrote:
>> Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:
>>> Org-capture, [...] on Firefox/Windows XP. [...]
>>>
[...]
> In particular, for Windows, I created the following =.reg= file:
 :-(
Sorry, I don't have the permission to change registry files,
I can't help.

Giovanni

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-25 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-24 15:47 Org-capture does not work with "long" extracts of text Sébastien Vauban
2011-03-25  9:04 ` Giovanni Ridolfi
2011-03-25  9:55   ` Sébastien Vauban
2011-03-25 10:29     ` Giovanni Ridolfi

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).