Andreas Schwab [Thu, 14 Apr 2011 07:56:52 +0000 (09:56 +0200)]
* fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 change. (Bug#8496)
Stefan Monnier [Thu, 14 Apr 2011 00:16:11 +0000 (21:16 -0300)]
* lisp/minibuffer.el (completion-in-region-mode-predicate)
(completion-in-region-mode--predicate): New vars.
(completion-in-region, completion-in-region--postch)
(completion-in-region-mode): Use them.
(completion--capf-wrapper): Also return the hook function.
(completion-at-point, completion-help-at-point):
Adjust and provide a predicate.
Stefan Monnier [Wed, 13 Apr 2011 17:56:47 +0000 (14:56 -0300)]
Preserve arg names for advice of subr and lexical functions.
* lisp/help-fns.el (help-function-arglist): Consolidate the subr and
new-byte-code cases. Add argument `preserve-names' to extract names
from the docstring when needed.
* lisp/emacs-lisp/advice.el (ad-define-subr-args, ad-undefine-subr-args)
(ad-subr-args-defined-p, ad-get-subr-args, ad-subr-arglist): Remove.
(ad-arglist): Use help-function-arglist's new arg.
(ad-definition-type): Use cond.
Fixes: debbugs:8457
Eli Zaretskii [Wed, 13 Apr 2011 17:43:38 +0000 (20:43 +0300)]
Fix bug #8487 with invisible text at EOB under bidi.
src/xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init
when at ZV.
Eli Zaretskii [Wed, 13 Apr 2011 17:41:04 +0000 (20:41 +0300)]
Fix bug #8487 with invisible property near EOB under bidi.
src/xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init
when at ZV.
Juanma Barranquero [Wed, 13 Apr 2011 14:27:41 +0000 (16:27 +0200)]
lisp/autorevert.el: Use `remote-file-name-inhibit-cache'.
* autorevert.el (auto-revert-handler):
Bind `remote-file-name-inhibit-cache', not `tramp-cache-inhibit-cache',
which was removed in 2010-10-02T13:21:43Z!michael.albinus@gmx.de.
Don't quote lambda.
Juanma Barranquero [Wed, 13 Apr 2011 11:58:47 +0000 (13:58 +0200)]
Fix typos.
Juanma Barranquero [Wed, 13 Apr 2011 02:16:42 +0000 (04:16 +0200)]
lisp/image-mode.el: Fix change in 2011-04-09T20:28:01Z!cyd@stupidchicken.com.
Gnus developers [Tue, 12 Apr 2011 22:18:02 +0000 (22:18 +0000)]
Merge changes made in Gnus trunk.
gnus.texi (Window Layout): @itemize @code doesn't exist. It's @table @code.
gnus-registry.el (gnus-registry--split-fancy-with-parent-internal): Fix logic bug.
(gnus-registry-post-process-groups): Fix logging of no results and quote sender and subject.
network-stream.el (network-stream-open-starttls): Only do opportunistic STARTTLS upgrades if we have built-in gnutls support. Upgrades via gnutls-cli are too slow to be done opportunistically.
gnus-start.el (gnus-get-unread-articles): Slight cleanup.
(gnus-read-active-for-groups): Don't try to finish getting stuff where we had no early-data returned.
(gnus-get-unread-articles): Add a sanity check so that we don't issue two async commands to the same server at the same time.
gnus-sum.el (gnus-summary-select-article-buffer): Doc fix.
gnus-registry.el (gnus-registry-remake-db): Put the warning on a "warning" level.
Juanma Barranquero [Tue, 12 Apr 2011 15:39:44 +0000 (17:39 +0200)]
lisp/dframe.el (dframe-current-frame): Remove spurious quote.
Lars Magne Ingebrigtsen [Tue, 12 Apr 2011 14:16:41 +0000 (14:16 +0000)]
mm-url.el (mm-url-package-name): Removed to ease third-party reuse.
(mm-url-insert-file-contents): Don't set the package names.
Juanma Barranquero [Tue, 12 Apr 2011 13:14:44 +0000 (15:14 +0200)]
lisp/ChangeLog: Fix date of entry.
Andreas Schwab [Tue, 12 Apr 2011 10:20:32 +0000 (12:20 +0200)]
Use xfree instead of free where appropriate (Bug#8437)
* charset.c (Fclear_charset_maps): Use xfree instead of free.
(Bug#8437)
* keyboard.c (parse_tool_bar_item): Likewise.
* sound.c (sound_cleanup, alsa_close): Likewise.
* termcap.c (tgetent): Likewise.
* xfns.c (x_default_font_parameter): Likewise.
* xsettings.c (read_and_apply_settings): Likewise.
Andreas Schwab [Tue, 12 Apr 2011 10:20:32 +0000 (12:20 +0200)]
* alloc.c (overrun_check_malloc, overrun_check_realloc)
(overrun_check_free): Protoize.
Glenn Morris [Tue, 12 Apr 2011 10:18:34 +0000 (06:18 -0400)]
Auto-commit of generated files.
Paul Eggert [Tue, 12 Apr 2011 08:12:01 +0000 (01:12 -0700)]
* sysdep.c (emacs_read, emacs_write): Check for negative sizes
since callers should never pass a negative size.
Change the signature to match that of plain 'read' and 'write'; see
<http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00397.html>.
* lisp.h: Update prototypes of emacs_write and emacs_read.
Glenn Morris [Tue, 12 Apr 2011 07:03:52 +0000 (00:03 -0700)]
Small cal-tex fix.
* lisp/calendar/cal-tex.el (cal-tex-end-document):
Try to automatically use latin1 input if needed.
Glenn Morris [Tue, 12 Apr 2011 04:02:38 +0000 (21:02 -0700)]
cal-hebrew fix for diary-hebrew-rosh-hodesh.
* lisp/calendar/cal-hebrew.el (diary-hebrew-rosh-hodesh):
Don't try to cons a mark onto an empty element.
Recipe showing the problem:
~/diary:
&%%(diary-rosh-hodesh)
&%%(diary-parasha)
emacs -Q --eval "(progn (add-hook 'diary-nongregorian-listing-hook
'diary-hebrew-list-entries) (setq cal-tex-diary t))" -f calendar
Move to Jan 2011, press `t m', latex the generated file.
[Port to 23.4]
Glenn Morris [Tue, 12 Apr 2011 03:55:07 +0000 (20:55 -0700)]
ImageMagick fix for bug#7955.
* configure.in: Require ImageMagick >= 6.2.8. (Bug#7955)
* etc/NEWS: Mention ImageMagick version.
Teodor Zlatanov [Mon, 11 Apr 2011 22:17:30 +0000 (22:17 +0000)]
gnus-registry.el (gnus-registry-action): Remove properties and simplify subject in `gnus-registry-handle-action'.
(gnus-registry-spool-action): Get subject and sender from message if they are not passed in.
(gnus-registry-handle-action): Remove properties and simplify subject consistently.
Eli Zaretskii [Mon, 11 Apr 2011 16:39:09 +0000 (19:39 +0300)]
Fix bug #8468 with redisplay and scroll-margin > 0.
src/xdisp.c (redisplay_window): Don't try to determine the character
position of the scroll margin if the window start point w->startp
is outside the buffer's accessible region.
Eli Zaretskii [Mon, 11 Apr 2011 15:59:30 +0000 (18:59 +0300)]
Fix bug #8468 with redisplay when scroll-margin > 0.
src/xdisp.c (redisplay_window): Don't try to determine the character
position of the scroll margin if the window start point w->startp
is outside the buffer's accessible region.
Glenn Morris [Mon, 11 Apr 2011 10:18:22 +0000 (06:18 -0400)]
Auto-commit of generated files.
Leo Liu [Mon, 11 Apr 2011 03:44:54 +0000 (11:44 +0800)]
Enable ido to kill virtual buffers
Stefan Monnier [Mon, 11 Apr 2011 01:18:19 +0000 (22:18 -0300)]
* lisp/gnus/registry.el: Require CL before using defmacro*.
Katsumi Yamaoka [Mon, 11 Apr 2011 00:28:41 +0000 (00:28 +0000)]
gnus-art.el (article-treat-date): Assume that gnus-article-date-headers may be a group parameter.
Chong Yidong [Sun, 10 Apr 2011 21:31:14 +0000 (17:31 -0400)]
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.
Eli Zaretskii [Sun, 10 Apr 2011 20:43:08 +0000 (23:43 +0300)]
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.
Paul Eggert [Sun, 10 Apr 2011 19:47:49 +0000 (12:47 -0700)]
* xdisp.c (vmessage): Use memchr, not strnlen, which some hosts lack.
Eli Zaretskii [Sun, 10 Apr 2011 19:12:28 +0000 (22:12 +0300)]
src/ChangeLog: Fix address in eliz's last entry.
Paul Eggert [Sun, 10 Apr 2011 16:44:27 +0000 (09:44 -0700)]
Fix more problems found by GCC 4.6.0's static checks.
Paul Eggert [Sun, 10 Apr 2011 16:33:22 +0000 (09:33 -0700)]
Keep doprnt.c around for now, as we might revamp and reuse it.
Paul Eggert [Sun, 10 Apr 2011 16:00:46 +0000 (09:00 -0700)]
Merge from gnulib.
Paul Eggert [Sun, 10 Apr 2011 15:49:40 +0000 (08:49 -0700)]
Merge from mainline.
Leo Liu [Sun, 10 Apr 2011 14:21:26 +0000 (22:21 +0800)]
Fix typo in tabulated-list-print-entry
Jim Meyering [Sun, 10 Apr 2011 14:00:13 +0000 (16:00 +0200)]
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.
Paul Eggert [Sun, 10 Apr 2011 03:24:44 +0000 (20:24 -0700)]
Merge from mainline.
Paul Eggert [Sun, 10 Apr 2011 02:27:15 +0000 (19:27 -0700)]
* xdisp.c (message_nolog): Bring this back, inside "#if 0".
See <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8435#26>.
Paul Eggert [Sat, 9 Apr 2011 23:11:48 +0000 (16:11 -0700)]
* xdisp.c (vmessage): Use a better test for character truncation.
Paul Eggert [Sat, 9 Apr 2011 22:51:22 +0000 (15:51 -0700)]
* syntax.c (skip_chars): Likewise.
Paul Eggert [Sat, 9 Apr 2011 22:39:14 +0000 (15:39 -0700)]
* editfns.c (Fformat): Likewise.
Paul Eggert [Sat, 9 Apr 2011 22:34:58 +0000 (15:34 -0700)]
Mention potential integer overflow problems.
Paul Eggert [Sat, 9 Apr 2011 22:34:16 +0000 (15:34 -0700)]
* chartab.c: Use similar style as for other recent patches.
Paul Eggert [Sat, 9 Apr 2011 22:31:34 +0000 (15:31 -0700)]
* casetab.c (set_identity, shuffle): Likewise.
Paul Eggert [Sat, 9 Apr 2011 22:21:42 +0000 (15:21 -0700)]
* chartab.c (sub_char_table_set_range, char_table_set_range): Likewise.
Paul Eggert [Sat, 9 Apr 2011 20:46:34 +0000 (13:46 -0700)]
* charset.c (load_charset_map): <, not <=, for optimization.
Paul Eggert [Sat, 9 Apr 2011 20:39:49 +0000 (13:39 -0700)]
* xmenu.c (set_frame_menubar): Allocate smaller local vectors.
This also lets GCC 4.6.0 generate slightly better loop code.
Chong Yidong [Sat, 9 Apr 2011 20:28:01 +0000 (16:28 -0400)]
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.
Paul Eggert [Sat, 9 Apr 2011 20:19:05 +0000 (13:19 -0700)]
* 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.
Paul Eggert [Sat, 9 Apr 2011 19:14:12 +0000 (12:14 -0700)]
* 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.
Paul Eggert [Sat, 9 Apr 2011 19:12:39 +0000 (12:12 -0700)]
* keyboard.c (read_char): Remove unused var.
Paul Eggert [Sat, 9 Apr 2011 18:44:05 +0000 (11:44 -0700)]
Merge from gnulib.
Paul Eggert [Sat, 9 Apr 2011 18:42:31 +0000 (11:42 -0700)]
Merge from mainline.
Glenn Morris [Sat, 9 Apr 2011 17:40:29 +0000 (10:40 -0700)]
Merge from emacs-23; up to 2010-06-08T03:06:47Z!dann@ics.uci.edu.
Glenn Morris [Sat, 9 Apr 2011 17:37:33 +0000 (10:37 -0700)]
Mark tiny change.
Glenn Morris [Sat, 9 Apr 2011 17:31:13 +0000 (10:31 -0700)]
Fix ChangeLog attribution.
See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8450
and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610576
Eli Zaretskii [Sat, 9 Apr 2011 16:35:19 +0000 (19:35 +0300)]
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.
Eli Zaretskii [Sat, 9 Apr 2011 06:59:26 +0000 (09:59 +0300)]
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.
Paul Eggert [Fri, 8 Apr 2011 23:28:52 +0000 (16:28 -0700)]
* 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.
Paul Eggert [Fri, 8 Apr 2011 21:53:30 +0000 (14:53 -0700)]
Update from gnulib.
Chong Yidong [Fri, 8 Apr 2011 20:41:28 +0000 (16:41 -0400)]
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.
Tassilo Horn [Fri, 8 Apr 2011 20:09:19 +0000 (22:09 +0200)]
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.
Chong Yidong [Fri, 8 Apr 2011 19:18:25 +0000 (15:18 -0400)]
* xterm.c (handle_one_xevent): Avoid type-punned derefencing of X events.
Chong Yidong [Fri, 8 Apr 2011 18:53:26 +0000 (14:53 -0400)]
Merge changes from emacs-23 branch
Svante Signell [Fri, 8 Apr 2011 18:44:36 +0000 (14:44 -0400)]
* term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).
Eli Zaretskii [Fri, 8 Apr 2011 17:08:17 +0000 (20:08 +0300)]
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.
T.V. Raman [Fri, 8 Apr 2011 16:15:30 +0000 (12:15 -0400)]
* src/xml.c (parse_region): Avoid creating spurious whiespace nodes.
See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00200.html
Chong Yidong [Fri, 8 Apr 2011 15:51:28 +0000 (11:51 -0400)]
* keyboard.c (syms_of_keyboard): Use DEFSYM macro.
Chong Yidong [Fri, 8 Apr 2011 15:37:15 +0000 (11:37 -0400)]
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.
Eli Zaretskii [Fri, 8 Apr 2011 15:31:33 +0000 (18:31 +0300)]
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'.
Glenn Morris [Fri, 8 Apr 2011 03:30:26 +0000 (20:30 -0700)]
* lisp/man.el (Man-page-header-regexp): Solaris < 2.6 no longer supported.
Glenn Morris [Fri, 8 Apr 2011 03:26:40 +0000 (20:26 -0700)]
browse-url.el trivia.
* lisp/net/browse-url.el (browse-url-firefox):
Test system-type, not system-configuration.
Glenn Morris [Fri, 8 Apr 2011 03:21:30 +0000 (20:21 -0700)]
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.
Glenn Morris [Fri, 8 Apr 2011 03:11:31 +0000 (20:11 -0700)]
rlogin.el trivia.
* lisp/net/rlogin.el (rlogin-process-connection-type): Simplify.
(rlogin-mode-map): Initialize in the defvar.
(rlogin): Use ignore-errors.
Glenn Morris [Fri, 8 Apr 2011 03:05:58 +0000 (20:05 -0700)]
* lisp/replace.el (occur-mode-map): Some fixes for menu items.
Juanma Barranquero [Thu, 7 Apr 2011 23:59:27 +0000 (01:59 +0200)]
Fix typos in comments.
Gnus developers [Thu, 7 Apr 2011 22:48:21 +0000 (22:48 +0000)]
gnus-registry.el (gnus-registry-handle-action): More debugging.
gnus-start.el (gnus-gnus-to-newsrc-format): Add a way to run interactively so the newsrc file can contain foreign groups too. Useful for debugging but not much for users.
registry.el (registry-usage-test): Only do `registry-lookup-breaks-before-lexbind' testing for Emacs24 with lexical binding.
Glenn Morris [Thu, 7 Apr 2011 10:18:28 +0000 (06:18 -0400)]
Auto-commit of generated files.
Paul Eggert [Thu, 7 Apr 2011 05:19:50 +0000 (22:19 -0700)]
* eval.c (verror): Initial buffer size is 4000 (not 200) bytes.
Paul Eggert [Thu, 7 Apr 2011 03:49:25 +0000 (20:49 -0700)]
Remove the doprnt implementation, as Emacs now uses vsnprintf.
Paul Eggert [Thu, 7 Apr 2011 03:34:05 +0000 (20:34 -0700)]
error: Print 32- and 64-bit integers portably (Bug#8435).
Without this change, on typical 64-bit hosts error ("...%d...", N)
was used to print both 32- and 64-bit integers N, which relied on
undefined behavior.
* lisp.h, src/m/amdx86-64.h, src/m/ia64.h, src/m/ibms390x.h (pEd):
New macro.
* lisp.h (error, verror): Mark as printf-like functions.
* eval.c (verror): Use vsnprintf, not doprnt, to do the real work.
Report overflow in size calculations when allocating printf buffer.
Do not truncate output string at its first null byte.
* xdisp.c (vmessage): Use vsnprintf, not doprnt, to do the real work.
Truncate the output at a character boundary, since vsnprintf does not
do that.
* charset.c (check_iso_charset_parameter): Convert internal
character to string before calling 'error', since %c now has the
printf meaning.
* coding.c (Fdecode_sjis_char, Fdecode_big5_char): Avoid int
overflow when computing char to be passed to 'error'. Do not
pass Lisp_Object to 'error'; pass the integer instead.
* nsfns.m (Fns_do_applescript): Use int, not long, since it's
formatted with plain %d.
Aaron S. Hawley [Thu, 7 Apr 2011 03:27:15 +0000 (20:27 -0700)]
* lisp/play/morse.el (denato-region): Handle varying case.
Fixes: debbugs:8386
Glenn Morris [Thu, 7 Apr 2011 03:22:10 +0000 (20:22 -0700)]
* autogen/update_autogen: Ignore comment diffs in ldefs-boot.el.
Paul Eggert [Thu, 7 Apr 2011 02:53:19 +0000 (19:53 -0700)]
* eval.c (internal_lisp_condition_case): Don't pass spurious arg.
Paul Eggert [Thu, 7 Apr 2011 02:51:18 +0000 (19:51 -0700)]
* keyboard.c (access_keymap_keyremap): Print func name, not garbage.
Paul Eggert [Wed, 6 Apr 2011 23:02:23 +0000 (16:02 -0700)]
* coding.c (Fdecode_sjis_char): Don't assume CODE fits in int.
Paul Eggert [Wed, 6 Apr 2011 22:46:00 +0000 (15:46 -0700)]
* xterm.c (x_catch_errors): Remove duplicate declaration.
Paul Eggert [Wed, 6 Apr 2011 22:27:58 +0000 (15:27 -0700)]
* term.c (maybe_fatal): Mark its 3rd arg as a printf format, too.
Paul Eggert [Wed, 6 Apr 2011 22:17:53 +0000 (15:17 -0700)]
* xdisp.c, lisp.h (message_nolog): Remove; unused.
Gnus developers [Wed, 6 Apr 2011 22:08:31 +0000 (22:08 +0000)]
Merge changes made in Gnus trunk.
registry.el, gnus-registry.el: Use `ignore-errors' instead of third argument NOERROR for `require', since XEmacs 21.4 does not support it.
registry.el (initialize-instance): Change :after to :AFTER to be compatible with old EIEIO version in XEmacs.
gnus-registry.el (gnus-registry-post-process-groups)
(gnus-registry--split-fancy-with-parent-internal): Fix splitting bugs and provide better messaging.
gnus-registry.el: Load ERT unconditionally anyway, discarding errors.
registry.el: Load ERT unconditionally anyway, discarding errors.
Chong Yidong [Wed, 6 Apr 2011 21:55:08 +0000 (17:55 -0400)]
Remove list-processes C function; misc fixes to last change.
* src/process.c (Flist_processes): Removed to Lisp.
(list_processes_1): Deleted.
* lisp/emacs-lisp/cconv.el (cconv--analyse-use): Ignore "ignored" when
issuing unused warnings.
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Use lambda
macro directly.
Chong Yidong [Wed, 6 Apr 2011 21:13:17 +0000 (17:13 -0400)]
Reimplement list-processes in Lisp.
* lisp/simple.el: Lisp reimplement of list-processes. Based on an
earlier reimplementation by Leo Liu, but using tabulated-list.el.
(process-menu-mode): New major mode.
(list-processes--refresh, list-processes):
(process-menu-visit-buffer): New functions.
* lisp/files.el (save-buffers-kill-emacs): Don't assume any return
value of list-processes, which is undocumented anyway.
Chong Yidong [Wed, 6 Apr 2011 20:33:30 +0000 (16:33 -0400)]
Make Package Menu a child of Tabulated List mode.
* emacs-lisp/package.el: Use Tabulated List mode.
(package-menu-mode-map): Inherit from tabulated-list-mode-map.
(package-menu-mode): Derive from tabulated-list-mode. Set up the
table format using Tabulated List mode variables.
(package--push): New macro, replacing package-list-maybe-add.
(package-menu--generate): Use package--push. Renamed from
package--generate-package-list.
(package-menu-refresh, list-packages): Use it.
(package-menu--print-info): Renamed from package-print-package.
Return insertion data instead of inserting it directly.
(package-menu-describe-package, package-menu-execute): Use
tabulated-list-get-id.
(package-menu-mark-delete, package-menu-mark-install)
(package-menu-mark-unmark, package-menu-backup-unmark)
(package-menu-mark-obsolete-for-deletion): Use
tabulated-list-put-tag.
(package--list-packages, package-menu-revert)
(package-menu-get-package, package-menu-get-version)
(package-menu-sort-by-column): Functions deleted.
(package-menu-package-list, package-menu-sort-key): Vars deleted.
(package-menu--status-predicate, package-menu--version-predicate)
(package-menu--name-predicate)
(package-menu--description-predicate): Handle arguments in the
Tabulated List format.
(package-list-packages-no-fetch): Call list-packages.
Chong Yidong [Wed, 6 Apr 2011 20:10:51 +0000 (16:10 -0400)]
* lisp/emacs-lisp/tabulated-list.el: New file.
Juanma Barranquero [Wed, 6 Apr 2011 19:38:46 +0000 (21:38 +0200)]
New variable `revert-buffer-in-progress-p'.
* lisp/files.el (after-find-file-from-revert-buffer): Remove variable.
(after-find-file): Dont' bind it.
(revert-buffer-in-progress-p): New variable.
(revert-buffer): Bind it.
Pass nil for `after-find-file-from-revert-buffer'.
* lisp/saveplace.el (save-place-find-file-hook): Use new variable
`rever-buffer-in-progress-p', not `after-find-file-from-revert-buffer'.
* etc/NEWS: New variable `revert-buffer-in-progress-p'.
Paul Eggert [Wed, 6 Apr 2011 19:11:15 +0000 (12:11 -0700)]
update_autogen
Eli Zaretskii [Wed, 6 Apr 2011 17:49:21 +0000 (20:49 +0300)]
Adapt the MS-DOS build to changes in gnulib.
msdos/sedlibmk.inp: Update checklist.
(am_libgnu_a_OBJECTS): Remove careadlinkat.$(OBJEXT).
($(top_builddir)/config.status): Edit away, both as target and in
prerequisites.
(@am__fastdepCC_FALSE@): Fix editing.
(@GL_GENERATE_STDBOOL_H_TRUE@, @GL_GENERATE_STDBOOL_H_FALSE@)
(@GL_GENERATE_STDDEF_H_TRUE@, @GL_GENERATE_STDDEF_H_FALSE@)
(@GL_GENERATE_STDINT_H_TRUE@, @GL_GENERATE_STDINT_H_FALSE@): Edit
to either nothing or "#".
src/msdos.c (careadlinkat, careadlinkatcwd): MS-DOS replacements.
Eli Zaretskii [Wed, 6 Apr 2011 16:05:49 +0000 (19:05 +0300)]
Don't call gnulib's careadlinkat on Windows.
src/w32.c (careadlinkat, careadlinkatcwd): New always-fail stubs.
lib/makefile.w32-in ($(BLD)/careadlinkat.$(O), GNULIBOBJS):
Revert last change.
Eli Zaretskii [Wed, 6 Apr 2011 15:44:32 +0000 (18:44 +0300)]
Fix the Windows build due to introduction of ATTRIBUTE_FORMAT_PRINTF.
nt/config.nt (NO_INLINE, ATTRIBUTE_FORMAT)
(ATTRIBUTE_FORMAT_PRINTF): Define, as followup to 2011-04-06T05:19:39Z!eggert@cs.ucla.edu
on the trunk on 2011-04-06.
Juanma Barranquero [Wed, 6 Apr 2011 14:16:43 +0000 (16:16 +0200)]
lib/makefile.w32-in: Adapt to changes in 2011-04-06T05:19:39Z!eggert@cs.ucla.edu.
* lib/makefile.w32-in (GNULIBOBJS): Add careadlinkat.$(O).
($(BLD)/careadlinkat.$(O)): New target.
($(BLD)/dtoastr.$(O), $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O))
($(BLD)/strftime.$(O), $(BLD)/time_r.$(O), $(BLD)/md5.$(O)):
Update dependencies.