+2001-11-11 Simon Josefsson <jas@extundo.com>
+
+ * make-x.bat: Don't use -nw. Suggested by Frank Haun
+ <pille3000@gmx.net>.
+
2001-11-09 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* texi/infohack.el (infohack-texi-format): To process
+2001-11-11 Simon Josefsson <jas@extundo.com>
+
+ * message.el (top-level): Autoload sha1.
+ (message-canlock-generate): Use sha1 instead of md5 (sha1 used by
+ canlock, no need to require two different hash algs). Suggested
+ by Ferenc Wagner <wferi@bolyai1.elte.hu>.
+
+2001-11-09 Simon Josefsson <jas@extundo.com>
+
+ * gnus.el (gnus-local-domain): Fix doc. From Pavel Jan\e,Bm\e(Bk
+ <Pavel@Janik.cz>.
+
+2001-11-09 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+ * message.el (message-point-in-header-p): New function.
+ (message-do-auto-fill): Use it.
+ (message-beginning-of-line): New function. Goes to beginning of
+ header value (i.e., end of header name), or to beginning of line
+ if already at beginning of value. Behaves like
+ `beginning-of-line' when in message body.
+ (message-mode-map): Bind it.
+
2001-11-08 Simon Josefsson <jas@extundo.com>
* gnus-msg.el (gnus-posting-styles): Add doc.
(defcustom gnus-local-domain nil
"Local domain name without a host name.
The DOMAINNAME environment variable is used instead if it is defined.
-If the `system-name' function returns the full Internet name, there is
+If the function `system-name' returns the full Internet name, there is
no need to set this variable."
:group 'gnus-message
:type '(choice (const :tag "default" nil)
(require 'mml))
(require 'rfc822)
+(autoload 'sha1 "sha1-el")
(defgroup message '((user-mail-address custom-variable)
(user-full-name custom-variable))
(define-key message-mode-map "\M-\r" 'message-newline-and-reformat)
;;(define-key message-mode-map "\M-q" 'message-fill-paragraph)
+ (define-key message-mode-map "\C-a" 'message-beginning-of-line)
(define-key message-mode-map "\t" 'message-tab)
(define-key message-mode-map "\M-;" 'comment-region)
(message-newline-and-reformat arg t)
t))
+;; Is it better to use `mail-header-end'?
+(defun message-point-in-header-p ()
+ "Return t if point is in the header."
+ (save-excursion
+ (let ((p (point)))
+ (goto-char (point-min))
+ (not (re-search-forward
+ (concat "^" (regexp-quote mail-header-separator) "\n")
+ p t)))))
+
(defun message-do-auto-fill ()
"Like `do-auto-fill', but don't fill in message header."
- (when (> (point) (save-excursion
- (goto-char (point-min))
- (if (re-search-forward
- (concat "^" (regexp-quote mail-header-separator)
- "\n") nil t)
- (match-beginning 0)
- (point-max))))
+ (unless (message-point-in-header-p)
(do-auto-fill)))
(defun message-insert-signature (&optional force)
(defun message-canlock-generate ()
"Return a string that is non-trival to guess.
Do not use this for anything important, it is cryptographically weak."
- (md5 (concat (message-unique-id)
- (format "%x%x%x" (random) (random t) (random))
- (prin1-to-string (recent-keys))
- (prin1-to-string (garbage-collect)))))
+ (sha1 (concat (message-unique-id)
+ (format "%x%x%x" (random) (random t) (random))
+ (prin1-to-string (recent-keys))
+ (prin1-to-string (garbage-collect)))))
(defun message-canlock-password ()
"The password used by message for cancel locks.
(forward-line 2)))
(sit-for 0)))
+(defun message-beginning-of-line (&optional n)
+ "Move point to beginning of header value or to beginning of line."
+ (interactive "p")
+ (if (message-point-in-header-p)
+ (let* ((here (point))
+ (bol (progn (beginning-of-line n) (point)))
+ (eol (gnus-point-at-eol))
+ (eoh (re-search-forward ": *" eol t)))
+ (if (or (not eoh) (equal here eoh))
+ (goto-char bol)
+ (goto-char eoh)))
+ (beginning-of-line n)))
+
(defun message-buffer-name (type &optional to group)
"Return a new (unique) buffer name based on TYPE and TO."
(cond
set emacs=xemacs.exe\r
\r
cd lisp\r
-call %1\%emacs% -batch -nw -q -no-site-file -l ./dgnushack.el -f dgnushack-compile\r
+call %1\%emacs% -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile\r
if not "%2" == "copy" goto info\r
attrib -r %1\..\..\xemacs-packages\lisp\gnus\*.*\r
copy *.el* %1\..\..\xemacs-packages\lisp\gnus\r
\r
:info\r
-set EMACSINFO=call %1\%emacs% -no-site-file -no-init-file -batch -nw -q -l infohack.el -f batch-makeinfo\r
+set EMACSINFO=call %1\%emacs% -no-site-file -no-init-file -batch -q -l infohack.el -f batch-makeinfo\r
cd ..\texi\r
%EMACSINFO% message.texi\r
%EMACSINFO% emacs-mime.texi\r
+2001-11-09 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+ * message.texi (Movement): message-beginning-of-line.
+
2001-11-07 Simon Josefsson <jas@extundo.com>
* sieve.texi (Examples): Add.
\e$B$K$h$C$F!"9T$J$&$3$H$,$G$-$^$9!#\e(B
@end titlepage
@page
-
@end tex
@node Top
@vindex message-forward-ignored-headers
\e$B$3$N@55,I=8=$K9gCW$9$k$9$Y$F$N%X%C%@!<$,!"E>Aw$5$l$k%a%C%;!<%8$+$i:o=|$5\e(B
\e$B$l$^$9!#\e(B
-
@end table
@node Resending
@kindex C-c C-f C-u
@findex message-goto-summary
@code{Summary} \e$B%X%C%@!<$K9T$-$^$9\e(B (@code{message-goto-summary})\e$B!#\e(B
-
@end table
@node Movement
@findex message-goto-signature
\e$B%a%C%;!<%8$N=pL>$K0\F0$7$^$9\e(B (@code{message-goto-signature})\e$B!#\e(B
+@item C-a
+@kindex C-a
+@findex message-beginning-of-line
+\e$B%X%C%@!<$NCM$N$H$3$m$K$$$k$H$-$O9T$N@hF,$K0\F0$7!"$=$&$G$J$$$H$-$O%X%C%@!<\e(B
+\e$B$NCM$N@hF,$K0\F0$7$^$9!#\e(B(\e$B%X%C%@!<$NCM$O%X%C%@!<L>$H%3%m%s$N8e$KMh$^$9!#\e(B)
@end table
@node Insertion
@kindex C-c M-h
@findex message-insert-headers
\e$B%a%C%;!<%8$N%X%C%@!<$rA^F~$7$^$9\e(B (@code{message-insert-headers})\e$B!#\e(B
-
@end table
@table @code
@vindex message-signature-file
\e$B%P%C%U%!$N:G8e$KA^F~$5$l$k=pL>$NF~$C$F$$$k%U%!%$%k$G$9!#=i4|CM\e(B
\e$B$O\e(B @samp{~/.signature} \e$B$G$9!#\e(B
-
@end table
RFC1036bis \e$B$O!"=pL>$O$=$NA0$K\e(B @samp{-- } \e$B$N\e(B3\e$BJ8;z$@$1$N9T$,$"$k$Y$-$G$"$k\e(B
@findex mml-secure-encrypt-pgpmime
Digitally encrypt current MIME part using PGP/MIME.
-
@end table
These commands do not immediately sign or encrypt the message, they
Creating your own OpenPGP key is described in detail in the
documentation of your OpenPGP implementation, so we refer to it.
-
@end ignore
@node Various Commands
@section \e$B$$$m$$$m$JL?Na\e(B
@findex message-rename-buffer
\e$B%P%C%U%!$NL>A0$rJQ99$7$^$9\e(B (@code{message-rename-buffer})\e$B!#@\F,0z?t$rM?\e(B
\e$B$($i$l$l$P!"?7$7$$%P%C%U%!L>$NF~NO$rB%?J$7$^$9!#\e(B
-
@end table
@node Sending
@kindex C-c C-k
@findex message-kill-buffer
\e$B%a%C%;!<%8%P%C%U%!$r@Z$C$F=*N;$7$^$9\e(B (@code{message-kill-buffer})\e$B!#\e(B
-
@end table
@node Mail Aliases
\e$B$=$l$,0zMQId9f$rMW5a$7$J$1$l$P\e(B @code{angles} \e$B$N$h$&$K8+$(!"$b$70zMQId9f\e(B
\e$B$,MW5a$5$l$k>l9g$O\e(B @code{parens} \e$B$N$h$&$K8+$($^$9!#\e(B@code{parens} \e$B$,0zMQ\e(B
\e$BId9f$rMW5a$7$?$H$7$F$b!"$H$K$+$/\e(B @code{angles} \e$B$r;H$$$^$9!#\e(B
-
@end table
@item message-deletable-headers
(\e$BLuCm\e(B: To \e$B$+\e(B Cc \e$B$K$"$k%"%I%l%9$G!":G=i$K$3$N@55,I=8=$K9gCW$7!"\e(B
\e$B$+$D\e(B @code{user-mail-address} \e$B$H$O0c$&$b$N$,!"\e(B@code{From} \e$B%U%#!<%k%I$N%a!<\e(B
\e$B%k%"%I%l%9$H$7$F;H$o$l$^$9!#\e(B)
-
@end table
@node Mail Headers
@vindex message-default-mail-headers
\e$B$3$NJ8;zNs$O%a!<%k$H$7$F=i4|2=$5$l$?A4$F$N%a%C%;!<%8%P%C%U%!$N%X%C%@!<$N\e(B
\e$B:G8e$NA^F~$5$l$^$9!#\e(B
-
@end table
@node Mail Variables
@c The limitation of messages sent as message/partial.
@c The lower bound of message size in characters, beyond which the message
@c should be sent in several parts. If it is nil, the size is unlimited.
-
@end table
@node News Headers
@vindex message-default-news-headers
\e$B$3$NJ8;zNs$O%K%e!<%9$H$7$F=i4|2=$5$l$?$9$Y$F$N%a%C%;!<%8%P%C%U%!$N%X%C%@!<\e(B
\e$B$N:G8e$KA^F~$5$l$^$9!#\e(B
-
@end table
@node News Variables
@vindex message-post-method
\e$B=`Hw$5$l$?%K%e!<%9%a%C%;!<%8$rEj9F$9$k$N$K;H$o$l$k\e(B gnus \e$B$N\e(B @dfn{\e$BA*BrJ}K!\e(B}
(\e$B>\:Y$O\e(B gnus \e$B%^%K%e%"%k$r8+$F2<$5$$\e(B) \e$B$G$9!#\e(B
-
@end table
@node Various Message Variables
((news message-news-p message-send-via-news)
(mail message-mail-p message-send-via-mail))
@end lisp
-
@end table
@node Sending Variables
\e$B$,\e(B @code{nil} \e$B$G$"$l$P!"$=$N$h$&$J?F@Z%a%C%;!<%8$O2C$($i$l$^$;$s!#=i4|CM\e(B
\e$B$O\e(B @samp{"The following message is a courtesy copy of an article\nthat has
been posted to %s as well.\n\n"} \e$B$G$9!#\e(B
-
@end table
@node Message Buffers
@item message-kill-buffer-on-exit
@findex message-kill-buffer-on-exit
@code{nil} \e$B$G$J$1$l$P!"=*N;;~$K$9$0$K%P%C%U%!$r:o=|$7$^$9!#\e(B
-
@end table
@node Message Actions
@item Followup-To
@item Newsgroups
-
@end table
\e$B$b$7\e(B @code{Mail-Copies-To} \e$B%X%C%@!<$,B8:_$9$k$H!"$=$l$,\e(B @samp{never} \e$B$G\e(B
-\e$B$J$1$l$P!"?7$7$$\e(B @code{Cc} \e$B%X%C%@!<$N4p$H$7$F;H$o$l!"$^$9!#\e(B
-
+\e$B$J$1$l$P!"?7$7$$\e(B @code{Cc} \e$B%X%C%@!<$N4p$H$7$F;H$o$l$^$9!#\e(B
@end table
@node Index
@findex message-goto-signature
Move to the signature of the message (@code{message-goto-signature}).
+@item C-a
+@kindex C-a
+@findex message-beginning-of-line
+If at beginning of header value, go to beginning of line, else go to
+beginning of header value. (The header value comes after the header
+name and the colon.)
+
@end table