annotate CONTRIBUTE @ 80455:4b3759b14cc7

(mac_end_cg_clip): Add argument F. All uses changed. (mac_begin_cg_clip, mac_end_cg_clip): Allow null GC. (mac_invert_rectangle, mac_compute_glyph_string_overhangs) (mac_load_query_font): Use them instead of SetPortWindowPort. (mac_clear_window) [!USE_CG_DRAWING]: Likewise. (mac_draw_image_string_cg): Call CGContextSetTextMatrix. (x_update_begin, x_update_end): Call mac_update_begin and mac_update_end. (XTframe_up_to_date): Call mac_frame_up_to_date. (XTring_bell): Use mac_alert_sound_play. (note_mouse_movement): Use mac_get_frame_bounds. (XTmouse_position): Use mac_get_frame_mouse. (x_scroll_bar_create): Use mac_create_scroll_bar. (x_scroll_bar_remove): Use mac_dispose_scroll_bar. (XTset_vertical_scroll_bar): Use mac_set_scroll_bar_bounds and mac_redraw_scroll_bar. (mac_move_window_with_gravity) [USE_MAC_TOOLBAR]: Use mac_move_window instead of MoveWindow. (mac_handle_size_change) [TARGET_API_MAC_CARBON]: Use mac_reposition_hourglass. (x_set_offset): Use mac_move_window_structure instead of MoveWindowStructure. (x_set_window_size): Use mac_size_window instead of SizeWindow. (x_set_mouse_pixel_position) [MAC_OSX]: Use mac_convert_frame_point_to_global. (x_raise_frame): Use mac_bring_window_to_front instead of BringToFront. (x_lower_frame): Use mac_send_window_behind instead of SendBehind. (mac_handle_visibility_change): Use Window instead of WindowRef. Use mac_is_window_visible/mac_is_window_collapsed instead of IsWindowVisible/IsWindowCollapsed, respectively. Use mac_collapse_window/mac_show_window instead of CollapseWindow/ShowWindow, respectively. (x_make_frame_invisible): Use mac_hide_window instead of HideWindow. (x_iconify_frame): Use mac_show_window instead of ShowWindow. Use mac_collapse_window instead of CollapseWindow. (x_free_frame_resources): Use Window instead of WindowRef. Use mac_dispose_frame_window. Clean up focus-related variables before calling mac_dispose_frame_window. (do_zoom_window) [MAC_OS8]: Use mac_clear_area instead of mac_clear_window. (mac_initialize): Use mac_toolbox_initialize instead of initializing any_help_event_p and calling init_apple_event_handler, init_tsm, and init_menu_bar. (any_help_event_p, last_window, save_port_clip_region) (read_socket_inev, saved_menu_event_location): Move variables to mactoolbox.c. (last_scroll_bar_part, scroll_bar_timer) (scroll_bar_timer_event_posted_p) [USE_TOOLKIT_SCROLL_BARS]: Likewise. (font_panel_shown_p) [USE_MAC_FONT_PANEL]: Likewise. (tsm_document_id) [USE_MAC_TSM]: Likewise. (mouse_region) [!TARGET_API_MAC_CARBON]: Likewise. (mac_window_to_frame, DEFAULT_NUM_COLS, MIN_DOC_SIZE, MAX_DOC_SIZE): Move defines to mactoolbox.c. (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: Likewise. (SCROLL_BAR_FIRST_DELAY, SCROLL_BAR_CONTINUOUS_DELAY) [USE_TOOLKIT_SCROLL_BARS]: Likewise. (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER) (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P) (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID) [USE_MAC_TOOLBAR]: Likewise. (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID) (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID): Move defines to macgui.h (x_flush, is_emacs_window, mac_begin_clip, mac_end_clip) (x_scroll_bar_handle_click, x_scroll_bar_report_motion) (mac_get_window_bounds, do_window_update, is_emacs_window) (do_grow_window, do_zoom_window, install_window_handler) (remove_window_handler, XTread_socket, init_menu_bar): Move functions to mactoolbox.c. (mac_flush_display_optional, mac_begin_cg_clip, mac_end_cg_clip) (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise. (mac_scroll_area, mac_event_to_emacs_modifiers, mac_get_mouse_btn) (mac_convert_event_ref, mac_get_ideal_size, mac_store_drag_event) (mac_handle_window_event, mac_handle_keyboard_event) (mac_handle_command_event, mac_handle_mouse_event) (install_application_handler, mac_post_mouse_moved_event) [TARGET_API_MAC_CARBON]: Likewise. (scroll_bar_timer_callback, install_scroll_bar_timer) (set_scroll_bar_timer, control_part_code_to_scroll_bar_part) (construct_scroll_bar_click, get_control_part_bounds) (x_scroll_bar_handle_press, x_scroll_bar_handle_release) (x_scroll_bar_handle_drag, x_set_toolkit_scroll_bar_thumb) [USE_TOOLKIT_SCROLL_BARS]: Likewise. (x_scroll_bar_set_handle, x_scroll_bar_note_movement) [!USE_TOOLKIT_SCROLL_BARS]: Likewise. (mac_handle_toolbar_event, mac_create_frame_tool_bar) (update_frame_tool_bar, free_frame_tool_bar) (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event) [USE_MAC_TOOLBAR]: Likewise. (mac_font_panel_visible_p, mac_handle_font_event) (mac_show_hide_font_panel, mac_set_font_info_for_selection) [USE_MAC_FONT_PANEL]: Likewise. (mac_handle_text_input_event, init_tsm) [USE_MAC_TSM]: Likewise. (do_apple_menu, mac_wait_next_event) [!TARGET_API_MAC_CARBON]: Likewise. (mac_store_service_event) [MAC_OSX]: Likewise. (last_mouse_glyph, last_mouse_glyph_frame, last_mouse_scroll_bar) (last_mouse_movement_time, input_signal_count) (mac_screen_config_changed, Qhi_command, Qtoolbar_switch_mode) (Qservice, Qpaste, Qperform, keycode_to_xkeysym_table): Make variables non-static. (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise. (Qtext_input, Vmac_ts_active_input_overlay, Qupdate_active_input_area) (Qunicode_for_key_event, Vmac_ts_script_language_on_focus) (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Likewise. (mac_focus_changed, note_mouse_movement, mac_focus_frame) (mac_handle_origin_change, mac_handle_size_change) (mac_handle_visibility_change, mac_to_emacs_modifiers) (mac_mapped_modifiers, mac_get_emulated_btn, do_keystroke) (mac_get_screen_info): Make functions non-static. (mac_move_window_with_gravity, mac_get_window_origin_with_gravity) (mac_image_spec_to_cg_image) [USE_MAC_TOOLBAR]: Likewise. (mac_store_event_ref_as_apple_event) [TARGET_API_MAC_CARBON]: Likewise. (Qwindow, mac_ready_for_apple_events): Move externs to mactoolbox.c. (Qbefore_string) [USE_MAC_TSM]: Likewise. (mac_toolbox_initialize, x_scroll_bar_report_motion, XTread_socket): Add externs. (mac_flush_display_optional) [USE_CG_DRAWING]: Likewise. (install_drag_handler, remove_drag_handler, install_service_handler) (install_menu_target_item_handler): Remove externs. (XSetWindowBackground): Rename to mac_set_frame_window_background. Take frame as argument instead of display and window. Move to mactoolbox.c. (mac_restore_keyboard_input_source, mac_save_keyboard_input_source) [USE_MAC_TSM]: New functions created from mac_tsm_resume and mac_tsm_suspend, respectively. (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: Use them. Move to mactoolbox.c.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Sun, 06 Apr 2008 01:58:59 +0000
parents a9b80f99c836
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
79751
a9b80f99c836 Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78262
diff changeset
1 Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
75769
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
2 See end for license conditions.
75587
68cfc1db0d26 Add copyright and permissions notices.
Glenn Morris <rgm@gnu.org>
parents: 72624
diff changeset
3
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
4
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
5 Contributing to Emacs
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
6
71619
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
7 Emacs is a collaborative project and we encourage contributions from
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
8 anyone and everyone. If you want to contribute in the way that will
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
9 help us most, we recommend (1) fixing reported bugs and (2)
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
10 implementing the feature ideas in etc/TODO. However, if you think of
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
11 new features to add, please suggest them too -- we might like your
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
12 idea. Porting to new platforms is also useful, when there is a new
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
13 platform, but that is not common nowadays.
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
14
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
15 For documentation on how to develop Emacs changes, refer to the Emacs
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
16 Manual and the Emacs Lisp Reference Manual (both included in the Emacs
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
17 distribution). The web pages in http://www.gnu.org/software/emacs
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
18 contain additional information.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
19
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
20 You may also want to submit your change so that can be considered for
71608
e4b43205e213 *** empty log message ***
Nick Roberts <nickrob@snap.net.nz>
parents: 71604
diff changeset
21 inclusion in a future version of Emacs (see below).
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
22
71619
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
23 If you don't feel up to hacking Emacs, there are many other ways to
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
24 help. You can answer questions on the mailing lists, write
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
25 documentation, find and report bugs, contribute to the Emacs web
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
26 pages, or develop a package that works with Emacs.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
27
71619
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
28 Here are some style and legal conventions for contributors to Emacs:
71608
e4b43205e213 *** empty log message ***
Nick Roberts <nickrob@snap.net.nz>
parents: 71604
diff changeset
29
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
30
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
31 * Coding Standards
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
32
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
33 Contributed code should follow the GNU Coding Standard.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
34
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
35 If it doesn't, we'll need to find someone to fix the code before we
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
36 can use it.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
37
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
38 Emacs has certain additional style and coding conventions.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
39
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
40 Ref: http://www.gnu.org/prep/standards_toc.html
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
41 Ref: GNU Coding Standards Info Manual
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
42 Ref: The "Tips" Appendix in the Emacs Lisp Reference.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
43
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
44
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
45 * Copyright Assignment
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
46
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
47 We can accept small changes without legal papers, and for medium-size
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
48 changes a copyright disclaimer is ok too. To accept substantial
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
49 contributions from you, we need a copyright assignment form filled out
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
50 and filed with the FSF.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
51
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
52 Contact us at emacs-devel@gnu.org to obtain the relevant forms.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
53
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
54
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
55 * Getting the Source Code
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
56
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
57 The latest version of Emacs can be downloaded using CVS or Arch from
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
58 the Savannah web site. It is important to write your patch based on
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
59 this version; if you start from an older version, your patch may be
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
60 outdated when you write it, and maintainers will have hard time
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
61 applying it.
71657
2abae690629b Mention INSTALL.CVS.
Kim F. Storm <storm@cua.dk>
parents: 71619
diff changeset
62
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
63 After you have downloaded the CVS source, you should read the file
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
64 INSTALL.CVS for build instructions (they differ to some extent from a
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
65 normal build).
71657
2abae690629b Mention INSTALL.CVS.
Kim F. Storm <storm@cua.dk>
parents: 71619
diff changeset
66
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
67 Ref: http://savannah.gnu.org/projects/emacs
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
68
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
69
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
70 * Submitting Patches
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
71
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
72 Every patch must have several pieces of information before we
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
73 can properly evaluate it.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
74
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
75 When you have all these pieces, bundle them up in a mail message and
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
76 send it to emacs-pretest-bug@gnu.org or emacs-devel@gnu.org.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
77
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
78 All subsequent discussion should also be sent to the mailing list.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
79
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
80 ** Description
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
81
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
82 For bug fixes, a description of the bug and how your patch fixes this
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
83 bug.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
84
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
85 For new features, a description of the feature and your
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
86 implementation.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
87
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
88 ** ChangeLog
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
89
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
90 A ChangeLog entry as plaintext (separate from the patch).
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
91
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
92 See the various ChangeLog files for format and content. Note that,
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
93 unlike some other projects, we do require ChangeLogs also for
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
94 documentation, i.e. Texinfo files.
71608
e4b43205e213 *** empty log message ***
Nick Roberts <nickrob@snap.net.nz>
parents: 71604
diff changeset
95
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
96 Ref: "Change Log Concepts" node of the GNU Coding Standards Info
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
97 Manual, for how to write good log entries.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
98
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
99 ** The patch itself.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
100
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
101 Please use "Context Diff" format.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
102
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
103 If you are accessing the CVS repository use
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
104 cvs update; cvs diff -cp
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
105 else, use
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
106 diff -cp OLD NEW
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
107
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
108 If your version of diff does not support these options, then get the
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
109 latest version of GNU Diff.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
110
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
111 ** Mail format.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
112
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
113 We prefer to get the patches as inline plain text.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
114
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
115 Please be aware of line wrapping which will make the patch unreadable
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
116 and useless for us. To avoid that, you can use MIME attachments or,
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
117 as a last resort, uuencoded gzipped text.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
118
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
119 ** Please reread your patch before submitting it.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
120
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
121 ** Do not mix changes.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
122
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
123 If you send several unrelated changes together, we will ask you to
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
124 separate them so we can consider each of the changes by itself.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
125
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
126
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
127 * Coding style and conventions.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
128
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
129 ** Mandatory reading:
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
130
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
131 The "Tips and Conventions" Appendix of the Emacs Lisp Reference.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
132
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
133 ** Avoid using `defadvice' or `eval-after-load' for Lisp code to be
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
134 included in Emacs.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
135
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
136 ** Remove all trailing whitespace in all source and text files.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
137
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
138 ** Use ?\s instead of ? in Lisp code for a space character.
71619
fc0f241e3ff8 Much rewrite.
Richard M. Stallman <rms@gnu.org>
parents: 71608
diff changeset
139
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
140
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
141 * Supplemental information for Emacs Developers.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
142
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
143 ** Write access to Emacs' CVS repository.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
144
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
145 Once you become a frequent contributor to Emacs, we can consider
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
146 giving you write access to the CVS repository.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
147
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
148
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
149 ** Emacs Mailing lists.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
150
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
151 Discussion about Emacs development takes place on emacs-devel@gnu.org.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
152
72624
caa0a3ee1f41 Replace emacs-bugs@gnu.org with bug-gnu-emacs@gnu.org.
Juri Linkov <juri@jurta.org>
parents: 71723
diff changeset
153 Bug reports for released versions are sent to bug-gnu-emacs@gnu.org.
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
154
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
155 Bug reports for development versions are sent to emacs-pretest-bug@gnu.org.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
156
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
157 You can subscribe to the mailing lists at savannah.gnu.org/projects/emacs.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
158
72624
caa0a3ee1f41 Replace emacs-bugs@gnu.org with bug-gnu-emacs@gnu.org.
Juri Linkov <juri@jurta.org>
parents: 71723
diff changeset
159 You can find the mailing lists archives at lists.gnu.org or gmane.org.
71657
2abae690629b Mention INSTALL.CVS.
Kim F. Storm <storm@cua.dk>
parents: 71619
diff changeset
160
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
161
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
162 ** Document your changes.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
163
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
164 Think carefully about whether your change requires updating the
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
165 documentation. If it does, you can either do this yourself or add an
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
166 item to the NEWS file.
71657
2abae690629b Mention INSTALL.CVS.
Kim F. Storm <storm@cua.dk>
parents: 71619
diff changeset
167
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
168 If you document your change in NEWS, please mark the NEWS entry with
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
169 the documentation status of the change: if you submit the changes for
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
170 the manuals, mark it with "+++"; if it doesn't need to be documented,
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
171 mark it with "---"; if it needs to be documented, but you didn't
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
172 submit documentation changes, leave the NEWS entry unmarked. (These
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
173 marks are checked by the Emacs maintainers to make sure every change
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
174 was reflected in the manuals.)
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
175
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
176
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
177 ** Understanding Emacs Internals.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
178
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
179 The best way to understand Emacs Internals is to read the code,
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
180 but the nodes "Tips" and "GNU Emacs Internals" in the Appendix
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
181 of the Emacs Lisp Reference Manual may also help.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
182
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
183 The file etc/DEBUG describes how to debug Emacs bugs.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
184
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
185
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
186
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
187 * How to Maintain Copyright Years for GNU Emacs
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
188
75769
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
189 See admin/notes/copyright.
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
190
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
191 ** Our lawyer says it is ok if we add, to each file that has been in Emacs
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
192 since Emacs 21 came out in 2001, all the subsequent years. We don't
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
193 need to check whether *that file* was changed in those years.
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
194 It's sufficient that *Emacs* was changed in those years (and it was!).
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
195
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
196 ** For those files that have been added since then, we should add
72624
caa0a3ee1f41 Replace emacs-bugs@gnu.org with bug-gnu-emacs@gnu.org.
Juri Linkov <juri@jurta.org>
parents: 71723
diff changeset
197 the year it was added to Emacs, and all subsequent years.
71660
475dcca89ec9 Slight formatting changes and typo fixes. Add description of NEWS markings.
Eli Zaretskii <eliz@gnu.org>
parents: 71657
diff changeset
198
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
199 ** For the refcards under etc/, it's ok to simply use the latest year
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
200 (typically in a `\def\year{YEAR}' expression) for the rendered copyright
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
201 notice, while maintaining the full list of years in the copyright notice
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
202 in the comments.
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
203
75769
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
204
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
205
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
206 This file is part of GNU Emacs.
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
207
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
208 GNU Emacs is free software; you can redistribute it and/or modify
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
209 it under the terms of the GNU General Public License as published by
78262
42f5a52dbf4b Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75769
diff changeset
210 the Free Software Foundation; either version 3, or (at your option)
75769
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
211 any later version.
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
212
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
213 GNU Emacs is distributed in the hope that it will be useful,
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
214 but WITHOUT ANY WARRANTY; without even the implied warranty of
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
215 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
216 GNU General Public License for more details.
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
217
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
218 You should have received a copy of the GNU General Public License
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
219 along with GNU Emacs; see the file COPYING. If not, write to the
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
220 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
92a0e87ff562 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75587
diff changeset
221 Boston, MA 02110-1301, USA.
71723
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
222
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
223 Local variables:
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
224 mode: outline
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
225 paragraph-separate: "[ ]*$"
a99d8ae1c5d9 Use outline format.
Kim F. Storm <storm@cua.dk>
parents: 71660
diff changeset
226 end:
71604
801b0f932405 New file.
Nick Roberts <nickrob@snap.net.nz>
parents:
diff changeset
227