From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lajos Bodnar Newsgroups: gmane.emacs.help Subject: Re: hook and interactive with parameter Date: Tue, 13 Feb 2018 09:23:41 +0100 Message-ID: References: <86tvumgrbk.fsf@zoho.com> <86lgfygoux.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1518510183 7005 195.159.176.226 (13 Feb 2018 08:23:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 08:23:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 13 09:22:59 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1elVr3-00080c-UH for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Feb 2018 09:22:22 +0100 Original-Received: from localhost ([::1]:54719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elVt5-0008Gn-ON for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Feb 2018 03:24:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elVsP-0008Di-GL for help-gnu-emacs@gnu.org; Tue, 13 Feb 2018 03:23:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elVsN-0006ZW-5p for help-gnu-emacs@gnu.org; Tue, 13 Feb 2018 03:23:45 -0500 Original-Received: from mail-it0-x22e.google.com ([2607:f8b0:4001:c0b::22e]:56112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elVsM-0006YS-QW for help-gnu-emacs@gnu.org; Tue, 13 Feb 2018 03:23:42 -0500 Original-Received: by mail-it0-x22e.google.com with SMTP id b66so10138648itd.5 for ; Tue, 13 Feb 2018 00:23:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XvPC5lpIb3o6CVQbwkuMYfyVN458IalOfnsm7JXsHxY=; b=C/0yzOv0Y++gzaIy/DbHBaljgwIj1VeoqDcgKmvLvmypDcSeRdrPJXbuRJDmeZzwpz bXP1DrJgrxWU9t+aS4XIxx43zgO+8ubxeg0lEf7hl12ZNHTK7NBDZ7CWewuEWt6XN9Vo RmcxUH+4/q/R4HPAZjHF/zA3SYA+RnLVmyPhkF8HNgk88xjGencp8zh8jAQyUprzp3f7 s9yeEd1JzyuGtgyaUtuuo7Lk29UVwCQQUureLU4kcwnriiRGF4Lg02wmiHE2Q3MC5pEX CXBuhYeW/PTBtpfuwk7ZQh6v6gUDNv10LnpJvAIJStl+Qr8ZoNheQh0VkiX8TAFeVSGP AIIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XvPC5lpIb3o6CVQbwkuMYfyVN458IalOfnsm7JXsHxY=; b=c63xtMwJwwJR6eYiuyAgrK9e5UcFaSGnNR/DYeoh4N2g7NSR8rNUuaJCd4Hj6r38wN JKRnFZ5wlGLqNVIO/6zSwVlpfBwRNUdKNrbsUdmYgewQqsQckSfeiTUQz5Jpsklrvg3C uqp5E8iIETJsMpe/IkjYtLNA+Z/2wgfHbarl+NxUDzvesNCFmnjz4nMO2ykQrV6tPEp7 e9RzhgbMk3j6NoM3nT2cJkRGSYDhgDS/KH/4C5IjA0lBnU5KDB83TozathUPnMo5dp/B 1VEL4oAjQ8mTTlVtH9alt0sN6Hy8AzrwWXfjP2DDSQuDDcfY1orICMfYu3gKJBcyI/qV VWpQ== X-Gm-Message-State: APf1xPBh7P/bx1txQl22LIA5USha9Tji4/YmGHrCWd602bjAZUPEMVxu pBrPydFes9AfCkN1rwUSQH6aKeHsi27N+PiVCo0= X-Google-Smtp-Source: AH8x226+u7FrNw6RZ5J9b/ziBq1R7+VpQwJ6kHpwHiJix89F4ZxiEwKmGaMnu+RWj9wg6Q07u+odW9UFjhaQzqjdNZM= X-Received: by 10.36.152.132 with SMTP id n126mr620550itd.112.1518510222024; Tue, 13 Feb 2018 00:23:42 -0800 (PST) Original-Received: by 10.79.203.77 with HTTP; Tue, 13 Feb 2018 00:23:41 -0800 (PST) In-Reply-To: <86lgfygoux.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22e X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115962 Archived-At: Thanks a lot, I understood what the problem is with this concept. What is your advice ? The problem is that if I open a haskell file then sometimes I don't want to run intero-mode with it (because the intero mode is very expensive). In most cases I would like to run intero but not all time. On Mon, Feb 12, 2018 at 5:21 PM, Emanuel Berg wrote: > tomas wrote: > > > That said, to me, calling user interaction > > from a hook "feels" a bit strange. > > But perhaps it's just me. > > No, hooks are often troublesome and the more you > put into them, the more trouble you get. > In this case while I don't think the computer > will blow up, I think the OP will be annoyed > with this question popping up all the time. > It isn't the Emacs way. And it is inefficient > as well as without it, say 50% of the times it > would be correct without any interference, now > you have to answer yes or no 100% of the > times instead. > > -- > underground experts united > http://user.it.uu.se/~embe8573 >