]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 years agoMerge from trunk.
Paul Eggert [Sat, 9 Jul 2011 07:06:04 +0000 (00:06 -0700)]
Merge from trunk.

13 years ago* image.c: Integer signedness and overflow and related fixes.
Paul Eggert [Sat, 9 Jul 2011 07:01:24 +0000 (00:01 -0700)]
* image.c: Integer signedness and overflow and related fixes.

This is not an exhaustive set of fixes, but it's time to
record what I've got.
(lookup_pixel_color, check_image_size): Remove redundant decls.
(check_image_size): Don't assume that arbitrary EMACS_INT values
fit in 'int', or that arbitrary 'double' values fit in 'int'.
(x_alloc_image_color, x_create_x_image_and_pixmap, png_load)
(tiff_load, imagemagick_load_image):
Check for overflow in size calculations.
(x_create_x_image_and_pixmap): Remove unnecessary test for
xmalloc returning NULL; that can't happen.
(xbm_read_bitmap_data): Don't assume sizes fit into 'int'.
(xpm_color_bucket): Use better integer hashing function.
(xpm_cache_color): Don't possibly over-allocate memory.
(struct png_memory_storage, tiff_memory_source, tiff_seek_in_memory)
(gif_memory_source):
Use ptrdiff_t, not int or size_t, to record sizes.
(png_load): Don't assume values greater than 2**31 fit in 'int'.
(our_stdio_fill_input_buffer): Prefer ptrdiff_t to size_t when
either works, as we prefer signed integers.
(tiff_read_from_memory, tiff_write_from_memory):
Return tsize_t, not size_t, since that's what the TIFF API wants.
(tiff_read_from_memory): Don't fail simply because the read would
go past EOF; instead, return a short read.
(tiff_load): Omit no-longer-needed casts.
(Fimagemagick_types): Don't assume size fits into 'int'.

13 years agoRestore accidental change to insert-register
Leo Liu [Sat, 9 Jul 2011 03:11:57 +0000 (11:11 +0800)]
Restore accidental change to insert-register

13 years ago* doc/emacs/fortran-xtra.texi (Fortran): Update handled extensions.
Glenn Morris [Sat, 9 Jul 2011 00:51:42 +0000 (20:51 -0400)]
* doc/emacs/fortran-xtra.texi (Fortran): Update handled extensions.

