From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: [IT] Broken support for links to text files (both internal & external) Date: Sat, 06 Jan 2018 07:16:13 +1100 Message-ID: <87608g83jm.fsf@gmail.com> References: <4abbb185-4323-8c62-c4f7-4a9a3b7a6b88@along-track.com> <87o9m8g3r8.fsf@nicolasgoaziou.fr> <87k1wwij8r.fsf@gmail.com> <1fa8ac46-6dd4-483c-6646-7a4635aa31b6@along-track.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXYPi-0001d9-LF for emacs-orgmode@gnu.org; Fri, 05 Jan 2018 15:16:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXYPh-0001CT-6y for emacs-orgmode@gnu.org; Fri, 05 Jan 2018 15:16:26 -0500 Received: from mail-pg0-x22b.google.com ([2607:f8b0:400e:c05::22b]:42402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eXYPg-0001AP-Jk for emacs-orgmode@gnu.org; Fri, 05 Jan 2018 15:16:24 -0500 Received: by mail-pg0-x22b.google.com with SMTP id q67so2380062pga.9 for ; Fri, 05 Jan 2018 12:16:24 -0800 (PST) In-reply-to: <1fa8ac46-6dd4-483c-6646-7a4635aa31b6@along-track.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: =?utf-8?B?Tmljb2xhcyBCZXJjaGVyIChByp/htI/JtMmiLVTKgOG0gOG0hOG0iyk=?= Cc: emacs-orgmode@gnu.org, Nicolas Goaziou Eric has provided the 'manual' solution for setting that variable. At the risk of 'muddying the waters', I just wanted to mention a couple of things which might help clarify matters. - The built-in 'customize' facility of emacs means that you do not need to do anything 'by hand' to customize the setting. It should be possible for you to use customize and not do anything else. - The block from your .emacs file is the customize system code block and it is meant to be completely managed by the customize system. The one you have posted is a vanilla block with no customisation settings. - When you make a change via the customise interface, you have multiple choices for how Emacs will use/interpret that change. This is referred to as 'state' in the custom interface. There are a number of options, all explained in the manual, but the two most common are 'Set for current session' and 'Save for future sessions'. - It is important to realise that the custom interface does basically two things. First, it sets any current variables representing the value being customised. This is essentially the 'Set for current session' part. Second, assuming you select a state option which preserves your changes, it will write the setting to the custom block in your .emacs file so that your changes persist across emacs sessions. This is essentially the 'Save for future sessions' part. The benefit of the set for current session option is that it give the the opportunity to try out a custom setting. If it doesn't work or it breaks things, you can just quit emacs and re-start and everything is back to the pre-custom setting. The downside of this option is that if you don't later in the same session re-run the custom interface and select the 'Save for future sessions' option, your changes will be lost when you re-start. Given that you noted the custom interface was able to re-indent your .emacs custom block, we know that custom is working and can access your .emacs file ok. Therefore, the next thing I would check is that when you run the customize interface you are selecting Save for future sessions option. This should see the setting updated in your .emacs 'custom' block. (I suspect you may have selected 'set for current session' which will not update the custom block in your .emacs file). I would highly recommend reading the customisation section of the Emacs manual. The custom interface has been implemented precisely for people who don't know emacs lisp and just want to perform basic editor or mode customisation. Using that interface, you don't need to know any Emacs lisp and don't need to do anything by hand. There are also a number of different ways to initiate a customisation session. I find that M-x customize-group [mode] to be very useful. For example, M-x customize-group org HTH Tim Nicolas Bercher (Aʟᴏɴɢ-Tʀᴀᴄᴋ) writes: > On 05/01/2018 13:27, Eric S Fraga wrote: >> On Friday, 5 Jan 2018 at 13:10, Nicolas Bercher (Aʟᴏɴɢ-Tʀᴀᴄᴋ) wrote: >> >> [...] >> > [...] > I've done this but only changed the indentation of the > custom-set-variables block and added nothing new. > > And if I start from an empty ~/.emacs I got this ew block, but again, it > does not mention org-link-search-must-match-exact-headline variable: > > (custom-set-variables > ;; custom-set-variables was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > ) > (custom-set-faces > ;; custom-set-faces was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > ) > > What should I add *by hand* in ~/.emacs? > I'm sorry, it is just a matter of very basic elisp syntax (but I never > took the time to dig into elisp yet!). > -- Tim Cross