From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#17009: Please add a hook to visual-line-mode Date: Fri, 14 Mar 2014 12:17:56 +0000 Message-ID: References: <01zjktrzgj.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01634ef459f43d04f4900f95 X-Trace: ger.gmane.org 1394799493 4865 80.91.229.3 (14 Mar 2014 12:18:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2014 12:18:13 +0000 (UTC) Cc: 17009@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 14 13:18:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1WOR49-00024R-Fo for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Mar 2014 13:18:21 +0100 Original-Received: from localhost ([::1]:44368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOR49-0008O9-0m for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Mar 2014 08:18:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOR3z-0008Lp-G2 for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2014 08:18:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOR3r-0004VR-A5 for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2014 08:18:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOR3r-0004Uf-6S for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2014 08:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WOR3q-0006xR-Fk for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2014 08:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Mar 2014 12:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17009 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17009-submit@debbugs.gnu.org id=B17009.139479947926734 (code B ref 17009); Fri, 14 Mar 2014 12:18:02 +0000 Original-Received: (at 17009) by debbugs.gnu.org; 14 Mar 2014 12:17:59 +0000 Original-Received: from localhost ([127.0.0.1]:36532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WOR3n-0006x8-6x for submit@debbugs.gnu.org; Fri, 14 Mar 2014 08:17:59 -0400 Original-Received: from mail-yk0-f172.google.com ([209.85.160.172]:41026) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WOR3l-0006x0-Bp for 17009@debbugs.gnu.org; Fri, 14 Mar 2014 08:17:58 -0400 Original-Received: by mail-yk0-f172.google.com with SMTP id 200so6422483ykr.3 for <17009@debbugs.gnu.org>; Fri, 14 Mar 2014 05:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NrAQ+OFDuuCAGDxsGDhVeYqWSmFWyl36y2yP5Q/bMtg=; b=ejnDK3wMS72wxmar0d4+AHr56yfFNR/xgXwtsL1mjvV8BzTWrb5pgpVgZIGFXxmWs7 Sj+PsjT70i6UpZ/ZnuPnttA38WYzrMmc2yevK0ngkKkVTPhZvnaMI9KLx3gS12b4GqrO IOIkwRxsViQCayr4z8dFdbcxzMZfjxzBeCSrU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=NrAQ+OFDuuCAGDxsGDhVeYqWSmFWyl36y2yP5Q/bMtg=; b=QHyKm/HceNz3QnQvOHc71F/Y9O21gFu1dxTeZcbPzSq0nHHJbEnbmvDrzw0te/BXSK GdMUAp2Wl8/KahNkA7GlcMX8yKcerKiKRJh0E1cpq2rLftnVADHNL8Xqyl3Y+vMNVNGx wm3phNmL6l/vPcY+N89cu7wXhcUTGsYPKZXQ3pazqLJNSH/ctNDtDztD0Kbxsqajw1nQ 7+/BWPQAHs08zacNCRZ9n5pZkxvwuggCl59SiIZZRKgyBKXPjcBa+Ig8FDWgG3ttQiLo gzEOEHT8qDEyKaftUN7xD2Xea4eK/cnui6dmzYhvnHFzDFwovo8cnCS9J2BF7Z+8joF6 D1PQ== X-Gm-Message-State: ALoCoQlClQVN608f2Bq+2NcUxbr29HxP7BJUtbP9GzCXODrQpTr3ty7ySX1mqo6CTxJJq+gORyBv X-Received: by 10.236.17.34 with SMTP id i22mr2254199yhi.110.1394799476857; Fri, 14 Mar 2014 05:17:56 -0700 (PDT) Original-Received: by 10.170.137.66 with HTTP; Fri, 14 Mar 2014 05:17:56 -0700 (PDT) In-Reply-To: <01zjktrzgj.fsf@fencepost.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86851 Archived-At: --089e01634ef459f43d04f4900f95 Content-Type: text/plain; charset=ISO-8859-1 On 14 March 2014 07:50, Glenn Morris wrote: > > Modes defined with define-minor-mode have hooks. > > C-h v visual-line-mode-hook > > visual-line-mode-hook is a variable defined in `simple.el'. > Its value is (visual-line-mode-set-explicitly) > > This variable may be risky if used as a file-local variable. > > Documentation: > Hook run after entering or leaving `visual-line-mode'. > No problems result if this variable is not bound. > `add-hook' automatically binds it. (This is true for all hook > variables.) > Great! Is this new in 24.4, because this doesn't work for me? -- http://rrt.sc3d.org --089e01634ef459f43d04f4900f95 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 1= 4 March 2014 07:50, Glenn Morris <rgm@gnu.org> wrote:

Modes defined with define-minor-mode have hooks.

C-h v visual-line-mode-hook

=A0 =A0 visual-line-mode-hook is a variable defined in `simple.el'.
=A0 =A0 Its value is (visual-line-mode-set-explicitly)

=A0 =A0 This variable may be risky if used as a file-local variable.

=A0 =A0 Documentation:
=A0 =A0 Hook run after entering or leaving `visual-line-mode'.
=A0 =A0 No problems result if this variable is not bound.
=A0 =A0 `add-hook' automatically binds it. =A0(This is true for all hoo= k
=A0 =A0 variables.)

Great! Is this new = in 24.4, because this doesn't work for me?
--089e01634ef459f43d04f4900f95--