info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange indentation in message-mode


From: Thorsten Jolitz
Subject: Re: Strange indentation in message-mode
Date: Fri, 04 May 2012 13:12:52 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux)

Bastien <bzg@gnu.org> writes:
> Thorsten Jolitz <tjolitz@googlemail.com> 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 <RET> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]