]> code.delx.au - gnu-emacs/blob - doc/misc/newsticker.texi
Fix copyright years by hand
[gnu-emacs] / doc / misc / newsticker.texi
1 \input texinfo @c -*-texinfo-*-
2 @comment %**start of header
3 @setfilename ../../info/newsticker.info
4 @include emacsver.texi
5 @set VERSION @value{EMACSVER}
6 @settitle Newsticker @value{VERSION}
7 @include docstyle.texi
8 @syncodeindex vr cp
9 @syncodeindex fn cp
10 @syncodeindex pg cp
11 @comment %**end of header
12
13 @copying
14 This manual documents Newsticker, a feed reader for Emacs. It
15 corresponds to Emacs version @value{EMACSVER}.
16
17 @noindent
18 Copyright @copyright{} 2004--2016 Free Software Foundation, Inc.
19
20 @quotation
21 Permission is granted to copy, distribute and/or modify this document
22 under the terms of the GNU Free Documentation License, Version 1.3 or
23 any later version published by the Free Software Foundation; with no
24 Invariant Sections, with the Front-Cover Texts being ``A GNU Manual'',
25 and with the Back-Cover Texts as in (a) below. A copy of the license
26 is included in the section entitled ``GNU Free Documentation License''.
27
28 (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
29 modify this GNU manual.''
30 @end quotation
31 @end copying
32
33 @dircategory Emacs network features
34 @direntry
35 * Newsticker: (newsticker). A feed reader for Emacs.
36 @end direntry
37
38 @titlepage
39 @title Newsticker---a feed reader for Emacs
40 @author Ulf Jasper
41 @author @email{ulf.jasper@@web.de}
42 @author @uref{http://ulf.epplejasper.de/}
43 @page
44 @vskip 0pt plus 1filll
45 @insertcopying
46 @end titlepage
47
48 @contents
49
50 @ifnottex
51 @node Top
52 @top Newsticker
53
54 @insertcopying
55
56 @end ifnottex
57
58 @menu
59 * Overview:: What is Newsticker?
60 * Installation:: Things to do before starting Newsticker the first time.
61 * Retrieving News:: How Newsticker fetches headlines.
62 * Headline Management:: How Newsticker stores headlines.
63 * Reading News:: How to read RSS and Atom feeds with Newsticker.
64 * Automatic Processing:: Automatically process news items.
65 * Configuration:: Customize Newsticker to your liking.
66 * Supported Formats:: RSS and Atom formats supported by Newsticker.
67
68 * GNU Free Documentation License:: The license for this documentation.
69 * Index:: Variable, function, and concept index.
70 @end menu
71
72 @node Overview
73 @chapter Overview
74
75 Newsticker provides a @b{Feed Reader} for Emacs. It retrieves
76 headlines from a list of news sites, processes them, and provides
77 frontends for reading and managing them. (Standard headline formats
78 are RSS and Atom which makes Newsticker an ``RSS Reader'', ``Atom
79 Reader'' or ``Feed Aggregator''.)
80
81 Headlines (or news items) consist of a title, (mostly) a description,
82 and a link to the full story. The description may be a brief summary
83 in plain text or a full HTML-formatted article. A headline may carry
84 enclosed data such as images, audio or video files, typically in the
85 case of so ``podcast feeds''.
86
87 Newsticker downloads headlines asynchronously at configurable times,
88 processes and stores them so that you can read them later. The list
89 of subscribed feeds, the headline processing, the presentation of the
90 headlines and almost all other aspects of Newsticker can be
91 customized to your liking.
92
93 @node Installation
94 @chapter Installation
95
96 As Newsticker is part of GNU Emacs there is no need to perform any
97 installation steps in order to use it.
98
99 Newsticker is highly customizable. All options have reasonable default
100 values, so that (in most cases) it is not necessary to customize
101 anything before you start Newsticker for the first time.
102
103 @node Retrieving News
104 @chapter Retrieving News
105
106 Newsticker downloads news periodically in the background. This is
107 triggered as soon as you start reading news (@ref{Reading News}).
108
109 @findex newsticker-start
110 @findex newsticker-stop
111 Alternatively you may use the command @code{newsticker-start}
112 (@code{newsticker-stop}) in order to start (stop) the periodic
113 download of news without opening the reader.
114
115 The following variables define which feeds are fetched and how this is
116 done.
117
118 @table @code
119 @vindex newsticker-url-list-defaults
120 @item newsticker-url-list-defaults
121 You may select any number of feeds from this list of (sample) news feeds.
122
123 @vindex newsticker-url-list
124 @item newsticker-url-list
125 All your personal news feeds are defined here. Each feed is
126 identified by its name and an URL@. You may set the start-time and the
127 retrieval interval for each feed as well as the retrieval command
128 arguments in case that the default values do not fit a certain feed.
129
130 @vindex newsticker-retrieval-method
131 @vindex newsticker-wget-name
132 @vindex newsticker-wget-arguments
133 @item newsticker-retrieval-method
134 By default Newsticker uses Emacs's built-in download capabilities for
135 fetching headlines. You may change this to use an external tool like
136 @code{wget}. In this case you need to set @code{newsticker-wget-name}
137 and possibly @code{newsticker-wget-arguments}.
138
139 @vindex newsticker-retrieval-interval
140 @item newsticker-retrieval-interval
141 The number of seconds between headline retrievals.
142 @end table
143
144 @node Headline Management
145 @chapter Headline Management
146
147 @cindex Age
148 @cindex Status
149
150 Newsticker assigns a status (or ``age'') to each headline which you
151 can modify manually. This makes it easy to distinguish new headlines
152 from old ones, to keep important headlines, to hide boring headlines
153 etc. An item is ``new'' when it has just arrived and has not been
154 read. You can mark it as ``old'' when you have read it or -- if you
155 want to keep it -- you can mark it as ``immortal''. You can do that
156 manually and you can define filters which do that automatically, see
157 below. When a headline has vanished from the feed it is automatically
158 marked as ``obsolete'' unless it has the status ``immortal''.
159 ``Obsolete'' headlines get removed automatically after a certain time.
160
161 @table @code
162 @cindex Filter
163 @vindex newsticker-auto-mark-filter-list
164 @item newsticker-auto-mark-filter-list
165 You may define any number of filters for automatically marking newly
166 arrived headlines as ``immortal'' or ``old''. A filter looks for a
167 regular expression in either the title or the description of a
168 headline and then, if the expression matches, marks the headline as
169 ``immortal'' or as ``old''. This is done only once, when a headline
170 is fetched for the very first time.
171
172 @vindex newsticker-keep-obsolete-items
173 @vindex newsticker-obsolete-item-max-age
174 @item newsticker-keep-obsolete-items
175 Obsolete headlines are removed immediately unless
176 @code{newsticker-keep-obsolete-items} is non-nil in which case they
177 are kept until @code{newsticker-obsolete-item-max-age} is reached.
178
179 @vindex newsticker-automatically-mark-items-as-old
180 @item newsticker-automatically-mark-items-as-old
181 If this is set to @code{t} then a ``new'' item becomes ``old'' as soon as
182 it is retrieved a second time.
183
184 @end table
185
186 @node Reading News
187 @chapter Reading News
188
189 @findex newsticker-show-news
190 Start Newsticker with the command @kbd{M-x newsticker-show-news}. This
191 will start the asynchronous news download and displays all available
192 headlines.
193
194 @menu
195 * Frontends:: Select the way headlines are displayed.
196 * Navigation:: Move to the next unread headline etc.
197 * Marking:: Mark important headlines.
198 * More Actions:: Add new feeds etc..
199 @end menu
200
201 @node Frontends
202 @section Frontends
203 @cindex Frontends
204
205 @vindex newsticker-frontend
206 Newsticker provides two different @i{views} for browsing, marking and
207 reading news. The variable @code{newsticker-frontend} determines the
208 actual headline reader.
209
210 @subheading Treeview
211 @cindex Treeview
212
213 In this view separate windows are used for displaying feeds, headlines
214 and their descriptions. The feeds are shown as a tree on the left
215 hand side, headlines of the currently selected feed are shown on the
216 upper right side, and the full contents of the currently selected
217 headline is shown on the lower right side.
218
219 Feeds can be placed into groups, which themselves can be placed in
220 groups and so on. This results in the tree which is displayed on the
221 left. A node represents either a feed or a group of feeds holding a
222 subtree. The following commands allow for managing groups.
223
224 @table @kbd
225 @item M-a
226 @kindex M-a
227 @findex newsticker-group-add-group
228 Add a new feed group. Name of the new group and of the parent group
229 must be entered. If The name of the parent group is the new group
230 becomes a top-level group. (@code{newsticker-group-add-group})
231 @item M-m
232 @kindex M-m
233 @findex newsticker-group-move-feed
234 Moves a feed into a group. The name of the group must be
235 entered. (@code{newsticker-group-move-feed})
236 @end table
237
238 The position of groups and feeds within the tree can be changed with these
239 commands:
240
241 @table @kbd
242 @item M-up
243 @itemx M-down
244 @kindex M-up
245 @kindex M-down
246 @findex newsticker-group-shift-feed-up
247 @findex newsticker-group-shift-feed-down
248 Shift the currently selected feed up and down within its group.
249 @item M-S-up
250 @itemx M-S-down
251 @kindex M-S-up
252 @kindex M-S-down
253 @findex newsticker-group-shift-group-up
254 @findex newsticker-group-shift-group-down
255 Shift the currently selected group up and down within its parent group.
256 @end table
257
258 The group settings are saved to a file either automatically when
259 newsticker is being quit or manually when the following command is
260 executed.
261
262 @table @kbd
263 @item s
264 @kindex s
265 @findex newsticker-treeview-save
266 Save treeview group settings.
267 @end table
268
269 The Treeview is updated automatically as soon as new headlines have
270 arrived.
271
272 The Treeview is used when the variable @code{newsticker-frontend} is
273 set to the value @code{newsticker-treeview}. (Alternatively it can be
274 started with the command @code{newsticker-treeview}.)
275
276 @subheading Plainview
277 @cindex Plainview
278
279 In this view all headlines of all feeds are displayed in a single
280 buffer (@file{*newsticker*}). The modeline in the @file{*newsticker*}
281 buffer informs you whenever new headlines have arrived.
282
283 You may want to use imenu with Plainview, which allows for navigating
284 with the help of a menu. In this case add the following to your Emacs
285 startup file (@file{~/.emacs}).
286
287 @lisp
288 (add-hook 'newsticker-mode-hook 'imenu-add-menubar-index)
289 @end lisp
290
291 (Note that preparing the Plainview takes significantly more time than
292 starting the Treeview because all headlines are displayed in a single
293 buffer. When you have subscribed to a large amount of feeds you may
294 find that Newsticker's efforts of minimizing rendering times, caching
295 rendered items and so on you may find However, when you have
296 subscribed to a large amount of feeds you may want to give the
297 Treeview a try.)
298
299 The Plainview is used when the variable @code{newsticker-frontend} is
300 set to the value @code{newsticker-plainview}. (Alternatively it can be
301 started with the command @code{newsticker-plainview}.)
302
303 @subheading Ticker
304 @cindex Ticker
305
306 Additionally, headlines can be displayed in the echo area in the style of a
307 news ticker.
308
309 @findex newsticker-start-ticker
310 @findex newsticker-stop-ticker
311 Headlines can be displayed in the echo area, either scrolling like
312 messages in a stock-quote ticker, or just changing. This can be
313 started with the command @code{newsticker-start-ticker}. It can be
314 stopped with @code{newsticker-stop-ticker}.
315
316
317 @node Navigation
318 @section Navigation
319 @cindex Navigation
320
321 Navigating through the list of feeds and headlines is rather
322 straightforward. You may do this either with the mouse or with the
323 keyboard. The following key bindings are provided in both, the
324 Treeview as well as the Plainview.
325
326 @table @kbd
327 @item f
328 @findex newsticker-next-feed
329 @findex newsticker-treeview-next-feed
330 Move to next feed (@code{newsticker-next-feed},
331 @code{newsticker-treeview-next-feed}).
332 @item F
333 @findex newsticker-previous-feed
334 @findex newsticker-treeview-prev-feed
335 Move to previous feed (@code{newsticker-previous-feed},
336 @code{newsticker-treeview-prev-feed}).
337 @item n
338 @findex newsticker-next-item
339 @findex newsticker-treeview-next-item
340 Move to next item (@code{newsticker-next-item},
341 @code{newsticker-treeview-next-item}).
342 @item N
343 @findex newsticker-next-new-item
344 @findex newsticker-treeview-next-new-item
345 Move to next new item (possibly in another feed)
346 (@code{newsticker-next-new-item},
347 @code{newsticker-treeview-next-new-item}).
348 @item p
349 @findex newsticker-previous-item
350 @findex newsticker-treeview-prev-item
351 Move to previous item (@code{newsticker-previous-item},
352 @code{newsticker-treeview-prev-item}).
353 @item P
354 @findex newsticker-previous-new-item
355 @findex newsticker-treeview-prev-new-item
356 Move to previous new item (possibly in another feed)
357 (@code{newsticker-previous-new-item},
358 @code{newsticker-treeview-prev-new-item}).
359 @end table
360
361 @subheading Treeview
362 @table @kbd
363 @item j
364 @findex newsticker-treeview-jump
365 Enter the name of a feed and jump to it
366 (@code{newsticker-treeview-jump}).
367 @end table
368
369
370 @node Marking
371 @section Marking
372 @cindex Marking
373
374 The following key bindings are provided in both, the Treeview as well
375 as the Plainview.
376
377 @table @kbd
378 @item o
379 @findex newsticker-mark-item-at-point-as-read
380 @findex newsticker-treeview-mark-item-old
381 Mark current item as old.
382 (@code{newsticker-mark-item-at-point-as-read},
383 @code{newsticker-treeview-mark-item-old}).
384 @item i
385 @findex newsticker-mark-item-at-point-as-immortal
386 @findex newsticker-treeview-mark-item-immortal
387 Mark current item as immortal. Immortal items are kept forever.
388 (@code{newsticker-mark-item-at-point-as-immortal},
389 @code{newsticker-treeview-mark-item-immortal}).
390 @end table
391
392 @node More Actions
393 @section More Actions
394 @cindex More Actions
395
396 @subheading View full article
397 @table @kbd
398 @cindex Get News
399 @item v
400 @itemx RET
401 @itemx <mouse-1>
402 @findex newsticker-treeview-browse-url
403 Open the link to the full article (as contained in the current
404 headline) in your web browser @code{newsticker-treeview-browse-url}).
405 @end table
406
407 @subheading Get News
408 @cindex Get News
409
410 You can force immediate download of news with the following commands.
411
412 @table @kbd
413 @item g
414 @findex newsticker-treeview-get-news
415 Get news for currently shown feed (@code{newsticker-treeview-get-news}).
416 @item G
417 @findex newsticker-get-all-news
418 Get news for all feeds (@code{newsticker-get-all-news}).
419 @end table
420
421 @subheading Add More Feeds
422 @cindex Add More Feeds
423
424 @table @kbd
425 @item a
426 @findex newsticker-add-url
427 The command @code{newsticker-add-url} prompts for an URL and a name of
428 a new feed. It then prepares a customization buffer where the details
429 of the new feed can be set.
430 @end table
431
432
433 @node Automatic Processing
434 @chapter Automatic Processing
435 @cindex Automatic Processing
436
437 Apart from automatic marking of headlines (by means of filters)
438 Newsticker provides the possibility to fully process newly arrived
439 headlines. Instead of reading headlines yourself you can tell
440 Newsticker to do that for you.
441
442 @vindex newsticker-new-item-functions
443 In order to do so write a function which takes three arguments
444
445 @table @var
446 @item FEED
447 the name of the corresponding news feed,
448 @item TITLE
449 the title of the headline,
450 @item DESC
451 the decoded description of the headline.
452 @end table
453
454 and add it to @code{newsticker-new-item-functions}. Each function
455 contained in this list is called once for each new headline.
456 Depending on the feed, the title and the description of a headline you
457 can
458
459 @itemize
460 @item
461 automatically download images referenced in HTML-formatted
462 descriptions (for which a function already exists, see
463 @code{newsticker-download-images}),
464 @item
465 automatically save enclosed audio and video files (for which another
466 function exists as well, see @code{newsticker-download-images}),
467 @item
468 flash the screen while playing some sound,
469 @item
470 whatever you want.
471 @end itemize
472
473 @node Configuration
474 @chapter Configuration
475
476 All Newsticker options are customizable, i.e., they can be changed with
477 Emacs customization methods. Call the command
478 @code{customize-group} and enter @samp{newsticker} for the customization
479 group.
480
481 @noindent
482 The following list shows the available groups of Newsticker options
483 and some of the most important options.
484
485 @itemize
486
487 @item
488 @code{newsticker-retrieval} contains options that define which news
489 feeds are retrieved and how this is done.
490
491 @itemize
492 @item
493 @vindex newsticker-url-list
494 @code{newsticker-url-list} defines the list of headlines that are
495 retrieved.
496 @item
497 @vindex newsticker-retrieval-method
498 @code{newsticker-retrieval-method} defines how headlines are
499 retrieved. This is either done using Emacs's built-in download
500 capabilities or using an external tool.
501 @item
502 @vindex newsticker-retrieval-interval
503 @code{newsticker-retrieval-interval} defines how often headlines
504 are retrieved.
505 @end itemize
506
507 @item
508 @code{newsticker-headline-processing} contains options that define
509 how the retrieved headlines are processed.
510
511 @itemize
512 @item
513 @vindex newsticker-keep-obsolete-items
514 @code{newsticker-keep-obsolete-items} decides whether unread
515 headlines that have been removed from the feed are kept in the
516 Newsticker cache.
517 @item
518 @vindex newsticker-auto-mark-filter-list
519 @code{newsticker-auto-mark-filter-list} provides the possibility to
520 automatically mark headlines as immortal or old.
521 @end itemize
522
523 @item
524 @code{newsticker-hooks} contains options for hooking other Emacs
525 commands to newsticker functions.
526 @itemize
527 @item
528 @vindex newsticker-new-item-functions
529 @code{newsticker-new-item-functions} allows for automatic
530 processing of headlines. See @code{newsticker-download-images}, and
531 @code{newsticker-download-enclosures} for sample functions.
532 @item
533 @vindex newsticker-plainview-hooks
534 The subgroup @code{newsticker-plainview-hooks} contains hooks that
535 apply to the plainview reader only.
536 @end itemize
537
538 @item
539 @code{newsticker-miscellaneous} contains other Newsticker options.
540
541 @item
542 @code{newsticker-ticker} contains options that define how headlines
543 are shown in the echo area, i.e., the ``ticker''.
544
545 @itemize
546 @item
547 @vindex newsticker-display-interval
548 @vindex newsticker-scroll-smoothly
549 @code{newsticker-ticker-interval} and
550 @code{newsticker-scroll-smoothly} define how headlines are shown in
551 the echo area.
552 @end itemize
553
554
555 @item
556 @code{newsticker-reader} contains options for adjusting the headline reader.
557
558 @itemize
559 @item
560 @vindex newsticker-frontend
561 @code{newsticker-frontend} determines the actual headline reader. The
562 ``plainview'' reader uses a single buffer, the ``treeview'' uses
563 separate buffers and windows.
564 @end itemize
565
566 @itemize
567 @item
568 @vindex newsticker-plainview
569 The subgroup @code{newsticker-plainview} contains options for the
570 plainview reader.
571 @item
572 @vindex newsticker-treeview
573 The subgroup @code{newsticker-treeview} contains options for the
574 treeview reader.
575 @end itemize
576
577 @end itemize
578
579 @noindent
580 For the complete list of options please have a look at the
581 customization buffers.
582
583 @node Supported Formats
584 @appendix Supported Formats
585 @cindex Supported Formats
586
587 Newsticker works with the standard RSS and Atom formats listed below
588 (being lenient with feeds which break the specifications).
589
590 @subheading RSS formats
591
592 @itemize
593 @item RSS 0.91 (see @uref{http://backend.userland.com/rss091})
594 @item RSS 0.92 (see @uref{http://backend.userland.com/rss092})
595 @item RSS 1.0 (see @uref{http://purl.org/rss/1.0/spec})
596 @item RSS 2.0 (see @uref{http://blogs.law.harvard.edu/tech/rss})
597 @end itemize
598
599 @subheading Atom formats
600
601 @itemize
602 @item Atom 0.3
603 @item Atom 1.0 (see
604 @uref{https://datatracker.ietf.org/doc/rfc4287/})
605 @end itemize
606
607
608 @node GNU Free Documentation License
609 @appendix GNU Free Documentation License
610 @include doclicense.texi
611
612 @node Index
613 @unnumbered Index
614 @printindex cp
615
616
617 @bye