Questions tagged [fortran]

The programming language Fortran.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Doom emacs deletes fortran module files

When I open a FORTRAN source file 'mod_module.f90' that defines a module 'mod_module' and another file named 'mod_module.mod' is present in the same directory, the later one gets deleted. This only ...
user avatar
  • 113
1 vote
1 answer
35 views

Trouble with f90 major mode, maltreatment of highlighting in continuation lines

My emacs (version 27.1 on a work computer where I do not have administrative privileges) seems strange. I am editing a *.f90 file and the major mode is correctly identified as f90. But the ...
user avatar
1 vote
1 answer
213 views

I am writing Fortran code in emacs but the tab key behaviour changes in F90 mode. Can I change it back?

On loading a f90 file, emacs changes to F90 mode, which changes some emacs behaviours. When I press <tab> emacs inserts two spaces at the left margin. Now when I use the backspace key it deletes ...
user avatar
0 votes
1 answer
83 views

flycheck how to silence certain errors or alternatively how to show warnings when errors are present

mac osx catalina (latest) emacs 26.3 from homebrew flycheck gfortran 9.3.0 I am trying to use flycheck to clean up and reorganize some code. Right now I would like to see some warnings to clean them ...
user avatar
  • 345
0 votes
2 answers
162 views

flycheck cannot use gfortran, executable not found

Previously I had been able to use flycheck for fortran files, but something seems to have broken perhaps during an update. Mac OSX catalina (latest) gfortran 9.3.0 from homebrew emacs 26.3 from ...
user avatar
  • 345
0 votes
0 answers
38 views

Use two different Fortran standards in flycheck

I work a lot with Fortran, both with newer standards like f90/f95 (f90-mode in emacs) as well as the f77 standard (fortran-mode in emacs). I want to enable flycheck so it works with both standards (...
user avatar
  • 143
1 vote
2 answers
96 views

Make 'ctags' detect fortran's "module procedure" pattern?

I am using ctags to index fortran files for code navigation in Emacs with M-.. In doing so I have noticed that it doesn't recognize declarations of the form MODULE PROCEDURE MySubroutineName ! or ...
user avatar
  • 1,481
0 votes
1 answer
206 views

M-x compile fortran

I set up M-x compile to automatically run appropriate commands depend on on the file types. For example, for C++ (add-hook 'c++-mode-hook (lambda () (set (make-local-variable '...
user avatar
  • 275
2 votes
1 answer
131 views

Improving Etags support for fortran?

When using xref with Fortran I noticed that indexing by etags is highly incomplete; Almost exclusively subroutines (and maybe functions) are index, but modules, types, constants and global variables ...
user avatar
  • 1,481