13 years ago* lisp/subr.el (remq): Handle the empty list. (Bug#9024)
Glenn Morris [Sat, 9 Jul 2011 00:50:01 +0000 (20:50 -0400)]
* lisp/subr.el (remq): Handle the empty list.  (Bug#9024)

13 years agoMerge: Add gnulib's strtoimax module, needed on Solaris 8.
Paul Eggert [Sat, 9 Jul 2011 00:23:12 +0000 (17:23 -0700)]
Merge: Add gnulib's strtoimax module, needed on Solaris 8.

* Makefile.in (GNULIB_MODULES): Add strtoimax.
* lib/strtoll.c, m4/strtoimax.m4, m4/strtoll.m4: New files,
automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Regenerate.

13 years agoAdd strtoimax module, needed for Solaris 8 port.
Paul Eggert [Sat, 9 Jul 2011 00:18:49 +0000 (17:18 -0700)]
Add strtoimax module, needed for Solaris 8 port.

* Makefile.in (GNULIB_MODULES): Add strtoimax.
* lib/strtoll.c, m4/strtoimax.m4, m4/strtoll.m4: New files,
automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Regenerate.

13 years agoFix ChangeLog typos in previous commit.
Paul Eggert [Fri, 8 Jul 2011 20:48:32 +0000 (13:48 -0700)]
Fix ChangeLog typos in previous commit.

13 years agoMerge: Use pthread_sigmask, not sigprocmask (Bug#9010).
Paul Eggert [Fri, 8 Jul 2011 20:39:30 +0000 (13:39 -0700)]
Merge: Use pthread_sigmask, not sigprocmask (Bug#9010).

13 years agoMerge from trunk.
Paul Eggert [Fri, 8 Jul 2011 20:22:17 +0000 (13:22 -0700)]
Merge from trunk.

13 years agoSimplify Emacs part of pthread_sigmask support.
Paul Eggert [Fri, 8 Jul 2011 20:20:19 +0000 (13:20 -0700)]
Simplify Emacs part of pthread_sigmask support.

* Makefile.in (GNULIB_TOOL_FLAGS): Do not avoid sigprocmask.
* configure.in (AC_TYPE_UID_T): New dummy macro.
Configure gnulib after adjusting LIBS,
so that gnulib can assume the libraries in LIBS.
* lib/pthread_sigmask.c, lib/sigprocmask.c, m4/signalblocking.m4:
New files, automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Regenerate.
* src/Makefile.in (LIB_PTHREAD_SIGMASK): New macro.
(LIBES): Use it.

13 years agoBetter fix that keeps corret margins in tooltip.
Jan Djärv [Fri, 8 Jul 2011 17:57:55 +0000 (19:57 +0200)]
Better fix that keeps corret margins in tooltip.

* gtkutil.c (qttip_cb): Set line wrap to FALSE for tooltip widget.
(xg_prepare_tooltip): Revert text in x->ttip_lbl, margins was
wrong.

Fixes: debbugs:8591
13 years agoDon't let Gtk+ linewrap tooltips.
Jan Djärv [Fri, 8 Jul 2011 17:25:17 +0000 (19:25 +0200)]
Don't let Gtk+ linewrap tooltips.

* gtkutil.c (xg_prepare_tooltip): Fix indentation and comment.
Put text in x->ttip_lbl instead of gtk_tooltip_set_text.
(xg_hide_tooltip): Fix comment.

Fixes: debbugs:8591
13 years ago* lisp/mail/sendmail.el (send-mail-function): No longer delay custom
Andreas Schwab [Fri, 8 Jul 2011 17:02:01 +0000 (19:02 +0200)]
* lisp/mail/sendmail.el (send-mail-function): No longer delay custom
initialization.
* lisp/custom.el (custom-initialize-delay): Doc fix.

13 years agoFix breakage introduced by fixing Bug#8842.
Jan Djärv [Fri, 8 Jul 2011 15:39:40 +0000 (17:39 +0200)]
Fix breakage introduced by fixing Bug#8842.

* nsfns.m (Fx_open_connection): Put NSStringPboardType into
ns_return_type.

* nsterm.m (initFrameFromEmacs): Don't use ns_return_types
in registerServicesMenuSendTypes.
(validRequestorForSendType): Don't check ns_return_types.

13 years ago* lisp/abbrev.el (expand-abbrev): Try to preserve point.
Stefan Monnier [Fri, 8 Jul 2011 14:42:36 +0000 (10:42 -0400)]
* lisp/abbrev.el (expand-abbrev): Try to preserve point.

Fixes: debbugs:5805
13 years ago* net/tramp-sh.el (tramp-sh-handle-start-file-process): Use a
Michael Albinus [Fri, 8 Jul 2011 14:25:25 +0000 (16:25 +0200)]
* net/tramp-sh.el (tramp-sh-handle-start-file-process): Use a
human-friendly prompt.

13 years ago* lisp/vc/vc-bzr.el (vc-bzr-revision-keywords): Remove svn, it's only
Stefan Monnier [Fri, 8 Jul 2011 14:02:44 +0000 (10:02 -0400)]
* lisp/vc/vc-bzr.el (vc-bzr-revision-keywords): Remove svn, it's only
provided by a particular plugin.

13 years ago* src/w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using
Jason Rumney [Fri, 8 Jul 2011 12:46:17 +0000 (20:46 +0800)]
* src/w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using
frame struct members of non-existent frames.

Fixes: debbugs:6284
13 years agoAuto-commit of generated files.
Glenn Morris [Fri, 8 Jul 2011 10:19:15 +0000 (06:19 -0400)]
Auto-commit of generated files.

13 years agoFix warnings in ns*m files: Replace deprecated methods, declare new interfaces.
Jan Djärv [Fri, 8 Jul 2011 10:04:23 +0000 (12:04 +0200)]
Fix warnings in ns*m files: Replace deprecated methods, declare new interfaces.

* emacs.c: Declare unexec_init_emacs_zone.

* nsfns.m (check_ns_display_info): Cast to long and use %ld in error
to avoid warning.

* nsimage.m (allocInitFromFile): Don't use deprecated method
bestRepresentationForDevice on OSX >= 10.6.

* nsmenu.m (fillWithWidgetValue): Don't use depercated method
sizeToFit on OSX >= 10.2.

* nsselect.m (ns_string_from_pasteboard): Don't use deprecated methods
cString and lossyCString on OSX >= 10.4

* nsterm.h (MAC_OS_X_VERSION_10_3, MAC_OS_X_VERSION_10_4)
(MAC_OS_X_VERSION_10_5): Define if not defined.
(EmacsView, EmacsTooltip): Implements NSWindowDelegate on OSX >= 10.6.
(EmacsMenu): Implements NSMenuDelegate on OSX >= 10.6.
(EmacsToolbar): Implements NSToolbarDelegate on OSX >= 10.6.

* nsterm.m (keyDown): Call to wantsToDelayTextChangeNotifications and
variable firstTime not needed on OSX >= 10.6.
(setPosition): setFloatValue:knobProportion: is deprecated on OSX
>= 10.5.  Use setKnobProportion, setDoubleValue.

13 years agoMerge from gnulib.
Paul Eggert [Fri, 8 Jul 2011 10:02:24 +0000 (03:02 -0700)]
Merge from gnulib.

13 years ago* lib/getopt.c, lib/unistd.in.h, m4/getopt.m4: Merge from gnulib.
Paul Eggert [Fri, 8 Jul 2011 10:00:52 +0000 (03:00 -0700)]
* lib/getopt.c, lib/unistd.in.h, m4/getopt.m4: Merge from gnulib.

13 years agoMerge from trunk.
Paul Eggert [Fri, 8 Jul 2011 09:38:32 +0000 (02:38 -0700)]
Merge from trunk.

13 years ago* nsgui.h: Fix compiler warning about gnulib redefining verify.
Jan Djärv [Fri, 8 Jul 2011 08:42:58 +0000 (10:42 +0200)]
* nsgui.h: Fix compiler warning about gnulib redefining verify.

13 years agoFix services menu empty on OSX 1.6+.
Jan Djärv [Fri, 8 Jul 2011 08:11:35 +0000 (10:11 +0200)]
Fix services menu empty on OSX 1.6+.

* nsfns.m (Fx_open_connection): Remove NSStringPboardType from
ns_return_types.
(Fns_list_services): Just return Qnil on 10.6, code not working there.

* nsmenu.m (ns_update_menubar): Remove useless setDelegate call
on svcsMenu.

* nsselect.m (ns_get_local_selection): Change to extern (Bug#8842).

* nsterm.h (MAC_OS_X_VERSION_10_6): Define here instead of nsterm.m.
(ns_get_local_selection): Declare.

* nsterm.m (QUTF8_STRING): Declare.
(initFrameFromEmacs): Call registerServicesMenuSendTypes.
(validRequestorForSendType): Return type is (id).
Change indexOfObjectIdenticalTo to indexOfObject.
Check if we have local selection before returning self (Bug#8842).
(writeSelectionToPasteboard): Put local selection into paste board
if we have a local selection (Bug#8842).
(syms_of_nsterm): DEFSYM QUTF8_STRING.

13 years agoAllow sending mail in "emacs -Q" by not calling customize-save-variable
Lars Magne Ingebrigtsen [Fri, 8 Jul 2011 07:42:21 +0000 (09:42 +0200)]
Allow sending mail in "emacs -Q" by not calling customize-save-variable

* mail/smtpmail.el (smtpmail-query-smtp-server): Ditto.

* mail/sendmail.el (sendmail-query-once): If we aren't allowed to
save customizations (with "emacs -Q"), just set the variable
instead of erroring out.

13 years agoRevert the plstore editing feature.
Daiki Ueno [Fri, 8 Jul 2011 01:29:29 +0000 (10:29 +0900)]
Revert the plstore editing feature.

13 years agoImprove hashing quality when configured --with-wide-int.
Paul Eggert [Fri, 8 Jul 2011 00:51:25 +0000 (17:51 -0700)]
Improve hashing quality when configured --with-wide-int.

* fns.c (hash_string): New function, taken from sxhash_string.
Do not discard information about ASCII character case; this
discarding is no longer needed.
(sxhash-string): Use it.  Change sig to match it.  Caller changed.
* lisp.h: Declare it.
* lread.c (hash_string): Remove, since we now use fns.c's version.
The fns.c version returns a wider integer if --with-wide-int is
specified, so this should help the quality of the hashing a bit.

13 years ago* lisp/arc-mode.el (archive-zip-expunge, archive-zip-update)
Juri Linkov [Fri, 8 Jul 2011 00:08:53 +0000 (03:08 +0300)]
* lisp/arc-mode.el (archive-zip-expunge, archive-zip-update)
(archive-zip-update-case): Use 7z if found by `executable-find'.
The order of searching the available programs is the same as in
`archive-zip-extract'.

Fixes: debbugs:8968
13 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 23:18:23 +0000 (23:18 +0000)]
Merge changes made in Gnus trunk.

gnus-msg.el (gnus-bug): Don't insert user variables.  It usually isn't very interesting any more, and it leaks potentially secret data.
 (gnus-debug): Removed.
gnus-art.el (gnus-ignored-headers): Removed obsolete and non-working use of :custom-show.

13 years ago* emacs.c: Integer overflow minor fix.
Paul Eggert [Thu, 7 Jul 2011 22:45:25 +0000 (15:45 -0700)]
* emacs.c: Integer overflow minor fix.

(heap_bss_diff): Now uprintmax_t, not unsigned long.  All used changed.
Define only if GNU_LINUX.
(main, Fdump_emacs): Set and use heap_bss_diff only if GNU_LINUX.

13 years agoTweak last change to menu descriptions.
Chong Yidong [Thu, 7 Jul 2011 22:41:09 +0000 (18:41 -0400)]
Tweak last change to menu descriptions.

* lisp/menu-bar.el (menu-bar-line-wrapping-menu): Revert last change.
(menu-bar-options-menu): Tweak descriptions.

13 years ago* dispnew.c: Integer signedness and overflow fixes.
Paul Eggert [Thu, 7 Jul 2011 22:14:22 +0000 (15:14 -0700)]
* dispnew.c: Integer signedness and overflow fixes.

Remove unnecessary forward decls, that were a maintenance hassle.
(history_tick): Now uprintmax_t, so it's more likely to avoid overflow.
All uses changed.
(adjust_glyph_matrix, realloc_glyph_pool, adjust_frame_message_buffer)
(scrolling_window): Use ptrdiff_t, not int, for byte count.
(prepare_desired_row, line_draw_cost):
Use int, not unsigned, where either works.
(save_current_matrix, restore_current_matrix):
Use ptrdiff_t, not size_t, where either works.
(init_display): Check for overflow more accurately, and without
relying on undefined behavior.

13 years ago* editfns.c (pWIDE, pWIDElen, signed_wide, unsigned_wide):
Paul Eggert [Thu, 7 Jul 2011 21:52:44 +0000 (14:52 -0700)]
* editfns.c (pWIDE, pWIDElen, signed_wide, unsigned_wide):

Remove, replacing with the new symbols in lisp.h.  All uses changed.
* fileio.c (make_temp_name):
* filelock.c (lock_file_1, lock_file):
* xdisp.c (message_dolog):
Don't assume PRIdMAX etc. works; this isn't portable to pre-C99 hosts.
Use pMd etc. instead.
* lisp.h (printmax_t, uprintmax_t, pMd, pMu): New types and macros,
replacing the pWIDE etc. symbols removed from editfns.c.

13 years agoMake all the Options menu items into verb phrases
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 21:43:38 +0000 (23:43 +0200)]
Make all the Options menu items into verb phrases

* menu-bar.el (menu-bar-line-wrapping-menu): Also refill to fit under
80 columns.

Fixes: debbugs:1421
13 years ago2011-07-07 Tassilo Horn <tassilo@member.fsf.org>
Tassilo Horn [Thu, 7 Jul 2011 20:42:30 +0000 (22:42 +0200)]
2011-07-07  Tassilo Horn  <tassilo@member.fsf.org>

* themes/tsdh-light-theme.el:
* themes/tsdh-dark-theme.el: Make `gnus-button' face inherit from
`button', `gnus-header-name' boxed, and define `rcirc-my-nick'
face.

13 years ago* text.texi (Special Properties): Clarify the format of `face'
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 20:37:54 +0000 (22:37 +0200)]
* text.texi (Special Properties): Clarify the format of `face'

Fixes: debbugs:1375
13 years agoDocument some Info functions (Bug#1084).
Chong Yidong [Thu, 7 Jul 2011 20:35:28 +0000 (16:35 -0400)]
Document some Info functions (Bug#1084).

* lisp/info.el (info, Info-read-node-name-2, Info-read-node-name-1)
(Info-read-node-name): Doc fix.

13 years agoDoc fixes for thingatpt.el.
Chong Yidong [Thu, 7 Jul 2011 18:31:57 +0000 (14:31 -0400)]
Doc fixes for thingatpt.el.

* lisp/thingatpt.el (forward-thing, bounds-of-thing-at-point)
(thing-at-point, beginning-of-thing, end-of-thing, in-string-p)
(end-of-sexp, beginning-of-sexp)
(thing-at-point-bounds-of-list-at-point, forward-whitespace)
(forward-symbol, forward-same-syntax, word-at-point)
(sentence-at-point): Doc fix (Bug#1144).

13 years ago(Info-mode-map): Remove S-TAB binding, since [backtab] should cover it
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 18:28:25 +0000 (20:28 +0200)]
(Info-mode-map): Remove S-TAB binding, since [backtab] should cover it

Fixes: debbugs:1281
13 years ago* keyboard.h (num_input_events): Now uintmax_t.
Paul Eggert [Thu, 7 Jul 2011 17:55:38 +0000 (10:55 -0700)]
* keyboard.h (num_input_events): Now uintmax_t.

This is (very slightly) less likely to mess up due to wraparound.
All uses changed.

13 years ago* buffer.c: Integer signedness fixes.
Paul Eggert [Thu, 7 Jul 2011 17:51:05 +0000 (10:51 -0700)]
* buffer.c: Integer signedness fixes.

(alloc_buffer_text, enlarge_buffer_text):
Use ptrdiff_t rather than size_t when either will do, as we prefer
signed integers.

13 years ago* bidi.c: Integer signedness and overflow fixes.
Paul Eggert [Thu, 7 Jul 2011 17:42:28 +0000 (10:42 -0700)]
* bidi.c: Integer signedness and overflow fixes.

(bidi_cache_idx, bidi_cache_last_idx, bidi_cache_fetch_state)
(bidi_cache_search, bidi_cache_find_level_change)
(bidi_cache_iterator_state, bidi_cache_find, bidi_find_other_level_edge)
(bidi_dump_cached_states):
Don't arbitrarily limit cache indexes to int; use ptrdiff_t instead.
(bidi_cache_size): Use ptrdiff_t rather than size_t, as we prefer
signed integers.
(elsz): Make it a (signed) constant.
(bidi_cache_iterator_state): Check for size-calculation overflow.

13 years ago(describe_map_tree): Don't insert a double newline at the end of the string
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 17:19:10 +0000 (19:19 +0200)]
(describe_map_tree): Don't insert a double newline at the end of the string

Return whether we inserted something.  This should allow the caller to
decide whether to insert more newlines or not.

Fixes: debbugs:1169
13 years agoClarify the `call-interactively' doc string, and add an example.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 16:59:26 +0000 (18:59 +0200)]
Clarify the `call-interactively' doc string, and add an example.

13 years ago* alloc.c: Integer signedness and overflow fixes.
Paul Eggert [Thu, 7 Jul 2011 16:58:24 +0000 (09:58 -0700)]
* alloc.c: Integer signedness and overflow fixes.

Do not impose an arbitrary 32-bit limit on malloc sizes when debugging.
(__malloc_size_t): Default to size_t, not to int.
(pure_size, pure_bytes_used_before_overflow, stack_copy_size)
(Fgarbage_collect, mark_object_loop_halt, mark_object):
Prefer ptrdiff_t to size_t when either would do, as we prefer
signed integers.
(XMALLOC_OVERRUN_CHECK_OVERHEAD): New macro.
(xmalloc_overrun_check_header, xmalloc_overrun_check_trailer):
Now const.  Initialize with values that are in range even if char
is signed.
(XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): Remove, replacing with ...
(xmalloc_put_size, xmalloc_get_size): New functions.  All uses changed.
These functions do the right thing with sizes > 2**32.
(check_depth): Now ptrdiff_t, not int.
(overrun_check_malloc, overrun_check_realloc, overrun_check_free):
Adjust to new way of storing sizes.  Check for size overflow bugs
in rest of code.
(STRING_BYTES_MAX): Adjust to new overheads.  The old code was
slightly wrong anyway, as it missed one instance of
XMALLOC_OVERRUN_CHECK_OVERHEAD.
(refill_memory_reserve): Omit needless cast to size_t.
(mark_object_loop_halt): Mark as externally visible.

13 years agoRemove mention of `require' in ediff.texi
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 16:38:27 +0000 (18:38 +0200)]
Remove mention of `require' in ediff.texi

That's not pertinent in the installed Emacs.

Fixes: debbugs:9016
13 years agoMerge from emacs-23 branch
Chong Yidong [Thu, 7 Jul 2011 16:18:25 +0000 (12:18 -0400)]
Merge from emacs-23 branch

13 years agoNote that :custom-show is obsolete.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 15:59:00 +0000 (17:59 +0200)]
Note that :custom-show is obsolete.

Fixes: debbugs:75
13 years agoFix bug #9015 with a bogus crash with glyphless characters on a TTY.
Eli Zaretskii [Thu, 7 Jul 2011 15:39:23 +0000 (18:39 +0300)]
Fix bug #9015 with a bogus crash with glyphless characters on a TTY.

 src/term.c (produce_glyphs) <xassert>: Allow IT_GLYPHLESS in it->what.

13 years agoWork around gnutls failures
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 15:14:17 +0000 (17:14 +0200)]
Work around gnutls failures

* net/network-stream.el (network-stream-open-starttls): If gnutls
negotiation fails, then possibly try again with a non-encrypted
connection.

Fixes: debbugs:9017
13 years ago* configure.in (maintainer-mode): Reflect default in help string.
Andreas Schwab [Thu, 7 Jul 2011 15:07:54 +0000 (17:07 +0200)]
* configure.in (maintainer-mode): Reflect default in help string.

13 years agoUpdate doc string of `smtpmail-stream-type'.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 14:54:12 +0000 (16:54 +0200)]
Update doc string of `smtpmail-stream-type'.

* mail/smtpmail.el (smtpmail-stream-type): Note that `plain' can
be used.

13 years agoadmin/unidata/makefile.w32-in: Duplicate change in Makefile.in (2011-07-06T22:43...
Juanma Barranquero [Thu, 7 Jul 2011 13:55:12 +0000 (15:55 +0200)]
admin/unidata/makefile.w32-in: Duplicate change in Makefile.in (2011-07-06T22:43:48Z!handa@m17n.org).

13 years agoMention the `send-mail-function' default change.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 11:59:05 +0000 (13:59 +0200)]
Mention the `send-mail-function' default change.

13 years ago* NEWS: Clarify `smtpmail-auth-credentials' non-existence.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 11:18:17 +0000 (13:18 +0200)]
* NEWS: Clarify `smtpmail-auth-credentials' non-existence.

13 years agoFix bugs finding grep hits in Rmail buffers.
Richard M. Stallman [Thu, 7 Jul 2011 10:35:43 +0000 (06:35 -0400)]
Fix bugs finding grep hits in Rmail buffers.

13 years agoAuto-commit of generated files.
Glenn Morris [Thu, 7 Jul 2011 10:19:23 +0000 (06:19 -0400)]
Auto-commit of generated files.

13 years agoAdd a major mode to edit plstore files.
Daiki Ueno [Thu, 7 Jul 2011 09:20:37 +0000 (18:20 +0900)]
Add a major mode to edit plstore files.

* plstore.el: Add documentation.
(plstore-mode): New mode to edit plstore file.
(plstore-mode-toggle-display, plstore-mode-original)
(plstore-mode-decoded): New command.
(plstore--encode, plstore--decode, plstore--write-contents-functions)
(plstore--insert-buffer, plstore--make): New function.
(plstore-open, plstore-save): Simplify by using them.

13 years agoIgnore a static composition that starts before the current checking position in redis...
Kenichi Handa [Thu, 7 Jul 2011 07:11:54 +0000 (16:11 +0900)]
Ignore a static composition that starts before the current checking position in redisplay.

13 years agomerge trunk
Kenichi Handa [Thu, 7 Jul 2011 04:20:12 +0000 (13:20 +0900)]
merge trunk

13 years agochartab.c (sub_char_table_set_range): Fix previous change.
Kenichi Handa [Thu, 7 Jul 2011 04:16:52 +0000 (13:16 +0900)]
chartab.c (sub_char_table_set_range): Fix previous change.

13 years agoSimplify Irix build, remove iris4d.h file.
Dan Nicolaescu [Thu, 7 Jul 2011 03:24:33 +0000 (20:24 -0700)]
Simplify Irix build, remove iris4d.h file.

* configure.in: Remove reference to iris4d.h.

* src/m/iris4d.h: Remove file, move contents ...
* src/s/irix6-5.h: ... here.

13 years ago* xselect.c: Integer signedness and overflow fixes.
Paul Eggert [Thu, 7 Jul 2011 02:24:56 +0000 (19:24 -0700)]
* xselect.c: Integer signedness and overflow fixes.

(Fx_register_dnd_atom, x_handle_dnd_message):
Use ptrdiff_t, not size_t, since we prefer signed.
(Fx_register_dnd_atom): Check for ptrdiff_t (and size_t) overflow.
* xterm.h (struct x_display_info): Use ptrdiff_t, not size_t, for
x_dnd_atoms_size and x_dnd_atoms_length.

13 years ago* doprnt.c: Prefer signed to unsigned when either works.
Paul Eggert [Thu, 7 Jul 2011 02:14:52 +0000 (19:14 -0700)]
* doprnt.c: Prefer signed to unsigned when either works.

* eval.c (verror):
* doprnt.c (doprnt):
* lisp.h (doprnt):
* xdisp.c (vmessage):
Use ptrdiff_t, not size_t, when using or implementing doprnt,
since the sizes cannot exceed ptrdiff_t bounds anyway, and we
prefer signed arithmetic to avoid comparison confusion.
* doprnt.c (doprnt): Avoid a "+ 1" that can't overflow,
but is a bit tricky.

13 years agoTweak to `button' face in custom themes.
Chong Yidong [Thu, 7 Jul 2011 01:48:14 +0000 (21:48 -0400)]
Tweak to `button' face in custom themes.

* etc/themes/dichromacy-theme.el:
* etc/themes/tango-theme.el:
* etc/themes/tango-dark-theme.el:
* etc/themes/wheatgrass-theme.el: Don't define button face separately;
it inherits from link now.

13 years agoError in next-buffer or previous-buffer if called from minibuffer.
Chong Yidong [Thu, 7 Jul 2011 01:46:59 +0000 (21:46 -0400)]
Error in next-buffer or previous-buffer if called from minibuffer.

* lisp/window.el (next-buffer, previous-buffer): Signal an error if
called from a minibuffer window.

* lisp/bindings.el: Revert 2011-07-04 change.

13 years agoAssume freestanding C89 headers, string.h, stdlib.h.
Paul Eggert [Thu, 7 Jul 2011 01:32:56 +0000 (18:32 -0700)]
Assume freestanding C89 headers, string.h, stdlib.h.

13 years agoMerge from trunk.
Paul Eggert [Wed, 6 Jul 2011 23:34:39 +0000 (16:34 -0700)]
Merge from trunk.

13 years agoAdd Bug#.
Paul Eggert [Wed, 6 Jul 2011 23:29:03 +0000 (16:29 -0700)]
Add Bug#.

13 years agomerge trunk
Kenichi Handa [Wed, 6 Jul 2011 23:28:00 +0000 (08:28 +0900)]
merge trunk

13 years agoAdd C interface for Unicode character property table.
Kenichi Handa [Wed, 6 Jul 2011 22:43:48 +0000 (07:43 +0900)]
Add C interface for Unicode character property table.

13 years agoRmail mime: Use markers for positions in entities.
Richard M. Stallman [Wed, 6 Jul 2011 22:43:46 +0000 (18:43 -0400)]
Rmail mime: Use markers for positions in entities.

13 years agolisp/gnus/ChangeLog (2011-07-04): Add missing entry.
Katsumi Yamaoka [Wed, 6 Jul 2011 22:39:47 +0000 (22:39 +0000)]
lisp/gnus/ChangeLog (2011-07-04): Add missing entry.

13 years agoRemove more assumptions re struct layout (Bug#8884).
Paul Eggert [Wed, 6 Jul 2011 22:22:32 +0000 (15:22 -0700)]
Remove more assumptions re struct layout (Bug#8884).

13 years agoMerge: Remove unportable assumption about struct layout (Bug#8884).
Paul Eggert [Wed, 6 Jul 2011 21:56:44 +0000 (14:56 -0700)]
Merge: Remove unportable assumption about struct layout (Bug#8884).

* buffer.c (clone_per_buffer_values): Don't assume that
sizeof (struct buffer) is a multiple of sizeof (Lisp_Object).
This isn't true in general, and it's particularly not true
if Emacs is configured with --with-wide-int.
* buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER):
New macros, used in the buffer.c change.

13 years agoRemove unportable assumption about struct layout (Bug#8884).
Paul Eggert [Wed, 6 Jul 2011 21:53:56 +0000 (14:53 -0700)]
Remove unportable assumption about struct layout (Bug#8884).

* buffer.c (clone_per_buffer_values): Don't assume that
sizeof (struct buffer) is a multiple of sizeof (Lisp_Object).
This isn't true in general, and it's particularly not true
if Emacs is configured with --with-wide-int.
* buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER):
New macros, used in the buffer.c change.

13 years ago* mail/smtpmail.el (smtpmail-default-smtp-server): Made into a defcustom again for...
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 21:34:13 +0000 (23:34 +0200)]
* mail/smtpmail.el (smtpmail-default-smtp-server): Made into a defcustom again for backwards compatibility.

13 years ago* simple.el (shell-command-on-region): Fill.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 19:44:09 +0000 (21:44 +0200)]
* simple.el (shell-command-on-region): Fill.

13 years ago* functions.texi (Calling Functions): Link to the "Interactive
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 18:34:55 +0000 (20:34 +0200)]
* functions.texi (Calling Functions): Link to the "Interactive
Call" node.

Fixes: debbugs:1001
13 years ago* dired-aux.el (dired-kill-line): Add a doc string.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 18:26:29 +0000 (20:26 +0200)]
* dired-aux.el (dired-kill-line): Add a doc string.

Fixes: debbugs:957
13 years agoUse pthread_sigmask, not sigprocmask.
Paul Eggert [Wed, 6 Jul 2011 18:04:23 +0000 (11:04 -0700)]
Use pthread_sigmask, not sigprocmask.

* callproc.c (Fcall_process):
* sysdep.c (sys_sigblock, sys_sigunblock, sys_sigsetmask):
* process.c (create_process):
sigprocmask is portable only for single-threaded applications, and
Emacs can be multi-threaded when it uses GTK.

13 years agoAdd gnulib support for pthread_sigmask.
Paul Eggert [Wed, 6 Jul 2011 17:58:37 +0000 (10:58 -0700)]
Add gnulib support for pthread_sigmask.

* Makefile.in (GNULIB_MODULES): Add pthread_sigmask.
(GNULIB_TOOL_FLAGS): Avoid sigprocmask.  Emacs does its own
implementation of 'sigprocmask' on Windows, and it assumes
'sigprocmask' on non-Windows hosts, so it doesn't need the
sigprocmask module.
* lib/signal.in.h, m4/pthread_sigmask.m4, m4/signal_h.m4:
New files, automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Automatically-imported update
due to the above changes.
* .bzrignore: Add lib/signal.h.

13 years ago* dabbrev.el (dabbrev-abbrev-char-regexp): Note that nil defaults
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 17:45:01 +0000 (19:45 +0200)]
* dabbrev.el (dabbrev-abbrev-char-regexp): Note that nil defaults
to "\\sw\\|\\s_" (bug#358).

13 years ago* dired.el (dired-mode): Clarify "unmark or unflag".
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 17:10:36 +0000 (19:10 +0200)]
* dired.el (dired-mode): Clarify "unmark or unflag".
(dired-unmark-backward): Ditto.
(dired-flag-backup-files): Ditto.

* dired-x.el (dired-mark-sexp): Ditto.

Fixes: debbugs:8770
13 years ago* NEWS: Clarify that `smtpmail-starttls-credentials' doesn't exist.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 16:50:34 +0000 (18:50 +0200)]
* NEWS: Clarify that `smtpmail-starttls-credentials' doesn't exist.

13 years agoFix rmail mime search bug when entity is a string.
Richard M. Stallman [Wed, 6 Jul 2011 16:48:37 +0000 (12:48 -0400)]
Fix rmail mime search bug when entity is a string.

13 years ago* emacs-lisp/lisp-mode.el (eval-defun-1): Update the documentation
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 16:46:27 +0000 (18:46 +0200)]
* emacs-lisp/lisp-mode.el (eval-defun-1): Update the documentation
of faces when `M-C-x'-ing their definitions.  Also
clean up the code slightly.

Fixes: debbugs:8378
13 years agormailmm.el: record truncated mime entities.
Richard M. Stallman [Wed, 6 Jul 2011 16:44:33 +0000 (12:44 -0400)]
rmailmm.el: record truncated mime entities.

13 years ago* m4/alloca.m4: Merge whitespace changes from gnulib.
Paul Eggert [Wed, 6 Jul 2011 16:19:38 +0000 (09:19 -0700)]
* m4/alloca.m4: Merge whitespace changes from gnulib.

13 years ago* progmodes/grep.el (rgrep): Don't bind `process-connection-type', because that makes...
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 15:49:19 +0000 (17:49 +0200)]
* progmodes/grep.el (rgrep): Don't bind `process-connection-type', because that makes the colours go away.

13 years ago(sendmail-query-once): Add an autoload cookie.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 15:45:00 +0000 (17:45 +0200)]
(sendmail-query-once): Add an autoload cookie.

