From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: akrl Newsgroups: gmane.emacs.help Subject: prevent hook vanishing Date: Fri, 18 May 2018 08:23:11 +0000 Organization: SDF Public Access UNIX System, Est. 1987 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1526632411 31140 195.159.176.226 (18 May 2018 08:33:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 May 2018 08:33:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (berkeley-unix) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 18 10:33:27 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 1fJapJ-0007zj-8S for geh-help-gnu-emacs@m.gmane.org; Fri, 18 May 2018 10:33:25 +0200 Original-Received: from localhost ([::1]:37389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJarQ-0002yw-CR for geh-help-gnu-emacs@m.gmane.org; Fri, 18 May 2018 04:35:36 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin3!goblin.stu.neva.ru!odin.sdf-eu.org!.POSTED.faeroes.sdf.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Injection-Info: odin.sdf-eu.org; posting-host="faeroes.sdf.org:205.166.94.9"; logging-data="22558"; mail-complaints-to="usenet@odin.sdf-eu.org" Cancel-Lock: sha1:CzsM5l+4VvdySudQWFKXO2BL5TE= Original-Xref: usenet.stanford.edu gnu.emacs.help:222640 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:116759 Archived-At: Hi all, How do I prevent emacs from removing a hook I've installed using something like: (add-hook 'after-change-functions 'render-buf nil t) in case of an error occur executing it? I would also be fine in being able to reinstall it somehow afterward. Bests akrl -- akrl@sdf.org SDF Public Access UNIX System - https://sdf.org