unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15753: 24.2; image-mode-hook does not exist
@ 2013-10-30  1:40 Tikhon Jelvis
  2013-10-30  2:54 ` Stefan Monnier
  2013-10-30  3:28 ` Leo Liu
  0 siblings, 2 replies; 3+ messages in thread
From: Tikhon Jelvis @ 2013-10-30  1:40 UTC (permalink / raw)
  To: 15753

[-- Attachment #1: Type: text/plain, Size: 2419 bytes --]

The variable image-mode-hook does not exist, so I can't easily add a hook
to image mode. This is using Emacs 24.2.1 on Fedora 18.

Here are the details from M-x report-emacs-bug, just in case:

In GNU Emacs 24.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.6.4)
 of 2013-07-14 on buildvm-05.phx2.fedoraproject.org
Windowing system distributor `Fedora Project', version 11.0.11303000
Configured using:
 `configure '--build=x86_64-redhat-linux-gnu'
 '--host=x86_64-redhat-linux-gnu' '--program-prefix='
 '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr'
 '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
 '--datadir=/usr/share' '--includedir=/usr/include'
 '--libdir=/usr/lib64' '--libexecdir=/usr/libexec'
 '--localstatedir=/var' '--sharedstatedir=/var/lib'
 '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus'
 '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff'
 '--with-xft' '--with-xpm' '--with-x-toolkit=gtk3' '--with-gpm=no'
 '--with-wide-int' 'build_alias=x86_64-redhat-linux-gnu'
 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g
 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
 --param=ssp-buffer-size=4 -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro ''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Image[svg]

Minor modes in effect:
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-netsplit-mode: t
  erc-hl-nicks-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  global-auto-revert-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  show-paren-mode: t
  global-auto-complete-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

[-- Attachment #2: Type: text/html, Size: 3020 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#15753: 24.2; image-mode-hook does not exist
  2013-10-30  1:40 bug#15753: 24.2; image-mode-hook does not exist Tikhon Jelvis
@ 2013-10-30  2:54 ` Stefan Monnier
  2013-10-30  3:28 ` Leo Liu
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2013-10-30  2:54 UTC (permalink / raw)
  To: Tikhon Jelvis; +Cc: 15753

> The variable image-mode-hook does not exist,

Hooks are not really variables.  So, yes it does exist.  It just doesn't
have a value, by default.

> so I can't easily add a hook to image mode.

To quote someone else: yes, you can.


        Stefan





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#15753: 24.2; image-mode-hook does not exist
  2013-10-30  1:40 bug#15753: 24.2; image-mode-hook does not exist Tikhon Jelvis
  2013-10-30  2:54 ` Stefan Monnier
@ 2013-10-30  3:28 ` Leo Liu
  1 sibling, 0 replies; 3+ messages in thread
From: Leo Liu @ 2013-10-30  3:28 UTC (permalink / raw)
  To: Tikhon Jelvis; +Cc: 15753-done

Not a bug.

On 2013-10-30 09:40 +0800, Tikhon Jelvis wrote:
> The variable image-mode-hook does not exist, so I can't easily add a hook
> to image mode. This is using Emacs 24.2.1 on Fedora 18.

Hook variables don't need to be defined before use. So just use it and
it will work.

Leo





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-30  3:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-30  1:40 bug#15753: 24.2; image-mode-hook does not exist Tikhon Jelvis
2013-10-30  2:54 ` Stefan Monnier
2013-10-30  3:28 ` Leo Liu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).