all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* function to copy org buffer substring with link description only
@ 2015-12-06 20:45 Paul
  2015-12-08  6:54 ` Alexis
  0 siblings, 1 reply; 6+ messages in thread
From: Paul @ 2015-12-06 20:45 UTC (permalink / raw)
  To: help-gnu-emacs

Hallo people.

(buffer-substring-no-properties (point) (mark)) on some part of an org 
buffer that contains a link returns the following example:

"while [[(some-link)][description]] does not"


Do You know a ready to use function that would return the following?:

"while description does not"

best regards,
Paul



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: function to copy org buffer substring with link description only
@ 2015-12-08 17:33 Paul
  2015-12-09  7:25 ` Alexis
  0 siblings, 1 reply; 6+ messages in thread
From: Paul @ 2015-12-08 17:33 UTC (permalink / raw)
  To: flexibeast, help-gnu-emacs

thank YOu for the function

I believe that there must be something ready to be used, because 
org-mode does provide function that is able to export document or its 
part as text file. Of course such function probably removes more 
elements than link only, but that would be no harm.

best regards



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: function to copy org buffer substring with link description only
@ 2015-12-09 18:00 Paul
  0 siblings, 0 replies; 6+ messages in thread
From: Paul @ 2015-12-09 18:00 UTC (permalink / raw)
  To: help-gnu-emacs

That's the function I was looking for!

The missing part for me is to have the same signature as 
`buffer-substring` has, but this is much easier task and I should manage.

Thank You very much for Your help!!!

best regards!



^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.1527.1449434757.31583.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2015-12-09 19:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-06 20:45 function to copy org buffer substring with link description only Paul
2015-12-08  6:54 ` Alexis
  -- strict thread matches above, loose matches on Subject: below --
2015-12-08 17:33 Paul
2015-12-09  7:25 ` Alexis
2015-12-09 18:00 Paul
     [not found] <mailman.1527.1449434757.31583.help-gnu-emacs@gnu.org>
2015-12-09 19:57 ` Gene

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.