help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: config problems and bisecting an org-mode configuration file


From: Emanuel Berg
Subject: Re: config problems and bisecting an org-mode configuration file
Date: Mon, 05 Jun 2017 23:04:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Sharon Kimble wrote:

> And that's what I did, with very good support
> form Drew giving me very explicit
> instructions which helped resolve the problem
> by showing me, eventually, where the problem
> was. All kudos to Drew!

This is his favorite method. I think he even
got a name for it - "binary search", right?

While there is no denying its advantages, with
your situation, it seems you have a lot of
configs and probably you should make the code
more modular, so changes in one part is easy to
pinpoint and have less or no impact on
everything else.

If you are using a module, say module M, you
can create a file for configs for that module
alone, say my-M.el, which has (require 'M) as
the first line, and then load that file from
.emacs.

Incidentally, this doesn't prevent binary
search, tho - it won't be perfectly binary
anymore :) - as you can then just comment out
the line(s) in .emacs that loads the module(s).

If you byte-compile the code, the compiler will
help you determine what code interferes with
what other, and you can remedy that by moving
around stuff and adding more pairs of `require'
and `provide'.

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

[Prev in Thread] Current Thread [Next in Thread]