Chong Yidong [Sat, 25 Feb 2006 23:20:10 +0000 (23:20 +0000)]
* xterm.h (x_catch_errors) Return value changed to void.
(x_uncatch_errors): Unused count argument deleted.
* xterm.c (x_catch_errors): Don't use record_unwind_protect, since
it can be called in a signal handler.
(x_catch_errors_unwind): Function deleted.
(x_uncatch_errors): Deallocate last x_error_message_stack struct.
(x_check_errors): Call x_uncatch_errors before signalling error.
(x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
(x_connection_closed, x_list_fonts): Use new versions of
x_catch_errors and x_uncatch_errors.
Alan Mackenzie [Fri, 24 Feb 2006 15:33:02 +0000 (15:33 +0000)]
cc-align.el, cc-awk.el, cc-bytecomp.el, cc-cmds.el, cc-compat.el,
cc-defs.el, cc-engine.el, cc-fonts.el, cc-langs.el, cc-menus.el,
cc-mode.el, cc-styles.el, cc-subword.el, cc-vars.el: Add 2006 to the
copyright statement.
cc-awk.el: (c-awk-after-change): Protect the match data with
save-match-data. It was being corrupted when Font Lock was not enabled.
(ii): Fix a typo.
cc-cmds.el, cc-mode.el, cc-engine.el (c-update-modeline): Concatenate the
minor mode indicators directly onto mode-name, removing
c-submode-indicators. Sometimes, c-s-i got separated from the mode name
on the mode line.
cc-cmds.el, cc-mode.el: Rename c-hungry-backspace to
c-hungry-delete-backwards, at the request of RMS. Leave the old name as
an alias.
cc-cmds.el (c-electric-brace): Fix clean-up brace-else-brace (error due
to mbeg, mend being undefined).
cc-defs.el (c-version): Update to 5.31.3.
cc-defs.el: [Supersedes patch V1.38]: (top level): Check for a buggy
font-lock-compile-keywords ONLY in XEmacs. GNU Emacs 22 now has a check
which would throw an error here.
cc-engine.el (c-beginning-of-statement-1): Clarify doc-string and
comments. Distinguish real labels ("case 1:" or "foo:") from non-labels
("public:").
cc-engine.el (c-after-change-check-<>-operators): Remove save-match-data,
reversing change for V1.45. save-match-data is now in c-after-change.
cc-engine.el (c-forward-objc-directive): Replace c-forward-token-2 with
crude coding; c-f-t-2 doesn't move over a token at EOB. Objc Mode was
hanging after typing, e.g., "@implementation".
cc-langs.el (c-filter-ops): Made it available at runtime too to work when
`c-make-init-lang-vars-fun' needs to evaluate from source.
cc-langs.el (c-make-init-lang-vars-fun): Improved the error message when
there's an evaluation error to show whether it's loaded from source or
not.
(c-mode-menu): Add menu items for Electric Mode and Subword Mode.
cc-mode.el (c-after-change): Protect the match data with save-match-data.
It was getting corrupted by c-after-change-check-<>-operators.
cc-mode.el: File Local variables: Solve the problem where both `mode' and
c-file-offsets are specified: `mode' will overwrite c-f-o's settings:
(c-remove-any-local-eval-or-mode-variables): new function.
(c-postprocess-file-styles): call the above new function, within
c-tentative-buffer-change, to splat `mode' and `eval' before the second
hack-local-variables.
Alan Mackenzie [Fri, 24 Feb 2006 12:20:45 +0000 (12:20 +0000)]
(Hungry WS Deletion): Rename c-hungry-backspace to
c-hungry-delete-backwards, at the request of RMS. Leave the old name as
an alias.
(Movement Commands): Correct the definition of c-beginning-of-defun, to include the
function header within the defun.
(Comment Commands): State that C-u M-; kills any existing comment.
(Electric Keys): Add a justification for electric indentation.
(Hungry WS Deletion): Clear up the names and complications of the
BACKSPACE and DELETE keys.
Correct two typos.
Juri Linkov [Thu, 23 Feb 2006 23:16:12 +0000 (23:16 +0000)]
(Common requests): Move `Turning on auto-fill by
default' after `Wrapping words automatically'. Move `Working with
unprintable characters' before `Searching for/replacing newlines'.
Move `Replacing highlighted text' after `Highlighting a region'.
Merge `Repeating commands' and `Repeating a command as many times
as possible' into the former.
(Packages that do not come with Emacs): Add refs to Gmane and etc/MORE.STUFF.
Juri Linkov [Thu, 23 Feb 2006 22:17:49 +0000 (22:17 +0000)]
(Newsgroup archives): Update URLs of GNU mail archives.
(Reporting bugs): Suggest using `M-x report-emacs-bug'.
Add xref to `(emacs)Reporting Bugs'.
(Getting a printed manual): Add URL to other formats of the manual.
(Common requests): Fix menu.
(Highlighting a region): Remove ref to `Turning on syntax highlighting'.
(Horizontal scrolling): Mention `truncate-partial-width-windows'.
(Inserting text at the beginning of each line): Add pxref to
`Changing the included text prefix'.
(Forcing the cursor to remain in the same column): Mention `track-eol'
and `set-goal-column'. Add pxref to `(emacs)Moving Point'.
(Replacing text across multiple files): Add keybinding `Q' for
`dired-do-query-replace'.
Juri Linkov [Thu, 23 Feb 2006 21:41:26 +0000 (21:41 +0000)]
(compare-windows-highlight): Add new value
`persistent' and change :type from `boolean' to `choice'.
(compare-windows-overlays1, compare-windows-overlays2):
New internal variables.
(compare-windows-highlight): If compare-windows-highlight is
`persistent', add current overlays to compare-windows-overlays[12]
instead of adding compare-windows-dehighlight to pre-command-hook.
(compare-windows-dehighlight): Delete all overlays from
compare-windows-overlays[12].
Carsten Dominik [Thu, 23 Feb 2006 10:54:29 +0000 (10:54 +0000)]
(org-cleaned-string-for-export, org-solidify-link-text):
New function.
(org-add-hook): Use `add-local-hook' instead of `make-local-hook'
for XEmacs, just to silence the compiler.
(org-export-as-ascii, org-export-as-html-and-open): Use
`org-cleaned-string-for-export' and create internal links.
(org-follow-mhe-link): Require mh-e, use folder.
Nick Roberts [Thu, 23 Feb 2006 07:38:57 +0000 (07:38 +0000)]
(gdb-debug-ring-max): Rename from gdb-debug-log-length.
(gdb-debug-ring): Rename from gdb-debug-log-ring. Don't make
it a real ring but...
(gud-gdba-marker-filter): ...make it work like mark-ring.
(gdb-enable-debug): Rename from gdb-enable-debug-log.
(gdb-mouse-jump): New function. Add bindings.
Nick Roberts [Wed, 22 Feb 2006 22:01:35 +0000 (22:01 +0000)]
(gdb-signalled): New variable and function.
(gdb-debug-log-ring): Rename from gdb-debug-log and make a ring.
(gdb-send, gdb-send-item, gud-gdba-marker-filter): Use it.
(gdb-debug-log-length): Customize it's length.
(gud-watch, gdb-var-create-handler): Display function::var format
but don't use to create variable object.
(gdb-var-create-handler): Use message-box in place of message.
(gdb-stopped): Call gdb-exited if signalled.
(GC_CLIP_REGION): Remove macro.
(mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
All uses changed. Don't do clipping if n_clip_rects is zero.
(mac_set_clip_rectangles): Use xassert instead of abort. Set
n_clip_rects. Don't make clip_region empty when number of
clipping rectangles is zero.
(mac_reset_clip_rectangles): Set n_clip_rects directly instead of
calling mac_set_clip_rectangles.
(x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
avoid multiple redraws.
Carsten Dominik [Wed, 22 Feb 2006 07:10:21 +0000 (07:10 +0000)]
(org-mark-ring-previous, org-mark-ring-set): New
commands.
(org-mark-ring): New variable.
(org-mark-ring-length): New option.
(org-open-at-point, org-goto, org-open-file): Push old position
onto the mark ring.
(org-add-hook): New function.
(org-export-table-remove-special-lines): New option.
(org-skip-comments, org-format-org-table-html): Respect new option
`org-export-table-remove-special-lines'.
(org-open-file): Allow special command configuration for
directory link.
(org-file-apps): Fixed bugs in customize type, added setting for
directories.
(org-activate-tags, org-format-agenda-item, org-complete)
(org-get-tags-at, org-scan-tags, org-make-tags-matcher)
(org-get-tags, org-get-buffer-tags, org-open-at-point)
(org-link-search, org-make-org-heading-search-string)
(org-make-org-heading-camel): Allow @ and 0-9 as tags characters.
(org-radio-targets, org-file-link-context-use-camel-case)
(org-activate-camels): New options.
(org-update-radio-target-regexp, org-all-targets)
(org-make-target-link-regexp, org-activate-target-links): New
functions.
(org-make-org-heading-search-string): New function.
(org-store-link, org-insert-link): Use new option
`org-file-link-context-use-camel-case'.
(org-activate-camels): Use new option `org-activate-camels'.
(org-link-regexp): Added mhe prefix.
(org-open-at-point,org-store-link): Support for mhe links.
(org-mhe-get-message-id, org-mhe-get-message-folder)
(org-mhe-get-header,org-follow-mhe-link): New functions.
(org-remove-angle-brackets, org-add-angle-brackets): New
functions.
(org-bracked-link-regexp): New constant.
(org-read-date): Fixed bug that was rejecting all typed dates.
(org-link-search): Make hierarchy above visible after a match.
(org-follow-bbdb-link): Inhibit electric mode for BBDB.
(org-store-link): Fixed bug with link creation when cursor is in
an empty line.
(org-open-at-point): Fixed bug with matching a link. Fixed buggy
argument sequence in call to `org-view-tags'.
(org-compile-prefix-format): Set `org-prefix-has-tag'.
(org-prefix-has-tag): New variable.
(org-format-agenda-item): Remove tags from headline if
appropriate.
(org-agenda-remove-tags-when-in-prefix): New option.
(mac_draw_string_common): Remove arg MODE. New arg
BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
(mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
[USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
mac_draw_string_cg. New arg BG_WIDTH. All uses changed. Draw
background if BG_WIDTH is not zero. Use float constants as
divisors instead of double. Use alloca instead of xmalloc/xfree.
(x_draw_glyph_string_background, x_draw_glyph_string_foreground)
[!MAC_OS8 || USE_ATSUI]: Background may be drawn using
mac_draw_image_string* functions.
(XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
some fonts when srcCopy text transfer mode might be used.
(mac_begin_clip, mac_end_clip): Check if region is empty.
(mac_set_clip_rectangles): When resetting clip region, make it
empty instead of disposing of it.
Kim F. Storm [Mon, 20 Feb 2006 22:24:10 +0000 (22:24 +0000)]
(NEW FEATURES): Completed work on this item:
Rework how fringe bitmaps are defined and used.
Currently, bitmap usage and bitmap appearence are "mixed-up" in a
one-level representation. It would be cleaner to split the
representation into a two-level model where first level maps
bitmap usage to a bitmap name, and second level maps bitmap name to
a bitmap appearence.
Kim F. Storm [Mon, 20 Feb 2006 22:15:13 +0000 (22:15 +0000)]
(Fringe Indicators): New section.
Move indicate-empty-lines, indicate-buffer-boundaries, and
default-indicate-buffer-boundaries here.
Add fringe-indicator-alist and default-fringes-indicator-alist.
Add list of logical fringe indicator symbols.
Update list of standard bitmap names.
(Fringe Cursors): New section.
Move overflow-newline-into-fringe here.
Add fringe-cursor-alist and default-fringes-cursor-alist.
Add list of fringe cursor symbols.
Kim F. Storm [Mon, 20 Feb 2006 22:14:22 +0000 (22:14 +0000)]
(enum fringe_bitmap_type): Remove. Change all uses
to use `int'.
(NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
Define explicitly.
(Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
(Qhollow_small): New variables.
(syms_of_fringe): Intern and staticpro them.
(question_mark_bits): Rename from unknown_bits.
(left_curly_arrow_bits): Rename from continuation_bits.
(right_curly_arrow_bits): Rename from continued_bits.
(left_triangle_bits): Rename from ov_bits.
(right_triangle_bits): Added.
(filled_rectangle_bits): Rename from filled_box_cursor_bits.
(hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
(filled_square_bits): Added.
(vertical_bar_bits): Rename from bar_cursor_bits.
(horisontal_bar_bits): Rename from hbar_cursor_bits.
(empty_line_bits): Rename from zv_bits.
(standard_bitmaps): Update to use new names.
(draw_fringe_bitmap_1): Make static.
(get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
to map from logical cursors and indicators to physical bitmaps.
(draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
bitmaps using symbol names instead of bitmap numbers.
(update_window_fringes): Use logical indicator symbol names
instead of bitmap numbers for logical. Add bitmap cache.
(LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
Kim F. Storm [Mon, 20 Feb 2006 22:14:06 +0000 (22:14 +0000)]
(init_buffer_once): Set dummy default values for
fringe-indicator-alist and fringe-cursor-alist. The proper
default values are set by pre-loading fringe.el.
(syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
correspondig default- variables.