comp.lang.ada
 help / color / mirror / Atom feed
* Emacs Ada mode 5.0.1 available in Gnu ELPA
@ 2014-02-04 15:01 Stephen Leake
  2014-02-05  7:23 ` Pascal Obry
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Stephen Leake @ 2014-02-04 15:01 UTC (permalink / raw)


Emacs Ada mode 5.0.1 is now available in Gnu ELPA.

It requires Emacs 24.3; I'm working on backporting to Emacs 24.2 for
Debian stable, and possibly 23.4.

This supercedes the Emacs Ada mode 4.0b that is in the Emacs
distribution; that will be removed in a future distribution.

To install from Gnu ELPA:

add to ~./emacs:

(package-initialize)

then invoke M-x list-packages, install Ada mode 5.0.1.

To install from source: download from
http://stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html

This is the long-awaited complete rewrite, supporting almost all Ada
2012 syntax (aspects are not there yet, but I already have one request
for them, so they will be soon). It has been alpha-tested by me and
several users on the Emacs Ada mode mailing list, so it is ready for
general use.

It is based on an OpenToken-generated grammar, which enables more
sophisticated navigation featurs (ie move from 'if' to 'then', 'else',
'end if' etc). It's also a _lot_ easier to maintain.

It also includes experimental support for the new GNAT cross-reference
tool gnatinspect, which handles C, C++, Ada.

For more info, see the updated Ada mode manual in the package in info format,
or at http://stephe-leake.org/emacs/ada-mode/ada-mode.html

Report bugs/requests to the Emacs Ada mode mailing list; see 
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

-- 
-- Stephe


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

* Re: Emacs Ada mode 5.0.1 available in Gnu ELPA
  2014-02-04 15:01 Emacs Ada mode 5.0.1 available in Gnu ELPA Stephen Leake
@ 2014-02-05  7:23 ` Pascal Obry
  2014-02-13 16:43 ` Lucretia
  2014-02-13 21:24 ` Pascal Obry
  2 siblings, 0 replies; 10+ messages in thread
From: Pascal Obry @ 2014-02-05  7:23 UTC (permalink / raw)



Hi Stephen,

> Emacs Ada mode 5.0.1 is now available in Gnu ELPA.
> 
> It requires Emacs 24.3; I'm working on backporting to Emacs 24.2 for
> Debian stable, and possibly 23.4.
> 
> This supercedes the Emacs Ada mode 4.0b that is in the Emacs
> distribution; that will be removed in a future distribution.
> 
> To install from Gnu ELPA:
> 
> add to ~./emacs:
> 
> (package-initialize)
> 
> then invoke M-x list-packages, install Ada mode 5.0.1.

Not sure my message went through the list yesterday... Another try :)

I have installed this without trouble. Will report issues.

Thanks for the great work!

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B


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

* Re: Emacs Ada mode 5.0.1 available in Gnu ELPA
  2014-02-04 15:01 Emacs Ada mode 5.0.1 available in Gnu ELPA Stephen Leake
  2014-02-05  7:23 ` Pascal Obry
@ 2014-02-13 16:43 ` Lucretia
  2014-02-13 16:45   ` Lucretia
                     ` (2 more replies)
  2014-02-13 21:24 ` Pascal Obry
  2 siblings, 3 replies; 10+ messages in thread
From: Lucretia @ 2014-02-13 16:43 UTC (permalink / raw)


Hi,

It's not working for me.

Whit this .emacs file:

<code>
; Emacs package manager
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
                         ("marmalade" . "http://marmalade-repo.org/packages/")
                         ("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)

; Set the default window dimensions
(when window-system (set-frame-size (selected-frame) 121 53))

; Don't wrap the lines, ever!
(setq-default truncate-lines t)

; don't show the startup screen.
(setq inhibit-startup-screen t)

; enable syntax highlighting
(require 'font-lock)

; Give me line/column numbers all the time.
(column-number-mode 1)
(line-number-mode 1)

; Colour themes.
(require 'color-theme)
(eval-after-load "color-theme"
  '(progn
     (color-theme-initialize)
     (color-theme-clarity)))
</code>

I just get the following message when I create a new Ada file:

"File mode specification error: (wrong-type-argument stringp nil)"

Doing M-x ada-mode gives:

"wrong type argument: stringp, nil"

Enabling "(add-to-list 'load-path (expand-file-name "~/.emacs.d/elpa/ada-mode-5.0.1/ada-mode.el"))" or "(add-to-list 'load-path (expand-file-name "ada-mode"))" also gives the same error.

I'm not an emacs lisper, I tend to cut n paste other's to get mine to work.

Any ideas?

Thanks,
Luke.

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

* Re: Emacs Ada mode 5.0.1 available in Gnu ELPA
  2014-02-13 16:43 ` Lucretia
