From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Proposal to change cursor appearance to indicate region activation Date: Fri, 23 Jan 2015 13:56:52 +0200 Message-ID: <838ugtu2uz.fsf@gnu.org> References: <83iofxu7za.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422014246 17315 80.91.229.3 (23 Jan 2015 11:57:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2015 11:57:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kelly Dean Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 23 12:57:25 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YEcrd-0001TA-GM for ged-emacs-devel@m.gmane.org; Fri, 23 Jan 2015 12:57:25 +0100 Original-Received: from localhost ([::1]:58286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEcrd-0002W6-2g for ged-emacs-devel@m.gmane.org; Fri, 23 Jan 2015 06:57:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEcrQ-0002Vw-6r for emacs-devel@gnu.org; Fri, 23 Jan 2015 06:57:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEcrL-0004Jl-DL for emacs-devel@gnu.org; Fri, 23 Jan 2015 06:57:12 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:39182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEcrL-0004JW-6U for emacs-devel@gnu.org; Fri, 23 Jan 2015 06:57:07 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NIM00F00OV9WZ00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 23 Jan 2015 13:56:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIM00FIWP6QX310@a-mtaout22.012.net.il>; Fri, 23 Jan 2015 13:56:50 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181666 Archived-At: > From: Kelly Dean > CC: emacs-devel@gnu.org > Date: Fri, 23 Jan 2015 11:40:55 +0000 > > Eli Zaretskii wrote: > >> +(add-hook 'emacs-startup-hook #'maybe-disable--dynamic-cursor) > > > > Isn't there a way to do this that avoids using hooks? I think using > > hooks in standard features should be avoided. Hooks are for > > customizing Emacs. > > I don't know, but there's already a bunch of stuff in Emacs that uses emacs-startup-hook and after-init-hook, so I assumed that's the way I'm supposed to do it. emacs-startup-hook is currently used in exactly 2 places, one of which (edt.el) is an emulator, so I could understand why it needs something like that. Anyway, the key word here is "avoid", so if there's no cleaner way to do what you need, it's not *verboten* to use that hook.