1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00
Commit Graph

97341 Commits

Author SHA1 Message Date
Stefan Monnier
8bbb7dd8a6 * lisp/textmodes/rst.el: Minor cleanup to improve style.
(rst-get-decoration): Eliminate unneeded assignment.
(rst-update-section, rst-promote-region, rst-straighten-decorations)
(rst-section-tree, rst-adjust): Use point-marker.
(rst-toc-mode-mouse-goto): Avoid setq.
(rst-shift-region-guts, rst-shift-region-left)
(rst-iterate-leftmost-paragraphs, rst-iterate-leftmost-paragraphs-2)
(rst-convert-bullets-to-enumeration): Use copy-marker.
2010-11-17 22:02:15 -05:00
Stefan Monnier
b7e270a2c4 * lisp/minibuffer.el (completion-fail-discreetly): New var.
(completion--do-completion): Use it.
2010-11-17 21:44:44 -05:00
Stefan Monnier
c51bb5d2c2 * lisp/electric.el (electric-pair-pairs): New var.
(electric-pair-post-self-insert-function): Use it.
(electric-layout-post-self-insert-function): Don't insert a before
newline unless it's actually needed.
2010-11-17 21:43:42 -05:00
Katsumi Yamaoka
239661c085 gnus.texi (Misc Article): Document gnus-inhibit-images. 2010-11-18 02:38:03 +00:00
Katsumi Yamaoka
6568a67db8 gnus-html.el: Don't display images if gnus-inhibit-images is non-nil.
(gnus-html-wash-images): Don't display images if gnus-inhibit-images is non-nil; register displayer for cid images.
(gnus-html-display-image): Work for cid image.
(gnus-html-insert-image): Allow arguments.
(gnus-html-put-image): Inhibit read-only.
(gnus-html-prefetch-images): Don't prefetch images if gnus-inhibit-images is non-nil.
2010-11-18 02:00:00 +00:00
Gnus developers
c0f9edcead Merge changes made in Gnus trunk.
nnir.el (nnir-run-imap): Order the article list separately for each group.
shr.el (shr-put-image): Break lines when inserting big pictures.
mml2015.el (mml2015-epg-encrypt): Fix two cons with missing sender.
2010-11-17 22:15:24 +00:00
Eli Zaretskii
146d267b8b Fix bug #7417 with cursor positioning on empty lines.
xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
 lines on text-mode terminals.
2010-11-17 21:15:24 +02:00
Stefan Monnier
fad0d56519 * src/xterm.c (get_current_wm_state): Rename from get_current_vm_state.
(do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
2010-11-17 10:12:02 -05:00
Stefan Monnier
25f38310f9 Remove "tiny change"s for Eric Hanchrow 2010-11-17 10:07:48 -05:00
Stefan Monnier
bac2de0fe3 * lisp/progmodes/python.el (run-python): Explain why we remove the current
directory from sys.path.  Suggested by Eric Hanchrow <erich@cozi.com>.
2010-11-17 10:00:16 -05:00
Stefan Monnier
c04f2ac063 * lisp/progmodes/grep.el (grep-regexp-alist): Tighten the regexp.
Fixes: debbugs:7378
2010-11-17 09:54:15 -05:00
Katsumi Yamaoka
f8d8a97bda shr.el (shr-image-displayer): Protect function against non-existent image source. 2010-11-17 08:28:15 +00:00
Katsumi Yamaoka
40de2c6dd3 gnus-art.el (gnus-inhibit-images): New user option.
* gnus-art.el (gnus-inhibit-images): New user option.
(gnus-mime-display-single): Don't display image if it is non-nil.

* mm-decode.el (mm-shr): Bind shr-inhibit-images to the value of
gnus-inhibit-images.

* shr.el (shr-image-displayer): New function.
(shr-tag-img): Use it.
2010-11-17 07:22:19 +00:00
Kenichi Handa
6b4bb7039f coding.c (Fset_terminal_coding_system_internal): Fix previous change (set charset-ID list instead of charset-symbol list). 2010-11-17 14:51:09 +09:00
Chong Yidong
9173a8fbd7 Cleanup of window coordinate positioning code.
Now, text area click input events measure Y from the top of the text
area, excluding the header line if any.

* src/dispnew.c (buffer_posn_from_coords): Assume that X counts from
the start of the text area.

* src/keyboard.c (make_lispy_position): For text area clicks, record Y
pixel position relative to the text area, excluding header line.
Also change X and Y to Lisp_Objects, not pointers; don't return
coordinate values via pointers.  Pass ON_TEXT_AREA coordinate to
buffer_posn_from_coords counting from the start of the text area.
(Fposn_at_x_y, make_lispy_event): Callers changed.

* src/w32term.c (w32_read_socket):
* src/msdos.c (dos_rawgetc):
* src/xterm.c (handle_one_xevent): Likewise.

* src/window.c (coordinates_in_window): Change X and Y to ints rather
than pointers; don't return coordinates via pointers.
(struct check_window_data): Change X and Y from pointers to ints.
(window_from_coordinates): Remove args WX and WY; don't return
coordinates via pointers.
(Fcoordinates_in_window_p, window_from_coordinates):
(check_window_containing, Fwindow_at): Callers changed.
(window_relative_x_coord): New function.

* src/window.h (window_from_coordinates, window_relative_x_coord):
Update prototypes.

* src/xdisp.c (remember_mouse_glyph): Change window_from_coordinates
call.  Use window_relative_x_coord.
(note_mouse_highlight): Change window_from_coordinates call.
2010-11-16 21:37:45 -05:00
Daniel Dehennin
809fde057f mml2015-epg-sign: Use From header.
mml2015.el (mml2015-epg-sign): New variable 'sender' is
 (message-options-get 'message-sender) and append it to mml2015-signers.
 If mm-sign-option is not 'guided, mml2015-signers and sender sign the mail.
2010-11-16 23:05:02 +00:00
Chong Yidong
1985927ce8 Revert changes in 2010-11-16T19:59:24Z!cyd@stupidchicken.com 2010-11-16 16:47:43 -05:00
Chong Yidong
7aff9c22e3 * src/keyboard.c (make_lispy_position): Fix pixel calculation error in last commit. 2010-11-16 16:38:37 -05:00
Stefan Monnier
03f70355d8 * lisp/progmodes/octave-mod.el: Rely on elecric-*-modes.
(octave-mode-map): Don't bind ;, SPC, and LF.
(octave-auto-indent, octave-auto-newline): Remove.
(electric-layout-rules): Declare.
(octave-mode): Set electric-layout-rules.
(octave-indent-new-comment-line): Use reindent-then-newline-and-indent.
(octave-reindent-then-newline-and-indent, octave-electric-semi)
(octave-electric-space): Remove.
2010-11-16 16:19:34 -05:00
Stefan Monnier
7100ff9844 * lisp/electric.el (electric-layout-mode): New minor mode.
(electric--after-char-pos): New function.
(electric-indent-post-self-insert-function): Use it.
(electric-layout-rules): New var.
(electric-layout-post-self-insert-function): New function.
(electric-indent-mode): Make them interact better.
2010-11-16 16:14:46 -05:00
Chong Yidong
77cd1a622a Cleanup of window coordinate positioning code.
Now, text area click input events measure Y from the top of the text
area, excluding the header line if any.

* src/dispnew.c (buffer_posn_from_coords): Assume that X counts from
the start of the text area.

* src/keyboard.c (make_lispy_position): For text area clicks, record Y
pixel position relative to the text area, excluding header line.
Also change X and Y to Lisp_Objects, not pointers; don't return
coordinate values via pointers.  Pass ON_TEXT_AREA coordinate to
buffer_posn_from_coords counting from the start of the text area.
(Fposn_at_x_y, make_lispy_event): Callers changed.

* src/w32term.c (w32_read_socket):
* src/msdos.c (dos_rawgetc):
* src/xterm.c (handle_one_xevent): Likewise.

* src/window.c (coordinates_in_window): Change X and Y to ints rather
than pointers; don't return coordinates via pointers.
(struct check_window_data): Change X and Y from pointers to ints.
(window_from_coordinates): Remove args WX and WY; don't return
coordinates via pointers.
(Fcoordinates_in_window_p, window_from_coordinates):
(check_window_containing, Fwindow_at): Callers changed.
(window_relative_x_coord): New function.

* src/window.h (window_from_coordinates, window_relative_x_coord):
Update prototypes.

* src/xdisp.c (remember_mouse_glyph): Change window_from_coordinates
call.  Use window_relative_x_coord.
(note_mouse_highlight): Change window_from_coordinates call.
2010-11-16 14:59:24 -05:00
Lars Magne Ingebrigtsen
023ec128fd Avoid interpreting file:/foo:/bar URLs via tramp. 2010-11-16 14:46:12 +01:00
Dan Nicolaescu
d2762c8641 Convert definitions to standard C.
* src/strftime.c (LOCALE_PARAM_DECL): Update for standard C.
(LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
(memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
Convert definitions to standard C.
* src/regex.c: Do not include <stdlib.h>, config.h does it.
Include unistd.h.
(xrealloc, init_syntax_once, re_match, regcomp, regexec)
(regerror, regfree): Convert definitions to standard C.
* src/mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
(__mktime_internal): Convert definitions to standard C.
2010-11-15 22:44:51 -08:00
Lars Magne Ingebrigtsen
0073e0313a Allow gnus-html to register image displayer callbacks.
gnus-html.el (gnus-html-wash-images): Register a displayer.
gnus-util.el (gnus-find-text-property-region): Return markers.
2010-11-16 00:04:25 +00:00
Lars Magne Ingebrigtsen
8b6f657390 Rework how Gnus is supposed to be able to display all the images in HTML.
shr.el (shr-tag-img): Put a displayer in the text property.
gnus-util.el (gnus-find-text-property-region): New utility function.
gnus-html.el (gnus-html-display-image): Make the alt optional.
gnus-html.el (gnus-html-show-images): Remove.
gnus-art.el (gnus-article-show-images): New, more general function.
gnus-html.el, shr.el: Use image-url instead of gnus-image-url to unify the image url text properties.
2010-11-15 23:45:55 +00:00
Lars Magne Ingebrigtsen
90eef04725 gnus-agent.el (gnus-agentize): Only do the auto-agentizing if gnus-agent-auto-agentize-methods is set. Which it isn't. 2010-11-15 22:12:43 +00:00
Stefan Monnier
cca982d001 * lisp/emacs-lisp/checkdoc.el (checkdoc-syntax-table): Fix last change.
(checkdoc-sentencespace-region-engine, checkdoc-this-string-valid)
(checkdoc-proper-noun-region-engine): Use with-syntax-table.
2010-11-15 16:40:30 -05:00
Dan Nicolaescu
ae76d9e11e * src/callproc.c (child_setup): Fix previous change. 2010-11-15 10:11:52 -08:00
Ken Manheimer
8d8f583105 (allout-version): micro increment 2010-11-15 12:41:33 -05:00
Dan Nicolaescu
42a7e7f1c4 Remove config.h include guards.
* src/w32proc.c:
* src/w32inevt.c:
* src/w32heap.c:
* src/w32.c: Remove config.h include guards.
2010-11-15 09:21:18 -08:00
Dan Nicolaescu
678029433d * src/callproc.c (child_setup): Reorder code to simplify #ifdefs.
No code changes.
2010-11-15 09:11:08 -08:00
Agustín Martín
84992dff60 flyspell.el (flyspell-generic-progmode-verify): Make sure to check inside the word (Bug#6761). 2010-11-15 13:27:33 +01:00
Dan Nicolaescu
f16cafe309 * lib-src/test-distrib.c: Remove include guards for config.h and fcntl.h.
(O_RDONLY): Do not define.
(cool_read): Fix type for variable "sofar".
2010-11-14 22:42:21 -08:00
Dan Nicolaescu
aa42211e74 * configure.in: Do not check for unconditionally included headers. 2010-11-14 22:39:02 -08:00
Dan Nicolaescu
f0e1af4627 * src/process.c: Include <sys/ioctl.h> unconditionally,
keyboard.c already does it.
2010-11-14 22:27:41 -08:00
Dan Nicolaescu
c2f0866a23 * src/keyboard.c (pending_malloc_warning): Add const to match
definition in alloc.c.
(Fset_input_interrupt_mode): Simplify #ifdefs.
2010-11-14 22:18:50 -08:00
Dan Nicolaescu
12e610e89e Clean up src/systty.h macros.
* systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
(EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
definition in all uses.
(EMACS_TTY_TABS_OK): Remove, it has a single user.
* src/sysdep.c (discard_tty_input, child_setup_tty)
(init_sys_modes, tabs_safe_p, reset_sys_modes):
* src/emacs.c (shut_down_emacs):
* src/callproc.c (child_setup):
* src/term.c (dissociate_if_controlling_tty): Inline removed macros.
2010-11-14 22:10:35 -08:00
Dan Nicolaescu
92d3ab7e32 * src/data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused. 2010-11-14 21:52:58 -08:00
Katsumi Yamaoka
3a7a03add9 gnus-sum.el (gnus-summary-move-article): Fix `while' loop to make it work for two or more articles. 2010-11-15 02:40:42 +00:00
Chong Yidong
a3e6bad42c Repeat 2010-11-14 change to xfns.c for w32 and ns.
* w32fns.c (Fx_create_frame):
* nsfns.m (Fx_create_frame): Don't check for the cursorColor
resource here; it's now done at startup.
2010-11-14 14:58:24 -05:00
Jan D
5a232ffb73 Fix last cons in set_wm_state, remove unused variables.
* src/xselect.c (x_send_client_event): Remove unused variables cons and
size.

* src/xterm.c (set_wm_state): Add Qnil to final cons.
2010-11-14 11:21:16 +01:00
YAMAMOTO Mitsuharu
24021b384e Add const to array elements.
* keyboard.c (modify_event_symbol) : Add const to array elements of arg NAME_TABLE.
(lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
(lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
(lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
Add const to array elements.
(scroll_bar_parts): Make static.  Fix position of const.

* w32fns.c (lispy_function_keys): Add const to extern.

* w32inevt.c (lispy_function_keys): Likewise.
2010-11-14 15:55:27 +09:00
Chong Yidong
afa42fe3f1 Let the cursorColor X resource set the the cursor face (Bug#7392).
* lisp/startup.el (command-line): If the cursorColor resource is set,
change the cursor face-spec (Bug#7392).

* src/xfns.c (Fx_create_frame): Don't check for the cursorColor
resource here; it's now done at startup.
2010-11-13 21:09:11 -05:00
Glenn Morris
626b459f33 Restore clobbered allout.el changes. 2010-11-13 17:55:37 -08:00
Glenn Morris
a798747d5f ChangeLog OCD. 2010-11-13 16:47:07 -08:00
Ken Manheimer
1c9b9df077 (allout-keybindings), (allout-bind-keys), (allout-keybindings-binding),
allout-prefixed-keybindings, allout-unprefixed-keybindings,
allout-preempt-trailing-ctrl-h, allout-keybindings-list,
allout-mode-map-adjustments, (allout-setup-mode-map):
Establish allout-mode keymaps as user customizable settings, and also
establish a customizable setting which regulates whether or not a trailing
control-h is reserved for use with describe-prefix-bindings - and inihibit
it by default, so that control-h *is* reserved for
describe-prefix-bindings unless the user changes this setting.

(allout-hotspot-key-handler): Distinguish more explicitly and accurately
between modified and unmodified events, and handle modified events more
comprehensively.

(allout-substring-no-properties): Alias to use or provide version of
'substring-no-properties'.
(allout-solicit-alternate-bullet): Use 'allout-substring-no-properties'.

(allout-next-single-char-property-change): Alias to use or provide version
of 'next-single-char-property-change'.
(allout-annotate-hidden), (allout-hide-by-annotation): Use 'allout-next-single-char-property-change'.

(allout-select-safe-coding-system): Alias to use or provide version of
'select-safe-coding-system'.
(allout-toggle-subtree-encryption): Use 'allout-select-safe-coding-system'.

(allout-set-buffer-multibyte): Alias to use or provide version of
'set-buffer-multibyte'.
(allout-encrypt-string): Use 'allout-set-buffer-multibyte'.

(allout-called-interactively-p): Macro for using the different versions of
called-interactively-p identically, depending on the subroutine's argument
signature.

(allout-back-to-current-heading), (allout-beginning-of-current-entry)
- use '(interactive "p")' instead of '(called-interactively-p)'.

(allout-init), (allout-ascend), (allout-end-of-level),
(allout-previous-visible-heading), (allout-forward-current-level),
(allout-backward-current-level), (allout-show-children)
- use '(allout-called-interactively-p)' instead of '(called-interactively-p)'.

(allout-before-change-handler): Exempt edits to the (overlaid) character
after the allout outline bullet from edit confirmation prompt.

(allout-add-resumptions): Ensure that it respects correct buffer for
keybindings.

(allout-beginning-of-line): Use
'allout-previous-single-char-property-change' alias for the sake of diverse
compatibility.

(allout-end-of-line): Use 'allout-mark-active-p' to encapsulate respect
for mark activity.

substitute "???" for "XXX" for non-urgent comment remarks.
2010-11-13 17:30:10 -05:00
Dan Nicolaescu
c865c57571 * src/xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif. 2010-11-13 14:20:01 -08:00
Dan Nicolaescu
ff2e8052fd Fix compilation on Solaris.
* src/sysdep.c: Do not #include <term.h>.
(tputs): Add declaration, similar to what cm.c does.  (Bug#7178)
2010-11-13 14:17:22 -08:00
Dan Nicolaescu
53260a945a * src/s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore. 2010-11-13 14:10:34 -08:00
Eli Zaretskii
0088729a12 mule.texi (Fontsets): Fix xref from last change. 2010-11-13 22:40:21 +02:00