Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9e68869b
Commit
9e68869b
authored
Apr 30, 1998
by
Richard M. Stallman
Browse files
(report-emacs-bug): Use rfc822-goto-eoh.
parent
43c2d6cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lisp/mail/emacsbug.el
lisp/mail/emacsbug.el
+8
-4
No files found.
lisp/mail/emacsbug.el
View file @
9e68869b
...
...
@@ -84,8 +84,14 @@ Prompts for bug subject. Leaves you in a mail buffer."
topic
)
;; The rest of this does not execute
;; if the user was asked to confirm and said no.
(
goto-char
(
point-min
))
(
re-search-forward
(
concat
"^"
(
regexp-quote
mail-header-separator
)
"\n"
))
(
rfc822-goto-eoh
)
(
forward-line
1
)
(
let
((
signature
(
buffer-substring
(
point
)
(
point-max
))))
;; Discourage users to write non-English text.
(
set-buffer-multibyte
nil
)
(
delete-region
(
point
)
(
point-max
))
(
insert
signature
))
(
unless
report-emacs-bug-no-explanations
;; Insert warnings for novice users.
(
insert
"This bug report will be sent to the Free Software Foundation,\n"
)
...
...
@@ -154,8 +160,6 @@ Type SPC to scroll through this section and its subsections.")))
;; Make it less likely people will send empty messages.
(
make-local-variable
'mail-send-hook
)
(
add-hook
'mail-send-hook
'report-emacs-bug-hook
)
;; Discourage users to write non-English text.
(
set-buffer-multibyte
nil
)
(
save-excursion
(
goto-char
(
point-max
))
(
skip-chars-backward
" \t\n"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment