Gnus development mailing list
 help / color / mirror / Atom feed
From: Marius Hofert <marius.hofert@math.ethz.ch>
To: <ding@gnus.org>
Subject: Re: gnus-timer--function is void (was Re: Gnus freezes on startup)
Date: Thu, 31 Jan 2013 23:04:18 +0100	[thread overview]
Message-ID: <871ud1rov1.fsf@sklar.v.cablecom.net> (raw)

Hi,

I work with Emacs 24.2.1 on Ubuntu 12.10 and wanted to use the latest version
of Gnus. I git-cloned to ~/.emacs.d (then ./configure, make) and ~/.emacs contains:

--8<---------------cut here---------------start------------->8---
(setq load-path (cons (expand-file-name "~/.emacs.d/gnus/lisp") load-path))
(require 'gnus-load)
(require 'info)
(add-to-list 'Info-default-directory-list "~/.emacs.d/gnus/texi/")
--8<---------------cut here---------------end--------------->8---

On startup of Gnus, I obtain:

,----
| gnus-group-highlight-line: Symbol's function definition is void:
| gnus-get-text-property-excluding-characters-with-faces
`----

That's the backtrace (with M-x toggle-debug-on-error):

,----
| Debugger entered--Lisp error: (void-function gnus-get-text-property-excluding-characters-with-faces)
|   gnus-get-text-property-excluding-characters-with-faces(1 face)
|   gnus-group-highlight-line("dummy.group" 1 23)
|   gnus-group-insert-group-line("dummy.group" 0 nil 0 nil)
|   gnus-update-group-mark-positions()
|   gnus-group-mode()
|   gnus-group-setup-buffer()
|   gnus-group-list-groups(nil)
|   byte-code("\b\204
`----

I then have executed gnus-get-text-property-excluding-characters-with-faces by hand
(with C-x C-e). Afterwards, Gnus starts and I can also write mails. For testing
purposes, I sent myself a mail. When I wanted to open it, I obtained:

,----
| gnus-article-stop-animations: Symbol's function definition is void: gnus-timer--function
`----

... and this is how I found this post. 

I then executed this auxiliary function:

--8<---------------cut here---------------start------------->8---
(let ((name "gnus-util")
      (load-path (copy-sequence load-path))
      elc el files dir)
  (while (setq elc (locate-library name))
    (push elc files)
    (setq dir (file-name-directory elc))
    (when (setq el (locate-library (concat name ".el")))
      (unless (equal el elc)
	(push el files)))
    (setq load-path
	  (delete dir (delete (directory-file-name dir) load-path))))
  (nreverse files))
--8<---------------cut here---------------end--------------->8---

and obtained:

("/home/mhofert/.emacs.d/gnus/lisp/gnus-util.elc" 
 "/home/mhofert/.emacs.d/gnus/lisp/gnus-util.el" 
 "/usr/share/emacs/24.2/lisp/gnus/gnus-util.elc" 
 "/usr/share/emacs/24.2/lisp/gnus/gnus-util.el.gz")

=> fine.

I also execute the following (with minimal ~/.gnus.el and ~/.emacs) as Katsumi:

--8<---------------cut here---------------start------------->8---
emacs -batch -Q -l gnus-art -eval '(message "%s" (gnus-timer--function
(timer-create)))'
--8<---------------cut here---------------end--------------->8---

,----[ output (same as Katsumi's): ]
| Symbol's function definition is void: gnus-timer--function
`----

--8<---------------cut here---------------start------------->8---
emacs -batch -Q -l gnus-art -eval '(push "~/.emacs.d/gnus/lisp"
load-path)' -l gnus-art -eval '(message "%s" (gnus-timer--function
(timer-create)))'
--8<---------------cut here---------------end--------------->8---

,----[ output (different from Katsumi's): ]
| Symbol's function definition is void: gnus-timer--function
`----

--8<---------------cut here---------------start------------->8---
emacs -batch -Q -f batch-byte-compile '~/.emacs.d/gnus/lisp/gnus-util.el'
--8<---------------cut here---------------end--------------->8---

,----[ output (same as Katsumi's): ]
| Wrote /home/mhofert/.emacs.d/gnus/lisp/gnus-util.elc
`----

--8<---------------cut here---------------start------------->8---
emacs -batch -Q -eval '(push "~/.emacs.d/gnus/lisp" load-path)' -l gnus-art
-eval '(message "%s" (gnus-timer--function (timer-create)))'
--8<---------------cut here---------------end--------------->8---

,----[ output (same as Katsumi's): ]
| nil
`----


I then also tried to use Emacs snapshot (also from ppa:cassou/emacs), but
obtained even more obscure behavior. 

I'm not an elisp programmer, just wanted to report what I found. I hope an
expert looks into this. If you need more information, please give me detailed
instructions to minimize the risk of "informational loss on debugging".

Cheers,

Marius







             reply	other threads:[~2013-01-31 22:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-31 22:04 Marius Hofert [this message]
2013-02-01  2:46 ` Katsumi Yamaoka
2013-03-20 14:29   ` Shawn Nock
2013-03-20 16:25     ` Erik Colson
2013-03-20 16:57       ` Shawn Nock
2013-03-21  1:22       ` Katsumi Yamaoka
  -- strict thread matches above, loose matches on Subject: below --
2012-09-26 20:32 Gnus freezes on startup Johnny Carlsson
2012-10-07 15:04 ` gnus-timer--function is void (was Re: Gnus freezes on startup) Johnny
2012-10-08 20:31   ` Haider Rizvi
2012-10-09  1:07     ` Katsumi Yamaoka
2012-10-09  2:17       ` Haider Rizvi
2012-10-09  3:28         ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871ud1rov1.fsf@sklar.v.cablecom.net \
    --to=marius.hofert@math.ethz.ch \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).