Re: .gnus init file
On Tue, Feb 03 2015,B. T. Raven wrote: mailman.19148.1422850086.1147.info-gnus-engl...@gnu.orgSivaram Neelakantan Mon, 02 Feb 2015 09:37:54 +0530 On Sun, Feb 01 2015,btraven wrote: [snipped 104 lines] Thanks, Sivaram. I have installed files you suggested above and added lines to .gnus, restarted emacs, and now gnus is much slower (long wait on black hourglass within Emacs. dynamic-library-alist shows same as before with older versions of dlls. Please launch Emacs without your init file, and check the dynamic-library-alist. That list of DLLs especially the gnutls one should be there in the ezwinports. I'm assuming you're using the stock install of Emacs 24.4 from the gnu website. My box is also win7 laptop (64-bit). I'm assuming that all this 32bit stuff will work since I think Emacs itself is still only 32 bit. Yes, it will work. Anyway now gnus is not even usable as newsreader so I am posting via newsguy web direct. I don't want to undo what I've done and will start reading the whole gnus manual to see if I can get more insight into what is going on. Anyway I am not able to see where the old dll's are coming from. Well, it is important that Emacs can find the exact versions of DLLs of the alist that it think it needs. Without that, nothing will work. IF it is finding older versions of DLLs, you prolly have to root through your win7 directories and at least temporarily rename those DLLs. Is it necessary to restart w32 itself? When I changed the PATH, I had to anyway reboot and so cannot say either way; it might be a good idea to reboot, Win systems are funky. There is a 493k libXpm.dll in the emacs.exe subdirectory (\emacs\bin). Is that supposed to be there? That shouldn't be a cause of any issues. You don't have to do anything to it. Add these to your .gnus.el (setq smtpmail-debug-info t) ; only to debug problems set to t if needed (setq smtpmail-debug-verb t) (setq gnus-verbose 7) (setq gnus-verbose-backends 7) Typically you should see something like this in Messages buffer. --8---cut here---start-8--- Checking new news... gnutls.c: [1] (Emacs) GnuTLS library loaded: libgnutls-28.dll gnutls.c: [1] (Emacs) allocating credentials gnutls.c: [1] (Emacs) setting the trustfile: c:/cygwin/usr/ssl/certs/ca-bundle.trust.crt gnutls.c: [1] (Emacs) setting the trustfile: c:/cygwin/usr/ssl/certs/ca-bundle.crt gnutls.c: [1] (Emacs) gnutls callbacks gnutls.c: [1] (Emacs) gnutls_init gnutls.c: [1] (Emacs) got non-default priority string: NORMAL gnutls.c: [1] (Emacs) setting the priority string gnutls.c: [1] (Emacs) non-fatal error: Resource temporarily unavailable, try again. [2715 times] news.eternal-september.org certificate could not be verified. gnutls.c: [1] (Emacs) certificate signer was not found: news.eternal-september.org gnutls.c: [1] (Emacs) certificate validation failed: news.eternal-september.org gnutls.c: [1] (Emacs) allocating credentials gnutls.c: [1] (Emacs) setting the trustfile: c:/cygwin/usr/ssl/certs/ca-bundle.trust.crt gnutls.c: [1] (Emacs) setting the trustfile: c:/cygwin/usr/ssl/certs/ca-bundle.crt gnutls.c: [1] (Emacs) gnutls callbacks gnutls.c: [1] (Emacs) gnutls_init gnutls.c: [1] (Emacs) got non-default priority string: NORMAL gnutls.c: [1] (Emacs) setting the priority string gnutls.c: [1] (Emacs) non-fatal error: Resource temporarily unavailable, try again. [3324 times] news.gmane.org certificate could not be verified. --8---cut here---end---8--- sivaram -- ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: .gnus init file
Emanuel Berg embe8...@student.uu.se writes: I have both .emacs and .gnus in ~\ (w32 24.4) and am manually transfering gnus stuff from .emacs to .gnus Is there a way to have options customize write to a custom-set-variables paragraph in .gnus instead of in .emacs or does all the gnus stuff set through customize have to stay in .emacs No, those files don't mean anything as such. As long as the files get read, you can put whatever option in whatever file. That's not what was asked. The question was if it's possible to tell the Customize interface to store Gnus-related stuff in ~/.gnus and all other stuff in ~/.emacs. Well, I tend to say possibly, yes. There's a variable for the file which is used to store Customize settings: ,[ C-h v custom-file RET ] | custom-file is a variable defined in `cus-edit.el'. | Its value is nil | | Documentation: | File used for storing customization information. | The default is nil, which means to use your init file | as specified by `user-init-file'. If the value is not nil, | it should be an absolute file name. | | You can set this option through Custom, if you carefully read the | last paragraph below. However, usually it is simpler to write | something like the following in your init file: | | (setq custom-file ~/.emacs-custom.el) | (load custom-file) | | Note that both lines are necessary: the first line tells Custom to | save all customizations in this file, but does not load it. | | When you change this variable outside Custom, look in the | previous custom file (usually your init file) for the | forms `(custom-set-variables ...)' and `(custom-set-faces ...)', | and copy them (whichever ones you find) to the new custom file. | This will preserve your existing customizations. | | If you save this option using Custom, Custom will write all | currently saved customizations, including the new one for this | option itself, into the file you specify, overwriting any | `custom-set-variables' and `custom-set-faces' forms already | present in that file. It will not delete any customizations from | the old custom file. You should do that manually if that is what you | want. You also have to put something like `(load CUSTOM-FILE) | in your init file, where CUSTOM-FILE is the actual name of the | file. Otherwise, Emacs will not load the file when it starts up, | and hence will not set `custom-file' to that file either. | | You can customize this variable. ` So basically, if you manage to set this variable buffer-locally to /home/user/.gnus in Customize buffers related to Gnus stuff, it'll probably work. But that setting needs to be installed before the custom options are inserted there, because else their current values wouldn't be read from the right file. However, even if you manage to get there, that's also no salvation because some Customize commands like `customize-apropos' will let you customize options from different groups, and then a buffer-local value of custom-file won't do the trick. So long story short: I'd suggest you either don't mess with `custom-file' and let Emacs put it in `user-init-file', or you set it to a separate file which is loaded from ~/.emacs as suggested in the docs above. Splitting into per-package custom-files doesn't seem to be possible, and IMHO the value is questionable anyhow. I mean, the since the customizations are sorted alphabetically, they are somehow grouped by package anyway. Bye, Tassilo ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: .gnus init file
mailman.19148.1422850086.1147.info-gnus-engl...@gnu.orgSivaram NeelakantanMon, 02 Feb 2015 09:37:54 +0530 On Sun, Feb 01 2015,btraven wrote: I have both .emacs and .gnus in ~\ (w32 24.4) and am manually transfering gnus stuff from .emacs to .gnus Is there a way to have options customize write to a custom-set-variables paragraph in .gnus instead of in .emacs or does all the gnus stuff set through customize have to stay in .emacs Also is this the right place to ask about using openssl, gnutls, and other non-Emacs apps needed to make gnus a mail reader as well as a news reader? I have all of this in \emacs\gnutls: cacert.pem libgnutls-28.dll openssl.exe certtool.exe libgnutls-openssl-27.dll psktool.exe danetool.exe libhogweed-2-5.dllReadMe.txt gnutls-cli-debug.exe libiconv-2.dll regex2.dll gnutls-cli.exe libintl-8.dll srptool.exe gnutls-serv.exe libnettle-4-7.dll ssleay32.dll HashInfo.txt libtasn1-6.dllzlib1.dll libeay32.dll ocsptool.exe libgmp-10.dll OpenSSL\ License.txt and ssl.el in \emacs\site-lisp but the ssl.el may not be current (from 1999). In the emacswiki I read: I just set up Emacs +gnus+gmail mail send/receive on my win 7 laptop. And this might not be what you were looking for but here goes anyway. 1. Download the ezwinports bin files from sourceforge. Just take all of them, doesn't matter. Look for w32-bin files I believe 2. Put them in c:/gnu/ezwinports or c:/Emacs/ezwinports. err...unzip them of course. 3. look at your C-h v dynamic-library-alist Value: ((xpm libxpm.dll xpm4.dll libXpm-nox4.dll) (png libpng16.dll libpng16-16.dll) (tiff libtiff-5.dll libtiff3.dll libtiff.dll) (jpeg libjpeg-9.dll) (gif libgif-7.dll) (svg librsvg-2-2.dll) (gdk-pixbuf libgdk_pixbuf-2.0-0.dll) (glib libglib-2.0-0.dll) (gobject libgobject-2.0-0.dll) (gnutls libgnutls-28.dll libgnutls-26.dll) (libxml2 libxml2-2.dll libxml2.dll) (zlib zlib1.dll libz-1.dll)) These dlls should be there in unzipped directory. 4. Make sure that ezwinports dir is in the PATH in the MY Computer settings. Adding the path in Emacs doesn't work. And it has to be there BEFORE the cygwin path. which is important. 5. I have this settings for my .gnus --8---cut here---start-8--- (setq mail-sources '((pop :server pop.gmail.com :port 995 :user ...@gmail.com :password x :stream ssl))) ;;if retrieving from spool, delete temp file after 1 days (setq mail-source-delete-incoming 1) (setq mail-source-delete-old-incoming-confirm nil) (eval-after-load mail-source '(require 'pop3)) ;; (setq smtpmail-stream-type 'ssl) (setq smtpmail-smtp-server smtp.gmail.com) (setq smtpmail-smtp-service 465) (setq smtpmail-debug-info t) ; only to debug problems set to t if needed (setq smtpmail-debug-verb t) ;; ;;so that sent-mail folders see To headers instead of from (setq gnus-extra-headers '(To )) (setq gnus-verbose 7) (setq gnus-verbose-backends 7) --8---cut here---end---8--- I don't think I used anything other than stock gnus .el files or anything outside of the the ezwinports. In fact, I used msmtp before but since the ezwinports binaries, it's fully native Emacs. 6. You'd need an .authinfo file in ~/ directory c:/Users/ADMIN/AppData/Roaming or somewhere 7. You may want to see this thread for more info http://lists.gnu.org/archive/html/help-gnu-emacs/2015-01/msg00328.html 8. If this works, gnus would render html and images too. sivaram -- Thanks, Sivaram. I have installed files you suggested above and added lines to .gnus, restarted emacs, and now gnus is much slower (long wait on black hourglass within Emacs. dynamic-library-alist shows same as before with older versions of dlls. My box is also win7 laptop (64-bit). I'm assuming that all this 32bit stuff will work since I think Emacs itself is still only 32 bit. Anyway now gnus is not even usable as newsreader so I am posting via newsguy web direct. I don't want to undo what I've done and will start reading the whole gnus manual to see if I can get more insight into what is going on. Anyway I am not able to see where the old dll's are coming from. Is it necessary to restart w32 itself? There is a 493k libXpm.dll in the emacs.exe subdirectory (\emacs\bin). Is that supposed to be there? Ed ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: .gnus init file
btraven btra...@nihilo.net writes: I have both .emacs and .gnus in ~\ (w32 24.4) and am manually transfering gnus stuff from .emacs to .gnus Is there a way to have options customize write to a custom-set-variables paragraph in .gnus instead of in .emacs or does all the gnus stuff set through customize have to stay in .emacs No, those files don't mean anything as such. As long as the files get read, you can put whatever option in whatever file. For example, I have a subdirectory with Gnus files, then I load them all from .emacs with `load-file'. If you are interested how that might work, check out: http://user.it.uu.se/~embe8573/conf/.emacs http://user.it.uu.se/~embe8573/conf/emacs-init/gnus/ That said, that's nothing I'd recommend as a solution that is better than anyone else's. If you don't have tons of configuration for Gnus, why don't stick with .emacs and .gnus? - only when it gets out of hand, it becomes necessary to split everything into several files. Also is this the right place to ask about using openssl, gnutls, and other non-Emacs apps needed to make gnus a mail reader as well as a news reader? It is the right place, but to read mail with Gnus is easy. The setup is very easy. This http://user.it.uu.se/~embe8573/conf/emacs-init/gnus/mail.el should get you started with SMTP and POP - don't mind the initial defun stop, start reading at the comment that says SMTP. If you need other protocols I can't help you, but I can assure you that is easy as well. -- underground experts united ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english