emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problems with auto-capitalise
@ 2016-04-29 11:00 Sharon Kimble
  2016-04-29 13:10 ` Uwe Brauer
  2016-04-29 19:13 ` Milan Zamazal
  0 siblings, 2 replies; 8+ messages in thread
From: Sharon Kimble @ 2016-04-29 11:00 UTC (permalink / raw)
  To: org-mode-email

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

I've duly install 'auto-capitalize' from melpa  and set it up as per the
.el file, and this is what I have in my 'init.org'

--8<---------------cut here---------------start------------->8---
# #+begin_src emacs-lisp
# (autoload 'auto-capitalize-mode "auto-capitalize"
#     "Toggle `auto-capitalize' minor mode in this buffer." t)
# (autoload 'turn-on-auto-capitalize-mode "auto-capitalize"
#     "Turn on `auto-capitalize' minor mode in this buffer." t)
# (autoload 'enable-auto-capitalize-mode "auto-capitalize"
#     "Enable `auto-capitalize' minor mode in this buffer." t)

# (add-hook 'org-mode-hook 'turn-on-auto-capitalize-mode)
# #+end_src
[2016-04-29 Fri 08:09]
--8<---------------cut here---------------end--------------->8---

Its all commented out because when I restart emacs I get this error
message

--8<---------------cut here---------------start------------->8---
320\225{\211=>\235?\205\251\340
\210\341\342=>\343\335\344\345&\317\211#\202\251\x0e<e\232\204z\x0e<b\210i@U\203\x01\324y\313U\203\x01\332A!\204z\x0e<b\210i@U\203'\346B\327\317#\203'\313\225<U\203'i@U\204z\x0e<b\210\214e;}\210\346\347
\327\317#\205v\313\225<U\205v\x0e<Sf\211C\350\232\206S\x0eCz\351\232)\205v\327\352D?\313\224Tb\210\346D\327\317#?\206u\313\224\313\225{>\235?*)\205\251\327?;b\210\332\353!)\205\251\b\317=\204\237\354\355\356\313\224\313\225{\"!\357\360!\210\205\251\340
\210;b\210\361\320!.\207E\205\356\v\362=\204\304\x0e6\313U\205\356\v\317=\205\356\2128b\210\306
\363\216\364\3657\317#\205\355\310\313\224f\211F9\300\313\224\313\225\313#\210+\202\316+\207"
[auto-capitalize auto-capitalize-predicate save-match-data-internal this-command key global-map
match-data #[nil "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3]
self-insert-command this-command-keys ...] 9
("/home/boudiccas/.emacs.d/elpa/auto-capitalize-20160415.1403/auto-capitalize.elc" . 3423)] 1) in
desktop-create-buffer [2 times] 
--8<---------------cut here---------------end--------------->8---

Seeing 'auto-capitalize.elc' mentioned, I've removed it from the package
setup in elpa and stored it in a separate directory, but it made no
difference.

With auto-capitalize enabled I'm unable to completely load whatever
files I had opened before, disable 'auto-capitalize' and everything
works as it should. So please, how can I get it working and loading
properly all the time?

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.0.93

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

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

* Re: problems with auto-capitalise
  2016-04-29 11:00 problems with auto-capitalise Sharon Kimble
@ 2016-04-29 13:10 ` Uwe Brauer
  2016-04-29 14:33   ` Sharon Kimble
  2016-04-29 19:13 ` Milan Zamazal
  1 sibling, 1 reply; 8+ messages in thread
From: Uwe Brauer @ 2016-04-29 13:10 UTC (permalink / raw)
  To: emacs-orgmode

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

   > I've duly install 'auto-capitalize' from melpa  and set it up as per the
   > .el file, and this is what I have in my 'init.org'

   > # #+begin_src emacs-lisp
   > # (autoload 'auto-capitalize-mode "auto-capitalize"
   > #     "Toggle `auto-capitalize' minor mode in this buffer." t)
   > # (autoload 'turn-on-auto-capitalize-mode "auto-capitalize"
   > #     "Turn on `auto-capitalize' minor mode in this buffer." t)
   > # (autoload 'enable-auto-capitalize-mode "auto-capitalize"
   > #     "Enable `auto-capitalize' minor mode in this buffer." t)

   > # (add-hook 'org-mode-hook 'turn-on-auto-capitalize-mode)
   > # #+end_src
   > [2016-04-29 Fri 08:09]


   > Its all commented out because when I restart emacs I get this error
   > message

   > [auto-capitalize auto-capitalize-predicate save-match-data-internal this-command key global-map
   > match-data #[nil "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3]
   > self-insert-command this-command-keys ...] 9
   > ("/home/boudiccas/.emacs.d/elpa/auto-capitalize-20160415.1403/auto-capitalize.elc" . 3423)] 1) in
   > desktop-create-buffer [2 times] 


