1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-29 19:48:19 +00:00
Commit Graph

29725 Commits

Author SHA1 Message Date
Gerd Moellmann
ce8c7486aa (c-looking-at-inexpr-block): Replaced a call to
c-beginning-of-statement-1 that caused a bad case of recursion
which could consume a lot of CPU in large classes in languages
that have in-expression classes (i.e. Java and Pike).

(c-guess-basic-syntax): Check for in-expression
statements before top level constructs (i.e. case 6 is moved
before case 5 and is now case 4) to catch in-expression
classes in top level expressions correctly.

(c-guess-basic-syntax): Less naive handling of
objc-method-intro. Case 4 removed and case 5I added.

(c-beginning-of-inheritance-list,
c-guess-basic-syntax): Fixed recognition of inheritance lists
when the lines begins with a comma.

(c-forward-syntactic-ws): Fixed an infloop bug
when the buffer ends with a macro continuation char.

(c-guess-basic-syntax): Added support for
function definitions as statements in Pike.  The first
statement in a lambda block is now labeled defun-block-intro
instead of statement-block-intro.

(c-narrow-out-enclosing-class): Whack the state
so that the class surrounding point is selected, not the one
innermost in the state.

(c-guess-basic-syntax): Fixed bug in
recognition of switch labels having hanging multiline
statements.

(c-beginning-of-member-init-list): Broke out
some code in c-guess-basic-syntax to a separate function.
(c-just-after-func-arglist-p): Fixed
recognition of member inits with multiple line arglists.
(c-guess-basic-syntax): New case 5B.3 to detect
member-init-cont when the commas are in funny places.

(c-looking-at-bos): New helper function.
(c-looking-at-inexpr-block): More tests to tell
inexpr and toplevel classes apart in Pike.

(c-guess-basic-syntax): Fixed bogus recognition
of case 9A.

(c-guess-basic-syntax): Made the cpp-macro
a syntax modifier like comment-intro, to make it possible to
get syntactic indentation for preprocessor directives.  It's
incompatible wrt to lineup functions on cpp-macro, but it has
no observable effect in the 99.9% common case where cpp-macro
is set to -1000.

(c-guess-basic-syntax): Fixed bug with missed
member-init-cont when the preceding arglist is several lines.

(c-beginning-of-statement-1): Fixed bug where
we were left at comments preceding the first statement when
reaching the beginning of the buffer.

(c-beginning-of-closest-statement): New helper
function to go back to the closest preceding statement start,
which could be inside a conditional statement.
(c-guess-basic-syntax): Use
c-beginning-of-closest-statement in cases 10B.2, 17B and 17C.

(c-guess-basic-syntax): Better handling of
arglist-intro, arglist-cont-nonempty and arglist-close when
the arglist is nested inside parens.  Cases 7A, 7C and 7F
changed.

(c-beginning-of-statement-1): Fixed handling of
multiline Pike type decls.

(c-guess-basic-syntax): Fixed bug with
fully::qualified::names in C++ member init lists.  Preamble in
case 5D changed.
2000-07-24 11:11:20 +00:00
Gerd Moellmann
e29cacf2d1 (c-append-paragraph-start): New variable used by
c-common-init to get paragraph-start correct.
(c-common-init): Use c-append-paragraph-start to
initialize paragraph-start to make it correct both with and
without the javadoc special case.

(c-Pike-inexpr-class-key): New
constant, since "class" can introduce an in-expression class
in Pike nowadays.

(c-Java-javadoc-paragraph-start): Brought
up-to-date with javadoc 1.2.

(c-common-init): Handling of obsolete variables
moved to c-initialize-cc-mode.  More compatible style override
when using global style variables.
2000-07-24 11:11:01 +00:00
Gerd Moellmann
91b807c9ff (c-initialize-cc-mode): Handling of obsolete
variables moved here.
(java-mode): Use c-append-paragraph-start to
initialize paragraph-start for javadoc markup.
2000-07-24 11:10:33 +00:00
Gerd Moellmann
6cfd56b338 (c-style-alist): The basic offset for the BSD
style corrected to 8.

(c-style-alist): Adjusted the indentation of
brace list openers in the gnu style.

(c-make-styles-buffer-local): Flag style
variable localness in c-style-variables-are-local-p to make
the compatibility measure in c-common-init work well.

(c-set-style-1): c-special-indent-hook can no
longer contain set-from-style.
(c-initialize-builtin-style): Don't check for
set-from-style on c-special-indent-hook.
(c-copy-tree): Obsolete.  The standard function
copy-alist is sufficient now.

