emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems Setting Drawers in .emacs
@ 2012-08-27  4:39 Rodolfo Aramayo
  2012-08-27  5:10 ` Nick Dokos
  0 siblings, 1 reply; 6+ messages in thread
From: Rodolfo Aramayo @ 2012-08-27  4:39 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I am having essentially the same problem described on the following thread:

http://thread.gmane.org/gmane.emacs.orgmode/22263

Which is essentially:

when I define in my .emacs file:

;; Define some default drawers.
(setq org-drawers (quote ("PROPERTIES" "SETUP")))

PROPERTIES and SETUP aren't recognised as drawers in my org
files. They don't close and open using tab and the fontification of them
indicates that org isn't recognising them as drawers.
If I however define a drawer in my org file like:
#+DRAWERS: NOTES
this works correctly

I am using Org-mode version 7.8.11 and GNU Emacs 24.1.1
(x86_64-apple-darwin10.8.0)

Are there any known fixes for this issue?

Thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problems Setting Drawers in .emacs
  2012-08-27  4:39 Problems Setting Drawers in .emacs Rodolfo Aramayo
@ 2012-08-27  5:10 ` Nick Dokos
  2012-08-27 19:26   ` Rodolfo Aramayo
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2012-08-27  5:10 UTC (permalink / raw)
  To: Rodolfo Aramayo; +Cc: emacs-orgmode

Rodolfo Aramayo <raramayo@gmail.com> wrote:

> Hi,
> 
> I am having essentially the same problem described on the following thread:
> 
> http://thread.gmane.org/gmane.emacs.orgmode/22263
> 
> Which is essentially:
> 
> when I define in my .emacs file:
> 
> ;; Define some default drawers.
> (setq org-drawers (quote ("PROPERTIES" "SETUP")))
> 
> PROPERTIES and SETUP aren't recognised as drawers in my org
> files. They don't close and open using tab and the fontification of them
> indicates that org isn't recognising them as drawers.
> If I however define a drawer in my org file like:
> #+DRAWERS: NOTES
> this works correctly
> 
> I am using Org-mode version 7.8.11 and GNU Emacs 24.1.1
> (x86_64-apple-darwin10.8.0)
> 
> Are there any known fixes for this issue?
> 

I cannot reproduce this. With the appended minimal .emacs,
I get completion on the drawer names and as far as I can tell
everything works.

Nick

Org-mode version 7.8.11 (release_7.8.11-605-g5f273b @ /home/nick/elisp/org-mode/lisp/)

--8<---------------cut here---------------start------------->8---
;;; -*- mode: emacs-lisp -*-
;;; constant part
(add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))
(add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/contrib/lisp"))

(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))

(require 'org-install)

(setq debug-on-error t)
(setq debug-on-quit t)
(setq eval-expression-print-length nil)
(setq eval-expression-print-level nil)

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)

;; Define some default drawers.
(setq org-drawers (quote ("PROPERTIES" "SETUP" "NOTES")))
--8<---------------cut here---------------end--------------->8---

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problems Setting Drawers in .emacs
  2012-08-27  5:10 ` Nick Dokos
@ 2012-08-27 19:26   ` Rodolfo Aramayo
  0 siblings, 0 replies; 6+ messages in thread
From: Rodolfo Aramayo @ 2012-08-27 19:26 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

Thanks Nick

You are right, something in my .emacs file was causing this

--Rodolfo

On Mon, Aug 27, 2012 at 12:10 AM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Rodolfo Aramayo <raramayo@gmail.com> wrote:
>
>> Hi,
>>
>> I am having essentially the same problem described on the following thread:
>>
>> http://thread.gmane.org/gmane.emacs.orgmode/22263
>>
>> Which is essentially:
>>
>> when I define in my .emacs file:
>>
>> ;; Define some default drawers.
>> (setq org-drawers (quote ("PROPERTIES" "SETUP")))
>>
>> PROPERTIES and SETUP aren't recognised as drawers in my org
>> files. They don't close and open using tab and the fontification of them
>> indicates that org isn't recognising them as drawers.
>> If I however define a drawer in my org file like:
>> #+DRAWERS: NOTES
>> this works correctly
>>
>> I am using Org-mode version 7.8.11 and GNU Emacs 24.1.1
>> (x86_64-apple-darwin10.8.0)
>>
>> Are there any known fixes for this issue?
>>
>
> I cannot reproduce this. With the appended minimal .emacs,
> I get completion on the drawer names and as far as I can tell
> everything works.
>
> Nick
>
> Org-mode version 7.8.11 (release_7.8.11-605-g5f273b @ /home/nick/elisp/org-mode/lisp/)
>
> --8<---------------cut here---------------start------------->8---
> ;;; -*- mode: emacs-lisp -*-
> ;;; constant part
> (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))
> (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/contrib/lisp"))
>
> (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
>
> (require 'org-install)
>
> (setq debug-on-error t)
> (setq debug-on-quit t)
> (setq eval-expression-print-length nil)
> (setq eval-expression-print-level nil)
>
> (global-set-key "\C-cl" 'org-store-link)
> (global-set-key "\C-ca" 'org-agenda)
>
> ;; Define some default drawers.
> (setq org-drawers (quote ("PROPERTIES" "SETUP" "NOTES")))
> --8<---------------cut here---------------end--------------->8---
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problems Setting Drawers in .emacs
  2010-02-12 16:23 Ian Barton
  2010-02-12 19:14 ` Matt Lundin