This is bad. Which version of Emacs do you use? On which OS are you?



    -   could you please copy 


(autoload 'auto-capitalize-mode "auto-capitalize"
    "Toggle `auto-capitalize' minor mode in this buffer." t)
(autoload 'turn-on-auto-capitalize-mode "auto-capitalize"
    "Turn on `auto-capitalize' minor mode in this buffer." t)
(autoload 'enable-auto-capitalize-mode "auto-capitalize"
    "Enable `auto-capitalize' minor mode in this buffer." t)

 

Into a separate file say auto-cap-init.el

Copy auto-capitalize.el into some easy to access directory

Close emacs

Restart emacs with

 emacs -Q

Load auto-capitalize.el

M-x set-variable
debug-on-error t

Open a file
M-x auto-capitalize-mode

And tell us what happen.

I recently changed a call in auto-capitalize.el because of a bug in
LaTeX mode.

Uwe Brauer 

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

* Re: problems with auto-capitalise
  2016-04-29 13:10 ` Uwe Brauer
@ 2016-04-29 14:33   ` Sharon Kimble
  2016-04-29 17:05     ` Uwe Brauer
  0 siblings, 1 reply; 8+ messages in thread
From: Sharon Kimble @ 2016-04-29 14:33 UTC (permalink / raw)
  To: emacs-orgmode

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

Uwe Brauer <oub@mat.ucm.es> writes:

>>>> "Sharon" == Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>    > I've duly install 'auto-capitalize' from melpa  and set it up as per the
>    > .el file, and this is what I have in my 'init.org'
>
>    > # #+begin_src emacs-lisp
>    > # (autoload 'auto-capitalize-mode "auto-capitalize"
>    > #     "Toggle `auto-capitalize' minor mode in this buffer." t)
>    > # (autoload 'turn-on-auto-capitalize-mode "auto-capitalize"
>    > #     "Turn on `auto-capitalize' minor mode in this buffer." t)
>    > # (autoload 'enable-auto-capitalize-mode "auto-capitalize"
>    > #     "Enable `auto-capitalize' minor mode in this buffer." t)
>
>    > # (add-hook 'org-mode-hook 'turn-on-auto-capitalize-mode)
>    > # #+end_src
>    > [2016-04-29 Fri 08:09]
>
>
>    > Its all commented out because when I restart emacs I get this error
>    > message
>
>    > [auto-capitalize auto-capitalize-predicate save-match-data-internal this-command key global-map
>    > match-data #[nil "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3]
>    > self-insert-command this-command-keys ...] 9
>    > ("/home/boudiccas/.emacs.d/elpa/auto-capitalize-20160415.1403/auto-capitalize.elc" . 3423)] 1) in
>    > desktop-create-buffer [2 times] 
>
>
> This is bad. Which version of Emacs do you use? On which OS are you?

Thanks Uwe, comments inline

emacs 25.0.93.1 OS in the signature, Debian 8
>
>
>
>     -   could you please copy 
>
>
> (autoload 'auto-capitalize-mode "auto-capitalize"
>     "Toggle `auto-capitalize' minor mode in this buffer." t)
> (autoload 'turn-on-auto-capitalize-mode "auto-capitalize"
>     "Turn on `auto-capitalize' minor mode in this buffer." t)
> (autoload 'enable-auto-capitalize-mode "auto-capitalize"
>     "Enable `auto-capitalize' minor mode in this buffer." t)
>
>  
>
> Into a separate file say auto-cap-init.el
>
> Copy auto-capitalize.el into some easy to access directory
>
> Close emacs
>
> Restart emacs with
>
>  emacs -Q
>
> Load auto-capitalize.el
>
> M-x set-variable
> debug-on-error t
>
> Open a file
> M-x auto-capitalize-mode
>
> And tell us what happen.