13 years ago* mail/sendmail.el (send-mail-function): Change the default to `sendmail-query-once'.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 15:39:32 +0000 (17:39 +0200)]
* mail/sendmail.el (send-mail-function): Change the default to `sendmail-query-once'.

13 years ago* net/network-stream.el (network-stream-open-starttls): Try using
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 15:09:11 +0000 (17:09 +0200)]
* net/network-stream.el (network-stream-open-starttls): Try using
a plain connection even if the server offered STARTTLS, and we
kinda wanted to use it, if Emacs doesn't have any STARTTLS
capability.  This should make smtpmail.el work in slightly more
configurations.

13 years ago* net/tramp-compat.el (tramp-compat-pop-to-buffer-same-window): New defun.
Michael Albinus [Wed, 6 Jul 2011 09:48:20 +0000 (11:48 +0200)]
* net/tramp-compat.el (tramp-compat-pop-to-buffer-same-window): New defun.
* net/tramp-cmds.el (tramp-append-tramp-buffers): Use it.

13 years ago* url-cache.el (url-cache-extract): Set buffer multibyte flag to
Julien Danjou [Wed, 6 Jul 2011 07:47:15 +0000 (09:47 +0200)]
* url-cache.el (url-cache-extract): Set buffer multibyte flag to
nil (bug#8827).

13 years ago* progmodes/sql.el: Version 3.0
Michael Mauger [Wed, 6 Jul 2011 03:51:48 +0000 (23:51 -0400)]
* progmodes/sql.el: Version 3.0
(sql-product-alist): Added product :completion-object,
:completion-column, and :statement attributes.
(sql-mode-menu, sql-interactive-mode-map): Fixed List entries.
(sql-mode-syntax-table): Mark all punctuation.
(sql-font-lock-keywords-builder): Temporarily removed fallback on
ansi keywords.
(sql-regexp-abbrev, sql-regexp-abbrev-list): New functions.
(sql-mode-oracle-font-lock-keywords): Improved.
(sql-oracle-show-reserved-words): New function for development.
(sql-product-font-lock): Simplify for source code buffers.
(sql-product-syntax-table, sql-product-font-lock-syntax-alist):
New functions.
(sql-highlight-product): Set product specific syntax table.
(sql-mode-map): Added statement movement functions.
(sql-ansi-statement-starters, sql-oracle-statement-starters): New
variable.
(sql-statement-regexp, sql-beginning-of-statement)
(sql-end-of-statement, sql-signum): New functions.
(sql-buffer-live-p, sql=find-sqli-buffer): Added CONNECTION
parameter.
(sql-show-sqli-buffer): Bug fix.
(sql-interactive-mode): Store connection data as buffer local.
(sql-connect): Added NEW-NAME parameter.  Redesigned interaction
with sql-interactive-mode.
(sql-save-connection): Save buffer local settings.
(sql-connection-menu-filter): Changed menu entry name.
(sql-product-interactive): Bug fix.
(sql-preoutput-hold): New variable.
(sql-interactive-remove-continuation-prompt): Bug fixes.
(sql-debug-redirect): New variable.
(sql-str-literal): New function.
(sql-redirect, sql-redirect-one, sql-redirect-value, sql-execute):
Redesigned.
(sql-oracle-save-settings, sql-oracle-restore-settings)
(sql-oracle-list-all, sql-oracle-list-table): New functions.
(sql-completion-object, sql-completion-column)
(sql-completion-sqlbuf): New variables.
(sql-build-completions-1, sql-build-completions)
(sql-try-completion): New functions.
(sql-read-table-name): Use them.
(sql-contains-names): New buffer local variable.
(sql-list-all, sql-list-table): Use it.
(sql-oracle-completion-types): New variable.
(sql-oracle-completion-object, sql-sqlite-completion-object)
(sql-postgres-completion-object): New functions.

13 years ago* lisp/window.el (pop-to-buffer): Doc fix.
Glenn Morris [Wed, 6 Jul 2011 02:46:22 +0000 (19:46 -0700)]
* lisp/window.el (pop-to-buffer): Doc fix.

13 years ago* gnus-group.el (gnus-read-ephemeral-emacs-bug-group): Silence compiler.
Glenn Morris [Wed, 6 Jul 2011 02:45:24 +0000 (19:45 -0700)]
* gnus-group.el (gnus-read-ephemeral-emacs-bug-group): Silence compiler.