bpt/emacs.git
13 years ago* fontset.c (free_realized_fontset): Now static.
Paul Eggert [Thu, 10 Mar 2011 01:41:18 +0000 (17:41 -0800)]
* fontset.c (free_realized_fontset): Now static.

13 years ago* xrdb.c: Include "xterm.h", to check x_load_resources's interface.
Paul Eggert [Thu, 10 Mar 2011 01:40:21 +0000 (17:40 -0800)]
* xrdb.c: Include "xterm.h", to check x_load_resources's interface.

13 years ago* xselect.c (x_own_selection, Fx_disown_selection_internal): Rename locals
Paul Eggert [Thu, 10 Mar 2011 01:36:58 +0000 (17:36 -0800)]
* xselect.c (x_own_selection, Fx_disown_selection_internal): Rename locals

to avoid shadowing.
(x_handle_dnd_message): Remove local to avoid shadowing.

13 years ago* xselect.c (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
Paul Eggert [Thu, 10 Mar 2011 01:31:57 +0000 (17:31 -0800)]
* xselect.c (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.

13 years ago* xselect.c (x_disown_buffer_selections): Remove; not used.
Paul Eggert [Thu, 10 Mar 2011 01:30:22 +0000 (17:30 -0800)]
* xselect.c (x_disown_buffer_selections): Remove; not used.

13 years ago* lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
Paul Eggert [Thu, 10 Mar 2011 01:28:06 +0000 (17:28 -0800)]
* lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,

so that the caller can use some name other than gcpro1.
(GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
(Fx_create_frame, x_create_tip_frame, Fx_show_tip):
(Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
macros.

13 years ago* xfns.c: (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
Paul Eggert [Thu, 10 Mar 2011 01:06:01 +0000 (17:06 -0800)]
* xfns.c: (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):

Remove unused locals.

13 years ago* xfns.c (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
Paul Eggert [Thu, 10 Mar 2011 01:03:29 +0000 (17:03 -0800)]
* xfns.c (Fx_file_dialog, Fx_select_font): Fix pointer signedness.

13 years ago* xfns.c (Fx_create_frame): Add braces to silence GCC warning.
Paul Eggert [Thu, 10 Mar 2011 00:59:17 +0000 (16:59 -0800)]
* xfns.c (Fx_create_frame): Add braces to silence GCC warning.

13 years ago* xfns.c (x_decode_color, x_set_name, x_window): Now static.
Paul Eggert [Thu, 10 Mar 2011 00:58:10 +0000 (16:58 -0800)]
* xfns.c (x_decode_color, x_set_name, x_window): Now static.

13 years ago* xterm.c (x_connection_closed): Tell GCC not to suggest NO_RETURN.
Paul Eggert [Wed, 9 Mar 2011 17:39:28 +0000 (09:39 -0800)]
* xterm.c (x_connection_closed): Tell GCC not to suggest NO_RETURN.

13 years ago* xterm.c (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
Paul Eggert [Wed, 9 Mar 2011 17:30:24 +0000 (09:30 -0800)]
* xterm.c (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.

13 years ago* xterm.c: (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
Paul Eggert [Wed, 9 Mar 2011 09:12:38 +0000 (01:12 -0800)]
* xterm.c: (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):

(x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
(x_error_catcher, x_connection_closed, x_error_handler):
(x_error_quitter, xembed_send_message, x_iconify_frame):
(my_log_handler): Rename locals to avoid shadowing.

13 years ago* xterm.c (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
Paul Eggert [Wed, 9 Mar 2011 07:17:17 +0000 (23:17 -0800)]
* xterm.c (XEMBED_VERSION, xembed_set_info): Don't define unless needed.

(x_fatal_error_signal): Remove; not used.

13 years ago* xterm.c (x_iconify_frame, x_free_frame_resources): Don't declare locals
Paul Eggert [Wed, 9 Mar 2011 07:11:42 +0000 (23:11 -0800)]
* xterm.c (x_iconify_frame, x_free_frame_resources): Don't declare locals

unless they are used.

13 years ago* xterm.c: Don't declare local "event" unless it's used.
Paul Eggert [Wed, 9 Mar 2011 07:07:42 +0000 (23:07 -0800)]
* xterm.c: Don't declare local "event" unless it's used.

13 years ago* xterm.c (XTread_socket): Don't define label "out" unless it's used.
Paul Eggert [Wed, 9 Mar 2011 07:05:07 +0000 (23:05 -0800)]
* xterm.c (XTread_socket): Don't define label "out" unless it's used.

13 years ago* xterm.c: (x_shift_glyphs_for_insert, XTflash, XTring_bell):
Paul Eggert [Wed, 9 Mar 2011 07:02:55 +0000 (23:02 -0800)]
* xterm.c: (x_shift_glyphs_for_insert, XTflash, XTring_bell):

(x_calc_absolute_position): Now static.

13 years ago* xterm.h (x_mouse_leave): New decl.
Paul Eggert [Wed, 9 Mar 2011 07:01:14 +0000 (23:01 -0800)]
* xterm.h (x_mouse_leave): New decl.

13 years ago* xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
Paul Eggert [Wed, 9 Mar 2011 06:40:38 +0000 (22:40 -0800)]
* xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):

Remove unused functions.

13 years ago* xfaces.c (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
Paul Eggert [Wed, 9 Mar 2011 06:29:34 +0000 (22:29 -0800)]
* xfaces.c (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.

(LFACEP): Define only if XASSERTS, as it's not needed otherwise.

13 years ago* xfaces.c (Fx_list_fonts): Mark variable that gcc -Wuninitialized
Paul Eggert [Wed, 9 Mar 2011 06:25:19 +0000 (22:25 -0800)]
* xfaces.c (Fx_list_fonts): Mark variable that gcc -Wuninitialized

does not deduce is never used uninitialized.

13 years ago* xfaces.c (free_realized_faces_for_fontset): Remove; not used.
Paul Eggert [Wed, 9 Mar 2011 06:23:48 +0000 (22:23 -0800)]
* xfaces.c (free_realized_faces_for_fontset): Remove; not used.

13 years ago* xfaces.c (tty_defined_color, merge_face_heights): Now static.
Paul Eggert [Wed, 9 Mar 2011 06:22:39 +0000 (22:22 -0800)]
* xfaces.c (tty_defined_color, merge_face_heights): Now static.

13 years ago* term.c (encode_terminal_code): Mark vars for gcc -Wuninitialized.
Paul Eggert [Wed, 9 Mar 2011 06:21:25 +0000 (22:21 -0800)]
* term.c (encode_terminal_code): Mark vars for gcc -Wuninitialized.

13 years ago* xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
Paul Eggert [Wed, 9 Mar 2011 06:17:32 +0000 (22:17 -0800)]
* xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename

or move locals to avoid shadowing.

13 years ago* terminal.c (store_terminal_param): Now static.
Paul Eggert [Wed, 9 Mar 2011 06:07:27 +0000 (22:07 -0800)]
* terminal.c (store_terminal_param): Now static.

13 years ago* term.c, tparam.h (tgetflag, tgetnum, tgetstr): Move the const to the .h file
Paul Eggert [Wed, 9 Mar 2011 05:46:35 +0000 (21:46 -0800)]
* term.c, tparam.h (tgetflag, tgetnum, tgetstr): Move the const to the .h file

13 years ago* alloc.c (mark_ttys): Move decl from here ...
Paul Eggert [Wed, 9 Mar 2011 05:40:59 +0000 (21:40 -0800)]
* alloc.c (mark_ttys): Move decl from here ...

* lisp.h (mark_ttys): ... to here, so that it's checked against defn.

13 years ago* term.c (term_mouse_position): Rename local to avoid shadowing.
Paul Eggert [Wed, 9 Mar 2011 02:15:18 +0000 (18:15 -0800)]
* term.c (term_mouse_position): Rename local to avoid shadowing.

13 years ago* cm.c (calccost, cmgoto): Use const pointers where appropriate.
Paul Eggert [Wed, 9 Mar 2011 02:12:00 +0000 (18:12 -0800)]
* cm.c (calccost, cmgoto): Use const pointers where appropriate.

* cm.h (struct cm): Likewise.
* dispextern.h (do_line_insertion_deletion_costs): Likewise.
* scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
* term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
(term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
(turn_on_face, init_tty): Likewise.
* termchar.h (struct tty_display_info): Likewise.
* term.c (tgetflag, tgetnum, tgetstr): Redefine to use const pointers.

13 years ago* tparam.h: New file.
Paul Eggert [Tue, 8 Mar 2011 18:26:34 +0000 (10:26 -0800)]
* tparam.h: New file.

* term.c, tparam.h: Include it.
* deps.mk (term.o, tparam.o): Depend on tparam.h.
* term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
Move these decls to tparam.h, and make them agree with what
is actually in tparam.c.  The previous trick of using incompatible
decls in different modules does not conform to the C standard.
All callers of tparam changed to use tparam's actual API.
* tparam.c (tparam1, tparam, tgoto):
Use const pointers where appropriate.

13 years ago* term.c (encode_terminal_code): Remove unused local
Paul Eggert [Tue, 8 Mar 2011 17:31:51 +0000 (09:31 -0800)]
* term.c (encode_terminal_code): Remove unused local

13 years ago* term.c (encode_terminal_code): Now static.
Paul Eggert [Tue, 8 Mar 2011 17:30:15 +0000 (09:30 -0800)]
* term.c (encode_terminal_code): Now static.

13 years ago* cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
Paul Eggert [Tue, 8 Mar 2011 17:28:17 +0000 (09:28 -0800)]
* cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not

deduce are never used uninitialized.

13 years ago* bidi.c (BIDI_BOB): Remove unused macro.
Paul Eggert [Tue, 8 Mar 2011 17:25:52 +0000 (09:25 -0800)]
* bidi.c (BIDI_BOB): Remove unused macro.

13 years ago* dispextern.h (bidi_dump_cached_states): Likewise.
Paul Eggert [Tue, 8 Mar 2011 08:26:27 +0000 (00:26 -0800)]
* dispextern.h (bidi_dump_cached_states): Likewise.

13 years ago* bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
Paul Eggert [Tue, 8 Mar 2011 08:23:12 +0000 (00:23 -0800)]
* bidi.c (bidi_check_type): Now static, since it's not used elsewhere.

13 years ago* chartab.c (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
Paul Eggert [Tue, 8 Mar 2011 08:13:36 +0000 (00:13 -0800)]
* chartab.c (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.

13 years ago* chartab.c: (sub_char_table_ref_and_range, char_table_ref_and_range):
Paul Eggert [Tue, 8 Mar 2011 08:12:00 +0000 (00:12 -0800)]
* chartab.c: (sub_char_table_ref_and_range, char_table_ref_and_range):

Rename locals to avoid shadowing.

13 years ago* chartab.c (copy_sub_char_table): Now static, since it's not used
Paul Eggert [Tue, 8 Mar 2011 08:08:41 +0000 (00:08 -0800)]
* chartab.c (copy_sub_char_table): Now static, since it's not used

elsewhere.

13 years ago* character.c (string_count_byte8): Likewise.
Paul Eggert [Tue, 8 Mar 2011 07:49:41 +0000 (23:49 -0800)]
* character.c (string_count_byte8): Likewise.

13 years ago* ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
Paul Eggert [Tue, 8 Mar 2011 07:48:20 +0000 (23:48 -0800)]
* ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):

(Fregister_code_conversion_map): Rename locals to avoid shadowing.

13 years ago* category.c (copy_category_table): Now static, since it's not used elsewhere.
Paul Eggert [Tue, 8 Mar 2011 07:39:53 +0000 (23:39 -0800)]
* category.c (copy_category_table): Now static, since it's not used elsewhere.

13 years ago* category.c (hash_get_category_set): Remove unused local var.
Paul Eggert [Tue, 8 Mar 2011 07:38:52 +0000 (23:38 -0800)]
* category.c (hash_get_category_set): Remove unused local var.

13 years ago* coding.c (detect_coding_iso_2022): Initialize a local variable that might
Paul Eggert [Tue, 8 Mar 2011 07:36:31 +0000 (23:36 -0800)]
* 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.

13 years ago* coding.c (decode_coding_emacs_mule): Mark variables that gcc
Paul Eggert [Tue, 8 Mar 2011 07:34:38 +0000 (23:34 -0800)]
* coding.c (decode_coding_emacs_mule): Mark variables that gcc

-Wuninitialized does not deduce are never used uninitialized.

13 years ago* coding.c: (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
Paul Eggert [Tue, 8 Mar 2011 07:23:55 +0000 (23:23 -0800)]
* 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.

13 years ago* coding.c: (decode_coding_object, encode_coding_object, detect_coding_system):
Paul Eggert [Tue, 8 Mar 2011 07:12:45 +0000 (23:12 -0800)]
* coding.c: (decode_coding_object, encode_coding_object, detect_coding_system):

Mark variables that gcc -Wuninitialized does not deduce are never
used uninitialized.

13 years ago* coding.c (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
Paul Eggert [Tue, 8 Mar 2011 05:28:41 +0000 (21:28 -0800)]
* coding.c (decode_coding_iso_2022): Add "default: abort ();" as a safety check.

13 years ago* coding.c (emacs_mule_char, encode_invocation_designation):
Paul Eggert [Tue, 8 Mar 2011 04:41:22 +0000 (20:41 -0800)]
* coding.c (emacs_mule_char, encode_invocation_designation):

Now static, since they're not used elsewhere.

13 years ago* coding.c (Fdefine_coding_system_internal): Don't redeclare 'i' inside
Paul Eggert [Tue, 8 Mar 2011 04:37:19 +0000 (20:37 -0800)]
* 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.

13 years ago* coding.c (coding_set_source, coding_set_destination):
Paul Eggert [Tue, 8 Mar 2011 01:41:19 +0000 (17:41 -0800)]
* coding.c (coding_set_source, coding_set_destination):

Use "else { /* comment */ }" rather than "else /* comment */;"
for clarity, and to avoid gcc -Wempty-body warning.

13 years ago* charset.c (load_charset): Abort instead of using uninitialized var.
Paul Eggert [Tue, 8 Mar 2011 00:46:23 +0000 (16:46 -0800)]
* charset.c (load_charset): Abort instead of using uninitialized var.

13 years ago* charset.c (load_charset_map): Mark variables that gcc -Wuninitialized
Paul Eggert [Tue, 8 Mar 2011 00:36:30 +0000 (16:36 -0800)]
* charset.c (load_charset_map): Mark variables that gcc -Wuninitialized

does not deduce are never used uninitialized.

13 years ago* charset.c: Include <limits.h>.
Paul Eggert [Tue, 8 Mar 2011 00:35:37 +0000 (16:35 -0800)]
* charset.c: Include <limits.h>.

(Fsort_charsets): Redo min/max calculation to shorten the code a bit
and to avoid gcc -Wuninitialized warning.

13 years ago* charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
Paul Eggert [Tue, 8 Mar 2011 00:22:52 +0000 (16:22 -0800)]
* charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid

shadowing.
* charset.c (map_charset_for_dump, Fchar_charset): Likewise.

13 years ago2011-03-08 Paul Eggert <eggert@cs.ucla.edu>
Paul Eggert [Tue, 8 Mar 2011 00:06:36 +0000 (16:06 -0800)]
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.

13 years ago* window.h (check_all_windows): New decl, to forestall
Paul Eggert [Mon, 7 Mar 2011 07:07:38 +0000 (23:07 -0800)]
* window.h (check_all_windows): New decl, to forestall

gcc -Wmissing-prototypes diagnostic.

13 years ago* window.c (display_buffer): Now static.
Paul Eggert [Mon, 7 Mar 2011 07:06:05 +0000 (23:06 -0800)]
* window.c (display_buffer): Now static.

13 years ago* window.c (window_loop, size_window):
Paul Eggert [Mon, 7 Mar 2011 06:58:49 +0000 (22:58 -0800)]
* window.c (window_loop, size_window):
(run_window_configuration_change_hook, enlarge_window):
Rename locals to avoid shadowing.

13 years ago* xmenu.c (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
Paul Eggert [Mon, 7 Mar 2011 06:46:29 +0000 (22:46 -0800)]
* xmenu.c (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,

since it's unused otherwise.

13 years ago* xmenu.c (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
Paul Eggert [Mon, 7 Mar 2011 06:43:11 +0000 (22:43 -0800)]
* xmenu.c (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"

since they might point to immutable storage.

13 years ago* xdisp.c (redisplay_window): Rename local to avoid shadowing.
Paul Eggert [Mon, 7 Mar 2011 06:39:56 +0000 (22:39 -0800)]
* xdisp.c (redisplay_window): Rename local to avoid shadowing.

13 years agoMerge from mainline.
Paul Eggert [Mon, 7 Mar 2011 06:26:47 +0000 (22:26 -0800)]
Merge from mainline.

13 years ago* xmenu.c (xmenu_show): Rename parameter to avoid shadowing.
Paul Eggert [Mon, 7 Mar 2011 06:23:15 +0000 (22:23 -0800)]
* xmenu.c (xmenu_show): Rename parameter to avoid shadowing.

13 years agoRevert incorrect logic in 2011-03-06T07:50:01Z!eggert@cs.ucla.edu.
Chong Yidong [Sun, 6 Mar 2011 23:19:25 +0000 (18:19 -0500)]
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.

13 years ago* xmenu.c (set_frame_menubar): Remove unused local.
Paul Eggert [Sun, 6 Mar 2011 22:36:06 +0000 (14:36 -0800)]
* xmenu.c (set_frame_menubar): Remove unused local.

13 years ago* xmenu.c (menu_highlight_callback): Now static.
Paul Eggert [Sun, 6 Mar 2011 22:34:54 +0000 (14:34 -0800)]
* xmenu.c (menu_highlight_callback): Now static.

13 years agoxdisp.c (draw_glyphs):
Paul Eggert [Sun, 6 Mar 2011 22:22:56 +0000 (14:22 -0800)]
xdisp.c (draw_glyphs):
Mark variables that gcc -Wuninitialized cannot deduce are never
used uninitialized.

13 years agoxdisp.c (draw_glyphs):
Paul Eggert [Sun, 6 Mar 2011 22:11:02 +0000 (14:11 -0800)]
xdisp.c (draw_glyphs):
Mark variables that gcc -Wuninitialized cannot deduce are never
used uninitialized.

13 years agoxdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Mark variables that
Paul Eggert [Sun, 6 Mar 2011 22:04:59 +0000 (14:04 -0800)]
xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Mark variables that
gcc -Wuninitialized cannot deduce are never used uninitialized.

13 years agoDocument package archives in the Lisp manual.
Chong Yidong [Sun, 6 Mar 2011 21:52:17 +0000 (16:52 -0500)]
Document package archives in the Lisp manual.

* doc/lispref/package.texi: Update index keywords.
(Package Archives): New node contents.  Document package-x.el.

13 years ago* lisp/progmodes/gud.el (gdb-script-syntax-propertize-function):
Stefan Monnier [Sun, 6 Mar 2011 20:55:52 +0000 (15:55 -0500)]
* lisp/progmodes/gud.el (gdb-script-syntax-propertize-function):
Don't change the syntax of a \n that closes a comment.

Fixes: debbugs:8169

13 years agoUsability improvements to commands in package-x.el.
Chong Yidong [Sun, 6 Mar 2011 20:19:39 +0000 (15:19 -0500)]
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.

13 years ago* xdisp.c (display_line): Mark variables that gcc -Wuninitialized cannot
Paul Eggert [Sun, 6 Mar 2011 20:15:10 +0000 (12:15 -0800)]
* 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.

13 years agodoc/lispref/makefile.w32-in (srcs): Add package.texi.
Juanma Barranquero [Sun, 6 Mar 2011 20:11:19 +0000 (21:11 +0100)]
doc/lispref/makefile.w32-in (srcs): Add package.texi.

13 years ago* xdisp.c (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
Paul Eggert [Sun, 6 Mar 2011 19:53:35 +0000 (11:53 -0800)]
* xdisp.c (Fcurrent_bidi_paragraph_direction): Simplify slightly; this

avoids a gcc -Wuninitialized diagnostic.

13 years ago* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
Paul Eggert [Sun, 6 Mar 2011 19:43:58 +0000 (11:43 -0800)]
* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.

Add a FIXME comment, since the code still doesn't look right.

13 years agoBind C-y in Isearch to isearch-yank-kill.
Chong Yidong [Sun, 6 Mar 2011 18:24:11 +0000 (13:24 -0500)]
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.

13 years ago(c-guess-basic-syntax): Move CASE 19 to a different place, correctly to
Alan Mackenzie [Sun, 6 Mar 2011 17:03:45 +0000 (17:03 +0000)]
(c-guess-basic-syntax): Move CASE 19 to a different place, correctly to
process template-args-cont lines.

13 years agoprogmodes/cc-engine.el (c-guess-basic-syntax): Reindent.
Alan Mackenzie [Sun, 6 Mar 2011 16:57:31 +0000 (16:57 +0000)]
progmodes/cc-engine.el (c-guess-basic-syntax): Reindent.

13 years agoImprove packaging documentation.
Chong Yidong [Sun, 6 Mar 2011 15:54:36 +0000 (10:54 -0500)]
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.

13 years agoMerge: current_column: Now returns EMACS_INT, fixing some iftc
Paul Eggert [Sun, 6 Mar 2011 10:53:51 +0000 (02:53 -0800)]
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.

13 years agocurrent_column: Now returns EMACS_INT, fixing some iftc.
Paul Eggert [Sun, 6 Mar 2011 10:27:06 +0000 (02:27 -0800)]
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.

13 years ago* xdisp.c (redisplay_window): Likewise.
Paul Eggert [Sun, 6 Mar 2011 09:54:06 +0000 (01:54 -0800)]
* xdisp.c (redisplay_window): Likewise.

13 years ago* minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
Paul Eggert [Sun, 6 Mar 2011 09:52:06 +0000 (01:52 -0800)]
* 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.

13 years ago* cmds.c (internal_self_insert): Reindent to match Emacs style.
Paul Eggert [Sun, 6 Mar 2011 09:00:53 +0000 (01:00 -0800)]
* cmds.c (internal_self_insert): Reindent to match Emacs style.

13 years ago* xdisp.c (SKIP_GLYPHS): Removed unused macro.
Paul Eggert [Sun, 6 Mar 2011 08:17:04 +0000 (00:17 -0800)]
* xdisp.c (SKIP_GLYPHS): Removed unused macro.

13 years ago* xdisp.c (update_window_cursor): Now static, since it's not used elsewhere.
Paul Eggert [Sun, 6 Mar 2011 08:15:49 +0000 (00:15 -0800)]
* xdisp.c (update_window_cursor):  Now static, since it's not used elsewhere.

13 years ago* xdisp.c (produce_glyphless_glyph): Make a pointer "const"
Paul Eggert [Sun, 6 Mar 2011 08:14:14 +0000 (00:14 -0800)]
* xdisp.c (produce_glyphless_glyph): Make a pointer "const"

since it might point to immutable storage.

13 years ago* xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
Paul Eggert [Sun, 6 Mar 2011 08:11:52 +0000 (00:11 -0800)]
* xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.

13 years agoMerge from mainline.
Paul Eggert [Sun, 6 Mar 2011 07:53:03 +0000 (23:53 -0800)]
Merge from mainline.

13 years ago* xdisp.c: Rename or move local decls to avoid shadowing.
Paul Eggert [Sun, 6 Mar 2011 07:50:01 +0000 (23:50 -0800)]
* 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.

13 years agoAdd package.texi to doc/lispref/Makefile.in.
Chong Yidong [Sun, 6 Mar 2011 05:34:35 +0000 (00:34 -0500)]
Add package.texi to doc/lispref/Makefile.in.

13 years ago* calc/calc-units.el (math-midi-round): Translate calc-note-threshold
Jay Belanger [Sun, 6 Mar 2011 04:36:15 +0000 (22:36 -0600)]
* calc/calc-units.el (math-midi-round): Translate calc-note-threshold
  to an appropriate fraction.

13 years ago* calc/calc-units.el (math-midi-round, math-freqp, math-midip)
Jay Belanger [Sun, 6 Mar 2011 04:28:39 +0000 (22:28 -0600)]
* calc/calc-units.el (math-midi-round, math-freqp, math-midip)
  (math-spnp, math-spn-to-midi, math-midi-to-spn, math-freq-to-spn)
  (math-midi-to-freq, math-spn-to-freq, calcFunc-spn, calcFunc-midi)
  (calcFunc-freq, calc-freq, calc-midi, calc-spn): New functions.
  (math-notes): New variable.

* calc/calc.el (calc-note-threshold): New variable.

* calc/calc-ext.el (calc-init-extensions): Add keybindings for
  calc-spn, calc-midi, calc-freq.  Add autoloads for calcFunc-spn,
  calcFunc-midi, calcFunc-freq, calc-spn, calc-midi and calc-freq.

* doc/misc/calc.tex (Musical Notes): New section.
  (Customizing Calc): Mention calc-note-threshold.

13 years ago* doc/misc/calc.texi (Logarithmic Units): Rename calc-logunits-dblevel
Jay Belanger [Sun, 6 Mar 2011 03:51:28 +0000 (21:51 -0600)]
* doc/misc/calc.texi (Logarithmic Units): Rename calc-logunits-dblevel
  and calc-logunits-nplevel to calc-dblevel and calc-nplevel,
  respectively.

* calc/calc-ext.el (calc-init-extensions): Rename calc-logunits-dblevel
  and calc-logunits-nplevel to calc-dblevel and calc-nplevel,
  respectively.

* calc/calc-units.el (calc-dblevel): Rename from calc-logunits-dblevel.
  (calc-nplevel): Rename from calc-logunits-nplevel.

13 years agoAllow specifying local ELPA mirrors in package-archives.
Chong Yidong [Sun, 6 Mar 2011 03:22:06 +0000 (22:22 -0500)]
Allow specifying local ELPA mirrors in package-archives.

* emacs-lisp/package.el (package-archives): Accept either ordinary
directory names, in addition to HTTP URLs.
(package--with-work-buffer): New macro.   Handle normal directories.
(package-handle-response): Don't display the failing buffer.
(package-download-single, package-download-tar)
(package--download-one-archive): Use package--with-work-buffer.
(package-archive-base): Rename from package-archive-url.

13 years agoMention xmodmap-generic-mode in NEWS.
Glenn Morris [Sun, 6 Mar 2011 03:01:23 +0000 (19:01 -0800)]
Mention xmodmap-generic-mode in NEWS.