From em.20.jowens ¡÷ spamgourmet.com Mon Apr 2 02:38:00 2007 From: em.20.jowens ¡÷ spamgourmet.com (John Owens) Date: Sun, 01 Apr 2007 10:38:00 -0700 Subject: semi problem setting paragraph-start Message-ID: Greetings, I've been getting strange errors in filladapt for quite some time now and we think we've tracked down the problem to SEMI. Here's the thread: http://thread.gmane.org/gmane.emacs.devel/68275 The code is in semi.el (I'm using the latest version, in Carbon Emacs): (defun turn-on-mime-edit () ... (setq paragraph-start (regexp-or mime-edit-single-part-tag-regexp paragraph-start)) The problem is that paragraph-start is set here many times so it becomes very very long. 307 nested groups. One of the commenters in that thread noted that "turn-on-mime-edit" must have been called repeatedly. The folks on emacs.devel suggest that it's necessary to "call make-local-variable on paragraph-start." Does this seem like a problem? What else can I do to help track it down? JDO From em.20.jowens ¡÷ spamgourmet.com Sat Apr 14 05:55:51 2007 From: em.20.jowens ¡÷ spamgourmet.com (John Owens) Date: Fri, 13 Apr 2007 13:55:51 -0700 Subject: semi problem setting paragraph-start Message-ID: Greetings, I've been getting strange errors in filladapt for quite some time now and we think we've tracked down the problem to SEMI. Here's the thread: http://thread.gmane.org/gmane.emacs.devel/68275 The code is in semi.el (I'm using the latest version, in Carbon Emacs): (defun turn-on-mime-edit () ... (setq paragraph-start (regexp-or mime-edit-single-part-tag-regexp paragraph-start)) The problem is that paragraph-start is set here many times so it becomes very very long. 307 nested groups. One of the commenters in that thread noted that "turn-on-mime-edit" must have been called repeatedly. The folks on emacs.devel suggest that it's necessary to "call make-local-variable on paragraph-start." Does this seem like a problem? What else can I do to help track it down? JDO From yamaoka ¡÷ jpl.org Mon Apr 16 11:13:29 2007 From: yamaoka ¡÷ jpl.org (Katsumi Yamaoka) Date: Mon, 16 Apr 2007 11:13:29 +0900 Subject: semi problem setting paragraph-start References: Message-ID: >>>>> In [emacs-mime-ja : No.02144] John Owens wrote: > Greetings, I've been getting strange errors in filladapt for quite > some time now and we think we've tracked down the problem to SEMI. > Here's the thread: > http://thread.gmane.org/gmane.emacs.devel/68275 > The code is in semi.el (I'm using the latest version, in Carbon > Emacs): It's in mime-edit.el. > (defun turn-on-mime-edit () > ... > (setq paragraph-start > (regexp-or mime-edit-single-part-tag-regexp > paragraph-start)) > The problem is that paragraph-start is set here many times so it > becomes very very long. 307 nested groups. That's obviously a bug. In addition, there's also the same problem about `paragraph-separate'. > One of the commenters in that thread noted that "turn-on-mime-edit" > must have been called repeatedly. The folks on emacs.devel suggest > that it's necessary to "call make-local-variable on paragraph-start." > Does this seem like a problem? What else can I do to help track it > down? It's not necessarily a problem if FOO-mail-mode, which runs `turn-on-mime-edit', makes `paragraph-start' buffer-local or is derived from a mode which does it. For example, it's not a problem in Semi-gnus. Otherwise, since the code does NEW_VALUE <= OLD_VALUE + `mime-edit-single-part-tag-regexp' , a user might be required implicitly to set `OLD_VALUE' with a proper one for a mail mode before calling `turn-on-mime-edit'. However, these don't seem to be general and `turn-on-mime-edit' should have a default value for `OLD_VALUE' anyway, I think. I have two ideas but I leave them to the maintainer and the developers. Regards, 1. Use the defalut values of `paragraph-start' and `paragraph-separate'. --- mime-edit.el~ 2006-12-03 21:51:39 +0000 +++ mime-edit.el 2007-04-16 01:57:17 +0000 @@ -1068,12 +1068,12 @@ (enable-invisible) ;; I don't care about saving these. - (setq paragraph-start - (regexp-or mime-edit-single-part-tag-regexp - paragraph-start)) - (setq paragraph-separate - (regexp-or mime-edit-single-part-tag-regexp - paragraph-separate)) + (set (make-local-variable 'paragraph-start) + (regexp-or mime-edit-single-part-tag-regexp + (default-value 'paragraph-start))) + (set (make-local-variable 'paragraph-separate) + (regexp-or mime-edit-single-part-tag-regexp + (default-value 'paragraph-separate))) (run-hooks 'mime-edit-mode-hook) (message "%s" 2. Enable a user to customize the value. This version uses the same value for `paragraph-start' and `paragraph-separate' as message.el does. --- mime-edit.el~ 2006-12-03 21:51:39 +0000 +++ mime-edit.el 2007-04-16 01:57:17 +0000 @@ -634,6 +634,13 @@ (defvar mime-tag-format-with-encoding " -------------- next part -------------- "*Control-string making a MIME tag with encoding.") +(defcustom mime-edit-paragraph-separator (default-value 'paragraph-separate) + "Regexp used as `paragraph-start' and `paragraph-separate' in MIME-Edit mode. +The value of `mime-edit-single-part-tag-regexp' will be added to this +value." + :group 'mime-edit + :type 'regexp) + ;;; @@ multipart boundary ;;; @@ -1068,12 +1075,10 @@ (enable-invisible) ;; I don't care about saving these. - (setq paragraph-start - (regexp-or mime-edit-single-part-tag-regexp - paragraph-start)) - (setq paragraph-separate - (regexp-or mime-edit-single-part-tag-regexp - paragraph-separate)) + (set (make-local-variable 'paragraph-start) + (regexp-or mime-edit-single-part-tag-regexp + mime-edit-paragraph-separator)) + (set (make-local-variable 'paragraph-separate) paragraph-start) (run-hooks 'mime-edit-mode-hook) (message "%s" From em.20.jowens ¡÷ spamgourmet.com Tue Apr 24 03:36:35 2007 From: em.20.jowens ¡÷ spamgourmet.com (John Owens) Date: Mon, 23 Apr 2007 11:36:35 -0700 Subject: semi problem setting paragraph-start In-Reply-To: References: Message-ID: Maintainers, any chance of installing Yamaoka-san's fix? His fix #1 that uses make-local-variable on paragraph-start and paragraph-separate seems like it'll solve the problem nicely. JDO From yamaoka ¡÷ jpl.org Tue Apr 24 09:05:07 2007 From: yamaoka ¡÷ jpl.org (Katsumi Yamaoka) Date: Tue, 24 Apr 2007 09:05:07 +0900 Subject: semi problem setting paragraph-start References: Message-ID: >>>>> In [emacs-mime-ja : No.02147] John Owens wrote: > Maintainers, any chance of installing Yamaoka-san's fix? His fix #1 > that uses make-local-variable on paragraph-start and > paragraph-separate seems like it'll solve the problem nicely. Although I was hesitating to do it because I am no longer an active SEMI user, I've committed the change in the semi-1_14 branch now since no one seems to have a will to respond. Now you can check it out from CVS or get a snapshot as: ftp://ftp.jpl.org/pub/m17n/semi-1_14-200704240004.tar.gz (or http://www.jpl.org/ftp/pub/m17n/semi-1_14-200704240004.tar.gz) Anyway, this must be a serious situation. We have to worry about the matter to which nobody reacts in this way in spite of the requests that John sent repeatedly. Regards, From yoichi ¡÷ geiin.org Tue Apr 24 21:27:05 2007 From: yoichi ¡÷ geiin.org (Yoichi NAKAYAMA) Date: Tue, 24 Apr 2007 21:27:05 +0900 Subject: semi problem setting paragraph-start In-Reply-To: References: Message-ID: <863b2qufdy.wl%yoichi@geiin.org> At Mon, 16 Apr 2007 11:13:29 +0900, Katsumi Yamaoka wrote: > > (defun turn-on-mime-edit () > > ... > > (setq paragraph-start > > (regexp-or mime-edit-single-part-tag-regexp > > paragraph-start)) > > > The problem is that paragraph-start is set here many times so it > > becomes very very long. 307 nested groups. > > That's obviously a bug. In addition, there's also the same > problem about `paragraph-separate'. > > > One of the commenters in that thread noted that "turn-on-mime-edit" > > must have been called repeatedly. The folks on emacs.devel suggest > > that it's necessary to "call make-local-variable on paragraph-start." > > > Does this seem like a problem? What else can I do to help track it > > down? > > It's not necessarily a problem if FOO-mail-mode, which runs > `turn-on-mime-edit', makes `paragraph-start' buffer-local or is > derived from a mode which does it. For example, it's not a > problem in Semi-gnus. Since mime-edit does change the value for its specific purpose, mime-edit itself is responsible for making the variable local. Therefore Yamaoka-san's change in semi-1_14 branch seems appropriate. Why don't you merge it to emiko-1_14 branch? Regards, -- Yoichi NAKAYAMA From ueno ¡÷ unixuser.org Sun Apr 29 13:42:48 2007 From: ueno ¡÷ unixuser.org (Daiki Ueno) Date: Sun, 29 Apr 2007 13:42:48 +0900 Subject: EasyPG 0.0.12 Message-ID: <734fd533-6d2b-46d1-964c-8d23c4c952e0@well-done.deisui.org> The 12th (the one year anniversary) release of EasyPG is available from http://www.easypg.org. EasyPG is an all-in-one GnuPG interface for Emacs. It has two aspects: convenient tools which allow to use GnuPG from Emacs (EasyPG Assistant), and a fully functional interface library to GnuPG (EasyPG Library). * Major changes in 0.0.12 ** epa-file.el usability improvements. *** Ask recipients only the first time. *** Respect epa-armor and epa-textmode. *** Customizing epa-file-name-regexp now works. *** Backup files for "*.gpg" are also encrypted. Regards, -- Daiki Ueno