1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 09:00:31 -08:00
Commit graph

1240 commits

Author SHA1 Message Date
Richard M. Stallman
bb7830ef8a (c-postprocess-file-styles): If a file style or file offsets are set,
make the variables local to the buffer (via make-local-variable).

(c-java-method-key): Variable deleted.

(c-C-extra-toplevel-key)
(c-C++-extra-toplevel-key, c-extra-toplevel-key): New variables
which parameterize the search for additional top-level enclosing
constructs.

(c-mode-base-map): c-mark-function moved back to M-C-h.
1998-02-17 07:10:11 +00:00
Richard M. Stallman
e1c458ae08 (c-forward-syntactic-ws, c-backward-syntactic-ws):
Don't narrow, just make a simple check against the given limit.

(c-collect-line-comments): New function.

(c-literal-limits): New function that finds the start and end pos
of a comment or string surrounding point.

(c-literal-limits-fast): A faster variant of `c-literal-limits'
for newer Emacsen where the state returned from
`parse-partial-sexp' contains the starting pos of the last literal.

(c-parse-state): Use (c-point 'bod) instead of
beginning-of-defun directly.

(c-guess-basic-syntax): Fixed a few byte compiler warnings.

(c-backward-to-start-of-do): Break infloop for
invalid code, e.g. when someone types while (TRUE) { at the top of
a buffer, we shouldn't hang when the { is typed!

(c-backward-to-start-of-if): Ensure never
move forward, not even if point < lim.

(c-search-uplist-for-classkey): When searching up for a class key,
instead of hardcoding the extended search for "extern", use the new
variable c-extra-toplevel-key, which is language dependent.  For C++,
this variable includes the keyword "namespace" which will match C++
namespace introducing blocks.

(c-guess-basic-syntax): Support for recognizing C++ namespace
blocks, by elaborating on the mechanism used to find external
language blocks.  Searches which hardcoded "extern" now use
c-extra-toplevel-key, a language dependent variable.  Case clauses
that were modified: CASE 5A.1, CASE 5A.4, CASE 5F, CASE 5I, CASE
14A.

CASE 3: we can now determine whether we're at the beginning of a
 	cpp macro definition, or inside the middle of one. Set syntax to
 	'cpp-macro in the former case, 'cpp-macro-cont in the latter.  In
 	both cases, the relpos is the beginning of the macro.

(c-forward-syntactic-ws): Added code that skips forward over
multi-line cpp macros.

(c-beginning-of-macro): Moved, and made into a defsubst.  This
function can now actually find the beginning of a multi-line C
preprocessor macro.

(c-backward-syntactic-ws): Use c-beginning-of-macro to skip backwards
over multi-line macro definitions.

(c-in-literal, c-fast-in-literal): Use c-beginning-of-macro to
find out whether we're in a multi-line macro definition.

(c-fast-in-literal): Function which should be faster than
c-in-literal.  In XEmacs, this uses buffer-syntactic-context.
1998-02-17 07:08:44 +00:00
Richard M. Stallman
d5436a295e (c-point): In XEmacs, use scan-lists + buffer-syntactic-context-depth.
(c-emacs-features): Added autoload cookie.
1998-02-17 07:06:17 +00:00
Richard M. Stallman
28c236dee3 (c-beginning-of-statement)
(c-end-of-statement): Do not move by sentence in strings.

(c-beginning-of-statement): Major rewrite.

(c-beginning-of-defun, c-indent-defun):
Use (c-point 'bod) instead of beginning-of-defun directly.

(c-beginning-of-defun, c-end-of-defun): New commands.

(c-beginning-of-statement): When moving forward by sentences, because
we're either inside or at the start of a comment, be sure to limit
movement to only within the extent of the comment.

(c-electric-colon): Don't insert newlines before or after scope
operators, regardless of the value of c-hanging-colons.

(c-electric-brace): namespace-open and namespace-close braces can hang.

(c-comment-line-break-function): When breaking a
line-oriented comment, copy the comment leader from the previous
line instead of hardcoding it to "// ".  This ensures that
whitespace between the slashes and the text is preserved.

(c-electric-pound, c-electric-brace)
(c-electric-slash, c-electric-star, c-electric-semi&comma)
(c-electric-colon, c-electric-lt-gt, c-scope-operator)
(c-electric-backspace, c-electric-delete)
(c-indent-command, c-indent-exp, c-indent-defun)
(c-backslash-region, c-fill-paragraph): Add "*" to interactive spec.

(c-fill-paragraph): regexp-quote the
fill-prefix when search forward for the end of line oriented comments.
(c-backslash-region): Do not preserve the zmacs region (XEmacs).
1998-02-17 07:04:48 +00:00
Richard M. Stallman
eae8661813 (c-lineup-close-paren)
(c-indent-one-line-block): New indentation functions.

(c-semi&comma-no-newlines-before-nonblanks)
(c-semi&comma-no-newlines-for-oneline-inliners): New functions.

(c-lineup-dont-change): New lineup function that leaves the current
line's indentation unchanged.  Used for the new cpp-macro-cont
syntactic symbol.
1998-02-17 07:02:18 +00:00
Richard M. Stallman
4d7ce99c2f (sh-font-lock-keywords): Fontify sh-style function names in declarations. 1998-02-15 00:30:24 +00:00
Dave Love
d575e99d72 (scheme-imenu-generic-expression): Simplify regexps.
(dsssl-imenu-generic-expression): Likewise
(scheme-mode-variables): Set imenu-syntax-alist.
(dsssl-mode): Remove `!' from font-lock-defaults.  Set
imenu-syntax-alist.
1998-02-12 18:20:21 +00:00
Richard M. Stallman
0775c032ae (sh-set-shell): Use standard-syntax-table if none other is specified. 1998-02-11 07:14:24 +00:00
Dave Love
b5812513a4 (compilation-scroll-output): New variable.
(compile-internal): Use it.  Set lazy-lock-defer-on-scrolling.
1998-02-09 19:40:38 +00:00
Kenichi Handa
a0eb76e1b1 (etags): Fix defgroup syntax. Why should it
be done again and again?
1998-02-04 11:24:28 +00:00
Dan Nicolaescu
b6a386ad60 (hs-special-modes-alist): Improved the regexp for java. 1998-02-02 07:29:59 +00:00
Richard M. Stallman
7ee906030a (hs-special-modes-alist): Improved the regexp for java. 1998-02-02 00:17:19 +00:00
Dave Love
7977773d3f Various docstring and commentary fixes, including
note of current maintainer.
(fortran-mode): Use imenu-syntax-alist.
(fortran-imenu-generic-expression): Use
fortran-continuation-string, not always `+'.
(fortran-font-lock-keywords-1): Include symbol syntax as well
as word, following syntax table changes.
(fortran-imenu-generic-expression): Likewise.
(fortran-mode-map): Add a menu.
(fortran-mode-version, fortran-startup-message): Delete
misleading variables.
(fortran-mode): Don't use them.
(fortran-column-ruler-fixed, fortran-column-ruler-tab): Fix
leading \ which made `0' into null.
(fortran-join-lines): New function and key binding.
(fortran-narrow-to-subprogram): New function and key binding.
(fortran-mode-syntax-table): Make ?., ?_, ?$ symbol, not word.
1998-01-30 17:49:37 +00:00
Richard M. Stallman
b533f3c570 (find-tag-marker-ring-length): New variable.
(find-tag-marker-ring): New variable.
(tags-location-ring): New variable replacing tags-location-ring.
(tags-location-stack): Deleted.
(tags-table-format-hooks): Doc fix.
(initialize-new-tags-table): Init find-tag-marker-ring,
tags-location-ring.
(tags-reset-tags-tables): Doc fix.  Set tags-location-ring,
find-tag-marker-ring.
(find-tag-noselect): Doc fix.  Use tags-location-ring,
find-tag-marker-ring.
(find-tag, find-tag-other-window, find-tag-other-frame,
find-tag-regexp): Doc fix.
(pop-tag-mark): New function.
(esc-map): Bind pop-tag-mark.
1998-01-29 09:10:09 +00:00
Andreas Schwab
28d16ed35b Customized. 1998-01-26 11:29:46 +00:00
Richard M. Stallman
cef926f318 (sh-case): Fix paren error. 1998-01-26 02:33:48 +00:00
Richard M. Stallman
83a139e3e7 (etags): Fix defgroup syntax. 1998-01-19 20:24:16 +00:00
Karl Heuer
d2ddb97469 Initial revision 1998-01-18 03:39:09 +00:00
Karl Heuer
d0ed5e526e (etags): Fix defgroup syntax. 1998-01-18 03:33:26 +00:00
Richard M. Stallman
99783bde12 Customized.
(tags-revert-without-query): New option.
(tags-verify-table): Test tags-revert-without-query.
1997-12-25 01:11:47 +00:00
Richard M. Stallman
f0f68b256f (cc-imenu-objc-function): Use bufsubst-fun as a variable, not as a function. 1997-12-22 07:10:19 +00:00
Dave Love
2b20743d79 Define indentation in normal dialect for let-syntax,
letrec-syntax, syntax-rules, call-with-values, dynamic-wind.
(scheme-mode-map): Remove lisp-complete-symbol.  Add
uncomment-region.
(scheme-mode-hook, dsssl-mode-hook): Declare customized.
(dsssl-sgml-declaration): Fix customization.
1997-12-13 22:21:03 +00:00
Dave Love
c0b08eb017 Use imenu-case-fold-search. 1997-12-12 17:10:08 +00:00
Simon Marshall
87002f70a3 Deal with `#'s in variable references. 1997-12-04 19:47:59 +00:00
Karl Heuer
9d8354ef19 Require imenu. 1997-12-04 05:17:31 +00:00
Karl Heuer
a04f05bdd6 (inferior-octave-directory-tracker):
Anchor regexp match to beginning of command string.
1997-12-04 04:39:00 +00:00
Karl Heuer
2c239c8061 (prolog-mode-variables):
Set imenu-generic-expression.
1997-12-04 04:28:41 +00:00
Karl Heuer
aa2c242656 (sh-imenu-generic-expression): New variable.
(sh-mode): Make imenu-generic-expression local.
(sh-set-shell): Set imenu-generic-expression based on which shell.
1997-12-04 04:27:50 +00:00
Dave Love
59c14ec62d (sh-mode): Set `comment-start-skip' always. 1997-11-30 12:21:42 +00:00
Richard M. Stallman
85d27e9b10 Update author email address. 1997-11-25 03:40:58 +00:00
Richard M. Stallman
761aea38d9 (scheme-mode-variables): Bind normal-auto-fill-function. 1997-11-24 03:43:19 +00:00
Karl Heuer
fcae1b4cb2 (perl-mode): Delete autoload cookie. 1997-11-23 02:14:14 +00:00
Karl Heuer
f83d2997fb Initial revision 1997-11-23 02:10:07 +00:00
Dave Love
240e9cda7d (fortran-imenu-generic-expression): Match
<type>*<mumble> and un-named block data, allow some continuations.
1997-11-18 23:21:34 +00:00
Karl Heuer
915c0e2515 (inferior-octave-startup-args):
Set to '("-i") to force interactive behavior.
(inferior-octave-prompt): Include the `debug' prompt issued by the
Octave `keyboard' command.
1997-11-11 04:00:53 +00:00
Karl Heuer
60db359433 (fortran-imenu-generic-expression): Doc fix.
Delete redundant setq.
1997-11-03 02:50:20 +00:00
Dave Love
9645c179af (fortran-imenu-generic-expression): New variable.
(fortran-mode): Use it.
1997-10-31 23:17:17 +00:00
Karl Heuer
c7c5bbc0b8 (compilation-error-regexp-alist):
New element for Sun F90.
1997-10-27 03:53:24 +00:00
Karl Heuer
d83ee57852 (octave-auto-indent): New variable.
(octave-electric-semi, octave-electric-space): Use it.

(octave-before-magic-comment-p): New func.
(calculate-octave-indent, octave-comment-indent): Use it.

(octave-auto-indent): New variable.
(octave-electric-semi, octave-electric-space): Use it.

(octave-maybe-insert-continuation-string):
New function.
(octave-auto-fill): No longer calls do-auto-fill.  Should now
avoid breaking lines after comment starts or before code line
continuation expressions.
(octave-fill-paragraph): Move forward a line if octave-auto-fill
gave up.

(octave-before-magic-comment-p): New func.
(octave-comment-indent): Handle magic comments correctly.
(calculate-octave-indent): Handle magic comments correctly.

(octave-abbrev-table): Added abbrevs for
switch, case, otherwise, and endswitch.
(octave-begin-keywords): Added switch.
(octave-else-keywords): Added case and otherwise.
(octave-end-keywords): Added endswitch.
(octave-block-match-alist): Added an entry for switch syntax.
(calculate-octave-indent): Added support for switch syntax.
(octave-block-end-offset): New function.
(octave-comment-indent): Fix a typo.

(octave-block-match-alist): Move
`otherwise' to right after `case' to have octave-close-block()
correctly close a `switch' block by `endswitch'.
1997-10-24 20:11:44 +00:00
Karl Heuer
82aba9f42f (c-initialize-builtin-style):
Only use copy-tree if it is
funcall-able.  This is the right patch, and was given by Erik Naggum
<erik@naggum.no>
1997-10-23 07:50:28 +00:00
Karl Heuer
c2efc1d098 (c-submit-bug-report): Remove
c-recognize-knr-p.  Add c-comment-continuation-stars.
1997-10-23 07:49:25 +00:00
Karl Heuer
8729df5954 Patches to Imenu support given by
"Masatake (jet) YAMATO" <masata-y@is.aist-nara.ac.jp>.
1997-10-23 07:49:06 +00:00
Karl Heuer
541aeedfa6 (c-progress-interval): Document new semantics 1997-10-23 07:48:50 +00:00
Karl Heuer
a7c7b186ff (c-progress-init, c-progress-fini):
Be slient if c-progress-interval
is nil.

(c-comment-line-break-function):
Fix for when comment starts at
comment-column and there is non-whitespace preceding this on the
current line.
1997-10-23 07:48:34 +00:00
Karl Heuer
6430c434e3 (c-guess-basic-syntax):
CASE 5F: extern-lang-close relpos should be
element 0 of inclass-p, not element 1.

(c-beginning-of-statement-1):
Watch out for keywords which have a
preceding underscore.
1997-10-23 07:48:09 +00:00
Karl Heuer
81eb2ff929 Remove version number. 1997-10-23 07:47:37 +00:00
Karl Heuer
13e91c8e41 Update version number. 1997-10-23 07:36:15 +00:00
Karl Heuer
55be952731 (c-end-of-statement-1):
Wrap backward-up-list in a c-safe call so no
error results when buffer contains only a comment and point is at
eob.
1997-10-23 07:33:21 +00:00
Karl Heuer
326c27f8f4 Define `/' in c-mode-base-map since all modes now support
c-electric-slash.

Define C-c C-e in mode-specific maps instead of c-mode-base-map since
c-expand-macro is meaningless in Java and IDL.
1997-10-23 07:33:03 +00:00
Karl Heuer
11e9410ecf (c-beginning-of-statement):
Fixes in sentence movement to properly
handle M-e moving forward into a comment when looking at preceding
whitespace, and M-a moving backward into comment when looking at
following whitespace.

Uncommented the looking-at call in the
sentence-flag clause so that moving by forward-sentence when looking
at the beginning of a comment works again.  A previous log message in
cc-mode.el indicates this was commented out "because
c-beginning-of-statement-1 should do the right thing", but clearly it
doesn't.

I don't know if this breaks something else, because I can't figure out
why it was commented out in the first place.
1997-10-23 07:32:37 +00:00