@ 2010-02-16  1:47 ` Bernt Hansen
  1 sibling, 0 replies; 6+ messages in thread
From: Bernt Hansen @ 2010-02-16  1:47 UTC (permalink / raw)
  To: lists; +Cc: emacs-orgmode

Ian Barton <lists@manor-farm.org> writes:

> Recently I have noticed a problem setting up Drawers. In my .emacs I have:
>
> (add-to-list 'load-path "~/.emacs.d/src/lisp")
> (add-to-list 'load-path "~/.emacs.d/src/org-mode/contrib/lisp")
> (require 'org-install)
> (require 'org-babel-init)
> (org-babel-load-file "~/.emacs.d/blacky.org")
>
> In ~/.emacs.d/blacky.el I have:
>
> ;; Define some default drawers.
> (setq org-drawers (quote ("PROPERTIES" "SETUP")))
>
> However, PROPERTIES and SETUP aren't recognised as drawers in my org
> files. They don't close and open using tab and the fontification of
> them indicated that org isn't recognising them as drawers.
>

Does it help if you (setq org-drawers ...) before the (require
'org-install).  I seem to recall that setq's need to be done before you
load org-mode.

The other alternative is to keep the variables via customize.

HTH,
Bernt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problems Setting Drawers in .emacs
  2010-02-12 16:23 Ian Barton
@ 2010-02-12 19:14 ` Matt Lundin
  2010-02-16  1:47 ` Bernt Hansen
  1 sibling, 0 replies; 6+ messages in thread
From: Matt Lundin @ 2010-02-12 19:14 UTC (permalink / raw)
  To: lists; +Cc: emacs-orgmode

Ian Barton <lists@manor-farm.org> writes:

> In ~/.emacs.d/blacky.el I have:
>
> ;; Define some default drawers.
> (setq org-drawers (quote ("PROPERTIES" "SETUP")))
> 
> However, PROPERTIES and SETUP aren't recognised as drawers in my org
> files. They don't close and open using tab and the fontification of
> them indicated that org isn't recognising them as drawers.
>

Are you sure you aren't setting org-drawers anywhere else in your
configuration files (e.g., in your custom settings)? What is the value
of org-drawers? (C-h v "org-drawers") I assume you've tried grepping
"org-drawers" in your config files...

Best,
Matt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Problems Setting Drawers in .emacs
@ 2010-02-12 16:23 Ian Barton
  2010-02-12 19:14 ` Matt Lundin
  2010-02-16  1:47 ` Bernt Hansen
  0 siblings, 2 replies; 6+ messages in thread
From: Ian Barton @ 2010-02-12 16:23 UTC (permalink / raw)
  To: emacs-orgmode

Recently I have noticed a problem setting up Drawers. In my .emacs I have:

(add-to-list 'load-path "~/.emacs.d/src/lisp")
(add-to-list 'load-path "~/.emacs.d/src/org-mode/contrib/lisp")
(require 'org-install)
(require 'org-babel-init)
(org-babel-load-file "~/.emacs.d/blacky.org")

In ~/.emacs.d/blacky.el I have:

;; Define some default drawers.
(setq org-drawers (quote ("PROPERTIES" "SETUP")))

However, PROPERTIES and SETUP aren't recognised as drawers in my org 
files. They don't close and open using tab and the fontification of them 
indicated that org isn't recognising them as drawers.

If I define a drawer in my org file like:

#+DRAWERS: NOTES

this works correctly. Clearly something has got messed up in my setup, 
but I can't work out what it might be.  have moved the org-drawers 
definition near to the top of blacky.el to no effect.

I have also tried deleting my git repo and doing a new checkout.

Before I take the axe to my org configuration and start chopping bits 
off to find out where the problem is, can anyone suggest any reason why 
this might happen?

Ian.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-27 19:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-27  4:39 Problems Setting Drawers in .emacs Rodolfo Aramayo
2012-08-27  5:10 ` Nick Dokos
2012-08-27 19:26   ` Rodolfo Aramayo
  -- strict thread matches above, loose matches on Subject: below --
2010-02-12 16:23 Ian Barton
2010-02-12 19:14 ` Matt Lundin
2010-02-16  1:47 ` Bernt Hansen

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).