--8<---------------cut here---------------start------------->8---
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading /home/boudiccas/.emacs.d/auto-capitalize.elc...done
You can run the command ‘set-variable’ with M-x s-va RET
<f13> is undefined
You can run the command ‘auto-capitalize-mode’ with M-x a-ca RET
Mark set [2 times]
Saving file /home/boudiccas/.emacs.d/org/todo.org...
Wrote /home/boudiccas/.emacs.d/org/todo.org
Saving file /home/boudiccas/.emacs.d/org/todo.org...
Wrote /home/boudiccas/.emacs.d/org/todo.org
--8<---------------cut here---------------end--------------->8---

And that's all, so I copied the new .elc file into the elpa
auto-capitalize directory and then enabled it in my init file and
rebooted, the same problem still occurs, so I've commented it out of my
init file and now I'm back without auto-capitalize. 
>
> I recently changed a call in auto-capitalize.el because of a bug in
> LaTeX mode.
>
> Uwe Brauer 

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.0.93

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

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

* Re: problems with auto-capitalise
  2016-04-29 14:33   ` Sharon Kimble
@ 2016-04-29 17:05     ` Uwe Brauer
  2016-04-29 17:25       ` Sharon Kimble
  0 siblings, 1 reply; 8+ messages in thread
From: Uwe Brauer @ 2016-04-29 17:05 UTC (permalink / raw)
  To: emacs-orgmode


    > Uwe Brauer <oub@mat.ucm.es> writes:

    > Thanks Uwe, comments inline

    > emacs 25.0.93.1 OS in the signature, Debian 8

Ok that is very similar to what I have 21.5.50 and Kubuntu 10.04. I run
auto-capitalize without any problem. 

    > For information about GNU Emacs and the GNU system, type C-h C-a.
    > Loading /home/boudiccas/.emacs.d/auto-capitalize.elc...done
    > You can run the command ‘set-variable’ with M-x s-va RET
    > <f13> is undefined
    > You can run the command ‘auto-capitalize-mode’ with M-x a-ca RET
    > Mark set [2 times]
    > Saving file /home/boudiccas/.emacs.d/org/todo.org...
    > Wrote /home/boudiccas/.emacs.d/org/todo.org
    > Saving file /home/boudiccas/.emacs.d/org/todo.org...
    > Wrote /home/boudiccas/.emacs.d/org/todo.org

I am now completely confused. Did kill emacs and started emacs -Q?
Did you set debug-on-error to t?
Did you load auto-capitalize manually
and did you turn it on?

This is not clear to me.

Uwe 

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

* Re: problems with auto-capitalise
  2016-04-29 17:05     ` Uwe Brauer
@ 2016-04-29 17:25       ` Sharon Kimble
  2016-04-29 21:05         ` Uwe Brauer
  0 siblings, 1 reply; 8+ messages in thread
From: Sharon Kimble @ 2016-04-29 17:25 UTC (permalink / raw)
  To: emacs-orgmode

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

Uwe Brauer <oub@mat.ucm.es> writes:

>     > Uwe Brauer <oub@mat.ucm.es> writes:
>
>     > Thanks Uwe, comments inline
>
>     > emacs 25.0.93.1 OS in the signature, Debian 8
>
> Ok that is very similar to what I have 21.5.50 and Kubuntu 10.04. I run
> auto-capitalize without any problem. 
>
>     > For information about GNU Emacs and the GNU system, type C-h C-a.
>     > Loading /home/boudiccas/.emacs.d/auto-capitalize.elc...done
>     > You can run the command ‘set-variable’ with M-x s-va RET
>     > <f13> is undefined
>     > You can run the command ‘auto-capitalize-mode’ with M-x a-ca RET
>     > Mark set [2 times]
>     > Saving file /home/boudiccas/.emacs.d/org/todo.org...
>     > Wrote /home/boudiccas/.emacs.d/org/todo.org
>     > Saving file /home/boudiccas/.emacs.d/org/todo.org...
>     > Wrote /home/boudiccas/.emacs.d/org/todo.org
>
> I am now completely confused. Did kill emacs and started emacs -Q?

Yes.

> Did you set debug-on-error to t?

Yes.

> Did you load auto-capitalize manually

Yes.

