From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#35508: 27.0.50; Fine-ordering of functions on hooks Date: Sat, 11 May 2019 09:26:10 -0400 Message-ID: References: <831s1iqclm.fsf@gnu.org> <835zqhdwnk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="48607"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 35508@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 11 15:27:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hPS1u-000CVs-Be for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2019 15:27:10 +0200 Original-Received: from localhost ([127.0.0.1]:58901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPS1t-0007VN-9v for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2019 09:27:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPS1n-0007VF-D7 for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 09:27:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPS1m-0007Tb-B6 for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 09:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54761) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPS1m-0007TN-86 for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 09:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hPS1l-0006oS-WE for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 09:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 May 2019 13:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35508 X-GNU-PR-Package: emacs Original-Received: via spool by 35508-submit@debbugs.gnu.org id=B35508.155758118526139 (code B ref 35508); Sat, 11 May 2019 13:27:01 +0000 Original-Received: (at 35508) by debbugs.gnu.org; 11 May 2019 13:26:25 +0000 Original-Received: from localhost ([127.0.0.1]:40072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPS1A-0006nX-QN for submit@debbugs.gnu.org; Sat, 11 May 2019 09:26:25 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPS19-0006nL-FS for 35508@debbugs.gnu.org; Sat, 11 May 2019 09:26:23 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0A50D10069C; Sat, 11 May 2019 09:26:18 -0400 (EDT) Original-Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 43CF8100623; Sat, 11 May 2019 09:26:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1557581172; bh=JnRpxnhSfcWfmnaTzGvs+epQeVaCphuo5stLj7fW+qg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=iOwzHWwyBXiDAZNQOEfXbu5BB7SE12dNBK8/x8t9UMEqKrTiZEZY+IVdk/b79LwNP 6bSU1NjHJQidUzN06XGJ/Ga8fX0pgwgX6tWsAQFKkeq9z5owjshbXV0BSPN+dNKMyE adNbrRfkwRM3ChR1Y4EQKCoD3MJwwaXbblX5HgyVJJz63k1HzpUhHiuji8wEPK5cHU aXQnLYcl0dlirpryHbx85HMzzQSt0TaFWFlOBUBbyDZNeYmMjQQMwjqSknDKFw9ztw CocZQtMvYLg8B6itgFKlF+gSGx+XFZ0Pt7o5cKM75c+5K/p4fWm3yZiKUaSyte0qUp nyI5LRbQ9ti1A== Original-Received: from pastel (69-196-155-191.dsl.teksavvy.com [69.196.155.191]) by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id 9CEB5120781; Sat, 11 May 2019 09:26:11 -0400 (EDT) In-Reply-To: <835zqhdwnk.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 11 May 2019 15:05:03 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159082 Archived-At: >> Other objections? > Thanks. Should we perhaps change 100 to 110 and 90 to 100? You mean make it go https://en.wikipedia.org/wiki/Up_to_eleven ? ;-) > And perhaps not document the 110 value? Just a thought. I think we do want to document values greater than what `t` does: it can be important (e.g. for syntax-ppss-flush-cache) to make sure we stay closer to the end than those hooks appended via `t` for weaker reasons (e.g. because they don't want to be before some other function, although they don't really care if they're the very last one or not). Also I think it's important to use the same convention as for add-function. But what I wonder is whether we should enforce the convention: currently we don't in add-function (and in this add-hook patch), so you can use a depth of 8345 if you feel like: it's really just a convention. Also, maybe the docs should insist on the fact that 100/-100 should basically never be used since they imply that you're 100% sure that noone will ever need to come before/after you, and you can never be sure 100%. Stefan