1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00
Commit Graph

53087 Commits

Author SHA1 Message Date
Richard M. Stallman
0b2e177e3e (reseat_at_previous_visible_line_start): No longer static.
(get_next_display_element): Fix latest change: applies only to \n.
2004-11-14 04:31:03 +00:00
Richard M. Stallman
9136818a81 (Fvertical_motion): Scan to PT from start of line to make iterator consistent. 2004-11-14 04:13:54 +00:00
Vinicius Jose Latorre
6367b61632 interactive-p & file permission bits 2004-11-14 00:47:34 +00:00
Stefan Monnier
6ce66ffe74 (font-lock-fontify-syntactically-region): Fix last fix
so it doesn't forget to highlight the beginning of the region either.
2004-11-14 00:37:12 +00:00
Jan Djärv
b393528900 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
Record unwind with clean_up_file_dialog.

* xterm.h: Declare x_menu_in_use, x_menu_set_in_use,
x_menu_wait_for_event.

* xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
2004-11-13 23:29:11 +00:00
Jan Djärv
cd2531db72 Add BLOCK_INPUT in pop_down_file_dialog. 2004-11-13 23:17:55 +00:00
Jan Djärv
457a8155aa * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
(xg_file_sel_destroy): Removed.
(xg_file_response_cb, pop_down_file_dialog,
xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
New functions.
(xg_get_file_with_chooser, xg_get_file_with_selection): Take
new argument func, set it to xg_get_file_name_from_chooser/selector.
Move common code to xg_get_file_name.  Return widget created.
(xg_get_file_name): Set name, transient for, modal and destroy
with parent here.  Connect response signal to xg_file_response_cb,
connect delete-event to gtk_true.  Record pop_down_file_dialog
for unwind.  Do event loop and call x_menu_wait_for_event in loop.
(xg_create_widget): Make dialogs modal.
2004-11-13 23:09:11 +00:00
Daniel Pfeiffer
955afc1373 *** empty log message *** 2004-11-13 20:40:47 +00:00
Daniel Pfeiffer
1aaf8a45ee (c-basic-common-initc-font-lock-init, c-font-lock-init): Eliminate obsolete make-local-hook.
(c-mode, c++-mode, objc-mode, java-mode, idl-mode, pike-mode, awk-mode): Use run-mode-hooks.
2004-11-13 20:23:38 +00:00
Jan Djärv
af89e87102 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
Lisp_Object.
(popup_get_selection): Move unwind protect ...
(create_and_show_popup_menu, create_and_show_dialog): ... to here.
Move destroy of widget to pop_down_menu.
(popup_widget_loop): Move unwind protect ...
(create_and_show_popup_menu, create_and_show_dialog): ... to here.
Move destroy of widget to pop_down_menu.
(pop_down_menu): BLOCK_INPUT and destroy widget/window.
(xmenu_show): record unwind pop_down_menu.  Move XMenuDestroy,
x_mouse_leave and grabbed = 0 to pop_down_menu.
2004-11-13 20:18:21 +00:00
Kim F. Storm
3b8370e18b Add bug:
** Partial highlighting of wrapped overlay
2004-11-13 01:42:56 +00:00
Kim F. Storm
0e18f366ff Fixed these problems:
** Clicking on partially visible lines fails

From: David Kastrup <dak@gnu.org>
Date: 27 Apr 2004 16:42:58 +0200

I had gnus display a mouse-highlighted line (a URL from browse-url)
partially at the bottom of its window.  If I click with middle mouse
key on it, the window gets recentered while I hold the mouse key
pressed.  If I release it, the window returns into its old position
(cursor in top row) and nothing happens, presumably because the click
was not registered on the line itself, but on the magically
recentered version.

That is a nuisance.  Recentering of even partially visible click
targets should only happen if window-point moves there, but not at
the time of the click.  From the moment I hold down a key until it
gets released, the displayed window portion should not change, with
the sole exception of scrolling when dragging at the edge of the
screen.

(progn
  (setq line-spacing 4)
  (dotimes (i (window-height))
    (insert "\n" (int-to-string i)))
  (forward-line -2)
  (recenter -1))


** Can't drag modeline when mouse-autoselect-window is set

From: Klaus Zeitler <kzeitler@lucent.com>
Date: Mon, 11 Oct 2004 11:14:49 +0200

1. start emacs -q --no-site-file
2. set variable mouse-autoselect-window to t
3. split-window-vertically

now I can drag the modeline only upwards but not downwards
2004-11-13 01:40:36 +00:00
Kim F. Storm
8413d0d2da (mouse-drag-copy-region): Add :version.
(mouse-drag-mode-line-1): Let bind mouse-autoselect-window to nil
while dragging mode line, so mode line can be dragged downwards.
(mouse-drag-region-1): Let bind make-cursor-line-fully-visible
while pressing mouse button so window doesn't scroll until we
release the mouse if clicking on partially visible line.
2004-11-13 01:29:45 +00:00
Kim F. Storm
5596fbf1d9 *** empty log message *** 2004-11-13 01:29:31 +00:00
Kim F. Storm
8232c9138e (make_cursor_line_fully_visible_p): New variable.
(syms_of_xdisp): DEFVAR_BOOL it.
(make_cursor_line_fully_visible, try_cursor_movement)
(try_window_id): Use it.
2004-11-13 01:05:47 +00:00
Kim F. Storm
8571856be2 *** empty log message *** 2004-11-13 00:57:27 +00:00
Daniel Pfeiffer
a3c328ee89 run-mode-hooks instead of run-hooks 2004-11-12 23:47:30 +00:00
Jay Belanger
68d1b30d25 (calc-dumb-map): Declared it.
(calc-graph-show-dumb):  Check if calc-dumb-map is non-nil rather than
unbound.

(calc-graph-name):  Made `end' a local variable.

(calc-graph-lookup):  Made `varname' a local variable.

(var-DUMMY, var-DUMMY2, var-PlotRejects, calc-gnuplot-trail-mark):
Declared them.
(calc-graph-format-data):  Don't check if var-PlotRejects is bound.

(calc-graph-plot, calc-graph-compute-3d):  Removed references to the
unused variable y3vec.

(calc-graph-show-dumb):  Removed reference to unused variable found-pt.

(calc-graph-kill-hook, calc-graph-plot):  Removed reference to
calc-graph-prev-kill-hook.

(calc-graph-yvalue, calc-graph-yvec, calc-graph-numsteps,
calc-graph-numsteps3, calc-graph-xvalue, calc-graph-xvec,
calc-graph-xname, calc-graph-yname, calc-graph-xstep,
calc-graph-ycache, calc-graph-ycacheptr, calc-graph-refine,
calc-graph-keep-file, calc-graph-xval, calc-graph-xlow,
calc-graph-xhigh, calc-graph-yval, calc-graph-yp, calc-graph-xp,
calc-graph-zp, calc-graph-yvector, calc-graph-resolution,
calc-graph-y3value, calc-graph-y3name,
calc-graph-y3step, calc-graph-y3step, calc-graph-zval,
calc-graph-stepcount, calc-graph-is-splot, calc-graph-surprise-splot,
calc-graph-blank, calc-graph-non-blank, calc-graph-curve-num):  New
variables.
(calc-graph-plot, calc-graph-compute-2d, calc-graph-refine-2d)
(calc-graph-recompute-2d, calc-graph-compute-3d, calc-graph-format-data):
Replaced undeclared variables with the above declared variables.
2004-11-12 22:35:21 +00:00
Eli Zaretskii
1b43e14409 ChangeLog 2004-11-12 18:19:08 +00:00
Eli Zaretskii
a30fb04fbc Add a test for DECL_ALIGN support, and add a trivial definition to
src/config.h if 8-byte alignment is not supported.
2004-11-12 18:18:43 +00:00
Eli Zaretskii
f431a91000 (rmail-get-new-mail): Use the renamed variables `rsf-beep' and
`rsf-sleep-after-message'.
2004-11-12 17:10:38 +00:00
Eli Zaretskii
7c7d40755a (rmail-spam-filter): Only check white list if `message-sender' is non-nil. 2004-11-12 17:03:56 +00:00
Eli Zaretskii
63cd573484 (desktop-create-buffer, desktop-save): Avoid some consing by using mapc
instead of mapcar.
2004-11-12 16:56:09 +00:00
Eli Zaretskii
d8dfe1878a ChangeLog 2004-11-12 16:11:11 +00:00
Eli Zaretskii
5ae143b270 Don't require djecho.exe for the v1.x build. 2004-11-12 16:10:03 +00:00
Kim F. Storm
41f41c62a6 Fixed this bug:
** line-spacing and (recenter -1)

From: SAITO Takuya <tabmore@rivo.mediatti.net>
Date: Mon, 31 May 2004 02:07:57 +0900 (JST)

(recenter -1) does not show point at the bottom of the window
if line-spacing is set to positive integer.

Start emacs -Q, and evaluate below:

(progn
  (setq line-spacing 1)
  (dotimes (i (window-height))
    (insert "\n" (int-to-string i)))
  (recenter -1))

Then, point is displayed at the center of the window.
But point should be displayed at the bottom of the window like Emacs-21.3.
2004-11-12 14:29:24 +00:00
Kim F. Storm
546f98b838 (init_iterator): Clear it.max_extra_line_spacing.
(move_it_vertically_backward): Don't recure to move further back.
(move_it_vertically): Remove superfluous condition.
(move_it_by_lines): Clear last_height when moved 0 lines.
(resize_mini_window): use it.max_extra_line_spacing.
(display_tool_bar_line): Clear row->extra_line_spacing.
(try_scrolling): Use move_it_vertically_backward directly.
(redisplay_window): Likewise.
(compute_line_metrics): Set row->extra_line_spacing.
(display_line, display_string): Likewise.
(x_produce_glyphs): Update it->max_extra_line_spacing.
2004-11-12 14:27:07 +00:00
Kim F. Storm
f204989e2e (window_scroll_pixel_based, Frecenter): Use
move_it_vertically_backward directly.
(Frecenter): Fix calculation of new start pos for negative arg.
Before, the new start pos was sometimes chosen too far back, so
the last line became only partially visible, and thus would be
either only semi-visible or automatically scrolled to the middle
of the window by redisplay.
2004-11-12 14:26:53 +00:00
Kim F. Storm
db0c5a7d08 (struct glyph_row): New member extra_line_spacing.
(struct it): New member max_extra_line_spacing.
(MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
(MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
(MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
part of last line is only extra line spacing (so the text on the
line is fully visible). Use helper macros.
Add W arg (to use them).  All callers changed.
(MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
(MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
2004-11-12 14:26:34 +00:00
Kim F. Storm
381f7091f6 *** empty log message *** 2004-11-12 14:21:27 +00:00
Kim F. Storm
b9de078aa6 (pop_down_menu): Return nil. 2004-11-12 13:47:13 +00:00
Jan Djärv
f1d1cd24db (pop_down_menu): New function.
(popup_get_selection, popup_widget_loop): Unwind protect to
pop_down_menu.
(popup_widget_loop): Add argument widget.
(create_and_show_popup_menu, create_and_show_dialog): Pass new
argument widget to popup_widget_loop.
2004-11-12 10:34:36 +00:00
Jan Djärv
df00f4364c (popup_widget_loop): Add argument do_timers.
(create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
do_timers to popup_widget_loop.
(create_and_show_popup_menu): Pass 1 for do_timers to
popup_get_selection.
2004-11-12 09:36:55 +00:00
Jan Djärv
c3438661cb * xmenu.c (x_menu_wait_for_event): New function.
(popup_get_selection, popup_widget_loop):  Call x_menu_wait_for_event
to handle timers.
(xmenu_show): Call XMenuActivateSetWaitFunction so that
x_menu_wait_for_event is called by XMenuActivate.
2004-11-12 08:33:51 +00:00
Jan Djärv
141dbd2b16 * XMenu.h (XMenuActivateSetWaitFunction): New function.
* Activate.c (XMenuActivateSetWaitFunction): New function.
(XMenuActivate): Call wait_func if set, before XNextEvent.
2004-11-12 08:28:57 +00:00
Stefan Monnier
036cf769ad *** empty log message *** 2004-11-12 04:06:13 +00:00
Stefan Monnier
f61b7b7fb1 (byte-compile-inline-expand): Understand the
new byte-compile-function-environment binding to t.
2004-11-12 03:59:26 +00:00
Vinicius Jose Latorre
e22c7647c7 fix to use new easymenu 2004-11-12 02:14:03 +00:00
Nick Roberts
60516f7b9d (require): Explain why CL is needed. 2004-11-12 00:14:24 +00:00
Nick Roberts
cf66c8aaa4 *** empty log message *** 2004-11-12 00:13:36 +00:00
Stefan Monnier
7ae3cc71e1 (font-lock-fontify-syntactically-region):
Don't forget to highlight the last char when we hit `end'.
2004-11-12 00:00:59 +00:00
Stefan Monnier
d1ff89d941 (mouse-wheel-progressive-speed): Fix typo in name.
(mwheel-scroll): Adjust accordingly.
2004-11-11 23:51:40 +00:00
Stefan Monnier
d6a1331707 Reduce spurious warnings.
(cvs-status-checkout): Remove.
(cvs-status-mode-map): Use cvs-mode-checkout instead.
2004-11-11 23:47:15 +00:00
Stefan Monnier
38400c2a69 (cvs-mode-checkout): New command. 2004-11-11 23:45:52 +00:00
Stefan Monnier
8cece98ad3 *** empty log message *** 2004-11-11 23:04:45 +00:00
Stefan Monnier
1885cb8854 (iso-cvt-define-menu): Fix typo. 2004-11-11 22:59:58 +00:00
Stefan Monnier
18385083b9 Require CL. 2004-11-11 22:58:14 +00:00
Stefan Monnier
977b50fb12 Use push.
(byte-compile-file-form-defalias): Rename from byte-compile-defalias.
(defalias): Remove the `byte-compile' property and add a `byte-hunk-handler'.
2004-11-11 22:44:46 +00:00
Juri Linkov
be4b3ae8be (Info-search): Save match data for isearch. Skip Tag Table node. 2004-11-11 21:45:57 +00:00
Juri Linkov
811cab8651 (magic-mode-alist): Use optimization for SGML mode too.
(set-auto-mode): Doc fix.  Remove unused variable `xml'.
2004-11-11 21:42:32 +00:00