Sponsored Content
Full Discussion: emacs gnus-demon not running
Special Forums UNIX and Linux Applications emacs gnus-demon not running Post 302505145 by making on Wednesday 16th of March 2011 10:53:55 AM
Old 03-16-2011
emacs gnus-demon not running

My understanding of the gnus-demon is that it should run its handlers each gnus-demon timestep. I have my gnus demon timestep set to the default 60 seconds. I have registered one handler that prints something out every time it is called (and is supposed to update the group buffer). However, the message buffer doesn't show the message every 60 seconds as expected.

I am new to using gnus so any help anyone could provide would be very much appreciated. The elisp relevant to the gnus-demon is below.

Thanks in advance!

Code:
;; Automatically refresh gnus mail groups
(require 'gnus-demon)
(setq gnus-use-demon t)

(defun gnus-demon-scan-mail-or-news-and-update ()
  "Scan for new mail/news and update the *Group* buffer"
  (message "Scanning new for new mail...done.")
  (when (gnus-alive-p)    
    (save-window-excursion
      (save-excursion
    (set-buffer gnus-group-buffer)
    (gnus-group-get-new-news)))))
 
(defun gnus-demon-scan-and-update ()
  (interactive)
  (gnus-demon-scan-mail-or-news-and-update))
 
;; Initialize the Gnus daemon, check new mail every one minute.
(gnus-demon-add-handler 'gnus-demon-scan-and-update 1 1)
(gnus-demon-init)

; Notify user when new messages are available
(require 'gnus-desktop-notify)
(gnus-desktop-notify-mode)
(gnus-demon-add-scanmail)

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

eMacs FontFace

Hi, I am working with xEmacs 21.1 patch 14. I see I can configure it to be very User Friendly. I can highlight variables, color them, and actually make it look like a Visual IDE. How do I configure it? How do I color Variables in one color, and make them bold, and how do I change the... (1 Reply)
Discussion started by: sierra_aar
1 Replies

2. UNIX for Dummies Questions & Answers

Help on EMACS

Any one has a good documentation on How To Use EMACs editor?? Thanks Ven :eek: (4 Replies)
Discussion started by: VENC22
4 Replies

3. Shell Programming and Scripting

perl demon how to ?

Hello im kinda new to perl programming in unix i need to make some kind of perl demon that sites and waits to see if there is files in the dir if there is complete file ( not part of it ) , I need to mv it to different dir ok so the easy parts to cp files and perl I know , but how the hell... (1 Reply)
Discussion started by: umen
1 Replies

4. UNIX and Linux Applications

GNU Emacs Help

Hey everybody! Not sure if this goes here, but I think it's the best fit. I was just wondering, how do I use a compiler from Emacs? Also, how do I turn syntax highlighting on? Thanks in advance! (5 Replies)
Discussion started by: led3234
5 Replies

5. Shell Programming and Scripting

dilemma what to use c++ or script for demon process

Hello all i need to implement demon that needs to extract data from db load the data to memory and according to this data to perform actions like sending emails or write/update files this action needs to be preformed each 30 min's now i really don't know what to decide or to compile c++... (5 Replies)
Discussion started by: umen
5 Replies

6. UNIX for Dummies Questions & Answers

Emacs

could someone please tell me how do I work emacs on unix?? how do you input the command and open up files and edit stuff. I know M-x info will lauch the info viewer, C-x u is undo, M-x spell-region run a spell check but when i use some of these command on emacs in Unix, I'm getting no results or... (1 Reply)
Discussion started by: starwind4
1 Replies

7. Shell Programming and Scripting

communication between shell and and a demon 'c' program

Hello, i have a demon 'c' program that have a dynamic table of logic registers ( 2000 variables ). exemple of registers: I1.34.5 M23.4.1 I want from shell acess to this table of registers. How can i do this? with something like for read I1.34.5: #cat... (3 Replies)
Discussion started by: rzyz
3 Replies

8. UNIX for Dummies Questions & Answers

How to use emacs? Also how to open existing emacs files with .cgi format?

Hi All, I am new to this forum and a beginner in unix. Please correct me if I put the question in a wrong way.. How to use emacs editor? Also how to open existing emacs files with .cgi format? I have the following link :- http link i.e. url and path : /abc/xyz.dev/xyz/documents What... (7 Replies)
Discussion started by: swathi123
7 Replies

9. UNIX for Dummies Questions & Answers

How do you get gnus to work?

gnus doesn't seem to work for me. I tried giving it a couple different servers in the GNUs config file, including textnews.news.cambrium.nl and news.gnus.org. The first one I've used before, through Lynx with the nntp:// scheme (not the news: scheme). When I try starting gnus, it gives the... (1 Reply)
Discussion started by: Ultrix
1 Replies

10. AIX

Emacs on AIX 7.2

After I had successfully installed bash I wanted to install emacs. I downloaded the packages from IBM (emacs, emacs-nox, and emacs-X11), but I could not install emacs-X11. It needs libjpeg and libtiff, but I couldn't install both libs. Error messages: file /opt/freeware/64 from install of... (2 Replies)
Discussion started by: BuSchu
2 Replies
debug(3snmp)							     net-snmp							      debug(3snmp)

NAME
debug - Print out debugging information about the handler chain being called. Functions netsnmp_mib_handler * netsnmp_get_debug_handler (void) returns a debug handler that can be injected into a given handler chain. void debug_print_requests (netsnmp_request_info *requests) int netsnmp_debug_helper (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) void netsnmp_init_debug_helper (void) initializes the debug helper which then registers a debug handler as a run-time injectable handler for configuration file use. handler void netsnmp_init_serialize (void) initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. void netsnmp_init_read_only_helper (void) initializes the read_only helper which then registers a read_only handler as a run-time injectable handler for configuration file use. void netsnmp_init_bulk_to_next_helper (void) initializes the bulk_to_next helper which then registers a bulk_to_next handler as a run-time injectable handler for configuration file use. void netsnmp_init_table_dataset (void) void netsnmp_init_stash_cache_helper (void) initializes the stash_cache helper which then registers a stash_cache handler as a run-time injectable handler for configuration file use. void netsnmp_init_helpers (void) call the initialization sequence for all handlers with init_ routines. Detailed Description Print out debugging information about the handler chain being called. This is a useful module for run-time debugging of requests as the pass this handler in a calling chain. All debugging output is done via the standard debugging routines with a token name of 'helper:debug', so use the -Dhelper:debug command line flag to see the output when running the snmpd demon. It's not recommended you compile this into a handler chain during compile time, but instead use the 'injectHandler' token in the snmpd.conf file (or similar) to add it to the chain later: injectHandler debug my_module_name to see an example output, try: injectHandler debug mibII/system and then run snmpwalk on the 'system' group. Function Documentation netsnmp_mib_handler* netsnmp_get_debug_handler (void) returns a debug handler that can be injected into a given handler chain. Definition at line 51 of file debug_handler.c. void netsnmp_init_bulk_to_next_helper (void) initializes the bulk_to_next helper which then registers a bulk_to_next handler as a run-time injectable handler for configuration file use. Definition at line 139 of file bulk_to_next.c. void netsnmp_init_debug_helper (void) initializes the debug helper which then registers a debug handler as a run-time injectable handler for configuration file use. Definition at line 155 of file debug_handler.c. void netsnmp_init_helpers (void) call the initialization sequence for all handlers with init_ routines. Definition at line 36 of file all_helpers.c. void netsnmp_init_read_only_helper (void) initializes the read_only helper which then registers a read_only handler as a run-time injectable handler for configuration file use. Definition at line 81 of file read_only.c. void netsnmp_init_serialize (void) initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. Definition at line 93 of file serialize.c. void netsnmp_init_stash_cache_helper (void) initializes the stash_cache helper which then registers a stash_cache handler as a run-time injectable handler for configuration file use. Definition at line 238 of file stash_cache.c. Author Generated automatically by Doxygen for net-snmp from the source code. Version 5.4.3.pre1 23 May 2010 debug(3snmp)
All times are GMT -4. The time now is 09:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy