From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: Change in files.el Date: Tue, 31 Jan 2017 16:21:14 +0000 Message-ID: References: <83mvebzh0k.fsf@gnu.org> <83bmurz0y9.fsf@gnu.org> <8360kzyxor.fsf@gnu.org> <83ziibxg7j.fsf@gnu.org> <83y3xvxfbs.fsf@gnu.org> <83wpdfxe96.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11447a54cf0ceb05476652f4 X-Trace: blaine.gmane.org 1485880746 29063 195.159.176.226 (31 Jan 2017 16:39:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2017 16:39:06 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 31 17:39:02 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 1cYbSP-0007Te-FM for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2017 17:39:01 +0100 Original-Received: from localhost ([::1]:39421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYbSU-00005X-T5 for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2017 11:39:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYbBP-0007im-1F for emacs-devel@gnu.org; Tue, 31 Jan 2017 11:21:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYbBO-0000hd-4K for emacs-devel@gnu.org; Tue, 31 Jan 2017 11:21:27 -0500 Original-Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:34974) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYbBN-0000hZ-WD for emacs-devel@gnu.org; Tue, 31 Jan 2017 11:21:26 -0500 Original-Received: by mail-vk0-x22f.google.com with SMTP id x75so240362487vke.2 for ; Tue, 31 Jan 2017 08:21:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=pZ17HkTFH5+FBgWNh3zqO3f45l/v1wb6pJi8ZK+yKRI=; b=GjviiSymzl//1qQoQH+L73rD42CsaVFs+oGfi0JZgH+LCrM127sLaKfu6mh373S9o4 AG6SkAVepZUPUlOHGRKh9PktdCTvb0J6N4tuCiC/ZoOpUWRPt2y4wdilJG1OLgZ8TWf+ BhPLuoTPW0VY9KpsWMYrUm0NPzPi5uQNZFJILrsSyLlYs/H0peXl9KcoMlAW/p6E/pO6 3wdTsTa3i7mxucu0minoWlQqN7AvSMa7ikkyCihP9EOyvoeza1MjS7vzLMguvGW+uQhT lcbuXo/tfRRVTwL4ofsU7CfcjzTX4ng2jvdkezVb6aZasRDC2YSrUCs9x+6Q7QTU3VW1 GAZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=pZ17HkTFH5+FBgWNh3zqO3f45l/v1wb6pJi8ZK+yKRI=; b=s5TDAAhPRqRsIj3ET1NmUicih4seYlLD9DIvE5hS+m2h5nCn0zKJfhke1vBar+Uaf3 Vhf3M+wQW/bq24TBY41whmr7aZsyQvUEycEuTJlDHuCuVQvgo4vI1Ek+sHHxh7Ep/EgG 3UY5lRd5Vu0t2lQ4iNPS3eNoGGKAJViVrQ6ryyDnIu1iY6BUCIje7PNs+GsyyPqJzRqS WbvyIMEEppkmJcxNubOU/pcp1hdzQ1NrqYUShPr9XNBDn4BzBb+T9pvpTyubVfLjtjX5 2e9zFIvuaV8gU6MdD2T+WZvEHknpNU5s4v51WLE6mlfgG9m2JQ5KSHfdqL8rGI6Bo6FR 1hpw== X-Gm-Message-State: AIkVDXIKurUr1SgI34ofKZdamL73vYYRsxz1IEvb3wgbRdrQgMVV24RCYVNcxg3G/ydJL8o4zxs9MhDP8FeoqA== X-Received: by 10.31.62.71 with SMTP id l68mr13547898vka.175.1485879685088; Tue, 31 Jan 2017 08:21:25 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22f 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:211803 Archived-At: --001a11447a54cf0ceb05476652f4 Content-Type: text/plain; charset=UTF-8 Just a data point from a user: I would appreciate the consistency of variables named with -function/-predicate suffixes to have a function has a default value. Being able to use add-function on just variables is very convenient (I use it to tweak region-extract-function). The default values also serve as good examples. On Tue, Jan 31, 2017 at 10:54 AM Stefan Monnier wrote: > Can add-function infer that a -function variable with a value of "nil" is > equivalent to it having a value of 'ignore? As Leo pointed out, in 99% of the cases, nil is not equivalent to `ignore' in those variables. And if it were, then what would be the benefit to use nil instead of using `ignore' as the default value? --001a11447a54cf0ceb05476652f4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Just a data point fro= m a user:

I would appreciate the consistency of variables named with -= function/-predicate suffixes to have a function has a default value. Being = able to use add-function on just variables is very convenient (I use it to = tweak region-extract-function). The default values also serve as good examp= les.

On Tue, Jan 31, 2017 at 10:54 AM Ste= fan Monnier <monnier@iro.umontreal.ca> wrote:
> Can add-func= tion infer that a -function variable with a value of "nil" is
> equivalent to it having a value of 'ignore?

As Leo pointed out, in 99% of the cases, nil is not equivalent to
`ignore' in those variables.=C2=A0 And if it were, then what would be t= he
benefit to use nil instead of using `ignore' as the default value?

--001a11447a54cf0ceb05476652f4--