Comment region in Fortran using jed

10 respuestas [Último envío]
stearinljus lys
Desconectado/a
se unió: 06/01/2019

Hello everybody!
I write programs in Fortran using jed, and want to comment a region in file.
I mark the region, then go to menu: edit-> Region Ops -> Comment.
But the region does not get commented, and I get the message:
No comment strings defined for F90-free mode.
How shall I proceed?
Thank you for the answers
Farhad

Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

According to Section 5.6 of https://www.guidogonzato.it/jed/jed-quickref.html :
When you write code, you can comment out regions of text with M-X comment_region. The function uncomment_region performs the opposite action.

It is the same in Emacs, which has the shortcut M-; too. In JED, it is rather Esc ; according to Section 7.4. That shortcut works as well in Emacs. I guess you get the same effect going through the menu. Nevertheless, given the error message, the variable Fortran_Comment_String mentioned Section 7.4 must be undefined. Section 1.5 deals with customization, which certainly includes defining Fortran_Comment_String.

https://nsrc.org/workshops/2017/pacnog21-virtual/references/jed-reference.html affirms "JED is a drop-in replacement for the EMACS editor, which has gotten very large and slow.". Nevertheless, it is the first time I hear about it. Given that the latest stable release is more than 12 years old, JED is obviously little developed nowadays. Why not using Emacs? It has a fortran-mode, of course, and knows out of the box how to comment it (by default, prefixing the line with "c$$$"). You would far more easily find resources to learn Emacs (starting with its tutorial, in the Help menu). If you find Emacs "slow" to start, that is probably because you do not use the command emacsclient: https://yewtu.be/watch?v=s0ed8Da3mjE (I personally simply launch Emacs, rather than the deamon, as a startup application and keep it opened all the time).

stearinljus lys
Desconectado/a
se unió: 06/01/2019

Thank you for answering.
Actually I have had thoughts about installing emacs. But I failed to install it.
Using:
sudo apt install emacs24
will give al lot of messages, of which the last one is:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Same if I use "apt-get" instead of "apt".

I tried with Add/Remove Applications in the "trisquel menu". It does not work either.
So I went back to jed.

Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

The first (not last) error is the most relevant: please show the whole output of 'sudo apt update' and 'sudo apt install emacs'.

stearinljus lys
Desconectado/a
se unió: 06/01/2019

I send outputs as file attachments. I will be grateful if you have time to read them.

AdjuntoTamaño
sudoUpdate.txt 3.43 KB
sudoInstall.txt 6.36 KB
Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Substitute "https" for "http" in /etc/apt/sources.list, for instance executing that in a terminal:
$ sudo sed -i s/https/http/ /etc/apt/sources.list
You should then be able to update...
$ sudo apt update
... and to upgrade:
$ sudo apt upgrade

After upgrading, you can go back to using HTTPS:
$ sudo sed -i s/http/https/ /etc/apt/sources.list

The configuration of the repository for Yandex Browser Beta is incorrect. Yandex Browser is proprietary software. For your own freedoms, you should purge it...
$ sudo apt purge yandex-browser-beta
... and remove the repository:
$ sudo rm /etc/apt/sources.list.d/yandex-browser-beta.list

If you need/want a Web browser that, like Yandex, uses the Blink engine, prefer Ungoogled Chromium... but let us keep that for later. There is indeed a far greater problem with your system: it is Trisquel 8, which has not been receiving updates since April! You want to upgrade to Trisquel 9!

First of all, I would remove the other third-party repository you added, the PPA for Firefox Beta. That command should do it:
$ sudo add-apt-repository -r ppa:mozillateam/firefox-next

You can add it back after upgrading to Trisquel 9, although I doubt you will really need Firefox Beta (Trisquel 9 currently has Abrowser 95, based on Firefox 95, the latest stable version).

Many users faced difficulties to upgrade to Trisquel 9. In particular, "Update Manager" failed to signal its existence. I guess it is the case on your system. To upgrade from the terminal, you can first try the "normal way" to proceed that https://trisquel.info/forum/trisquel-90-etiona-out#comment-152945 gave:
$ sudo do-release-upgrade

For many users (including myself), that did not work, but that did it:
$ sudo do-release-upgrade -d

For some users, an even more low-level approach (substituting "flidas" for "etiona" in /etc/apt/sources/list) was necessary:
$ sudo sed -i sed/flidas/etiona/ /etc/apt/sources.list
$ sudo apt update
$ sudo apt full-upgrade

By the way, the very first command I gave above should be enough to then be able to install Emacs (or any other package):
$ sudo apt install emacs

But you definitely want to upgrade to Trisquel 9!

stearinljus lys
Desconectado/a
se unió: 06/01/2019

Thanks again for helping.
The only reason I used Yandex, was that I couldn't make Zoom work with Abrowser (My company use Zoom, so I am forced to use it). Now I have purged Yandex as you said. (I will find out another way to make Zoom work.)

I did all things you have said until (and including)

$ sudo do-release-upgrade -d

I got following message:

$ Please install all available updates for your release before upgrading.

I don't understand really. Shall I continue with other commands that you have suggested?

And yes, I want to upgrade to Trisquel 9.

Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

That means you have not executed that command beforehand:
$ sudo apt upgrade
You need to execute that command (after the two previous ones in my last post) before upgrading to Trisquel 9.

Ark74

I am a member!

I am a translator!

Desconectado/a
se unió: 07/15/2009

Maybe,
sudo apt dist-upgrade

As it might be required to install new dependencies.

stearinljus lys
Desconectado/a
se unió: 06/01/2019

Thank you Magic Banana, now I have emacs.

Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

On Trisquel 9? I repeat: Trisquel 8 has not been receiving updates since April!