[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wset for frames
From: |
Erich Ruff |
Subject: |
Re: wset for frames |
Date: |
Tue, 02 Nov 2021 11:12:08 +0100 |
User-agent: |
mu4e 1.6.1; emacs 27.2 |
Hello Eduardo,
I'm sorry, I have to correct my answer from yesterday.
If I call (Coex) [Coetzee.txt in a new frame] the first time I get my
actual frame doubled - and only if calling (Coex) the 2nd time it opens
Coetzee.txt in the former doubled frame.
Yesterday the frame Coetzee.txt was already open, so emacs hat only to
switsch frames.
I an live with that, but perhaps may you fix it, that it opens already
the first when beeing called?
Cheers
Erich
P.S.
I wrote a defun to parse a code-tla-pdf line and to automatically create
the 2 other defuns (coex) (Coex). If you want, I can share the beginners
hack with you.
On Mo 01 Nov 2021 at 16:03, Eduardo Ochs <eduardoochs@gmail.com> wrote:
> That's it! Start by adding this third function by hand.
> There are ways to create it more or less automatically,
> but they are hard to understand...
> [[]] =), E.
>
> On Mon, 1 Nov 2021 at 15:29, Erich Ruff <erich_ruff@t-online.de> wrote:
>>
>> Hi Eduardo,
>>
>> thank you for your quick answer!
>>
>> Coex is working flawlessly here.
>>
>> I didn't know the function of the backquote. I'll delve into elisp
>> further ...
>>
>> So I may add a 3rd function to my tlas?
>>
>> (code-tla-pdf 'coe "/home/er/Coetzee99.pdf")
>>
>> (defun ceox (&rest pos-spec-list)
>> (interactive)
>> (apply 'find-pdf-txt "/home/er/Coetzee99.pdf" pos-spec-list))
>>
>> (defun Coex (&rest pos-spec-list)
>> (interactive)
>> (find-wset "F_" "Coex" `(coex ,@pos-spec-list)))
>>
>> Cheers
>>
>> Erich
>>
>>
>> On Mo 01 Nov 2021 at 13:51, Eduardo Ochs <eduardoochs@gmail.com> wrote:
>>
>> > Hi Erich,
>> >
>> > do you know how to use the backquote? It is explained here:
>> >
>> > (find-elisp-intro "10. Backquote")
>> >
>> > Something like this _should_ work - but here it sometimes runs the
>> > lowercase coex in the old frame...
>> >
>> > (defun Coex (&rest pos-spec-list)
>> > (interactive)
>> > (find-wset "F_" "Coex" `(coex ,@pos-spec-list)))
>> >
>> > Cheers,
>> > Eduardo
>> >
>> > On Mon, 1 Nov 2021 at 08:07, Erich Ruff <erich_ruff@t-online.de> wrote:
>> >>
>> >>
>> >> Hi Eduardo,
>> >>
>> >> first of all, thanks for you work!
>> >>
>> >> Using wset to open and switch to frames makes sense for me.
>> >>
>> >> I'm no shure that I understand the weekness of
>> >>
>> >> `select-frame-set-input-focus'.
>> >>
>> >> On my computer it raises the frame and sets the input there.
>> >>
>> >> ------
>> >>
>> >> Because I mostly use tla's to open my texts, can the frame into which
>> >> the file - denoted by tla - gets loaded, get automatically the name from
>> >> the tla?
>> >>
>> >> So if calling the tla again, the already existing frame would get focus;
>> >> - and if the 2nd call wants to jump to a different "search-item", this
>> >> should be possible:
>> >>
>> >> example:
>> >>
>> >> (coex "Delivered at") -> load file, name new frame 'coex', jump to 'Del..'
>> >> (coex "awarded the") -> after checking if the frame exists, reuse it,
>> >> set focus to it and jump to 'awarded ...'
>> >>
>> >> So no change in the calling expression would be necessary.
>> >>
>> >>
>> >> Cheers
>> >>
>> >> Erich
>> >>
- wset for frames, Erich Ruff, 2021/11/01
- Re: wset for frames, Eduardo Ochs, 2021/11/01
- Re: wset for frames, Erich Ruff, 2021/11/01
- Re: wset for frames, Eduardo Ochs, 2021/11/01
- Re: wset for frames,
Erich Ruff <=
- Re: wset for frames, Eduardo Ochs, 2021/11/02
- Re: wset for frames, Erich Ruff, 2021/11/02
- Re: wset for frames, Eduardo Ochs, 2021/11/02
- Re: wset for frames, Eduardo Ochs, 2021/11/02
- Re: wset for frames, Erich Ruff, 2021/11/05
- Re: wset for frames, Eduardo Ochs, 2021/11/06
- Re: wset for frames, Erich Ruff, 2021/11/07
- Re: wset for frames, Eduardo Ochs, 2021/11/15
- Re: wset for frames, Erich Ruff, 2021/11/03
- Re: wset for frames, Eduardo Ochs, 2021/11/03