(c-set-style, c-set-style-1,
c-get-style-variables): Fixes to variable initialization so
that duplicate entries in styles have the same effect
regardless of DONT-OVERRIDE.

(c-set-style-2): Fixed bug where the
initialization of inheriting styles failed when the
dont-override flag is set.
2000-07-24 11:10:15 +00:00
Gerd Moellmann
e96f5cb747 (c-style-variables-are-local-p): Incompatible
change by defaulting this to t.  It's motivated by the
confusing behavior that otherwise arise from the style system
when editing both java and non-java files at the same time
(see the comments about style setting in c-common-init).

(c-offsets-alist): Changed default for
member-init-cont to c-lineup-multi-inher since it now handles
member initializers and indents better for leading commas.

(c-syntactic-indentation): New variable to turn
off all syntactic indentation.

(c-special-indent-hook): Don't use set-from-style
on this.
2000-07-24 11:09:35 +00:00
Kenichi Handa
afe93d01f2 (fontset_ref): Remove INLINE declaration.
(fontset_ref_via_base): Likewise.
(Fset_fontset_font): Convert FAMILY and REGISTRY specifications
to downcase.
2000-07-24 11:07:23 +00:00
Kenichi Handa
25c1a9ce6d *** empty log message *** 2000-07-24 11:06:27 +00:00
Gerd Moellmann
f214c025f7 @setfilename to ../info/ccmode.
Documented the change of cpp-macro.

Updated doc for c-lineup-multi-inher.

Documented the special behavior of
c-special-indent-hook as a style variable.  Don't talk about
doing (c-make-styles-buffer-local t) in a mode hook, since
that's already too late to work right.
2000-07-24 11:06:15 +00:00
Dave Love
8730a8da61 *** empty log message *** 2000-07-24 09:45:16 +00:00
Dave Love
a21f0bd5b4 (ediff-region-help-echo): Bind face-help. 2000-07-24 09:44:02 +00:00
Dave Love
8170f46b63 Add AC_SIZE_T. 2000-07-24 09:32:28 +00:00
Noah Friedman
ad95348597 (type-break): perform autosave.
Suggested by Stephen Gildea <gildea@intouchsys.com>.
(type-break-do-query): Cancel query schedule while performing
actual query, to avoid possibility of a second query being made
while first one is already in progress.
(type-break-time-stamp-format): New variable.
(type-break-time-stamp): New function.
(type-break-time-warning): Use it.
(type-break-keystroke-warning): Use it.
(type-break-noninteractive-query): Use it.
2000-07-24 00:50:10 +00:00
Noah Friedman
03a9c6d06a (eldoc-minor-mode-string): Add autoload cookie; otherwise autoloaded
add-minor-mode call complains in Emacs 21.
Use add-minor-mode to set minor-mode-alist, if available.

(eldoc-echo-area-use-multiline-p): New user option.
(eldoc-echo-area-multiline-supported-p): New variable.
(eldoc-docstring-format-sym-doc): Use them.
(eldoc-mode): If not using idle timers, append to local post and
pre command hooks.  Suggested by David Byers <davby@ida.liu.se>.

(eldoc-display-message-no-interference-p): Don't interfere with edebug.
Add autoload cookie for eldoc-mode minor-mode-alist initialization.

(eldoc-function-arglist): New function.
(eldoc-function-argstring): Use it.
2000-07-24 00:38:34 +00:00
Noah Friedman
db3ca487f6 (menu-bar-files-menu [recover-session]): Make sure auto save directory
exists before calling directory-files.
2000-07-24 00:28:27 +00:00
Dave Love
f7ad189956 (iso-transl-char-map): Fix ^e, ^i,
^o, ^u.
2000-07-23 16:05:53 +00:00
Eli Zaretskii
e215fa58c7 (syms_of_coding): Doc fix for inhibit-iso-escape-detection. 2000-07-23 14:53:26 +00:00
Eli Zaretskii
3a258507e1 Correct typo in a comment. 2000-07-23 13:05:44 +00:00
Eli Zaretskii
7f987ac094 *** empty log message *** 2000-07-23 13:04:40 +00:00
Eli Zaretskii
f0a4139c76 (IT_note_mouse_highlight): Process overlays in the
correct order of priority.  If help echo was found in an overlay,
use that overlay as the object in which the help echo was found.
2000-07-23 13:03:16 +00:00
Eli Zaretskii
b2d305a89d Define ALLOCA to an empty string. 2000-07-23 12:59:00 +00:00
Miles Bader
ce6b02e050 (Fprevious_single_char_property_change):
The initial property value should be from the position preceding
  POSITION, not following it.
