From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: GNU Emacs raison d'etre Date: Thu, 21 May 2020 00:22:04 +0300 Message-ID: <3d02a63d-5f84-1c94-43de-e077e999ead6@yandex.ru> References: <83eere7jil.fsf@gnu.org> <834ksa7fgy.fsf@gnu.org> <0db86fd4-3add-7863-9102-849a9d270cc3@gmx.at> <83sgfu5vhs.fsf@gnu.org> <8fc4ea19-35ff-5c34-4a25-e1b47ee79e77@yandex.ru> <83pnay5udk.fsf@gnu.org> <83mu625tav.fsf@gnu.org> <0015ade0-d4f9-6ccc-692c-222871251c51@yandex.ru> <20200520195336.GA25403@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="30269"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: tomas@tuxteam.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 20 23:23:48 2020 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 1jbWBn-0007n0-Tg for ged-emacs-devel@m.gmane-mx.org; Wed, 20 May 2020 23:23:47 +0200 Original-Received: from localhost ([::1]:36258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbWBn-0001aC-0n for ged-emacs-devel@m.gmane-mx.org; Wed, 20 May 2020 17:23:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbWAE-00087L-3v for emacs-devel@gnu.org; Wed, 20 May 2020 17:22:11 -0400 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:52542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbWAD-0005c9-55 for emacs-devel@gnu.org; Wed, 20 May 2020 17:22:09 -0400 Original-Received: by mail-wm1-x32d.google.com with SMTP id z4so3796503wmi.2 for ; Wed, 20 May 2020 14:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=k/sMmvbBRHFvqEncNeJbvqymMnmlhQUIk4OHSXmT+g4=; b=p3uKvasHc7+k6vjTpzqpJ8mAYunOkbzHyV1lVQWMEto2PF1SANo6ctjVZXopuc6V6l M4xKJNsfm7nldd/Fk6V4fQ7wf0dYlQ30dEcP0R8gnZMdr/XOuFybXCTp07sbn8P2qxH8 r15Io9jAQXq8Q6igpTPxRAC32cPYI9r9H59bUYs2Sx0YOdO9ixDRGCxdhcPufCXoHh1P GZcUecL6GnS5+IIPgJmld1On2lWjfAv05BVXAo83A8OHmHEn8DFCACzDFy72laC1OTo6 ZFBnEF5rpssD3P8UmBfFTJAkCAAFFAgKdw63w5d1SMM+Dz6Sh5EJIUXxwaRiSuwK+0QS Dd/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=k/sMmvbBRHFvqEncNeJbvqymMnmlhQUIk4OHSXmT+g4=; b=MJT+EiIqeo/HlAbVUOUN5oF8DPyZMjZta5zKVMASLS+RVdfBEbzEipBO4sghk3Boy6 JLC6OhOropN/4Jj0mBDO6l7esZQpjEua74UMoZ6bRvYnM0nlOL284roVgQ5Ld3U8W9+G gmq+AbXX6NMWOhIoyT6UcLx2qO41EGCpJzZUAEgfZg9koF1WnFNZrk1Ox+aj6qucYrFJ zgyoYIpxPyHPHE5gqYX4BDk5CF7VIGXBTCnccDHP3G/4Iznn293pAIbDA78IIxOfAI47 ouY5kEqYZYuaxPIeCHqt7ehjVGw38gzcgo4oHuXQ2m/KdijWswIMDzgTAc+03XK2xJFN YpxA== X-Gm-Message-State: AOAM531pOqJBEYrhq5wCk6dGVyUKQ69xZiZ5GnDgxxCeLs+48slel+RU 38QKK4gYzpI0PRVomJhbHrVpq56L X-Google-Smtp-Source: ABdhPJzijPPn1ewErbZX/aAVBppiTxFzWO+1LN/u7YJzHRgyZo+DbR0GrvNi+1fDmhE3sGLMdkh62Q== X-Received: by 2002:a7b:c005:: with SMTP id c5mr6104633wmb.22.1590009726889; Wed, 20 May 2020 14:22:06 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id 10sm4376103wmw.26.2020.05.20.14.22.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 May 2020 14:22:06 -0700 (PDT) In-Reply-To: <20200520195336.GA25403@tuxteam.de> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=raaahh@gmail.com; helo=mail-wm1-x32d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:251114 Archived-At: On 20.05.2020 22:53, tomas@tuxteam.de wrote: > Sorry, I don't quite understand. You are proposing that message-fun > should not only take over messages proper but also the repl's print? Yes, why not? > Because (message "foo") displays foo twice (well once it's foo, as > a side effect, then it's "foo", as the repl's "print" part, as the > result of the S-expression's evaluation. When it is evaluated in the REPL, yes. Because you're seeing both the result of 'message' itself, as well as the result of eval-expression. > FWIW, I'd expect setting set-message-function (strange name for a > var, BTW) to just take over the side effect, not the repl's "print". Do you have an example of set-message-function where it would be a bad idea?