From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Fwd: A TAB operation reform question. Date: Tue, 11 Oct 2022 09:48:53 -0400 Message-ID: References: <87tu4blmf0.fsf@laptop.lockywolf.net> <87mta3krsg.fsf@laptop.lockywolf.net> <878rlmsdrp.fsf@laptop.lockywolf.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3990"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Vladimir Nikishkin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 11 16:05:47 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiFtC-0000mV-1n for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 16:05:46 +0200 Original-Received: from localhost ([::1]:34364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiFt9-0007zv-Tt for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 10:05:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiFd8-0000rh-Ga for emacs-devel@gnu.org; Tue, 11 Oct 2022 09:49:10 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:12113) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiFcw-00022r-JG for emacs-devel@gnu.org; Tue, 11 Oct 2022 09:49:08 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C17A810012E; Tue, 11 Oct 2022 09:48:55 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 550D5100091; Tue, 11 Oct 2022 09:48:54 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1665496134; bh=QPSuH/80nJ72RRsb/8KVuEsFiOetVKWEF7AyhPi929U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=TqU5YMkmsd4esog9p3ZFnz3EUiOiadgk9QT5lajFMqv1F7wihxudBATBQJSASkh0l I+LY3dTM+ACkuzJv7Lg5nzXGEt7MhN9Vy+LPQ1Q7pz2ZUB+80wP4Bvn6ktRPvED0MF DtKKXoETm3zOFqyY4yqpgQNWllgL40kuP0JO+Jm/57x1Az1p+pbonqk91/fsX8Neh3 Wp2kfhz/B9ovCFBNbhO46TCxLWHElF2dYvZAnPkWAg6BLkw3xDQtCLlF0nvVT5wiFX XJm5UTUqnGthW/NW4u3I7Rl6irpdKNtAsQezfM+iSkOsaRqNgGQyoKSw1tAI1/gwg1 lKhK07fkO5K1Q== Original-Received: from pastel (65-110-220-202.cpe.pppoe.ca [65.110.220.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1FC601204DF; Tue, 11 Oct 2022 09:48:54 -0400 (EDT) In-Reply-To: <878rlmsdrp.fsf@laptop.lockywolf.net> (Vladimir Nikishkin's message of "Tue, 11 Oct 2022 20:59:17 +0800") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297487 Archived-At: Vladimir Nikishkin [2022-10-11 20:59:17] wrote: > This is more or less what I would like to suggest, except I am not > particularly sure that advising is the way to go with this issue. > I think that a customizable "hook-list" would be a cleaner option. I tried to use a standard hook with a list of function, but I found it was not flexible enough to cover adequately the variety of interactions between the different options (TAB is highly sought after, so the existing interactions are sometimes fairly delicate). A `tab-dwim-function` var is a bit more delicate to configure than a `tab-dwim-functions` var, but I think neither of them would be usable via Custom anyway (because it's often overridden buffer-locally by major/minor modes). This said, a `tab-dwim-functions` would be a great improvement over what have, in any case. Stefan