Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file attach using wanderlust #357

Open
ygm-nob opened this issue Feb 11, 2021 · 14 comments
Open

file attach using wanderlust #357

ygm-nob opened this issue Feb 11, 2021 · 14 comments

Comments

@ygm-nob
Copy link

ygm-nob commented Feb 11, 2021

Recently I started to use ivy-bibtex. I want to thank the author.
I'd like to attach the pdf file to email, but I am using wanderlust as a mailer. Can I do it?

ygm

@tmalsburg
Copy link
Owner

Hi and thanks. I'm not familiar with wanderlust. My code is using mml-attach-file which I think is generic and should also work with wanderlust. (I'm using mu4e.) Start a new e-mail, then select an entry in ivy-bibtex, and then select the action "Attach PDF to email". Let me know how it goes.

@ygm-nob
Copy link
Author

ygm-nob commented Feb 14, 2021

Hi, thank you for your quick hint and suggestion. I changed from mml-attach-file to mime-edit-insert-file, which is the function for attachment file in wanderlust, in bibtex-completion.el. Finally, it works! Thanks again.

ygm

@tmalsburg
Copy link
Owner

Great. The question is how can we make this work out of the box for other users of as well. Does wanderlust activate a special mode for writing e-mails? If yes, we could use one or the other function depending on that mode.

@ygm-nob
Copy link
Author

ygm-nob commented Feb 14, 2021

I can't understand "a special mode for writing e-mail". While I am writing a email on wanderlust and want to attach pdf in my library, I execute ivy-bibtex and select pdf and press 'M-o a'. That's all. For other wanderlust users, I have no idea, sorry.

ygm

@tmalsburg
Copy link
Owner

Modes are a technical Emacs concept. Could you please start a new e-mail, then execute the following keyboard shortcut C-h m, and paste the output you get?

@ygm-nob
Copy link
Author

ygm-nob commented Feb 14, 2021

C-h is assigned to backspace on my emacs. So, C-h m is just "m". Am I wrong?

ygm

@tmalsburg
Copy link
Owner

I'm not sure I'm following. If backspace is the same as C-h how do you delete characters? But never mind, you can also do M-x describe-mode.

@ygm-nob
Copy link
Author

ygm-nob commented Feb 14, 2021

I excuted M-x describe-mode and I got followings; Do you need more? ygm

Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption
Auto-Fill Auto-Fill Avy-Migemo Blink-Cursor Centered-Cursor
Column-Number Company Counsel Diff-Auto-Refine Dimmer Display-Time
Electric-Indent Electric-Pair File-Name-Shadow Fish-Completion
Font-Lock Global-Centered-Cursor Global-Color-Identifiers
Global-Company Global-Eldoc Global-Fish-Completion Global-Font-Lock
Global-Hl-Line Global-Whitespace Ivy Ivy-File-Preview Line-Number
Mouse-Wheel Multicolumn-Global Openwith Override-Global Recentf
Selected Selected-Global Shell-Dirtrack Show-Paren Tabbar Tooltip
Transient-Mark Yas Yas-Global

@tmalsburg
Copy link
Owner

Hm, on my system the output also indicates the major mode but that's apparently not the case on your system. Could you tell me the output you get when you enter M-x describe-variable, return, and then enter major-mode? Thanks.

@ygm-nob
Copy link
Author

ygm-nob commented Feb 15, 2021

Hi, I couldn't understand what you said. But I got following message.
ygm

major-mode is a variable defined in ‘C source code’.
Its value is ‘wl-folder-mode’
Original value was fundamental-mode
Local in buffer Folder; global value is fundamental-mode

Automatically becomes buffer-local when set.

Documentation:
Symbol for current buffer’s major mode.
The default value (normally ‘fundamental-mode’) affects new buffers.
A value of nil means to use the current buffer’s major mode, provided
it is not marked as "special".

You can customize this variable.

[back]

@tmalsburg
Copy link
Owner

Did you get this output when you checked the major mode while being in a new email? wl-folder-mode sounds as if it was done while looking at a folder, but I'm not familiar with Wanderlust, so I'm not sure.

@tmalsburg
Copy link
Owner

From reading WL's code, I get the impression that new e-mails are edited in wl-draft-mode but it would be good to have confirmation.

@ygm-nob
Copy link
Author

ygm-nob commented Feb 15, 2021

I don't know about wanderlust code and I am just user. But I know that there are three main modes: summary, folder and draft mode. I write and edit email on draft-mode.

ygm

@tmalsburg
Copy link
Owner

So it's probably wl-draft-mode. I took a note and will add support for that when I have a bit more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants