From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76598 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-summary-save-parts enhancement Date: Sat, 12 Feb 2011 19:48:11 +0800 Message-ID: <87ipwp8oec.fsf@ericabrahamsen.net> References: <87wrl7dhel.fsf@gmail.com> <87hbcbq2i1.fsf@keller.adm.naquadah.org> <878vxm9cc7.fsf@ericabrahamsen.net> <87k4h5wnmb.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297511347 3187 80.91.229.12 (12 Feb 2011 11:49:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2011 11:49:07 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M24942@lists.math.uh.edu Sat Feb 12 12:49:01 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PoDyG-0006cy-2z for ding-account@gmane.org; Sat, 12 Feb 2011 12:49:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PoDxm-0004bg-LS; Sat, 12 Feb 2011 05:48:30 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PoDxk-0004bN-Om for ding@lists.math.uh.edu; Sat, 12 Feb 2011 05:48:28 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PoDxi-0003kM-73 for ding@lists.math.uh.edu; Sat, 12 Feb 2011 05:48:28 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PoDxg-0005dW-2M for ding@gnus.org; Sat, 12 Feb 2011 12:48:24 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PoDxf-0006Ks-Pr for ding@gnus.org; Sat, 12 Feb 2011 12:48:23 +0100 Original-Received: from 123.121.208.237 ([123.121.208.237]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Feb 2011 12:48:23 +0100 Original-Received: from eric by 123.121.208.237 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Feb 2011 12:48:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 123.121.208.237 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:uNAttB3V0CO20HcaDxGo3LlDOqA= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76598 Archived-At: On Sat, Feb 12 2011, Antoine Levitt wrote: > 12/02/11 04:11, Eric Abrahamsen >> >> With no-gnus updated this morning (it's got the above patch included), >> this doesn't seem to be working. I've got gnus-completing-read-function >> set to 'gnus-ido-completing-read, no other modifications that I can >> think of. > > This doesn't seem to be doing anything here, both the default value of > the variable and gnus-ido-completing-read call ido. > Aha, I might have gotten confused when this functionality was added. >> When I try to save or delete-and-save an attachment the same >> thing happens that used to happen: it finds a file instead of a >> directory, and I need to cancel out of ido mode altogether with C-f in >> order to save to a directory. Anything else that needs to be done to >> make this work? > > I can't think of a reason why this would not work. Can you find out > where the prompt is coming from? M-x toggle-debug-on-quit and C-g inside > the prompt should do the trick. This is after going into a summary buffer and hitting "K o" on a message with an attachment. That's bound to gnus-article-save-part, so I guess the reason it's not working is because it's not calling gnus-summary-save-parts at all! What should be getting called here? Debugger entered--Lisp error: (quit) ad-Orig-completing-read("Save MIME part to (default bestearningbh1.rtf): ~/Downloads/Attachments/" (("dummy" . 1)) nil nil nil ido-file-history nil nil) completing-read("Save MIME part to (default bestearningbh1.rtf): ~/Downloads/Attachments/" (("dummy" . 1)) nil nil nil ido-file-history) byte-code("\304\305 \"\306\307\211\n\307 &\207" [item prompt ido-text-init history completing-read ido-make-prompt (("dummy" . 1)) nil] 7) ido-read-internal(file "Save MIME part to (default bestearningbh1.rtf): " ido-file-history "~/Downloads/Attachments/bestearningbh1.rtf" nil nil) ido-read-file-name("Save MIME part to (default bestearningbh1.rtf): " "~/Downloads/Attachments/" "~/Downloads/Attachments/bestearningbh1.rtf" nil nil nil) read-file-name("Save MIME part to (default bestearningbh1.rtf): " "/home/eric/Downloads/Attachments/" "/home/eric/Downloads/Attachments/bestearningbh1.rtf") mm-save-part((#> ("text/rtf" (name . "bestearningbh1.rtf") (x-mac-creator . "4D535744") (x-unix-mode . "0644") (x-mac-type . "52544620")) quoted-printable nil ("attachment" (filename . "bestearningbh1.rtf")) nil nil nil)) gnus-mime-save-part() call-interactively(gnus-mime-save-part nil nil)