all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: fatiparty--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Tomas <tomas@tuxteam.de>
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: File for minor mode not found
Date: Tue, 11 Jan 2022 01:23:34 +0100 (CET)	[thread overview]
Message-ID: <Mt5WBKX--3-2@tutanota.com> (raw)
In-Reply-To: <Ydx2V/PAuIJAU8HR@tuxteam.de-Mt4B_wx----2>

Jan 10, 2022, 18:09 by tomas@tuxteam.de:

> On Mon, Jan 10, 2022 at 01:19:55PM +0100, fatiparty@tutanota.com wrote:
>
>> Jan 9, 2022, 22:10 by tomas@tuxteam.de:
>>
>
> [...]
>
>> > Well, typically some prefix of the path element has a significance. Say,
>> > for example "~/Admin/bin/gadi-1.0" be gadi-files or so. That's the way I
>> > usually do it.
>> >
>> > Bonus points: you only get to change one when that changes :-)
>> >
>> That is correct.  Would one use setq or something buffer local.  How would.  
>> for instance, gadi-files be constructed?
>>
>
> This is a matter of style and taste -- and can vary a lot.
>
> If there is just one place where you do it (quite possible) then I
> wouldn't even bother (someone else might, though). And actually, I would
> try to keep it that way.
>
> But if I found myself doing `(add-to-list 'load-path "~/Admin/bin/gadi-1.0/...")',
> I'd be tempted to do something along these lines:
>
>  (defvar my-gadi-basedir "~/Admin/bin/gadi-1.0"
>  "the base dir for gadi programs")
>
>  (defun my-gadi-add-to-load-path (dir)
>  (add-to-list 'load-path
>  (file-name-concat my-gadi-basedir dir)
>

With file-name-concat, I get 

Symbol's function definition is void: file-name-concat

I am using GNU Emacs 27.2 of 2021-09-28


> and then:
>
>  (my-gadi-add-to-load-path "typex/ziggurat-protowrit/daph-ideograms")
>
> I'm assuming that your "package prefix" is `my-gadi'. It is, of course,
> a judgement call whether or when this extra complication is worth the
> hassle. And there are (at least) 43 other ways to skin that cat.
> Besides, my choice of the split point for -basedir is just based on a
> very inexact feeling: you have more details.
>
> So take this just as a rough sketch for inspiration.
>
> Cheers
> -- 
> t
>



  parent reply	other threads:[~2022-01-11  0:23 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-09  5:14 File for minor mode not found fatiparty--- via Users list for the GNU Emacs text editor
2022-01-09  6:47 ` tomas
2022-01-09  7:06   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-09 10:04     ` tomas
2022-01-09 15:01       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-09 14:43   ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-09 15:12     ` Stephen Berman
2022-01-09 15:57       ` Tomas
     [not found]     ` <878rvpeyek.fsf@gmx.net-MszOZsb----2>
2022-01-09 15:46       ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-09 16:01         ` Stephen Berman
     [not found]         ` <874k6cgap3.fsf@gmx.net-MszaWDg----2>
2022-01-09 16:37           ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-09 16:50             ` tomas
2022-01-09 21:49               ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-09 22:10                 ` Tomas
     [not found]                 ` <YdtdbjZlybD0X0rJ@tuxteam.de-Mt-tK84----2>
2022-01-10 12:19                   ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-10 18:09                     ` Tomas
     [not found]                     ` <Ydx2V/PAuIJAU8HR@tuxteam.de-Mt4B_wx----2>
2022-01-11  0:23                       ` fatiparty--- via Users list for the GNU Emacs text editor [this message]
2022-01-11  6:38                         ` Tomas
2022-01-11 16:33                           ` Michael Heerdegen
2022-01-11 16:41                             ` tomas
     [not found]                         ` <Yd0lz7vSTBzYeeJW@tuxteam.de-Mt6ynvW--7-2>
2022-01-11 16:25                           ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-11 16:36                             ` Michael Heerdegen
2022-01-09 15:56     ` Tomas
     [not found] ` <SJ0PR10MB5488E2D49393EC94EC06A41CF34F9@SJ0PR10MB5488.namprd10.prod.outlook.com>
     [not found]   ` <MsxIft1--B-2@tutanota.com>
2022-01-09 17:25     ` [External] : " Drew Adams

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=Mt5WBKX--3-2@tutanota.com \
    --to=help-gnu-emacs@gnu.org \
    --cc=fatiparty@tutanota.com \
    --cc=tomas@tuxteam.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.