Re: binding a summary key to *two* commands

2015-01-22 Thread Emanuel Berg
Hikaru Ichijyo writes: > Ok, the function I was trying to make, debugged, in > case anyone wants it. That's exactly right! 1. Write a defun that is (interactive). 2. Stack the commands as you have been using them up to today. 3. Use the help for each command or compile the Elisp to lear

Re: binding a summary key to *two* commands

2015-01-20 Thread Hikaru Ichijyo
Ok, the function I was trying to make, debugged, in case anyone wants it. If you press "d", it sets the expirable mark and moves forward without reading the next message (good if you're in the middle of a lot of trash messages); if you press "D", it sets expirable and reads the next one (good if y

Re: binding a summary key to *two* commands

2015-01-20 Thread Hikaru Ichijyo
a...@koldfront.dk (Adam Sjøgren) writes: > Hikaru writes: > >> (defun delete-then-read-next () >> (interactive) >> (gnus-summary-mark-as-expirable) > > Have you tried giving this function an argument (say 1)? > > Just a guess from reading the documentation of it: > > ,[ C-h f gnus-summary-

Re: binding a summary key to *two* commands

2015-01-20 Thread Adam Sjøgren
Hikaru writes: > (defun delete-then-read-next () > (interactive) > (gnus-summary-mark-as-expirable) Have you tried giving this function an argument (say 1)? Just a guess from reading the documentation of it: ,[ C-h f gnus-summary-mark-as-expirable RET ] | gnus-summary-mark-as-expirable

binding a summary key to *two* commands

2015-01-20 Thread Hikaru Ichijyo
Anyone have any idea how I could make *two* summary buffer commands emit from one keystroke? I've tried the snippet below, but it's giving me errors about the wrong number of arguments. Basically, I'm trying to make "D" expire and read next unread, while "d" just expires and moves forward without