@ 2014-02-13 16:45   ` Lucretia
  2014-02-13 18:12   ` Simon Wright
  2014-02-14 13:55   ` Stephen Leake
  2 siblings, 0 replies; 10+ messages in thread
From: Lucretia @ 2014-02-13 16:45 UTC (permalink / raw)


Forgot to mention:

GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.6

on Debian Jessie (updated yesterday).

Linux rogue 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64 GNU/Linux


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

* Re: Emacs Ada mode 5.0.1 available in Gnu ELPA
  2014-02-13 16:43 ` Lucretia
  2014-02-13 16:45   ` Lucretia
@ 2014-02-13 18:12   ` Simon Wright
  2014-02-14 13:55   ` Stephen Leake
  2 siblings, 0 replies; 10+ messages in thread
From: Simon Wright @ 2014-02-13 18:12 UTC (permalink / raw)


Lucretia <laguest9000@googlemail.com> writes:

> (setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
>                          ("marmalade" . "http://marmalade-repo.org/packages/")
>                          ("melpa" . "http://melpa.milkbox.net/packages/")))

My package-archives is (("gnu" . "http://elpa.gnu.org/packages/")) (not
sure how that got set).

> (package-initialize)

I have this:
(setq package-enable-at-startup nil)  ;<============
(package-initialize)

It's a little while since I set it up, but I think the reason is so I
can (require 'some-elpa-package) as normal.


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

* Re: Emacs Ada mode 5.0.1 available in Gnu ELPA
  2014-02-04 15:01 Emacs Ada mode 5.0.1 available in Gnu ELPA Stephen Leake
  2014-02-05  7:23 ` Pascal Obry
  2014-02-13 16:43 ` Lucretia
@ 2014-02-13 21:24 ` Pascal Obry
  2014-02-14 14:10   ` Stephen Leake
  2 siblings, 1 reply; 10+ messages in thread
From: Pascal Obry @ 2014-02-13 21:24 UTC (permalink / raw)



Hello,

I found one annoying issue, it is not possible to define case exception.
Emacs keep complaining that I have not defined the
ada-case-exception-file even though I have set it in the customize
module. Any idea?

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B


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

* Re: Emacs Ada mode 5.0.1 available in Gnu ELPA
  2014-02-13 16:43 ` Lucretia
  2014-02-13 16:45   ` Lucretia
  2014-02-13 18:12   ` Simon Wright
@ 2014-02-14 13:55   ` Stephen Leake
  2014-02-16  8:34     ` Stephen Leake
  2 siblings, 1 reply; 10+ messages in thread
From: Stephen Leake @ 2014-02-14 13:55 UTC (permalink / raw)


Lucretia <laguest9000@googlemail.com> writes:

> Whit this .emacs file:
>
> <snip>

Please try to reproduce from 'emacs -Q':

# in shell:
$ emacs -Q

;; in Emacs:

M-x list-packages

;; should show ada-mode 5.0.1 installed

C-x C-f <an Ada file>

If that works, the problem is somewhere in your .emacs

