From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/15478 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.gnus.user Subject: Re: Strange indentation in message-mode Date: Fri, 04 May 2012 13:12:52 +0200 Message-ID: <87ehr0nqrv.fsf@googlemail.com> References: <87txzxh7u0.fsf@googlemail.com> <87sjfhh22e.fsf@gnu.org> <87pqalfh3j.fsf@googlemail.com> <87lil9fgj7.fsf@googlemail.com> <87mx5pylqa.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336129879 6185 80.91.229.3 (4 May 2012 11:11:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 May 2012 11:11:19 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri May 04 13:11:17 2012 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SQGPm-0005Ta-Fw for gegu-info-gnus-english@m.gmane.org; Fri, 04 May 2012 13:11:10 +0200 Original-Received: from localhost ([::1]:43443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQGPl-0001rc-J7 for gegu-info-gnus-english@m.gmane.org; Fri, 04 May 2012 07:11:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQGPd-0001r7-T9 for info-gnus-english@gnu.org; Fri, 04 May 2012 07:11:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQGPX-0001gX-L1 for info-gnus-english@gnu.org; Fri, 04 May 2012 07:11:01 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQGPX-0001gH-Aj for info-gnus-english@gnu.org; Fri, 04 May 2012 07:10:55 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SQGPT-000598-9g for info-gnus-english@gnu.org; Fri, 04 May 2012 13:10:51 +0200 Original-Received: from e178118100.adsl.alicedsl.de ([85.178.118.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 May 2012 13:10:51 +0200 Original-Received: from tjolitz by e178118100.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 May 2012 13:10:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 107 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: e178118100.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:vSo51NA7/IJMvgHnijkdKgX/R7I= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:15478 Archived-At: Bastien writes: > Thorsten Jolitz writes: > >> ,--------------------------------------------------------------------------- >> | =orgstruct++-mode= is enabled in =Gnus= message buffers to aid in >> | creating structured email messages. >> | >> | #+begin_src emacs-lisp :tangle yes >> | (add-hook 'message-mode-hook 'orgstruct++-mode 'append) >> | (add-hook 'message-mode-hook 'turn-on-auto-fill 'append) >> | ; (add-hook 'message-mode-hook 'bbdb-define-all-aliases 'append) >> | (add-hook 'message-mode-hook 'orgtbl-mode 'append) >> | (add-hook 'message-mode-hook 'auto-complete-mode 'append) >> | ; (add-hook 'message-mode-hook 'turn-on-flyspell 'append) >> | (add-hook 'message-mode-hook >> | '(lambda () (setq fill-column 72)) >> | 'append) >> | (add-hook 'message-mode-hook >> | '(lambda () (local-set-key (kbd "C-c M-o") 'org-mime-htmlize)) >> | 'append) >> | #+end_src >> `--------------------------------------------------------------------------- > > Can you please try to put the orgstruct++-mode hook at the end of > `message-mode-hook' and report ? > > `orgstruct++-mode' modifies variables and should be put at the end > (yes, this is not clean enough, I will work on this over the WE.) > > Thanks, Now my configuration looks like below, and let me type some more, to see if the strange indenting occurs again - no, it doesn't ;) ,--------------------------------------------------------------------------- | #+begin_src emacs-lisp :tangle yes | (add-hook 'message-mode-hook 'turn-on-auto-fill 'append) | ; (add-hook 'message-mode-hook 'bbdb-define-all-aliases 'append) | (add-hook 'message-mode-hook 'auto-complete-mode 'append) | ; (add-hook 'message-mode-hook 'turn-on-flyspell 'append) | (add-hook 'message-mode-hook | '(lambda () (setq fill-column 72)) | 'append) | (add-hook 'message-mode-hook | '(lambda () (local-set-key (kbd "C-c M-o") 'org-mime-htmlize)) | 'append) | (add-hook 'message-mode-hook 'orgtbl-mode 'append) | (add-hook 'message-mode-hook 'orgstruct++-mode 'append) | #+end_src `--------------------------------------------------------------------------- But there is new trouble: the key (as well as C-m) does not work anymore, and I get constant error messages in the minibuffer. Here is the *Messages* log only from writing this email: ,------------------------------------------------------------------------------------ | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling [7 times] | Type "q" in help window to restore its previous buffer. | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling [67 times] | Mark set | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling | Auto-saving... | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling [11 times] | org-indent-line-function: Lisp nesting exceeds `max-lisp-eval-depth' | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling [19 times] | org-indent-line-function: Lisp nesting exceeds `max-lisp-eval-depth' | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling [4 times] | Mark set | Undo! | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling | Mark set | Undo! | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling [2 times] | Auto-saving...done | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling | org-indent-line-function: Lisp nesting exceeds `max-lisp-eval-depth' | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling [25 times] | org-indent-line-function: Lisp nesting exceeds `max-lisp-eval-depth' | org-auto-fill-function: Invalid function: orgstruct++-ignore-org-filling [9 times] `------------------------------------------------------------------------------------ C-h k RET (in this message buffer) gives - RET runs the command orgtbl-hijacker-command-101, which is an interactive Lisp function. - what is quite strange, since I get the ,------------------------------------------------- | Invalid function: orgstruct++-ignore-org-filling `------------------------------------------------- everytime I hit it (and evertime I hit the space key too) C-h k SPACE gives: - SPC runs the command orgtbl-self-insert-command, which is an interactive compiled Lisp function in `org-table.el'. but, other than RET, the key does work as expected. -- cheers, Thorsten