2000-07-22 13:37:47 +00:00
Miles Bader
e2db306902 *** empty log message *** 2000-07-22 13:36:08 +00:00
Eli Zaretskii
5e3203e4bc *** empty log message *** 2000-07-22 10:23:38 +00:00
Eli Zaretskii
bc77278f53 (syms_of_coding): Doc fix for inhibit-iso-escape-detection. 2000-07-22 10:17:50 +00:00
Eli Zaretskii
5be757c32b (Recognize Coding): Document the variable inhibit-iso-escape-detection. 2000-07-22 10:12:00 +00:00
Dave Love
475de6f44d (ediff-region-help-echo): Modify to use overlay
now passed to the function.  It now works properly.
2000-07-21 19:42:57 +00:00
Gerd Moellmann
c20aeb834d *** empty log message *** 2000-07-21 15:54:52 +00:00
Gerd Moellmann
f83490015c (note_mouse_highlight): Process overlays in the right
order of priority.
2000-07-21 15:54:14 +00:00
Gerd Moellmann
743934dbc8 (note_mouse_highlight): If help-echo was found in an
overlay, use that overlay as the object in which the help was
found.
2000-07-21 15:38:39 +00:00
Gerd Moellmann
5b2ec2d060 (show_help_echo, gen_help_event): Extend comments. 2000-07-21 15:37:33 +00:00
Gerd Moellmann
d1dc7e43b8 *** empty log message *** 2000-07-21 15:00:08 +00:00
Gerd Moellmann
0f532a9a24 (foreach_window_1): Fix typo reversing an if-condition. 2000-07-21 14:59:18 +00:00
Gerd Moellmann
aabb1e71d2 (XMenuActivate): Call help callback with two more
arguments: the pane number and selection number.
2000-07-21 14:36:24 +00:00
Gerd Moellmann
6214507352 (menu_help_callback): Call show_help_echo with
additional arguments OBJECT and POS.
2000-07-21 14:35:53 +00:00
Gerd Moellmann
f95464e470 (foreach_window): Instead of a fake variable argument
list, take one USER_DATA argument.
(foreach_window_1): Likewise, and call callback functions with two
args, the window and USER_DATA.
(struct check_window_data): New struct.
(check_window_containing): Use it.
(window_from_coordinates): Set up a struct check_window_data for
foreach_window.
(add_window_to_list, freeze_window_start): Change parameters
according to new calling convention.
2000-07-21 14:34:08 +00:00
Gerd Moellmann
f5588a407c (foreach_window): Change prototype. 2000-07-21 14:33:46 +00:00
Gerd Moellmann
017f053958 (Fprevious_overlay_change): Avoid memory leak. 2000-07-21 14:33:35 +00:00
Dave Love
43e764c952 (smerge-mode-menu): Fill it out. 2000-07-21 13:53:20 +00:00
Kenichi Handa
07b1485745 *** empty log message *** 2000-07-21 06:59:01 +00:00
Kenichi Handa
3c9de1afcd (Faset): Allow storing any multibyte character in a string. Convert
unibyte string to multibyte if necessary.
2000-07-21 06:45:30 +00:00
Kenichi Handa
11270583fe *** empty log message *** 2000-07-21 02:39:45 +00:00
Kenichi Handa
d60660d6e9 *** empty log message *** 2000-07-21 02:32:21 +00:00
Kenichi Handa
0b8c21c2ef (x_encode_text): Add prototype. 2000-07-21 02:07:35 +00:00
Kenichi Handa
2b38b37ef7 (lisp_data_to_selection_data): Use x_encode_text. 2000-07-21 02:07:14 +00:00
Kenichi Handa
96db09e410 (x_encode_text): New function.
(x_set_name): Use x_encode_text.
(x_set_title): Likewise.
2000-07-21 02:06:49 +00:00
Gerd Moellmann
e8bea4c03e *** empty log message *** 2000-07-20 20:38:08 +00:00
Gerd Moellmann
9002d21f17 Change -b' to -bw'. 2000-07-20 20:38:01 +00:00
Gerd Moellmann
f457975a0c (info-lookup): If *info* is shown in another frame
on the same display, select that frame, instead of switching to
the Info buffer in another window of the selected frame.
2000-07-20 20:35:27 +00:00
Gerd Moellmann
bd7acc8d7c (universal-argument-map): Bind numeric keypad keys
kp-0 to kp-9 and kp-subtract.
(digit-argument): Handle these keys.
2000-07-20 20:35:05 +00:00
Dave Love
bc75b4fd46 *** empty log message *** 2000-07-20 17:31:18 +00:00