If it doesn't work, the problem is in the Debian distribution of emacs.
In that case, I'll investigate.

-- 
-- Stephe


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

* Re: Emacs Ada mode 5.0.1 available in Gnu ELPA
  2014-02-13 21:24 ` Pascal Obry
@ 2014-02-14 14:10   ` Stephen Leake
  2014-02-14 18:45     ` Pascal Obry
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Leake @ 2014-02-14 14:10 UTC (permalink / raw)


Pascal Obry <pascal@obry.net> writes:

> I found one annoying issue, it is not possible to define case exception.
> Emacs keep complaining that I have not defined the
> ada-case-exception-file even though I have set it in the customize
> module. Any idea?

I can reproduce that.

One work-around is to use an Emacs Ada mode project file, and set the
case exception file there. Apparently that's the only use case I tested.

Will be fixed in 5.0.2


Or, if you are up to patching elisp:

in ~/.emacs.d/elpa/ada-mode-5.0.1/ada-mode.el, change the start of
ada-case-create-exception to be:

  (interactive)
  (let ((casing (or (ada-prj-get 'casing)
		    (if (listp ada-case-exception-file)
			ada-case-exception-file
		      (list ada-case-exception-file)))))


Then do M-x byte-compile-file ada-mode.el

--
-- Stephe

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

* Re: Emacs Ada mode 5.0.1 available in Gnu ELPA
  2014-02-14 14:10   ` Stephen Leake
@ 2014-02-14 18:45     ` Pascal Obry
  0 siblings, 0 replies; 10+ messages in thread
From: Pascal Obry @ 2014-02-14 18:45 UTC (permalink / raw)



Stephen,

> Will be fixed in 5.0.2

Thanks!

> Or, if you are up to patching elisp:

Sure...

> in ~/.emacs.d/elpa/ada-mode-5.0.1/ada-mode.el, change the start of
> ada-case-create-exception to be:
> 
>   (interactive)
>   (let ((casing (or (ada-prj-get 'casing)
>     (if (listp ada-case-exception-file)
> ada-case-exception-file
>       (list ada-case-exception-file)))))
> 
> 
> Then do M-x byte-compile-file ada-mode.el

Working fine, thanks a lot!


-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B




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

* Re: Emacs Ada mode 5.0.1 available in Gnu ELPA
  2014-02-14 13:55   ` Stephen Leake
@ 2014-02-16  8:34     ` Stephen Leake
  0 siblings, 0 replies; 10+ messages in thread
From: Stephen Leake @ 2014-02-16  8:34 UTC (permalink / raw)


Stephen Leake <stephen_leake@stephe-leake.org> writes:

> Lucretia <laguest9000@googlemail.com> writes:
>
>> Whit this .emacs file:
>>
>> <snip>
>
> Please try to reproduce from 'emacs -Q':
>
> # in shell:
> $ emacs -Q
>
> ;; in Emacs:
>
> M-x list-packages
>
> ;; should show ada-mode 5.0.1 installed
>

I left out a step here: you need 

M-x package-initialize

Otherwise the next step uses the built-in Ada mode 4.01

> C-x C-f <an Ada file>
>
> If that works, the problem is somewhere in your .emacs
>
> If it doesn't work, the problem is in the Debian distribution of emacs.
> In that case, I'll investigate.

-- 
-- Stephe

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

end of thread, other threads:[~2014-02-16  8:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-04 15:01 Emacs Ada mode 5.0.1 available in Gnu ELPA Stephen Leake
2014-02-05  7:23 ` Pascal Obry
2014-02-13 16:43 ` Lucretia
2014-02-13 16:45   ` Lucretia
2014-02-13 18:12   ` Simon Wright
2014-02-14 13:55   ` Stephen Leake
2014-02-16  8:34     ` Stephen Leake
2014-02-13 21:24 ` Pascal Obry
2014-02-14 14:10   ` Stephen Leake
2014-02-14 18:45     ` Pascal Obry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox