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

97396 Commits

Author SHA1 Message Date
Eli Zaretskii
1cd64aaefe faces.el (glyphless-char): Define value for `pc'. 2010-11-20 13:47:49 +02:00
Eli Zaretskii
6ce950f336 msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the same in-line. 2010-11-20 13:45:14 +02:00
Tassilo Horn
614316a700 * mail/emacsbug.el (report-emacs-bug-tracker-url)
(report-emacs-bug-create-existing-bugs-buffer)
(report-emacs-bug-parse-query-results)
(report-emacs-bug-query-existing-bugs): Implemented a bug querying
mechanism.
2010-11-20 12:39:44 +01:00
Eli Zaretskii
d9a95e6767 msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the same in-line. 2010-11-20 13:24:28 +02:00
Andreas Schwab
b65575536f * src/xfaces.c (lookup_face): Make static.
* src/dispnew.c (copy_row_except_pointers): Likewise.
* src/syntax.c (dec_bytepos): Likewise.
(inc_bytepos): Remove.
* src/dispextern.h (lookup_face): Remove declaration.
2010-11-20 11:07:00 +01:00
Katsumi Yamaoka
e7424f06c9 gnus-gravatar.el (gnus-gravatar-transform-address): Decode name again.
(gnus-gravatar-insert): Put avatar always in the beginning of the field.
2010-11-20 01:18:17 +00:00
Eli Zaretskii
f48fe1f074 Fix bug #6687 with cursor positioning after before-string from overlays.
xdisp.c (set_cursor_from_row): Display cursor after all the
 glyphs that come from an overlay.  Don't overstep the last glyph
 when skipping glyphs from an overlay.
2010-11-19 18:34:22 +02:00
Juanma Barranquero
68a1690558 lisp/ldefs-boot.el: Regenerate. 2010-11-19 14:25:17 +01:00
Tassilo Horn
9061f667df * textmodes/reftex-ref.el (reftex-goto-label): If point is inside
a \ref{} or \pageref{} macro, then use its value as initial input.
2010-11-19 12:18:15 +01:00
Katsumi Yamaoka
18c01d769b gnus-html.el (gnus-html-prefetch-images): Fix last change. 2010-11-19 05:11:59 +00:00
Katsumi Yamaoka
b59a9eefbc Assume that gnus-inhibit-images may be a group parameter.
gnus-art.el (gnus-mime-display-single)
gnus-html.el (gnus-html-wash-images, gnus-html-prefetch-images)
mm-decode.el (mm-shr): Assume that gnus-inhibit-images may be a group parameter.
2010-11-19 04:55:16 +00:00
Jay Belanger
1265829ec3 calc.texi (TeX and LaTeX Language Modes, Predefined Units):
calc-units.el (math-build-units-table-buffer):
README: Mention that the TeX specific units won't use the `tex' prefix
in TeX mode.

calc-lang.el (math-variable-table): Don't use the `tex' prefix for
units in TeX mode.
2010-11-18 19:14:36 -06:00
Dan Nicolaescu
84dfc8a7fa * src/alloc.c (refill_memory_reserve): Move declaration ...
* src/lisp.h (refill_memory_reserve): ... here.
2010-11-18 13:45:03 -08:00
Dan Nicolaescu
94fa383385 * src/strftime.c (_strftime_copytm): Add declaration. 2010-11-18 13:39:15 -08:00
Dan Nicolaescu
dde990a0f9 * src/callproc.c (syms_of_callproc): Use intern_c_string. 2010-11-18 08:59:12 -08:00
Dan Nicolaescu
50c7742814 Move declarations from .c files to .h files.
* src/process.c (timers_run):
* src/minibuf.c (quit_char):
* src/lread.c (read_emacs_mule_char):
* src/keyboard.c (minibuf_level, message_enable_multibyte)
(pending_malloc_warning):
* src/insdel.c (Vselect_active_regions, Vsaved_region_selection)
(Qonly): Remove declarations.
* src/lisp.h (pending_malloc_warning, Vsaved_region_selection)
(Vselect_active_regions):
* src/keyboard.h (timers_run):  Add declarations.
2010-11-18 08:57:00 -08:00
Dan Nicolaescu
654ef137a3 Convert definitions to standard C.
* src/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
(tm_diff): Convert definitions to standard C.
(extra_args_spec_iso): Remove, unused.
2010-11-18 08:49:30 -08:00
Lars Magne Ingebrigtsen
d30987508c shr.el: Allow customizing the vertical table lines.
shr.el (shr-table-horizontal-line): Renamed from shr-table-line.
 (shr-table-vertical-line): New variable.
 (shr-insert-table): Use it.
2010-11-18 06:34:02 +00:00
Stefan Monnier
4a47c27573 Merge from emacs-23 2010-11-17 22:54:14 -05:00
Stefan Monnier
b916cbefa4 * comint.el (comint-kill-region): Fix last change. 2010-11-17 22:44:35 -05:00
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
Stefan Monnier
9fca7811a8 Make the yank-handler argument obsolete.
* simple.el (kill-new, kill-append, kill-region):
* comint.el (comint-kill-region): Make the yank-handler argument obsolete.
2010-11-17 21:09:41 -05: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
Stefan Monnier
e2f454c4be * emacs-lisp/smie.el (smie-bnf-classify): Signal errors for tokens
that are both openers (resp. closers) and something else.
(smie-grammar): Loosen definition of valid values.
(smie-next-sexp, smie-down-list, smie-blink-matching-open)
(smie-indent--parent, smie-rule-parent, smie-indent-keyword)
(smie-indent-after-keyword): Adjust users.
(smie-indent-keyword): Don't indent empty lines.
2010-11-17 14:59:16 -05: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
Stefan Monnier
88bf1becf8 * vc-hg.el (vc-hg-program): New var.
Suggested by Norman Gray <norman@astro.gla.ac.uk>.
(vc-hg-state, vc-hg-working-revision, vc-hg-command): Use it.
2010-11-17 09:34:28 -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
Glenn Morris
4c0eb0d3db autoload.el fix for bug#7414.
* lisp/emacs-lisp/autoload.el (autoload-find-destination): The
function coding-system-eol-type may return non-numeric values.
2010-11-16 19:47:16 -08: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
Ulrich Mueller
bf6442c345 * lisp/server.el (server-force-stop): Ensure the server is stopped (Bug#7409). 2010-11-16 15:09:47 -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