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
29b647c5
Commit
29b647c5
authored
Sep 01, 2009
by
Miles Bader
Browse files
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1632
parent
49c539a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
15 deletions
+51
-15
lisp/gnus/ChangeLog
lisp/gnus/ChangeLog
+5
-0
lisp/gnus/mml.el
lisp/gnus/mml.el
+46
-15
No files found.
lisp/gnus/ChangeLog
View file @
29b647c5
...
...
@@ -3,6 +3,11 @@
* gnus-salt.el (gnus-pick-mouse-pick-region): Use forward-line rather
than goto-line.
2009-08-31 Katsumi Yamaoka <yamaoka@jpl.org>
* mml.el (mml-attach-file, mml-attach-buffer, mml-attach-external):
Don't move point if the command is invoked inside the message header.
2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
* spam.el (spam-ifile-path, spam-bogofilter-path, spam-sa-learn-path)
...
...
lisp/gnus/mml.el
View file @
29b647c5
...
...
@@ -1292,14 +1292,24 @@ body) or \"attachment\" (separate from the body)."
(
description
(
mml-minibuffer-read-description
))
(
disposition
(
mml-minibuffer-read-disposition
type
nil
file
)))
(
list
file
type
description
disposition
)))
(
unless
(
message-in-body-p
)
(
goto-char
(
point-max
)))
(
mml-insert-empty-tag
'part
'type
type
;; icicles redefines read-file-name and returns a
;; string w/ text properties :-/
'filename
(
mm-substring-no-properties
file
)
'disposition
(
or
disposition
"attachment"
)
'description
description
))
;; Don't move point if this command is invoked inside the message header.
(
let
((
head
(
unless
(
message-in-body-p
)
(
prog1
(
point
)
(
goto-char
(
point-max
))))))
(
mml-insert-empty-tag
'part
'type
type
;; icicles redefines read-file-name and returns a
;; string w/ text properties :-/
'filename
(
mm-substring-no-properties
file
)
'disposition
(
or
disposition
"attachment"
)
'description
description
)
(
when
head
(
unless
(
prog1
(
pos-visible-in-window-p
)
(
goto-char
head
))
(
message
"The file \"%s\" has been attached at the end of the message"
(
file-name-nondirectory
file
))))))
(
defun
mml-dnd-attach-file
(
uri
action
)
"Attach a drag and drop file.
...
...
@@ -1335,10 +1345,21 @@ BUFFER is the name of the buffer to attach. See
(
description
(
mml-minibuffer-read-description
))
(
disposition
(
mml-minibuffer-read-disposition
type
nil
)))
(
list
buffer
type
description
disposition
)))
(
unless
(
message-in-body-p
)
(
goto-char
(
point-max
)))
(
mml-insert-empty-tag
'part
'type
type
'buffer
buffer
'disposition
disposition
'description
description
))
;; Don't move point if this command is invoked inside the message header.
(
let
((
head
(
unless
(
message-in-body-p
)
(
prog1
(
point
)
(
goto-char
(
point-max
))))))
(
mml-insert-empty-tag
'part
'type
type
'buffer
buffer
'disposition
disposition
'description
description
)
(
when
head
(
unless
(
prog1
(
pos-visible-in-window-p
)
(
goto-char
head
))
(
message
"The buffer \"%s\" has been attached at the end of the message"
buffer
)))))
(
defun
mml-attach-external
(
file
&optional
type
description
)
"Attach an external file into the buffer.
...
...
@@ -1349,9 +1370,19 @@ TYPE is the MIME type to use."
(
type
(
mml-minibuffer-read-type
file
))
(
description
(
mml-minibuffer-read-description
)))
(
list
file
type
description
)))
(
unless
(
message-in-body-p
)
(
goto-char
(
point-max
)))
(
mml-insert-empty-tag
'external
'type
type
'name
file
'disposition
"attachment"
'description
description
))
;; Don't move point if this command is invoked inside the message header.
(
let
((
head
(
unless
(
message-in-body-p
)
(
prog1
(
point
)
(
goto-char
(
point-max
))))))
(
mml-insert-empty-tag
'external
'type
type
'name
file
'disposition
"attachment"
'description
description
)
(
when
head
(
unless
(
prog1
(
pos-visible-in-window-p
)
(
goto-char
head
))
(
message
"The file \"%s\" has been attached at the end of the message"
(
file-name-nondirectory
file
))))))
(
defun
mml-insert-multipart
(
&optional
type
)
(
interactive
(
list
(
completing-read
"Multipart type (default mixed): "
...
...
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