From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78201 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Application resource storage (was: Outgoing mail defaults) Date: Tue, 29 Mar 2011 21:34:05 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87d3ln9b7y.fsf@stupidchicken.com> <87aagqsh4e.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301427302 27517 80.91.229.12 (29 Mar 2011 19:35:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 19:35:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M26512@lists.math.uh.edu Tue Mar 29 21:34:58 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 1Q4egr-0005yP-Fp for ding-account@gmane.org; Tue, 29 Mar 2011 21:34:57 +0200 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 1Q4egV-00052I-6D; Tue, 29 Mar 2011 14:34:35 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Q4egT-00051x-Hf for ding@lists.math.uh.edu; Tue, 29 Mar 2011 14:34:33 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Q4egJ-0001Gt-Uv for ding@lists.math.uh.edu; Tue, 29 Mar 2011 14:34:28 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Q4egJ-000124-7c for ding@gnus.org; Tue, 29 Mar 2011 21:34:23 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q4egG-0005ev-Nz for ding@gnus.org; Tue, 29 Mar 2011 21:34:20 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 21:34:20 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 21:34:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEVzCBg9AAdxChlsBhdc AxExAARjBBRPAQ1pBRZVAg80AAUwAAQvAANKAQyMZWlvBxgb/Eb1AAACUElEQVQ4jXWTP2sbMRjG hfsBhFaDIYQsHeyUCsJttwjDDR2ztBmNuA9QEB48HRxaC4Wrxg63HP0G7dqpXm7KdEsIgQw2Jlq6 qc+rO8du6grj4f3d87x/9Iqt/3PYev39NHjfNNf1jxNACNHUv04D0dycAJNWiHF9/S/oug6kqT+8 BLeRiK/iRQXMmJ6Q6ucxcBWhVuAnmqap65s9cEAQrYiS57i5XgMypbKqMremWg2WZNp8W7O5ykCc WxoiPYLlDdNaZbBzmTPmSFSzvFwohJVSFSxXAxmPmbUaQTWfAztTdR2NQkwbgFIvlNZR6KqhuCkU RYk0GlipHpDZhgBiOsc/SWKWNiqkRCwvpEyovB5MxEYApF7aVF4mepFlcQqinQCENMRz7mE2AEGA h6cQznbs7DKxGq3GHARYYP0Z+ajok3djxncDYMGWeysqdy9gzJMVLqcVLYFnAfcJrEzfOcDz4bC6 iDkmcVaHE2bb7Wx2t8W5+/TuGFBo+xCBeDxy6sF9D6YHwPwsxl4CtsNcrqjFj6tuMhUHBefhFU04 9r45Ajse0CKA+RtgBHzkr4ZxHQDnb9hoxIvB6xlw/3SejkaXNGG6xU1Lw0M5XoY0pSx6EQf82OHj RCbS2iKVgdMtxo0E4AE3h7XKce/hN5YogvuOBQDsj7bWSi9Lle0VUtqcVjEvCvmltIv4XpavDZP0 uZ7PIUlycsKDMOYeoIggh5NNdARu+fmhYk/e5jZmCD4p4zb2AC3IQmLr3lLh/c479+CwDNi43XBX vtTxebkL9wd+5jCdu4M2YwAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: Robert Wyatt's _Radio Experiment, Rome February 1981_: "Prove sparse" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:PqL6zbbDPRB6A9TFB/aYTdGC6rs= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78201 gmane.emacs.devel:137865 Archived-At: Lars Magne Ingebrigtsen writes: > Even though this means duplicating data, somewhat, I think we should > keep normal application defaults separate from secret credentials. Which reminds me of something we discussed half a year ago: Storing responses to questions. Today, if Emacs prompts the user for something, and it's something that should be remembered always by Emacs, Emacs uses custom to save the value. This works well for things that map nicely to one single variable. But if the question is of the kind "do you want to use port 587 when connecting to smtp.gmail.com?", then that doesn't really map straightforwardly to a simple variable. It might map to an alist of some kind, but the user may set that alist somewhere else, which makes all this kind of tricky. Wouldn't it be nice if Emacs had a way to store these values in a simpler manner without encroaching on the variable space? That is, I'm kinda thinking of something like (store-value "smtpmail-smtp-server-smtp.gmail.com-port" 587) The first is a token uniquely identifying the resource, and the second is the value. These could be stored in ~/.emacs.d/resources, which could then be queried by the applications. Does this exist already? Stupid idea? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen