Mercurial > emacs
comparison lisp/obsolete/rnews.el @ 49598:0d8b17d428b5
Trailing whitepace deleted.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 04 Feb 2003 13:24:35 +0000 |
parents | 253f761ad37b |
children | 695cf19ef79e d7ddb3e565de |
comparison
equal
deleted
inserted
replaced
49597:e88404e8f2cf | 49598:0d8b17d428b5 |
---|---|
103 "^Path:\\|^Posting-Version:\\|^Article-I.D.:\\|^Expires:\\|^Date-Received:\\|^References:\\|^Control:\\|^Xref:\\|^Lines:\\|^Posted:\\|^Relay-Version:\\|^Message-ID:\\|^Nf-ID:\\|^Nf-From:\\|^Approved:\\|^Sender:" | 103 "^Path:\\|^Posting-Version:\\|^Article-I.D.:\\|^Expires:\\|^Date-Received:\\|^References:\\|^Control:\\|^Xref:\\|^Lines:\\|^Posted:\\|^Relay-Version:\\|^Message-ID:\\|^Nf-ID:\\|^Nf-From:\\|^Approved:\\|^Sender:" |
104 "All random fields within the header of a message.") | 104 "All random fields within the header of a message.") |
105 | 105 |
106 (defvar news-mode-map nil) | 106 (defvar news-mode-map nil) |
107 (defvar news-read-first-time-p t) | 107 (defvar news-read-first-time-p t) |
108 ;; Contains the (dotified) news groups of which you are a member. | 108 ;; Contains the (dotified) news groups of which you are a member. |
109 (defvar news-user-group-list nil) | 109 (defvar news-user-group-list nil) |
110 | 110 |
111 (defvar news-current-news-group nil) | 111 (defvar news-current-news-group nil) |
112 (defvar news-current-group-begin nil) | 112 (defvar news-current-group-begin nil) |
113 (defvar news-current-group-end nil) | 113 (defvar news-current-group-end nil) |
131 Not currently used.") | 131 Not currently used.") |
132 | 132 |
133 ;; association list in which we store lists of the form | 133 ;; association list in which we store lists of the form |
134 ;; (pointified-group-name (first last old-last)) | 134 ;; (pointified-group-name (first last old-last)) |
135 (defvar news-group-article-assoc nil) | 135 (defvar news-group-article-assoc nil) |
136 | 136 |
137 (defvar news-current-message-number 0 "Displayed Article Number") | 137 (defvar news-current-message-number 0 "Displayed Article Number") |
138 (defvar news-total-current-group 0 "Total no of messages in group") | 138 (defvar news-total-current-group 0 "Total no of messages in group") |
139 | 139 |
140 (defvar news-unsubscribe-groups ()) | 140 (defvar news-unsubscribe-groups ()) |
141 (defvar news-point-pdl () "List of visited news messages.") | 141 (defvar news-point-pdl () "List of visited news messages.") |
335 ? print this help message. | 335 ? print this help message. |
336 C-c C-r caesar rotate all letters by 13 places in the article's body (rot13). | 336 C-c C-r caesar rotate all letters by 13 places in the article's body (rot13). |
337 g get new USENET news. | 337 g get new USENET news. |
338 f post a reply article to USENET. | 338 f post a reply article to USENET. |
339 a post an original news article. | 339 a post an original news article. |
340 A add a newsgroup. | 340 A add a newsgroup. |
341 o save the current article in the named file (append if file exists). | 341 o save the current article in the named file (append if file exists). |
342 C-o output this message to a Unix-format mail file (append it). | 342 C-o output this message to a Unix-format mail file (append it). |
343 c \"copy\" (actually link) current or prefix-arg msg to file. | 343 c \"copy\" (actually link) current or prefix-arg msg to file. |
344 warning: target directory and message file must be on same device | 344 warning: target directory and message file must be on same device |
345 (UNIX magic) | 345 (UNIX magic) |
433 (setq tem (buffer-substring start (- end 2))) | 433 (setq tem (buffer-substring start (- end 2))) |
434 (let ((range (news-parse-range | 434 (let ((range (news-parse-range |
435 (buffer-substring end endofline)))) | 435 (buffer-substring end endofline)))) |
436 (if (assoc tem news-group-article-assoc) | 436 (if (assoc tem news-group-article-assoc) |
437 (message "You are subscribed twice to %s; I ignore second" | 437 (message "You are subscribed twice to %s; I ignore second" |
438 tem) | 438 tem) |
439 (setq temp-user-groups (cons tem temp-user-groups) | 439 (setq temp-user-groups (cons tem temp-user-groups) |
440 news-group-article-assoc | 440 news-group-article-assoc |
441 (cons (list tem (list (car range) | 441 (cons (list tem (list (car range) |
442 (cdr range) | 442 (cdr range) |
443 (cdr range))) | 443 (cdr range))) |
444 news-group-article-assoc))))) | 444 news-group-article-assoc))))) |
445 (kill-buffer newsrcbuf))) | 445 (kill-buffer newsrcbuf))) |
446 (setq temp-user-groups (nreverse temp-user-groups)) | 446 (setq temp-user-groups (nreverse temp-user-groups)) |
447 (message "Prefrobnicating...") | 447 (message "Prefrobnicating...") |
448 (switch-to-buffer news-buffer) | 448 (switch-to-buffer news-buffer) |
449 (setq news-user-group-list temp-user-groups) | 449 (setq news-user-group-list temp-user-groups) |
450 (while (and temp-user-groups | 450 (while (and temp-user-groups |
526 (defun news-select-message (arg) | 526 (defun news-select-message (arg) |
527 (if (stringp arg) (setq arg (string-to-int arg))) | 527 (if (stringp arg) (setq arg (string-to-int arg))) |
528 (let ((file (concat news-path | 528 (let ((file (concat news-path |
529 (string-subst-char ?/ ?. news-current-news-group) | 529 (string-subst-char ?/ ?. news-current-news-group) |
530 "/" arg))) | 530 "/" arg))) |
531 (if (= arg | 531 (if (= arg |
532 (or (news-cadr (memq (news-cdar news-point-pdl) news-list-of-files)) | 532 (or (news-cadr (memq (news-cdar news-point-pdl) news-list-of-files)) |
533 0)) | 533 0)) |
534 (setcdr (car news-point-pdl) arg)) | 534 (setcdr (car news-point-pdl) arg)) |
535 (setq news-current-message-number arg) | 535 (setq news-current-message-number arg) |
536 (if (file-exists-p file) | 536 (if (file-exists-p file) |
550 "Move ARG messages forward within one newsgroup. | 550 "Move ARG messages forward within one newsgroup. |
551 Negative ARG moves backward. | 551 Negative ARG moves backward. |
552 If ARG is 1 or -1, moves to next or previous newsgroup if at end." | 552 If ARG is 1 or -1, moves to next or previous newsgroup if at end." |
553 (interactive "p") | 553 (interactive "p") |
554 (let ((no (+ arg news-current-message-number))) | 554 (let ((no (+ arg news-current-message-number))) |
555 (if (or (< no news-current-group-begin) | 555 (if (or (< no news-current-group-begin) |
556 (> no news-current-group-end)) | 556 (> no news-current-group-end)) |
557 (cond ((= arg 1) | 557 (cond ((= arg 1) |
558 (news-set-current-group-certification) | 558 (news-set-current-group-certification) |
559 (news-next-group)) | 559 (news-next-group)) |
560 ((= arg -1) | 560 ((= arg -1) |