all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ram <chat@rj95.be>
To: michael_heerdegen@web.de
Cc: emacs-devel@gnu.org, enometh@meer.net
Subject: Re: question regarding my emacs package
Date: Thu, 29 Jun 2023 19:28:42 +0000	[thread overview]
Message-ID: <_IqK4pIWjfUFUTcXxOolJOvfrpuuofimCl0t1b-Y3MCnv4Y_F_iPKIKDQoHlKjyRNi3KxkmovDh7oYtf8-bb7mkRGm55JTeULhn9DjcFAXc=@rj95.be> (raw)
In-Reply-To: <e3YHCZF3FzSJnod_qtAFRXBHvVOAUToArvggICkgtuxywguul978d7z7Dug0SFKHOovR8JsSJmBZ3ixt6CAf2Wp_jHKKSkhcuiRO7Hosd3Y=@rj95.be>

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




  parent reply	other threads:[~2023-06-29 19:28 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-07  3:18 question regarding my emacs package ram
2023-06-07 15:53 ` Philip Kaludercic
2023-06-07 18:04   ` Philip Kaludercic
2023-06-07 19:45     ` ram
2023-06-07 19:48       ` Philip Kaludercic
2023-06-07 19:50         ` ram
2023-06-07 22:34           ` ram
2023-06-08  7:13             ` ram
2023-06-08  7:26               ` Philip Kaludercic
2023-06-08 18:50                 ` ram
2023-09-08  7:40                   ` Philip Kaludercic
2023-06-11 11:41                 ` Madhu
2023-06-12 12:52                   ` Madhu
2023-06-12 16:40                     ` Andrea Corallo
2023-06-13  4:01                       ` Madhu
2023-06-13  8:55                         ` Andrea Corallo
2023-06-13  9:19                           ` Madhu
2023-06-13 23:55                             ` Michael Heerdegen
2023-06-14 16:10                               ` Mattias Engdegård
2023-06-16  3:53                                 ` Michael Heerdegen
2023-06-16  4:46                                   ` Madhu
2023-06-16 15:28                   ` Michael Heerdegen
2023-06-17  3:01                     ` ram via Emacs development discussions.
2023-06-18  0:40                       ` Michael Heerdegen
2023-06-29 19:28                       ` ram [this message]
2023-06-11 18:49 ` João Távora
2023-06-11 19:08   ` ram via Emacs development discussions.
2023-06-12  8:45     ` Philip Kaludercic
2023-06-12 10:23       ` João Távora
2023-06-12 10:54         ` Philip Kaludercic
2023-06-12 20:43           ` João Távora
2023-06-13  0:36             ` ram via Emacs development discussions.
2023-06-13 18:13               ` João Távora
2023-06-13 21:46                 ` ram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='_IqK4pIWjfUFUTcXxOolJOvfrpuuofimCl0t1b-Y3MCnv4Y_F_iPKIKDQoHlKjyRNi3KxkmovDh7oYtf8-bb7mkRGm55JTeULhn9DjcFAXc=@rj95.be' \
    --to=chat@rj95.be \
    --cc=emacs-devel@gnu.org \
    --cc=enometh@meer.net \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.