> and did you turn it on?
>
Yes.

> This is not clear to me.
>

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.0.93

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

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

* Re: problems with auto-capitalise
  2016-04-29 11:00 problems with auto-capitalise Sharon Kimble
  2016-04-29 13:10 ` Uwe Brauer
@ 2016-04-29 19:13 ` Milan Zamazal
  2016-04-30 17:36   ` [SOLVED] " Sharon Kimble
  1 sibling, 1 reply; 8+ messages in thread
From: Milan Zamazal @ 2016-04-29 19:13 UTC (permalink / raw)
  To: emacs-orgmode

Do you use desktop.el?  I experienced similar problems with it.  I don't
remember the details but I've got the following in my Emacs
configuration that probably serves as my workaround of the problem:

  (add-to-list 'desktop-minor-mode-handlers
               '(auto-capitalize . (lambda (desktop-buffer-locals) (auto-capitalize-mode 1))))

-- 
http://www.zamazal.org

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

* Re: problems with auto-capitalise
  2016-04-29 17:25       ` Sharon Kimble
@ 2016-04-29 21:05         ` Uwe Brauer
  0 siblings, 0 replies; 8+ messages in thread
From: Uwe Brauer @ 2016-04-29 21:05 UTC (permalink / raw)
  To: emacs-orgmode

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

    > Uwe Brauer <oub@mat.ucm.es> writes:
    >> > Uwe Brauer <oub@mat.ucm.es> writes:
    >> 
    >> > Thanks Uwe, comments inline
    >> 
    >> > emacs 25.0.93.1 OS in the signature, Debian 8
    >> 
    >> Ok that is very similar to what I have 21.5.50 and Kubuntu 10.04. I run
    >> auto-capitalize without any problem. 
    >> 
    >> > For information about GNU Emacs and the GNU system, type C-h C-a.
    >> > Loading /home/boudiccas/.emacs.d/auto-capitalize.elc...done
    >> > You can run the command ‘set-variable’ with M-x s-va RET
    >> > <f13> is undefined
    >> > You can run the command ‘auto-capitalize-mode’ with M-x a-ca RET
    >> > Mark set [2 times]
    >> > Saving file /home/boudiccas/.emacs.d/org/todo.org...
    >> > Wrote /home/boudiccas/.emacs.d/org/todo.org
    >> > Saving file /home/boudiccas/.emacs.d/org/todo.org...
    >> > Wrote /home/boudiccas/.emacs.d/org/todo.org
    >> 
    >> I am now completely confused. Did kill emacs and started emacs -Q?

    > Yes.

    >> Did you set debug-on-error to t?

    > Yes.

    >> Did you load auto-capitalize manually

    > Yes.

    >> and did you turn it on?
    >> 
    > Yes.

And did it work? If not please provide the bug trace.

If it worked the problem is in our .init file

Uwe 

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

* [SOLVED] Re:  problems with auto-capitalise
  2016-04-29 19:13 ` Milan Zamazal
@ 2016-04-30 17:36   ` Sharon Kimble
  0 siblings, 0 replies; 8+ messages in thread
From: Sharon Kimble @ 2016-04-30 17:36 UTC (permalink / raw)
  To: Milan Zamazal; +Cc: emacs-orgmode

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

Milan Zamazal <pdm@zamazal.org> writes:

> Do you use desktop.el?  I experienced similar problems with it.  I don't
> remember the details but I've got the following in my Emacs
> configuration that probably serves as my workaround of the problem:
>
>   (add-to-list 'desktop-minor-mode-handlers
>                '(auto-capitalize . (lambda (desktop-buffer-locals) (auto-capitalize-mode 1))))


Thanks Milan, this works extremely well and completely solves 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.0.93

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

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

end of thread, other threads:[~2016-04-30 17:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-29 11:00 problems with auto-capitalise Sharon Kimble
2016-04-29 13:10 ` Uwe Brauer
2016-04-29 14:33   ` Sharon Kimble
2016-04-29 17:05     ` Uwe Brauer
2016-04-29 17:25       ` Sharon Kimble
2016-04-29 21:05         ` Uwe Brauer
2016-04-29 19:13 ` Milan Zamazal
2016-04-30 17:36   ` [SOLVED] " Sharon Kimble

Code repositories for project(s) associated with this public 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).