* bug#10499: 24.0.92; Fortran 90 mode does not fontify preprocessor directives
@ 2012-01-14 3:29 Ushnish Basu
2012-01-14 4:09 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Ushnish Basu @ 2012-01-14 3:29 UTC (permalink / raw)
To: 10499
In Fortran 90 mode, preprocessor directives such as '#ifdef', '#else',
'#endif' are not fontified correctly, unlike in Fortran 77 mode.
To reproduce, open two files - 'test.f90' and 'test.f'. In both, enter
the following lines:
#ifdef
#else
#endif
These should be correctly highlighted in test.f, but not in test.f90.
In GNU Emacs 24.0.92.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.6)
of 2012-01-12 on ubasu-desktop
Windowing system distributor `The X.Org Foundation', version 11.0.11004000
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: F90
Minor modes in effect:
which-function-mode: t
shell-dirtrack-mode: t
show-paren-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
abbrev-mode: t
Load-path shadows:
/usr/share/emacs/site-lisp/gnuplot-mode/gnuplot hides
/usr/local/share/emacs/site-lisp/gnuplot
/usr/share/emacs/site-lisp/gnuplot-mode/gnuplot-gui hides
/usr/local/share/emacs/site-lisp/gnuplot-gui
/usr/share/emacs/site-lisp/gnuplot-mode/info-look.20.3 hides
/usr/local/share/emacs/site-lisp/info-look.20.3
Features:
(shadow sort mail-extr message rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev
gmm-utils mailheader warnings emacsbug fortran add-log which-func imenu
f90 cus-edit help-mode multi-isearch dired-aux view dired tramp-cache
ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv
ess-noweb noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l
ess-sas-a executable ess-arc-d ess-vst-d ess-xls-d ess-lsp-l ess-sta-d
ess-sta-l make-regexp ess-sp6-d ess-sp5-d ess-sp3-d ess-r-d ess-r-args
ess-s-l ess-inf ess-utils ess-mode noweb-mode ess ess-custom ess-compat
ess-site mmm-auto mmm-vars mmm-compat scss-mode compile derived
zencoding-mode zencoding-trie php-mode etags cc-langs cl cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs speedbar sb-image ezimage dframe gnus gnus-ems nnheader
mail-utils wid-edit octave-mod smie tramp tramp-compat auth-source eieio
byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util mm-util
mail-prsvr password-cache shell pcomplete comint ring format-spec advice
help-fns advice-preload tramp-loaddefs regexp-opt jka-compr paren delsel
cus-start cus-load info easymenu time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#10499: 24.0.92; Fortran 90 mode does not fontify preprocessor directives
2012-01-14 3:29 bug#10499: 24.0.92; Fortran 90 mode does not fontify preprocessor directives Ushnish Basu
@ 2012-01-14 4:09 ` Glenn Morris
2012-06-21 19:33 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2012-01-14 4:09 UTC (permalink / raw)
To: Ushnish Basu; +Cc: 10499
Ushnish Basu wrote:
> In Fortran 90 mode, preprocessor directives such as '#ifdef', '#else',
> #endif' are not fontified correctly, unlike in Fortran 77 mode.
They have never been fontified in f90-mode. It's trivial to add, but
will have to wait for after Emacs 24.1. (Also, fortran-mode uses the
wrong face.)
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#10499: 24.0.92; Fortran 90 mode does not fontify preprocessor directives
2012-01-14 4:09 ` Glenn Morris
@ 2012-06-21 19:33 ` Glenn Morris
0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2012-06-21 19:33 UTC (permalink / raw)
To: 10499-done
Version: 24.2
I added some f90 preprocessor highlighting to the emacs-24 branch, for
Emacs 24.2.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-21 19:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-14 3:29 bug#10499: 24.0.92; Fortran 90 mode does not fontify preprocessor directives Ushnish Basu
2012-01-14 4:09 ` Glenn Morris
2012-06-21 19:33 ` Glenn Morris
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).