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

99826 Commits

Author SHA1 Message Date
Katsumi Yamaoka
f8342cf544 gnus-art.el (article-treat-date): Assume that gnus-article-date-headers may be a group parameter. 2011-04-11 00:28:41 +00:00
Chong Yidong
369e974dc0 Fix bad interaction between icomplete and completion inline help (Bug#5849).
* lisp/minibuffer.el (completion-show-inline-help): New var.
(completion--do-completion, minibuffer-complete)
(minibuffer-force-complete, minibuffer-complete-word): Inhibit
minibuffer messages if completion-show-inline-help is nil.

* lisp/icomplete.el (icomplete-mode): Bind completion-show-inline-help
to avoid interference from inline help.
2011-04-10 17:31:14 -04:00
Eli Zaretskii
8a2cbd723c Fix write-region and its subroutines for buffers > 2GB.
src/fileio.c (a_write, e_write): Modify declaration of arguments and
 local variables to support buffers larger than 2GB.
 (Fcopy_file): Use EMACS_INT for return value of emacs_read.
 src/sysdep.c (emacs_write, emacs_read): Use ssize_t for last
 argument, local variables, and return value.
 src/lisp.h: Update prototypes of emacs_write and emacs_read.
 src/sound.c (vox_write): Use ssize_t for return value of emacs_write.
2011-04-10 23:43:08 +03:00
Paul Eggert
1ebfdcb6ef * xdisp.c (vmessage): Use memchr, not strnlen, which some hosts lack. 2011-04-10 12:47:49 -07:00
Eli Zaretskii
0a2f5c1a75 src/ChangeLog: Fix address in eliz's last entry. 2011-04-10 22:12:28 +03:00
Paul Eggert
b2ded58d7e Fix more problems found by GCC 4.6.0's static checks. 2011-04-10 09:44:27 -07:00
Paul Eggert
12020a9e6d Keep doprnt.c around for now, as we might revamp and reuse it. 2011-04-10 09:33:22 -07:00
Paul Eggert
69d9a57ddc Merge from gnulib. 2011-04-10 09:00:46 -07:00
Paul Eggert
4073e53749 Merge from mainline. 2011-04-10 08:49:40 -07:00
Leo Liu
37f1c9309e Fix typo in tabulated-list-print-entry 2011-04-10 22:21:26 +08:00
Jim Meyering
368f40905f use ssize_t and size_t for read- and write-like emacs_gnutls_* functions
* gnutls.c (emacs_gnutls_read): Adjust signature to be more read-like:
return ssize_t not "int", and use size_t as the buffer length.
(emacs_gnutls_write): Likewise, and make the buffer pointer "const".
* gnutls.h: Update declarations.
* process.c (read_process_output): Use ssize_t, to match.
(send_process): Likewise.
2011-04-10 16:00:13 +02:00
Paul Eggert
da0e53381f Merge from mainline. 2011-04-09 20:24:44 -07:00
Paul Eggert
3fc4037235 * xdisp.c (message_nolog): Bring this back, inside "#if 0".
See <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8435#26>.
2011-04-09 19:27:15 -07:00
Paul Eggert
7d66342ce2 * xdisp.c (vmessage): Use a better test for character truncation. 2011-04-09 16:11:48 -07:00
Paul Eggert
1e69125eae * syntax.c (skip_chars): Likewise. 2011-04-09 15:51:22 -07:00
Paul Eggert
3ab1c7ce32 * editfns.c (Fformat): Likewise. 2011-04-09 15:39:14 -07:00
Paul Eggert
bbf47d44bf Mention potential integer overflow problems. 2011-04-09 15:34:58 -07:00
Paul Eggert
14f04e6b49 * chartab.c: Use similar style as for other recent patches. 2011-04-09 15:34:16 -07:00
Paul Eggert
f9a68bc5fc * casetab.c (set_identity, shuffle): Likewise. 2011-04-09 15:31:34 -07:00
Paul Eggert
9248994de4 * chartab.c (sub_char_table_set_range, char_table_set_range): Likewise. 2011-04-09 15:21:42 -07:00
Paul Eggert
3befa58386 * charset.c (load_charset_map): <, not <=, for optimization. 2011-04-09 13:46:34 -07:00
Paul Eggert
e301961642 * xmenu.c (set_frame_menubar): Allocate smaller local vectors.
This also lets GCC 4.6.0 generate slightly better loop code.
2011-04-09 13:39:49 -07:00
Chong Yidong
a32d40405d Cleanups to the ImageMagick code and docstrings.
* lisp/image-mode.el (image-toggle-display-image): Signal an error if
not in Image mode.
(image-transform-mode, image-transform-resize)
(image-transform-set-rotation): Doc fix.
(image-transform-set-resize): Deleted.
(image-transform-set-scale, image-transform-fit-to-height)
(image-transform-fit-to-width): Handle image-toggle-display-image
and image-transform-resize directly.

* src/image.c (Fimagemagick_types): Doc fix, and comment cleanup.
2011-04-09 16:28:01 -04:00
Paul Eggert
becfa255fb * callint.c (Fcall_interactively): <, not <=, for optimization.
(Fcall_interactively): Count the number of arguments produced,
not the number of arguments given.  This is simpler and lets GCC
4.6.0 generate slightly better code.
2011-04-09 13:19:05 -07:00
Paul Eggert
dae0cd48d8 * ftfont.c: Distingish more carefully between FcChar8 and char.
The previous code passed unsigned char * to a functions like
strlen and xstrcasecmp that expect char *, which does not
conform to the C standard.
(get_adstyle_property, ftfont_pattern_entity): Use FcChar8 for
arguments to FcPatternGetString, and explicitly cast FcChar8 * to
char * when the C standard requires it.
2011-04-09 12:14:12 -07:00
Paul Eggert
76032d70ca * keyboard.c (read_char): Remove unused var. 2011-04-09 12:12:39 -07:00
Paul Eggert
e5b28a7aef Merge from gnulib. 2011-04-09 11:44:05 -07:00
Paul Eggert
762f8d9671 Merge from mainline. 2011-04-09 11:42:31 -07:00
Glenn Morris
8546720e6f Merge from emacs-23; up to 2010-06-08T03:06:47Z!dann@ics.uci.edu. 2011-04-09 10:40:29 -07:00
Glenn Morris
140745c368 Mark tiny change. 2011-04-09 10:37:33 -07:00
Glenn Morris
da2fb5b5f2 Fix ChangeLog attribution.
See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8450
and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610576
2011-04-09 10:31:13 -07:00
Eli Zaretskii
a53e2e898b Replace some uses of `int' with EMACS_INT.
src/search.c (string_match_1, fast_string_match)
 (fast_c_string_match_ignore_case, fast_string_match_ignore_case)
 (scan_buffer, find_next_newline_no_quit)
 (find_before_next_newline, search_command, Freplace_match)
 (Fmatch_data): Make some `int' variables be EMACS_INT.
 src/xdisp.c (display_count_lines): 3rd argument and return value now
 EMACS_INT.  All callers changed.
 (pint2hrstr): Last argument is now EMACS_INT.
 src/coding.c (detect_coding_utf_8, detect_coding_emacs_mule)
 (detect_coding_iso_2022, detect_coding_sjis, detect_coding_big5)
 (detect_coding_ccl, detect_coding_charset, decode_coding_utf_8)
 (decode_coding_utf_16, decode_coding_emacs_mule)
 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
 (decode_coding_ccl, decode_coding_charset)
 <consumed_chars, consumed_chars_base>: Declare EMACS_INT.
 (decode_coding_iso_2022, decode_coding_emacs_mule)
 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
 <char_offset, last_offset>: Declare EMACS_INT.
 (encode_coding_utf_8, encode_coding_utf_16)
 (encode_coding_emacs_mule, encode_invocation_designation)
 (encode_designation_at_bol, encode_coding_iso_2022)
 (encode_coding_sjis, encode_coding_big5, encode_coding_ccl)
 (encode_coding_raw_text, encode_coding_charset) <produced_chars>:
 Declare EMACS_INT.
 (ASSURE_DESTINATION): Declare more_bytes EMACS_INT.
 (encode_invocation_designation): Last argument P_NCHARS is now
 EMACS_INT.
 (decode_eol): Declare pos_byte, pos, and pos_end EMACS_INT.
 (produce_chars): from_nchars and to_nchars are now EMACS_INT.
 src/coding.h (struct coding_system) <head_ascii>: Declare EMACS_INT.
 All users changed.
 src/ccl.c (Fccl_execute_on_string): Declare some variables
 EMACS_INT.
2011-04-09 19:35:19 +03:00
Eli Zaretskii
04f33f1ed9 Produce more accurate results from file-size-human-readable.
lisp/files.el (file-size-human-readable): Produce one digit after
 decimal, like "ls -lh" does.
 lisp/ls-lisp.el (ls-lisp-format-file-size): Allow for 7 characters in
 the file size representation.
2011-04-09 09:59:26 +03:00
Paul Eggert
eb3f1cc8df * eval.c: Port to Windows vsnprintf (Bug#8435).
Include <limits.h>.
(SIZE_MAX): Define if the headers do not.
(verror): Do not give up if vsnprintf returns a negative count.
Instead, grow the buffer.  This ports to Windows vsnprintf, which
does not conform to C99.  Problem reported by Eli Zaretskii.
Also, simplify the allocation scheme, by avoiding the need for
calling realloc, and removing the ALLOCATED variable.
2011-04-08 16:28:52 -07:00
Paul Eggert
7ec98caf77 Update from gnulib. 2011-04-08 14:53:30 -07:00
Chong Yidong
65969f63df Fix more GCC strict-aliasing warnings.
* src/ftfont.c (get_adstyle_property, ftfont_pattern_entity): Use
unsigned char, to match FcChar8 type definition.

* src/xmenu.c (create_and_show_popup_menu):
* src/xselect.c (x_decline_selection_request)
(x_reply_selection_request): Avoid type-punned deref of X events.
2011-04-08 16:41:28 -04:00
Tassilo Horn
d7b898799f Fit contents to emacs window support for doc-view by Sho Nakatani.
2011-03-28  Sho Nakatani <lay.sakura <at> gmail.com>

	* doc-view.el (doc-view-fit-width-to-window)
	(doc-view-fit-height-to-window, doc-view-fit-page-to-window): New
	functions for fitting the shown image to the Emacs window size.
	(doc-view-mode-map): Add bindings for the new functions.
2011-04-08 22:09:19 +02:00
Chong Yidong
5324d904a3 * xterm.c (handle_one_xevent): Avoid type-punned derefencing of X events. 2011-04-08 15:18:25 -04:00
Chong Yidong
6b8bc57071 Merge changes from emacs-23 branch 2011-04-08 14:53:26 -04:00
Svante Signell
0080dc6bd9 * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450). 2011-04-08 14:44:36 -04:00
Eli Zaretskii
3726838a9c Bail out from list-processes if async subprocesses aren't available.
lisp/simple.el (list-processes): If async subprocesses are not
 available, error out with a clear error message.
2011-04-08 20:08:17 +03:00
T.V. Raman
87302331c2 * src/xml.c (parse_region): Avoid creating spurious whiespace nodes.
See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00200.html
2011-04-08 12:15:30 -04:00
Chong Yidong
e0d38eebb3 * keyboard.c (syms_of_keyboard): Use DEFSYM macro. 2011-04-08 11:51:28 -04:00
Chong Yidong
cbb5934231 Remove internal_with_output_to_temp_buffer, replacing sole user with Lisp.
* lisp/help.el (help-form-show): New function, to be called from C.
Put help-form output in a buffer named differently than *Help*.

* src/keyboard.c (read_char): Call Lisp function help-form-show,
instead of using internal_with_output_to_temp_buffer.
(Qhelp_form_show): New var.

* src/lisp.h (internal_with_output_to_temp_buffer): Remove prototype.

* src/print.c (internal_with_output_to_temp_buffer): Function deleted.
2011-04-08 11:37:15 -04:00
Eli Zaretskii
e3971c4440 New function file-size-human-readable.
lisp/files.el (file-size-human-readable): New function.
 lisp/ls-lisp.el (ls-lisp-format-file-size): Use it, instead of
 computing the representation inline.  Don't require `cl'.
2011-04-08 18:31:33 +03:00
Glenn Morris
a1de6c6a05 * lisp/man.el (Man-page-header-regexp): Solaris < 2.6 no longer supported. 2011-04-07 20:30:26 -07:00
Glenn Morris
3c4671f409 browse-url.el trivia.
* lisp/net/browse-url.el (browse-url-firefox):
Test system-type, not system-configuration.
2011-04-07 20:26:40 -07:00
Glenn Morris
b605679c8e log-edit.el fix for bug#7598.
* lisp/vc/log-edit.el (log-edit-empty-buffer-p): New function.
(log-edit-insert-cvs-template, log-edit-insert-cvs-rcstemplate):
Use log-edit-empty-buffer-p.
2011-04-07 20:21:30 -07:00
Glenn Morris
56442f0c3d rlogin.el trivia.
* lisp/net/rlogin.el (rlogin-process-connection-type): Simplify.
(rlogin-mode-map): Initialize in the defvar.
(rlogin): Use ignore-errors.
2011-04-07 20:11:31 -07:00
Glenn Morris
12544bbe75 * lisp/replace.el (occur-mode-map): Some fixes for menu items. 2011-04-07 20:05:58 -07:00