From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: config problems and bisecting an org-mode configuration file Date: Tue, 06 Jun 2017 14:03:49 +0100 Message-ID: <87a85ls1xm.fsf@skimble.plus.com> References: <874lvx8bum.fsf@skimble.plus.com> <87y3t75z7t.fsf@skimble.plus.com> <87d1aiz3n3.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1496754270 3727 195.159.176.226 (6 Jun 2017 13:04:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Jun 2017 13:04:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 06 15:04:25 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIE9o-0000hW-Nr for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jun 2017 15:04:24 +0200 Original-Received: from localhost ([::1]:38331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIE9t-0005EL-O9 for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jun 2017 09:04:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIE9N-0005E4-Qq for help-gnu-emacs@gnu.org; Tue, 06 Jun 2017 09:03:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIE9J-0007zX-CQ for help-gnu-emacs@gnu.org; Tue, 06 Jun 2017 09:03:57 -0400 Original-Received: from avasout01.plus.net ([84.93.230.227]:33074) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dIE9J-0007yQ-5g for help-gnu-emacs@gnu.org; Tue, 06 Jun 2017 09:03:53 -0400 Original-Received: from london.london ([31.185.147.13]) by avasout01 with smtp id VR3q1v0070HaZcX01R3rH3; Tue, 06 Jun 2017 14:03:51 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=YNnv8VOx c=1 sm=1 tr=0 a=z1IzoifO1pmR3EmH2pbmig==:117 a=z1IzoifO1pmR3EmH2pbmig==:17 a=jKjxfLc-AAAA:8 a=Gk50WWB1AAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=bAHfVwKlAAAA:8 a=FPo-hU0uEe041lOmSVEA:9 a=KMjAD8YL_qeZsfPf:21 a=s7bdgy-mpOC_LwIe:21 a=pv2RnzlmQMESEhtgU5oA:9 a=ONNS8QRKHyMA:10 a=RM85eZ-aGq2SIXCbyYCd:22 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 a=fjrkRJ71zQ2jzMzczd-K:22 X-AUTH: skimble@:2500 In-Reply-To: (Emanuel Berg's message of "Mon, 05 Jun 2017 23:04:38 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 84.93.230.227 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113370 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Emanuel Berg writes: > 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. My config is an org-mode file, with almost all code blocks in their own module, plus I'm also timestamping each module so its also possible to navigate using either Imenu or my date-stamps. > 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'. Every change to my config.org and the file is auto-compiled so that when I restart emacs I don't have to wait for config.el to be generated. Sometimes its a bit tiresome waiting for it to be generated but overall it works very well. Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk=20=20 Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAlk2qDYACgkQNoGAGQr4 g1s0wRAAwBtptrZ3OpTzeQ3ntDo/NjMTUWd3gcGPOYbybSO91ApFOGa95Z8V9zpK XdoSwPchf/DU5cJTFqxZgrqkeLcqHTH6U9xBP+VOAFCoGQCLVUodIHvlY9Jt6i0q WNMl3DZfjksFGm3kyK30oWnNjmvw7CKugSX6/KDRjSVJCXvbWlsek+FQLh0yHdAb tZKcWgsVxn1cjvUYgbVU8Ow+th6ssY8qNkeR+xQcswbiX5HpHGUrtq2wgypjWSCI JGCgowXffgGfIiU8J50k7z2WN4eewosWyvXGzKK+5UH+CaSkMO9QUkce085qfCMm 3lVyYHs+p9Y9LBnkxpGPVWtwhPhJ3JZ3T/o5omk0/nFAo5Y19ncJ5VRFXns+Qwt7 td4BLAlGgtL84HRkr6RmakpgeuG5IZDsq8OyzvGVqB0xA1NUl3bs7rQvi2wI16p7 yYO3KnreEfbVix45A8AUzhrkwuklbVP7Lq/7VyeKCxK1iWhxl3/9KQlv+M3hVmEh BGjAAu6YzP6naP9bXO06qBwltSIMGB+1uIQqHeoH3xUchRMZ1JCBt1UZnXbmwY/W fnV8yITXuNRyfQlkR+9Z515Aelauqd0l1G0UrKmxbjH+jSHIlPjCmIg+nZB6S3+t 8L62uMOG64lPaXR4cOj2qo4ZH705T5LvvOOxd6bk39X/EpqMzUU= =HgbK -----END PGP SIGNATURE----- --=-=-=--