From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: (emacs-version) in the Elisp reference Date: Wed, 21 Jun 2017 19:09:11 +0900 Message-ID: <5914D65D-D57A-4AAD-BD13-2B6BC4BB5F59@gmail.com> References: <20EE9F2C-6F30-4A9C-BF0E-E17D4FC7F8FC@gmail.com> <838tkmwude.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1498039776 9914 195.159.176.226 (21 Jun 2017 10:09:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Jun 2017 10:09:36 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 21 12:09:32 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dNcZo-0002Lv-7s for ged-emacs-devel@m.gmane.org; Wed, 21 Jun 2017 12:09:32 +0200 Original-Received: from localhost ([::1]:52848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNcZt-0007Or-C0 for ged-emacs-devel@m.gmane.org; Wed, 21 Jun 2017 06:09:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNcZk-0007NN-NU for emacs-devel@gnu.org; Wed, 21 Jun 2017 06:09:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNcZe-0000bv-UX for emacs-devel@gnu.org; Wed, 21 Jun 2017 06:09:28 -0400 Original-Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:34273) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNcZZ-0000aG-Nz; Wed, 21 Jun 2017 06:09:17 -0400 Original-Received: by mail-pg0-x243.google.com with SMTP id j186so26792751pge.1; Wed, 21 Jun 2017 03:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=448NigI/y0/oJRmnnK5ZedfE9zTEA04OoHG0vZybU1M=; b=OZhBhYyEMpGtNSBuYeNgiLDuOdYlx5TVqSnByOwISTnAgNPhobrlk4I/wXZtj5qmqT l3o6lYNDp+B7rBNthGX+vOEkaSuPSNFxwbz0xfoj2z3ESU8+EhHD9hYKN76lho40WXoD E+bijhJmFG4nEyrhPuIUPFYxj+N8Dxm02SEmep3y+3cT79OiR/wbc6mwbpGAeOlpy1kg npp3Bjtnt+YPnABuHUXbvsgADZ78SHBSC+NzAqaTV0nbFkz8TaFfCLjNJgH6gD9e+j1u 3tFyq2KH+rEQKLmkaM4tL24AGl0McbUL77P7PSQ+mbE0Kcm/FVBm7zmYAAiEFwMQmRgM tS7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=448NigI/y0/oJRmnnK5ZedfE9zTEA04OoHG0vZybU1M=; b=r/YYmGWLSxBF2kDa2VfWhao5gkcjoxJtutk8GHnOlPgzc4yNGzjEqzkzheAWPBpGLb K2EDynMeTQe7jBc8dnLrZDOc8kWys5+DKd8IxrVxi3HbeRvKHDiYHSrnuulpUSwMLS/d jTNPfd6ZFDHhtIHbiPQ+9WyEoAOLbI9H8e9pld8N1b/wmrYrstqdz0fewcnD63CDeb9X oxtEpg89n5nXlkRX8HzG3/KZ4+Pvba8g4gmBg8fMfjowxND/+4o0QXHJqYgawjxrNBOv IYhwRLvq0wlQGu4rvF3SRQtfU8tvaio6eTxIEA3hrmFyBz7AZWv9R3rijjhElH59lgzf Jh+Q== X-Gm-Message-State: AKS2vOwL1gjewdO1bf6/9clF1pwMcNTVSypUrHK2D7jB+kVGKguPvy78 10tRlU//2YL8yJ3k79U= X-Received: by 10.99.171.66 with SMTP id k2mr8218006pgp.248.1498039755124; Wed, 21 Jun 2017 03:09:15 -0700 (PDT) Original-Received: from [192.168.24.55] (pl2587.ag0304.nttpc.ne.jp. [128.53.196.27]) by smtp.gmail.com with ESMTPSA id p4sm32461636pgf.21.2017.06.21.03.09.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 03:09:14 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::243 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215855 Archived-At: > On Jun 21, 2017, at 7:55, Glenn Morris wrote: >=20 > Jean-Christophe Helary wrote: >=20 >> (why hardcode values that do not correspond to the current manual?) >=20 > Becuase they are just illustrative examples, and nothing would be = gained > by changing them to always refer to the current version. Sorry, back to the thread. If we hardcode 1 value, why not hardcode the 2 other: @defvar emacs-major-version The major version number of Emacs, as an integer. For Emacs version 26.1, the value is 26. @end defvar @defvar emacs-minor-version The minor version number of Emacs, as an integer. For Emacs version 26.1, the value is 1. @end defvar That's an even better illustration of the variables and it costs = extremely little since we already hardcode the value of (emacs-version). Jean-Christophe=