Re: [O] problems with auto-capitalise

2016-04-29 Thread Uwe Brauer
>>> "Sharon" == Sharon Kimble  writes:

> Uwe Brauer  writes:
>> > Uwe Brauer  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
>> >  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 




Re: [O] problems with auto-capitalise

2016-04-29 Thread Milan Zamazal
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




Re: [O] problems with auto-capitalise

2016-04-29 Thread Sharon Kimble
Uwe Brauer  writes:

> > Uwe Brauer  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
> >  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


signature.asc
Description: PGP signature


Re: [O] problems with auto-capitalise

2016-04-29 Thread Uwe Brauer

> Uwe Brauer  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
>  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 




Re: [O] problems with auto-capitalise

2016-04-29 Thread Sharon Kimble
Uwe Brauer  writes:

 "Sharon" == Sharon Kimble  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\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
 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


signature.asc
Description: PGP signature


Re: [O] problems with auto-capitalise

2016-04-29 Thread Uwe Brauer
>>> "Sharon" == Sharon Kimble  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\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