Paul Eggert
d0891610cb
* character.c (string_count_byte8): Likewise.
2011-03-07 23:49:41 -08:00
Paul Eggert
fb90da1b9b
* ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
...
(Fregister_code_conversion_map): Rename locals to avoid shadowing.
2011-03-07 23:48:20 -08:00
Paul Eggert
9f3b5e6926
* category.c (copy_category_table): Now static, since it's not used elsewhere.
2011-03-07 23:39:53 -08:00
Paul Eggert
232b38b960
* category.c (hash_get_category_set): Remove unused local var.
2011-03-07 23:38:52 -08:00
Paul Eggert
160b01f65a
* coding.c (detect_coding_iso_2022): Initialize a local variable that might
...
be used uninitialized. Leave a FIXME because it's not clear that
this initialization is needed.
2011-03-07 23:36:31 -08:00
Paul Eggert
ee05f96119
* coding.c (decode_coding_emacs_mule): Mark variables that gcc
...
-Wuninitialized does not deduce are never used uninitialized.
2011-03-07 23:34:38 -08:00
Paul Eggert
5f58e762f9
* coding.c: (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
...
(ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
(SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
(ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
Remove unused macros.
2011-03-07 23:23:55 -08:00
Paul Eggert
c4a63b128d
* coding.c: (decode_coding_object, encode_coding_object, detect_coding_system):
...
Mark variables that gcc -Wuninitialized does not deduce are never
used uninitialized.
2011-03-07 23:12:45 -08:00
Paul Eggert
413bb2db75
* coding.c (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
2011-03-07 21:28:41 -08:00
Paul Eggert
e2f1bab963
* coding.c (emacs_mule_char, encode_invocation_designation):
...
Now static, since they're not used elsewhere.
2011-03-07 20:41:22 -08:00
Paul Eggert
2735d0606b
* coding.c (Fdefine_coding_system_internal): Don't redeclare 'i' inside
...
a block, when the outer 'i' will do.
(decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
(emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
(decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
(decode_coding_raw_text, decode_coding_charset, get_translation_table):
(Fdecode_sjis_char, Fdefine_coding_system_internal):
Rename locals to avoid shadowing.
* character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
2011-03-07 20:37:19 -08:00
Paul Eggert
f38b440c4b
* coding.c (coding_set_source, coding_set_destination):
...
Use "else { /* comment */ }" rather than "else /* comment */;"
for clarity, and to avoid gcc -Wempty-body warning.
2011-03-07 17:41:19 -08:00
Paul Eggert
0ac2c2991c
* charset.c (load_charset): Abort instead of using uninitialized var.
2011-03-07 16:46:23 -08:00
Paul Eggert
89ef49dfda
* charset.c (load_charset_map): Mark variables that gcc -Wuninitialized
...
does not deduce are never used uninitialized.
2011-03-07 16:36:30 -08:00
Paul Eggert
726929c43a
* charset.c: Include <limits.h>.
...
(Fsort_charsets): Redo min/max calculation to shorten the code a bit
and to avoid gcc -Wuninitialized warning.
2011-03-07 16:35:37 -08:00
Paul Eggert
f60958682b
* charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
...
shadowing.
* charset.c (map_charset_for_dump, Fchar_charset): Likewise.
2011-03-07 16:22:52 -08:00
Paul Eggert
d6550a9f30
2011-03-08 Paul Eggert <eggert@cs.ucla.edu>
...
* window.c (size_window): Mark variables that gcc -Wuninitialized
does not deduce are never used uninitialized.
2011-03-07 16:06:36 -08:00
Paul Eggert
a586633d66
* window.h (check_all_windows): New decl, to forestall
...
gcc -Wmissing-prototypes diagnostic.
2011-03-06 23:07:38 -08:00
Paul Eggert
7e5cf29773
* window.c (display_buffer): Now static.
2011-03-06 23:06:05 -08:00
Paul Eggert
4554d21363
* window.c (window_loop, size_window):
...
(run_window_configuration_change_hook, enlarge_window):
Rename locals to avoid shadowing.
2011-03-06 22:58:49 -08:00
Paul Eggert
281585b0bd
* xmenu.c (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
...
since it's unused otherwise.
2011-03-06 22:46:29 -08:00
Paul Eggert
6d1f7feeda
* xmenu.c (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
...
since they might point to immutable storage.
2011-03-06 22:43:11 -08:00
Paul Eggert
8868a2381e
* xdisp.c (redisplay_window): Rename local to avoid shadowing.
2011-03-06 22:39:56 -08:00
Paul Eggert
07b48fa9da
Merge from mainline.
2011-03-06 22:26:47 -08:00
Paul Eggert
d432397227
* xmenu.c (xmenu_show): Rename parameter to avoid shadowing.
2011-03-06 22:23:15 -08:00
Chong Yidong
ef272f1fc1
Revert incorrect logic in 2011-03-06T07:50:01Z!eggert@cs.ucla.edu.
...
* src/xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06 change.
2011-03-06 18:19:25 -05:00
Paul Eggert
9d66f88eb9
* xmenu.c (set_frame_menubar): Remove unused local.
2011-03-06 14:36:06 -08:00
Paul Eggert
032f16205d
* xmenu.c (menu_highlight_callback): Now static.
2011-03-06 14:34:54 -08:00
Paul Eggert
44a3a10843
xdisp.c (draw_glyphs):
...
Mark variables that gcc -Wuninitialized cannot deduce are never
used uninitialized.
2011-03-06 14:22:56 -08:00
Paul Eggert
0e086e8f7f
xdisp.c (draw_glyphs):
...
Mark variables that gcc -Wuninitialized cannot deduce are never
used uninitialized.
2011-03-06 14:11:02 -08:00
Paul Eggert
70739cbeb9
xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Mark variables that
...
gcc -Wuninitialized cannot deduce are never used uninitialized.
2011-03-06 14:04:59 -08:00
Paul Eggert
dba6549815
* xdisp.c (display_line): Mark variables that gcc -Wuninitialized cannot
...
deduce are never used uninitialized.
* lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c
which in turn is copied from coreutils.
2011-03-06 12:15:10 -08:00
Paul Eggert
9f36b9fd38
* xdisp.c (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
...
avoids a gcc -Wuninitialized diagnostic.
2011-03-06 11:53:35 -08:00
Paul Eggert
367c19e58b
* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
...
Add a FIXME comment, since the code still doesn't look right.
2011-03-06 11:43:58 -08:00
Paul Eggert
5f349a895b
Merge: current_column: Now returns EMACS_INT, fixing some iftc
...
that was introduced in the 2002-06-02 change "temporarily"; see
<http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html >.
* bytecode.c (Fbyte_code): Don't cast current_column () to int.
* cmds.c (internal_self_insert): Likewise.
* indent.c (Fcurrent_column): Likewise.
* keymap.c (describe_command): Likewise.
* minibuf.c (read_minibuf): Likewise.
* indent.c (Fcurrent_indentation): Don't cast position_indentation ()
to int.
* xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
Likewise.
* cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
not int or double, if they might contain a column number.
* indent.c (current_column, Findent_to, indented_beyond_p):
(compute_motion, vmotion): Likewise.
* keymap.c (describe_command): Likewise.
* xdisp.c (pint2str): Likewise.
* indent.c (last_known_column): Now EMACS_INT, not int.
* minibuf.c (minibuf_prompt_width): Likewise.
* indent.c (current_column, current_column_1, position_indentation):
Return EMACS_INT, not double.
* lisp.h (current_column): Likewise.
* indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
All callers changed.
* lisp.h (indented_beyond_p): Likewise.
* minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
from xdisp.c, and make static, since these are used only here.
* window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
Remove decls.
* xdisp.c (redisplay_window): Reindent to match Emacs style.
2011-03-06 02:53:51 -08:00
Paul Eggert
7831777b8a
current_column: Now returns EMACS_INT, fixing some iftc.
...
* bytecode.c (Fbyte_code): Don't cast current_column () to int.
* cmds.c (internal_self_insert): Likewise.
* indent.c (Fcurrent_column): Likewise.
* keymap.c (describe_command): Likewise.
* minibuf.c (read_minibuf): Likewise.
* indent.c (Fcurrent_indentation): Don't cast position_indentation ()
to int.
* xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
Likewise.
* cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
not int or double, if they might contain a column number.
* indent.c (current_column, Findent_to, indented_beyond_p):
(compute_motion, vmotion): Likewise.
* keymap.c (describe_command): Likewise.
* xdisp.c (pint2str): Likewise.
* indent.c (last_known_column): Now EMACS_INT, not int.
* minibuf.c (minibuf_prompt_width): Likewise.
* indent.c (current_column, current_column_1, position_indentation):
Return EMACS_INT, not double.
* lisp.h (current_column): Likewise.
* indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
All callers changed.
* lisp.h (indented_beyond_p): Likewise.
2011-03-06 02:27:06 -08:00
Paul Eggert
179b8720a2
* xdisp.c (redisplay_window): Likewise.
2011-03-06 01:54:06 -08:00
Paul Eggert
e9588e2e96
* minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
...
from xdisp.c, and make static, since these are used only here.
* window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
Remove decls.
2011-03-06 01:52:06 -08:00
Paul Eggert
1e12733b25
* cmds.c (internal_self_insert): Reindent to match Emacs style.
2011-03-06 01:00:53 -08:00
Paul Eggert
acbfe54c07
* xdisp.c (SKIP_GLYPHS): Removed unused macro.
2011-03-06 00:17:04 -08:00
Paul Eggert
d8a3e89e23
* xdisp.c (update_window_cursor): Now static, since it's not used elsewhere.
2011-03-06 00:15:49 -08:00
Paul Eggert
841081e175
* xdisp.c (produce_glyphless_glyph): Make a pointer "const"
...
since it might point to immutable storage.
2011-03-06 00:14:14 -08:00
Paul Eggert
7b781e9f4f
* xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
2011-03-06 00:11:52 -08:00
Paul Eggert
58635e4de8
Merge from mainline.
2011-03-05 23:53:03 -08:00
Paul Eggert
5489860be1
* xdisp.c: Rename or move local decls to avoid shadowing.
...
(init_iterator, handle_fontified_prop, handle_single_display_spec):
(message_dolog, message_with_string, redisplay_internal):
(redisplay_window, try_window_reusing_current_matrix, try_window_id):
(compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
(display_line, display_string, rows_from_pos_range):
(mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
Rename or move local decls.
2011-03-05 23:50:01 -08:00
Juanma Barranquero
01c3509454
Fix typos.
...
* etc/srecode/el.srt: Fix typo.
* lisp/allout.el (allout-init, allout-prefixed-keybindings)
(allout-unprefixed-keybindings):
* lisp/progmodes/prolog.el (prolog-find-term):
Fix typos in docstrings.
* lisp/org/org.el (org-blank-before-new-entry, org-context-in-file-links)
(org-refile-targets, org-log-repeat, org-insert-link)
(org-speed-command-default-hook, org-speed-command-hook)
(org-in-regexps-block-p, org-yank-generic, org-goto-first-child):
Fix typos in docstrings.
(org-toggle-pretty-entities): Fix typo in message.
2011-03-06 03:43:19 +01:00
Michael Shields
aa248733c5
Doc fixes for bug#5567 (tiny change)
...
* lisp/window.el (one-window-p, walk-windows, display-buffer): Doc fixes.
* src/window.c (Fnext_window): Doc (and comment) fixes.
2011-03-05 18:14:43 -08:00
Glenn Morris
7834125ea3
Regenerate autotools stuff, grumble.
2011-03-05 17:45:56 -08:00
Chong Yidong
e6786c7319
Fix last change.
2011-03-05 18:55:43 -05:00
Chong Yidong
04cb68403d
* nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
2011-03-05 18:52:45 -05:00