From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Merge multiple hooks into one directive. Date: Tue, 6 Jul 2021 07:45:12 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20215"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 06 01:49:42 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1m0YLN-0004zf-VZ for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 06 Jul 2021 01:49:41 +0200 Original-Received: from localhost ([::1]:45380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0YLN-0002Di-0p for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Jul 2021 19:49:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0YHJ-0002Am-5s for help-gnu-emacs@gnu.org; Mon, 05 Jul 2021 19:45:30 -0400 Original-Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:44960) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0YHH-0002au-Eu for help-gnu-emacs@gnu.org; Mon, 05 Jul 2021 19:45:28 -0400 Original-Received: by mail-lf1-x12d.google.com with SMTP id c28so11631604lfp.11 for ; Mon, 05 Jul 2021 16:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LltwIHYPAj/q8ewYr/282vADpVDCCbbpoXUdXbvr3Zw=; b=iF1fZPVJeheAdrcfnayqwRqhmyM6YMvNEk4icL0vBa1vX2Acew0FCuQNI1hHoJbzbK WibCzuCtz4HJwOzSOOcnjqmv5Nr3UxT0b4PaJiq4B6MYy/PoYMLWuoigZ4/RxWmOna4V 5Lh7062Ni2EegMYNCpFpz3Ra8Anc9Yn8vp+clfYZ1OLoamertFBfeA0e1qRjIQa8YAT0 3S82O+nkLnO6x9HzkE/T50Bue9vxDyAQ0QqgnrLiujCjD+BHiMYwZHRBavr6fWSX7rPU +76lawRA0cpIO1kKZRNmZkK5TVXEIwmGYFzT5lUS5CKrcqTVsxerhorFRT9E9LNnbu4/ JvIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LltwIHYPAj/q8ewYr/282vADpVDCCbbpoXUdXbvr3Zw=; b=rcf3HnYQpvW0m4f49zO8hHG/PiGD02RcONycuLx9FH7sEfa7lFgR2jVaxF3rYkeBmy BbKOIaYDme6c6+4nF0GcDNFNGoL0ozXftnSvobnQEEuZoYMKDObuDS/DqOxc++gIsc8i sxelokZRJIpYgMUoExzbfqWfWZLigCTpNTyCJ1qV6xRomaSMQS6pDgQCDPlzhdrM6Xqk buJe/23edDrKTKejqD3JFuTGYTE+FmlTfXV9Q5YWTdWIwBEUL2Umqfg4mTB7r0Cm9CAf bsRYMRcSb2HQgAtxWKvk9UypQ7UabVtZWNhu7aPZ3kCYY09+VtHL3wSSGUgSzo0pWHIf ZOkw== X-Gm-Message-State: AOAM531xP6xe3shQUua4ifT7FtjU+mgmSA6/Q6QJ3Uzt0ocQrz6vAaBS IiBtkh/58oNp6oIUqzIhbpnxP8ej2w/y12jZy9xEVDr0kg/3Kh+uzmw= X-Google-Smtp-Source: ABdhPJzJHADQy84m4+eEmKjOmuTChQTCenD8Q/np4ef1BpxkfZK1JJRgpWs3OKKyO6F5RAEeI3BdIpunlEnzF+bGcHs= X-Received: by 2002:a05:6512:3f9a:: with SMTP id x26mr12924641lfa.75.1625528723591; Mon, 05 Jul 2021 16:45:23 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131511 Archived-At: Consider the multiple hooks as follows: (add-hook 'A-hook 'foo) (add-hook 'B-hook #'bar) (add-hook 'C-hook (baz)) ... If I want to merge them into one directive. What's the preferable way? Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China