Re: [O] Elisp: help on string operations for fast file visiting

2016-12-20 Thread John Kitchin
This is a different approach to what I think you want. Here is what I assume in this: 1. All the things you want to search for are in a file called archive.org which is in the same directory you are searching for (use an absolute path if it is not). 2. You have file links that only have a path, i.

Re: [O] Elisp: help on string operations for fast file visiting

2016-11-08 Thread Karl Voit
* Alan Schmitt wrote: > > On 2016-11-07 17:27, Karl Voit writes: > >> I'd like to get a "Sorry" message for (1). Easy, if only I know how to >> count lines in strings (as opposed to buffers). > > You could start by doing (split-string the_string "\n" t) (the last 't' > says to omit the empty stri

Re: [O] Elisp: help on string operations for fast file visiting

2016-11-08 Thread Alan Schmitt
On 2016-11-07 17:27, Karl Voit writes: > I'd like to get a "Sorry" message for (1). Easy, if only I know how to > count lines in strings (as opposed to buffers). You could start by doing (split-string the_string "\n" t) (the last 't' says to omit the empty strings). So you get a list, possibly e

[O] Elisp: help on string operations for fast file visiting

2016-11-07 Thread Karl Voit
Hi! For Memacs[1], I'd like to come up with a very fast Org-mode method to open files independent of their location on your disk. I accomplished everything necessary so far. However, I've got issues writing an elisp function for extracting a file and sending it to a function that calls the operati