* emacs fortran 90 model
@ 2005-04-10 20:28 Seiichiro Tanizaki
0 siblings, 0 replies; 3+ messages in thread
From: Seiichiro Tanizaki @ 2005-04-10 20:28 UTC (permalink / raw)
When I edit the fortran source code with the suffix .f90, the
digit-argument command doesn't work for a certain character.
Specifically, ESC n with "*" or "-" only repeat the character once, but
not n times. It works fine for other characters. Would someone help me
figuring out this? I use Emacs version 21.2.1 on linux.
Sincerely,
Seiichiro
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs fortran 90 model
[not found] <mailman.1003.1113163239.2895.help-gnu-emacs@gnu.org>
@ 2005-04-11 15:18 ` Glenn Morris
2005-04-11 15:24 ` rgb
1 sibling, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2005-04-11 15:18 UTC (permalink / raw)
Seiichiro Tanizaki wrote:
> Specifically, ESC n with "*" or "-" only repeat the character once,
> but not n times. It works fine for other characters. Would someone
> help me figuring out this? I use Emacs version 21.2.1 on linux.
That's a bug in f90.el, which will be fixed in future versions. In the
meantime, add the following to your .emacs to correct it:
(eval-after-load "f90"
'(defun f90-electric-insert (&optional arg)
"Change keyword case and auto-fill line as operators are inserted."
(interactive "*p")
(self-insert-command arg)
(if auto-fill-function (f90-do-auto-fill)
(f90-update-line))))
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs fortran 90 model
[not found] <mailman.1003.1113163239.2895.help-gnu-emacs@gnu.org>
2005-04-11 15:18 ` Glenn Morris
@ 2005-04-11 15:24 ` rgb
1 sibling, 0 replies; 3+ messages in thread
From: rgb @ 2005-04-11 15:24 UTC (permalink / raw)
> When I edit the fortran source code with the suffix .f90, the
> digit-argument command doesn't work for a certain character.
> Specifically, ESC n with "*" or "-" only repeat the character once,
but
> not n times. It works fine for other characters. Would someone help
me
> figuring out this? I use Emacs version 21.2.1 on linux.
If you type C-h c <char> you normally see self-insert-command.
I'll bet those characters map to something else for some reason.
If you don't regularly use prefix args that way yourself it's
easy to forget to add support for them when writing a function.
It's something you must explicitly code for. It's likely the
function(s) currently being called for those keys don't have
such support.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-11 15:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-10 20:28 emacs fortran 90 model Seiichiro Tanizaki
[not found] <mailman.1003.1113163239.2895.help-gnu-emacs@gnu.org>
2005-04-11 15:18 ` Glenn Morris
2005-04-11 15:24 ` rgb
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.