From: Mark van Schilfgaarde <mark.vanschilfgaarde@gmail.com>
To: 20985@debbugs.gnu.org
Subject: bug#20985: Bug in fortran fixed format mode with lines longer than 72 characters
Date: Sun, 5 Jul 2015 18:20:18 +0100 [thread overview]
Message-ID: <CA+3fr7NPiVRMEyQMWUbKUmDuP6EaD3Fan0YCncjiRccbyeeyHQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]
I am reporting a bug in emacs version 24.5.1. It appears both on a
mac an on a linux machine.
Some functions in fortran fixed-format mode, with lines exceeding 72
columns (132 for example), still assume a 72 column width, independent
of the value of variable fortran-line-length
In particular sexp operations like (forward-sexp) assume characters
past 72 columns are comments.
Consider the attached "example.f" : Read the file with
emacs -Q example.f
Change variable fortran-line-length :
(set-variable (quote fortran-line-length) 132 nil)
so that now:
(describe-variable (quote fortran-line-length))
returns:
fortran-line-length is a variable defined in `fortran.el'.
Its value is 132
Original value was 72
Local in buffer example.f; global value is 72
Move the point just after test1, so it precedes the first expression (..).
In this case forward-sexp works as expected.
Move the point just after test2, so it precedes the second expression (..).
In this case forward-sexp fails to find the end of the expression.
Note also that "twelve)" is highlighted as though it is a comment.
This problem does not appear in emacs 21.4
--
Professor Mark van Schilfgaarde Tel. +44 (0)207 848 7246
Department of Physics Fax. +44 (0)20 7848 2420
King's College London e-mail:
Mark.vanSchilfgaarde@gmail.com
Strand, London WC2R 2LS, UK http://www.kcl.ac.uk/physics
[-- Attachment #2: example.f --]
[-- Type: application/octet-stream, Size: 184 bytes --]
program main
call test1(one,two,three,four,five,six,seven,eight,nine,ten)
call test2(one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve)
end
next reply other threads:[~2015-07-05 17:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-05 17:20 Mark van Schilfgaarde [this message]
2015-07-06 0:00 ` bug#20985: Bug in fortran fixed format mode with lines longer than 72 characters Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+3fr7NPiVRMEyQMWUbKUmDuP6EaD3Fan0YCncjiRccbyeeyHQ@mail.gmail.com \
--to=mark.vanschilfgaarde@gmail.com \
--cc=20985@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.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).