From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jorge Newsgroups: gmane.emacs.help Subject: How to customize an option to a dynamic value (computed by lisp form) Date: Tue, 23 Aug 2016 17:26:31 -0300 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1472054225 10862 195.159.176.226 (24 Aug 2016 15:57:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 Aug 2016 15:57:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 24 17:57:01 2016 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 1bcaXu-0001wI-IX for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Aug 2016 17:56:54 +0200 Original-Received: from localhost ([::1]:52009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcaXs-0001q4-0s for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Aug 2016 11:56:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcIIL-0007mH-R4 for help-gnu-emacs@gnu.org; Tue, 23 Aug 2016 16:27:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcIIH-0004Id-KX for help-gnu-emacs@gnu.org; Tue, 23 Aug 2016 16:27:36 -0400 Original-Received: from mail-qk0-f178.google.com ([209.85.220.178]:32979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcIIH-0004IM-Em for help-gnu-emacs@gnu.org; Tue, 23 Aug 2016 16:27:33 -0400 Original-Received: by mail-qk0-f178.google.com with SMTP id z190so118386570qkc.0 for ; Tue, 23 Aug 2016 13:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to :content-transfer-encoding; bh=wCZ8PtAzawgSDvdH5seO5CVct55OMLApaNMSLnyZMgs=; b=UUvcF7NQHCO6Fa+5gLAzO1GNkWTJh7PIknzp2OR8oEKVzZtlFdDtMFZeje1axYlvzc pbypfoliX6r/UyEhuCzfWQ9U+MqaA4ld0oxq+YVVca+xJS/ruwA2H4Kw3KqRxGAmKkle gJWhKShB4dr7qIqMjd+Ad7CTMFaFLHuUZ0GLD2uYFFwZk+miWav+Lcp1v6aRqPNAYZ7m HwA+l5gnD3LILhiIFYBkivM1z5H4CkjSOWpwnub6JmIDm9ZkdUgEVSorvve+PWajqsnK 1joo/8FNxBjCK+Ah8E5i8krlxPK4SxVgaBAp/bEccaJsVLcRxhDRFkwawS2pDFfZhtUR Woig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-transfer-encoding; bh=wCZ8PtAzawgSDvdH5seO5CVct55OMLApaNMSLnyZMgs=; b=MhQ+no8jVAsfO1dAQ+xjEZmIcVSgNUe2Fwq6VY9j4THzQY7vE4LRuxXBkylnd3lgTG ZzpJmgk48Ms4iz0u0fMRSF3rewNzjLzKKU978Jun9No59q2SWNUR7Xm+/pf71LfndqMC vwH9TvMYiqs+fZvPdRGGAF6myGOqmrL6go+/NwWegGKIw0pwddMRF5/CEj0dX6YaCUO5 cQkueQYhGzBuGHjL0DsFjAxQ0BZz6qBBUTd73yWo3VWyNnyiSqzuo+u5YC7k4RvXMlz8 cyVwNjRCBOenhXDGVKQj3iIFNzGqiO+JUjt1y76oFYnQciozrzk1hhf38JPe9ssj4ICQ Y2SQ== X-Gm-Message-State: AE9vXwPqrHsqorIp2fdV7VMEwvHoFRiRc8vq33TH7aId0i7DQi8w8Q39G7waWN7ppCMPX4/AuTfkDFrBd78m/g== X-Received: by 10.55.24.105 with SMTP id j102mr5461820qkh.165.1471983992594; Tue, 23 Aug 2016 13:26:32 -0700 (PDT) Original-Received: by 10.55.22.161 with HTTP; Tue, 23 Aug 2016 13:26:31 -0700 (PDT) X-Google-Sender-Auth: itSLgmAVLTrzjuJKX8O1WNwu_Ts X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.178 X-Mailman-Approved-At: Wed, 24 Aug 2016 11:52:20 -0400 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:111189 Archived-At: Hi. I set three options to a dynamic value, using the value of the option `org-directory'. Now my custom-set-variables call in init.el includes the following: '(org-agenda-files (list (concat org-directory "/agenda/") "~/Dropbox/wanessa_e_jorge/administra=C3=A7=C3=A3o_cl=C3=ADnica/derma= -prime.org")) [...] '(org-icalendar-combined-agenda-file (concat org-directory "/org.ics")) [...] '(org-mobile-inbox-for-pull (concat org-directory "/agenda/from-mobile.o= rg")) The problem is that when I try to customize one of these three options, the customize buffer does not know that the value was computed dynamically. Fo= r example, the customize buffer for org-mobile-inbox-for-pull shows the value= as simply "~/org/agenda/from-mobile.org". This means that if I edit the value= to "~/org/agenda/from-mobile42.org" and save the customization, it will be wri= tten to init.el as a string literal, no longer respecting org-directory. Then i= f I later change org-directory I will have problems. Previously I worked around this problem by setting these options manually (editing org-init.el, which is called by init.el), but I think the ideal wo= uld be to use customize, so I decided to ask here. I have already searched Goo= gle and the list archives. Thank you for your attention. --=20 =E2=80=A2 I am Brazilian. I hope my English is correct and I welcome corre= ctions. =E2=80=A2 Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM a= nd 7z. =E2=80=A2 Free (as in free speech) software for Android: https://f-droid.or= g/