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: Re: How to customize an option to a dynamic value (computed by lisp form) Date: Fri, 26 Aug 2016 16:02:27 -0300 Message-ID: References: <87k2f69hvb.fsf@kuiper.lan.informatimago.com> <83832586-765e-4df4-917a-98458247d829@default> <86785f1e-022c-4946-8a28-39c72eb26d5d@default> 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 1472238264 28244 195.159.176.226 (26 Aug 2016 19:04:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2016 19:04:24 +0000 (UTC) Cc: "Pascal J. Bourguignon" , help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 26 21:04:19 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 1bdMQM-0006rO-O5 for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Aug 2016 21:04:18 +0200 Original-Received: from localhost ([::1]:33502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdMQK-0005gi-9J for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Aug 2016 15:04:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdMOc-0004my-VO for help-gnu-emacs@gnu.org; Fri, 26 Aug 2016 15:02:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bdMOa-00029H-RO for help-gnu-emacs@gnu.org; Fri, 26 Aug 2016 15:02:29 -0400 Original-Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:34638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdMOa-00029D-NN for help-gnu-emacs@gnu.org; Fri, 26 Aug 2016 15:02:28 -0400 Original-Received: by mail-qk0-x22b.google.com with SMTP id t7so85738268qkh.1 for ; Fri, 26 Aug 2016 12:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=MLDrvuhIwSih5gdrqacjwgVk+v7ZgGbUveHUyodMK+0=; b=HTAO8WfJ6uW0BcidJpeksBcnm+N3aIuBBQJlS0dlpBh8ylQvTuY/8lEVYQQxotPIs9 ZIMNBePGFuBob0fGFDebjzjGZBr4+4D3wkwHLkk9s5+ZY6Of3hjWp1777OSdYU36+Zp6 6/14zLHv5xahcGX45ZnDxuA6uKdCnm0EVQa/JE8RflS4cUe6e+CxzsMAQN4t1wOre/hk 6re5VZvRgeFktnfDfGzTfivapgNUn26z4lnhEDIxr+UL1PAvo0lpfX+O2wnd9gFo349J cXI3H0EYvopxFYPs1QBXDuTx2SG1m700KALb7S8YILhWtud0kMfUxHSLO8x36m1DxT9P 7JsQ== 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:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=MLDrvuhIwSih5gdrqacjwgVk+v7ZgGbUveHUyodMK+0=; b=C86G16CtK1kYnVgewbWQdbZDRwtCnNgHva54ClWfV+PZHhrZG+q6dxb52hGAPLProN AUq9OkFGLH5K4FbYTwHn7DPh7ogO79uh73MJx7YsFqKM3HIXquEi20mYR2DGvMhDDzI6 tUYJc4A9KR0ZGbzvJA2Emb8b+9PMLc7h15IJffx5m/6MdUfzRCUoI7fPgize+2eIq1xt ELRvrBDnIT0nWQgEL05v7IXcUCCN2YFCTZzVmO/1KE/7D/37BiKlP5qBWj0tPRBolmBO 1vvy97BPNnacGZHXdKLBn0sU+ZKSqxw7djG9xVMrnaInaEbSiXJXBJ6JtWxohnTYETtO FfCA== X-Gm-Message-State: AE9vXwPHnk7G2a8leml+g3o2VwMdPjX+g1OUXlg/ojOqE6KhsMAmJQjiWAESnM4GeF2jona0f9GieFq80t2quQ== X-Received: by 10.55.71.197 with SMTP id u188mr5071098qka.97.1472238148045; Fri, 26 Aug 2016 12:02:28 -0700 (PDT) Original-Received: by 10.55.26.89 with HTTP; Fri, 26 Aug 2016 12:02:27 -0700 (PDT) In-Reply-To: <86785f1e-022c-4946-8a28-39c72eb26d5d@default> X-Google-Sender-Auth: DpTiCJXbQt1oqJsejRZX1-SsNDo X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::22b 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:111209 Archived-At: On 26 August 2016 at 11:28, Drew Adams wrote: > You might want to `M-x report-emacs-bug'. It is for enhancement requests= as > well as bugs. Yes, I may do that, but not now (I have other bugs to report). > What does that mean? A variable has a single, static, literal value at a= ny > time. https://en.wikipedia.org/wiki/Literal_(computer_programming) See the following example C code, assuming that read_int is a function that reads an integer from stdin: const int answer =3D 42; // the answer to life the universe and everything const int answer_sq =3D answer*answer; const int age =3D read_int(); All three variables defined above are constants. However, only the first tw= o have values which can be known at compile time, and only the first one is initialized to a literal (42). I want to be able to customize the options mentioned in the original email = to values computed from other options, but I cannot. I can only initialize th= em to literals. --=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/