Paul Eggert
5b555da1c9
* dispextern.h (bidi_dump_cached_states): Likewise.
2011-03-08 00:26:27 -08:00
Paul Eggert
7d3b386272
* bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
2011-03-08 00:23:12 -08:00
Paul Eggert
bbcd0949d9
* chartab.c (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
2011-03-08 00:13:36 -08:00
Paul Eggert
5c156ace08
* chartab.c: (sub_char_table_ref_and_range, char_table_ref_and_range):
...
Rename locals to avoid shadowing.
2011-03-08 00:12:00 -08:00
Paul Eggert
fb93dbc227
* chartab.c (copy_sub_char_table): Now static, since it's not used
...
elsewhere.
2011-03-08 00:08:41 -08:00
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
Chong Yidong
0b3cecebd5
Document package archives in the Lisp manual.
...
* doc/lispref/package.texi: Update index keywords.
(Package Archives): New node contents. Document package-x.el.
2011-03-06 16:52:17 -05:00
Stefan Monnier
2b0787b344
* lisp/progmodes/gud.el (gdb-script-syntax-propertize-function):
...
Don't change the syntax of a \n that closes a comment.
Fixes: debbugs:8169
2011-03-06 15:55:52 -05:00
Chong Yidong
5c69cb2ce3
Usability improvements to commands in package-x.el.
...
* lisp/emacs-lisp/package-x.el (package-archive-upload-base): Make it a
defcustom.
(package--update-file): Doc fix. Accept relative file names.
(package--archive-contents-from-file): Remove the argument, since
it's necessarily always "archive-contents".
(package-maint-add-news-item): Pass relative file name args to
package--update-file.
(package-upload-buffer-internal): Prompt for a destination if
package-archive-upload-base is invalid. Create the directory if
it does not exist.
(package-upload-buffer, package-upload-file): Doc fix.
2011-03-06 15:19:39 -05: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
Juanma Barranquero
78f5433f6b
doc/lispref/makefile.w32-in (srcs): Add package.texi.
2011-03-06 21:11:19 +01: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
Chong Yidong
892777baa1
Bind C-y in Isearch to isearch-yank-kill.
...
* lisp/isearch.el (isearch-mode-map): Bind C-y to isearch-yank-kill,
and move isearch-yank-line to M-s C-e.
* doc/emacs/search.texi (Isearch Yank): C-y now bound to isearch-yank-kill.
2011-03-06 13:24:11 -05:00
Alan Mackenzie
804a116c9d
(c-guess-basic-syntax): Move CASE 19 to a different place, correctly to
...
process template-args-cont lines.
2011-03-06 17:03:45 +00:00
Alan Mackenzie
9d1f0f559d
progmodes/cc-engine.el (c-guess-basic-syntax): Reindent.
2011-03-06 16:57:31 +00:00
Chong Yidong
120d9389bf
Improve packaging documentation.
...
* package.texi (Packaging, Packaging Basics, Simple Packages)
(Multi-file Packages): Expand and clarify.
(Package Archives): Temporary placeholder node.
* elisp.texi (Top): Update node listing.
2011-03-06 10:54:36 -05: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