[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question regarding my emacs package
From: |
ram |
Subject: |
Re: question regarding my emacs package |
Date: |
Thu, 29 Jun 2023 19:28:42 +0000 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
got around to this. new repo is here: https://github.com/gitrj95/trail.el
renamed from breadcrumbs to trail, as per joao's suggestion, and changed the
semantics quite a bit. i had some questions:
- i'm supporting "middle" truncation of the file path strings. i couldn't
find this in emacs libs, but for this purpose, i found truncation at the suffix
or prefix less useful than truncation in the middle. ie, i want to know the
file name and extension almost always and the root directory (especially in a
code context) almost always
- i'm using markers to track relative positions instead of absolute
positions. i found that, especially in the code context, i wanted the
trail-mark to "know" that i've added code before it, but still point to the
function prototype i marked before instead of sliding. markers don't seem to be
persistable, so i had the absolute positions of the markers stored in the ring
that can be persisted, but default to corresponding markers in an associated,
private ring if those exist. on hook for buffer close, the absolute positions
are updated with the marker details. this seems like a fairly common thing to
want to do, so i'd hope that i didn't reinvent the wheel. again, i couldn't
find anything
also:
- checkdoc passes
- tested on emacs 27, 28, and 29
let me know if you have any questions, and please send over the fsf copyright
agreement when you have the chance
looking forward
------- Original Message -------
On Friday, June 16th, 2023 at 10:01 PM, ram <chat@rj95.be> wrote:
> what versions does this impact? i’ve never run into this on >=27.1? can
> someone confirm?
>
>
>
> On Fri, Jun 16, 2023 at 10:28 AM, Michael Heerdegen
> <michael_heerdegen@web.de> wrote:
>
> > Madhu <enometh@meer.net> writes:
> >
> > > [Question about cl-defstruct]
> >
> > > Debugger entered--Lisp error: (wrong-type-argument stringp
> > > (buffer-file-name))
> > > make-breadcrumbs--breadcrumb--cmacro((make-breadcrumbs--breadcrumb))
> > > apply(make-breadcrumbs--breadcrumb--cmacro
> > > (make-breadcrumbs--breadcrumb) nil)
> > > macroexp--compiler-macro(make-breadcrumbs--breadcrumb--cmacro
> > > (make-breadcrumbs--breadcrumb))
> > > ```
> >
> > @ram: AFAIU you need to use a different slot name. This one will cause
> > problems due to a bug in Emacs.
> >
> > Michael.
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail
wnUEARYKACcFgmSd21AJkLWF/Pp8PQPNFiEExUjWugOWGzBgCQZvtYX8+nw9
A80AACXgAQCVd483+cyNE+92uk5e8s6vlsWwUuDw33DfFpHQs4/tcAEApG0i
1FxxxcaK3wgFA0jZcTCAmlaTSWwi377MSkxzzgg=
=OoeH
-----END PGP SIGNATURE-----
- Re: question regarding my emacs package, (continued)
- Re: question regarding my emacs package, Madhu, 2023/06/13
- Re: question regarding my emacs package, Andrea Corallo, 2023/06/13
- Re: question regarding my emacs package, Madhu, 2023/06/13
- Re: question regarding my emacs package, Michael Heerdegen, 2023/06/13
- Re: question regarding my emacs package, Mattias Engdegård, 2023/06/14
- Re: question regarding my emacs package, Michael Heerdegen, 2023/06/15
- Re: question regarding my emacs package, Madhu, 2023/06/16
- Re: question regarding my emacs package, Michael Heerdegen, 2023/06/16
- Re: question regarding my emacs package, ram, 2023/06/17
- Re: question regarding my emacs package, Michael Heerdegen, 2023/06/17
- Re: question regarding my emacs package,
ram <=
Re: question regarding my emacs package, João Távora, 2023/06/11
- Re: question regarding my emacs package, ram, 2023/06/11
- Re: question regarding my emacs package, Philip Kaludercic, 2023/06/12
- Re: question regarding my emacs package, João Távora, 2023/06/12
- Re: question regarding my emacs package, Philip Kaludercic, 2023/06/12
- Re: question regarding my emacs package, João Távora, 2023/06/12
- Re: question regarding my emacs package, ram, 2023/06/12
- Re: question regarding my emacs package, João Távora, 2023/06/13
- Re: question regarding my emacs package, ram, 2023/06/13