all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* word-spaces in header of a captured item, but how?
@ 2016-08-20  9:21 Sharon Kimble
  2016-08-20 11:37 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Sharon Kimble @ 2016-08-20  9:21 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 833 bytes --]


I have this as part of my capture templates -

--8<---------------cut here---------------start------------->8---
              ("c" "Clipboard" entry (file+headline "/home/boudiccas/.emacs.d/org/scratch.org" "")
                   "** %U %^{Head Line} %^g
                    %c
                     %?")
--8<---------------cut here---------------end--------------->8---

Which works, except I can't have spaces between the words in the header
of the item. [Here I'm referring to the 'header' as the sentence before
the tag is inserted, and which you 'C-c C-c' to accept it.] I've googled
for it but I haven't found any solutions.

So how can I have word-spaces please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.1.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: word-spaces in header of a captured item, but how?
  2016-08-20  9:21 word-spaces in header of a captured item, but how? Sharon Kimble
@ 2016-08-20 11:37 ` Nicolas Goaziou
  2016-08-20 12:52   ` Sharon Kimble
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2016-08-20 11:37 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: org-mode-email

Hello,

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> I have this as part of my capture templates -
>
>               ("c" "Clipboard" entry (file+headline "/home/boudiccas/.emacs.d/org/scratch.org" "")
>                    "** %U %^{Head Line} %^g
>                     %c
>                      %?")
>
> Which works, except I can't have spaces between the words in the header
> of the item. [Here I'm referring to the 'header' as the sentence before
> the tag is inserted, and which you 'C-c C-c' to accept it.] I've googled
> for it but I haven't found any solutions.
>
> So how can I have word-spaces please?

I cannot reproduce it. AFAIR, this sounds like a bug in development
version that was fixed 7 months ago. In this bug, hitting space would
validate the entry. 

What Org version are you using. Why "can't you have spaces between the
words"?

Regards,

-- 
Nicolas Goaziou

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

* Re: word-spaces in header of a captured item, but how?
  2016-08-20 11:37 ` Nicolas Goaziou
@ 2016-08-20 12:52   ` Sharon Kimble
  2016-08-20 15:55     ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Sharon Kimble @ 2016-08-20 12:52 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 3246 bytes --]

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> I have this as part of my capture templates -
>>
>>               ("c" "Clipboard" entry (file+headline "/home/boudiccas/.emacs.d/org/scratch.org" "")
>>                    "** %U %^{Head Line} %^g
>>                     %c
>>                      %?")
>>
>> Which works, except I can't have spaces between the words in the header
>> of the item. [Here I'm referring to the 'header' as the sentence before
>> the tag is inserted, and which you 'C-c C-c' to accept it.] I've googled
>> for it but I haven't found any solutions.
>>
>> So how can I have word-spaces please?
>
> I cannot reproduce it. AFAIR, this sounds like a bug in development
> version that was fixed 7 months ago. In this bug, hitting space would
> validate the entry. 
>
> What Org version are you using. Why "can't you have spaces between the
> words"?
>

Thanks Nicolas. I'm using 'Org-mode version 8.3.5 (8.3.5-elpaplus @
/home/boudiccas/.emacs.d/elpa/org-plus-contrib-20160815/)'. When I try
to insert a space nothing happens, no key response, no error message,
nothing. On checking the *Messages* buffer I see this -

--8<---------------cut here---------------start------------->8---
Mark set
Template key: 
Word wrapping disabled
Saving file /home/boudiccas/.emacs.d/org/scratch.org...
Wrote /home/boudiccas/.emacs.d/org/scratch.org
Clipboard pasted as level 2 subtree
--8<---------------cut here---------------end--------------->8---

However when I try other capture templates I get this -

--8<---------------cut here---------------start------------->8---
Wrote /home/boudiccas/.emacs.d/org/scratch.org
(void-variable *) in me/eval-region-and-kill-mark [2 times]
--8<---------------cut here---------------end--------------->8---

Which shows this from my init file -

--8<---------------cut here---------------start------------->8---
(use-package selected
  :defines selected-keymap
  :bind
  (:map selected-keymap
        ("C-c C-c" . me/eval-region-and-kill-mark)
        ("<M-left>" . me/indent-rigidly-left-and-keep-mark)
        ("<M-right>" . me/indent-rigidly-right-and-keep-mark)
        ("<" . mc/mark-previous-like-this)
        (">" . mc/mark-next-like-this)
        ("C-b b" . me/browse-url-and-kill-mark)
        ("C-c c" . capitalize-region)
        ("C-c l" . downcase-region)
        ("C-c u" . upcase-region)
        ("C-f f" . fill-region)
        ("C-g" . selected-off)
        ("C-s r" . reverse-region)
        ("C-s s" . sort-lines)
        ("C-s w" . me/sort-words))
  :init (selected-global-mode))

(defun me/eval-region-and-kill-mark (beg end)
  "Execute the region as Lisp code.
 Call `eval-region' and kill mark. Move back to the beginning of the region."
  (interactive "r")
  (eval-region beg end)
  (setq deactivate-mark t)
  (goto-char beg))
--8<---------------cut here---------------end--------------->8---

But I don't know how to correct it, nor if its related to my lack of wordspaces.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.1.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: word-spaces in header of a captured item, but how?
  2016-08-20 12:52   ` Sharon Kimble
@ 2016-08-20 15:55     ` Nicolas Goaziou
  2016-08-21  0:02       ` SOLVED - " Sharon Kimble
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2016-08-20 15:55 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: org-mode-email

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> However when I try other capture templates I get this -
>
> Wrote /home/boudiccas/.emacs.d/org/scratch.org
> (void-variable *) in me/eval-region-and-kill-mark [2 times]
>
> Which shows this from my init file -
>
> (use-package selected
>   :defines selected-keymap
>   :bind
>   (:map selected-keymap
>         ("C-c C-c" . me/eval-region-and-kill-mark)
>         ("<M-left>" . me/indent-rigidly-left-and-keep-mark)
>         ("<M-right>" . me/indent-rigidly-right-and-keep-mark)
>         ("<" . mc/mark-previous-like-this)
>         (">" . mc/mark-next-like-this)
>         ("C-b b" . me/browse-url-and-kill-mark)
>         ("C-c c" . capitalize-region)
>         ("C-c l" . downcase-region)
>         ("C-c u" . upcase-region)
>         ("C-f f" . fill-region)
>         ("C-g" . selected-off)
>         ("C-s r" . reverse-region)
>         ("C-s s" . sort-lines)
>         ("C-s w" . me/sort-words))
>   :init (selected-global-mode))
>
> (defun me/eval-region-and-kill-mark (beg end)
>   "Execute the region as Lisp code.
>  Call `eval-region' and kill mark. Move back to the beginning of the region."
>   (interactive "r")
>   (eval-region beg end)
>   (setq deactivate-mark t)
>   (goto-char beg))
>
> But I don't know how to correct it, nor if its related to my lack of
> wordspaces.

I don't know "selected" package and I cannot understand why you need to
bind `me/eval-region-and-kill-mark' to C-c C-c.

In any case, it is probably not related to Org you to your
configuration.

Regards,

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

* SOLVED - Re: word-spaces in header of a captured item, but how?
  2016-08-20 15:55     ` Nicolas Goaziou
@ 2016-08-21  0:02       ` Sharon Kimble
  0 siblings, 0 replies; 5+ messages in thread
From: Sharon Kimble @ 2016-08-21  0:02 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 2044 bytes --]

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> However when I try other capture templates I get this -
>>
>> Wrote /home/boudiccas/.emacs.d/org/scratch.org
>> (void-variable *) in me/eval-region-and-kill-mark [2 times]
>>
>> Which shows this from my init file -
>>
>> (use-package selected
>>   :defines selected-keymap
>>   :bind
>>   (:map selected-keymap
>>         ("C-c C-c" . me/eval-region-and-kill-mark)
>>         ("<M-left>" . me/indent-rigidly-left-and-keep-mark)
>>         ("<M-right>" . me/indent-rigidly-right-and-keep-mark)
>>         ("<" . mc/mark-previous-like-this)
>>         (">" . mc/mark-next-like-this)
>>         ("C-b b" . me/browse-url-and-kill-mark)
>>         ("C-c c" . capitalize-region)
>>         ("C-c l" . downcase-region)
>>         ("C-c u" . upcase-region)
>>         ("C-f f" . fill-region)
>>         ("C-g" . selected-off)
>>         ("C-s r" . reverse-region)
>>         ("C-s s" . sort-lines)
>>         ("C-s w" . me/sort-words))
>>   :init (selected-global-mode))
>>
>> (defun me/eval-region-and-kill-mark (beg end)
>>   "Execute the region as Lisp code.
>>  Call `eval-region' and kill mark. Move back to the beginning of the region."
>>   (interactive "r")
>>   (eval-region beg end)
>>   (setq deactivate-mark t)
>>   (goto-char beg))
>>
>> But I don't know how to correct it, nor if its related to my lack of
>> wordspaces.
>
> I don't know "selected" package and I cannot understand why you need to
> bind `me/eval-region-and-kill-mark' to C-c C-c.
>
> In any case, it is probably not related to Org you to your
> configuration.
>

Sorted it! I deleted several packages - selected, ido-springboard,
ido-completing-read+, ido-vertical-mode, ido-yes-or-no, and
ido-ubiquitous - and I suspect that the last one was causing the
problem.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.1.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

end of thread, other threads:[~2016-08-21  0:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-20  9:21 word-spaces in header of a captured item, but how? Sharon Kimble
2016-08-20 11:37 ` Nicolas Goaziou
2016-08-20 12:52   ` Sharon Kimble
2016-08-20 15:55     ` Nicolas Goaziou
2016-08-21  0:02       ` SOLVED - " Sharon Kimble

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.