1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 15:21:46 +00:00
Commit Graph

101238 Commits

Author SHA1 Message Date
Katsumi Yamaoka
74e8193b79 auth-source.el (auth-source-netrc-cache): Move forward. 2011-06-23 23:17:26 +00:00
Richard M. Stallman
14b4e83d62 Going to grep hit in Rmail buffer finds the message. 2011-06-23 13:08:15 -04:00
Richard M. Stallman
8050daa1d0 Work with changes in mail-bury. 2011-06-23 13:03:59 -04:00
Stefan Monnier
273d2baf9b * lisp/emacs-lisp/smie.el (smie-bnf->prec2): Give more understandable error
messages for adjacent non-terminals.
2011-06-23 12:55:59 -04:00
Richard M. Stallman
f444564c73 Marking message as "seen" should not mark buffer as changed. 2011-06-23 12:38:40 -04:00
Richard M. Stallman
56c2cc9a95 Don't reuse previous Message-id when resending. 2011-06-23 12:33:05 -04:00
Michael Albinus
d59eb51849 * net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether
SIZE is a number.
2011-06-23 15:03:04 +02:00
Glenn Morris
4fc2b746f7 Auto-commit of generated files. 2011-06-23 06:18:34 -04:00
Martin Rudalics
02cfc6d6fc Fix display-buffer related bugs reported by Thierry Volpiatto.
* window.el (get-lru-window, get-mru-window)
(get-largest-window): Never return a minibuffer window.
(display-buffer-pop-up-window): Fix a bug that could lead to
reusing the minibuffer window.
(display-buffer): Pass original specifier argument to
display-buffer-function instead of the normalized one.
Reported by Thierry Volpiatto <thierry.volpiatto@gmail.com>.
2011-06-23 10:58:45 +02:00
Paul Eggert
6dd7e40073 * lib/getopt.c, lib/stat.c, m4/gl-comp.m4: Merge from gnulib. 2011-06-23 01:10:57 -07:00
Paul Eggert
7efb4e0e62 Merge from trunk. 2011-06-23 00:37:31 -07:00
Paul Eggert
ff5844ad0b * print.c (printchar, strout): Check for string overflow.
(PRINTPREPARE, printchar, strout):
Don't set size unless allocation succeeds.
2011-06-23 00:33:28 -07:00
Paul Eggert
90532f02fd * minibuf.c (read_minibuf_noninteractive): Use ptrdiff_t, not int,
for sizes.  Check for string overflow more accurately.
Simplify newline removal at end; this suppresses a GCC 4.6.0 warning.
2011-06-22 23:45:38 -07:00
Paul Eggert
6d84508d18 * macros.c: Integer and buffer overflow fixes.
* keyboard.h (struct keyboard.kbd_macro_bufsize):
* macros.c (Fstart_kbd_macro, store_kbd_macro_char):
Use ptrdiff_t, not int, for sizes.
Don't increment bufsize until after realloc succeeds.
Check for size-calculation overflow.
(Fstart_kbd_macro): Use EMACS_INT, not int, for XINT result.
2011-06-22 23:31:41 -07:00
Paul Eggert
20270765be * lread.c (read1): Check for size overflow. 2011-06-22 22:41:40 -07:00
Paul Eggert
437b2cb453 * lisp.h (DEFVAR_KBOARD): Use offsetof instead of char * finagling. 2011-06-22 22:35:51 -07:00
Paul Eggert
82cb60d3ff * lread.c (read_escape): Avoid int overflow.
(Fload, openp, read_buffer_size, read1)
(substitute_object_recurse, read_vector, read_list, map_obarray):
Use ptrdiff_t, not int, for sizes.
(read1): Use EMACS_INT, not int, for sizes.
2011-06-22 22:34:52 -07:00
Leo Liu
4e3232657c Move completing-read-function and completing-read-default to elisp 2011-06-23 11:35:05 +08:00
Paul Eggert
8b9ac8b4a2 * lread.c: Integer overflow fixes.
(read_integer): Radix is now EMACS_INT, not int,
to improve quality of diagnostics for out-of-range radices.
Calculate buffer size correctly for out-of-range radices.
(read1): Check for integer overflow in radices, and in
read-circle numbers.
2011-06-22 17:55:55 -07:00
Paul Eggert
7fcccf1efe * image.c (cache_image): Check for size arithmetic overflow. 2011-06-22 17:46:41 -07:00
Lars Magne Ingebrigtsen
5c62d13346 Fix typo in last check-in. 2011-06-23 02:18:46 +02:00
Lars Magne Ingebrigtsen
c4db078bfd Clean up the ssl/tls support to be able to use the built-in support, too. 2011-06-23 02:17:41 +02:00
Lars Magne Ingebrigtsen
b534ed407e nnimap.el (nnimap-open-connection-1): Fix indentation. 2011-06-23 00:00:38 +00:00
Richard M. Stallman
50718fc219 Make mail exit more nicely when Rmail is in use. 2011-06-22 19:39:29 -04:00
Richard M. Stallman
7a70468fb1 Fix bug: Rmail f copied the entire Rmail file into *mail*. 2011-06-22 19:35:21 -04:00
Paul Eggert
39019e5425 * lread.c (read_escape): Check for hex character overflow. 2011-06-22 15:39:06 -07:00
Paul Eggert
bfbbd7e752 * lread.c: Integer overflow issues.
(saved_doc_string_size, saved_doc_string_length)
(prev_saved_doc_string_size, prev_saved_doc_string_length):
Now ptrdiff_t, not int.
(read1): Don't assume doc string length fits in int.  Check for
out-of-range doc string lengths.
(read_list): Don't assume file position fits in int.
2011-06-22 15:36:19 -07:00
Roland Winkler
297dde5a97 lisp/textmodes/bibtex.el: minor cleanup and bug fixes 2011-06-22 15:59:48 -05:00
Lars Magne Ingebrigtsen
97bb109368 (smtpmail-try-auth-methods): If the user has stored a user name, then
query for the password first, instead of waiting for SMTP to give an
error message and the trying again.
2011-06-22 21:24:51 +02:00
Paul Eggert
20b84ce991 Merge: Fixes for GLYPH_DEBUG found by GCC 4.6.0 static checking. 2011-06-22 11:20:15 -07:00
Paul Eggert
d231e1987e Merge from trunk. 2011-06-22 11:18:38 -07:00
Paul Eggert
85fece3ec2 GLYPH_DEBUG fixes
The following patches are for when GLYPH_DEBUG && !XASSERT.
* dispextern.h (trace_redisplay_p, dump_glyph_string):
* dispnew.c (flush_stdout):
* xdisp.c (dump_glyph_row, dump_glyph_matrix, dump_glyph):
Mark as externally visible.
* dispnew.c (check_window_matrix_pointers): Now static.
* dispnew.c (window_to_frame_vpos):
* xfns.c (unwind_create_frame):
* xterm.c (x_check_font): Remove unused local.
* scroll.c (CHECK_BOUNDS):
* xfaces.c (cache_fache): Rename local to avoid shadowing.
* xfns.c, w32fns.c (image_cache_refcount, dpyinfo_refcount): Now static.
* xdisp.c (check_window_end): Now a no-op if !XASSERTS.
(debug_first_unchanged_at_end_vpos, debug_last_unchanged_at_beg_vpos)
(debug_dvpos, debug_dy, debug_delta, debug_delta_bytes, debug_end_vpos):
Now static.
(debug_method_add): Use va_list and vsprintf rather than relying
on undefined behavior with wrong number of arguments.
(dump_glyph, dump_glyph_row, Fdump_glyph_matrix):
Don't assume ptrdiff_t and EMACS_INT are the same width as int.
In this code, it's OK to assume C99 behavior for ptrdiff_t formats
since we're not interested in debugging glyphs with old libraries.
* xfaces.c (cache_face): Move debugging code earlier; this pacifies
GCC 4.6.0's static checking.
2011-06-22 11:15:23 -07:00
Jan Djärv
1c0f1a199c From Lawrence Mitchell <wence@gmx.li>: Don't hang in browse-url-xdg-open.
* net/browse-url.el (browse-url-xdg-open): Use 0, rather than nil
  BUFFER in call-process.
2011-06-22 18:44:53 +02:00
Paul Eggert
94a807ac4e Merge: Use gnulib's alloca-opt module. 2011-06-22 09:28:41 -07:00
Paul Eggert
9f0b1513ad Merge from trunk. 2011-06-22 09:25:06 -07:00
Paul Eggert
31fd4b3280 Merge: Integer overflow and signedness fixes (Bug#8873).
A few related buffer overrun fixes, too.
2011-06-22 09:15:41 -07:00
Paul Eggert
510005210a Merge from trunk. 2011-06-22 09:01:00 -07:00
Lars Magne Ingebrigtsen
ddb7ffeeb8 When the .authinfo file has a user name but not a password, prompt
for the password.
2011-06-22 16:48:31 +02:00
Jim Meyering
d5a19415d0 don't leak an XBM-image-sized buffer
* image.c (xbm_load): Free the image buffer after using it.
2011-06-22 14:23:17 +02:00
Martin Rudalics
130e3e1121 Normalize SIDE argument of split-window (Bug#8916).
* window.el (split-window): Normalize SIDE argument (Bug#8916).
2011-06-22 11:23:31 +02:00
Lars Magne Ingebrigtsen
396f7c9d28 (smtpmail-via-smtp): Make sure we don't send QUIT twice. 2011-06-22 11:13:50 +02:00
Martin Rudalics
8998d1b3e8 Remove preset entries for pop-up-frame-alist from window.el defaults.
* window.el (display-buffer-default-specifiers)
(display-buffer-alist): Remove entries for pop-up-frame-alist.
Suggested by Katsumi Yamaoka <yamaoka@jpl.org>.

* frame.el (pop-up-frame-alist, pop-up-frame-function)
(special-display-frame-alist, special-display-popup-frame):
Remove duplicate declarations.  These are now in window.el.
2011-06-22 09:12:18 +02:00
Paul Eggert
b79e8648b9 * font.c (font_score): Use EMACS_INT, not int, to store XINT value. 2011-06-21 23:18:06 -07:00
Paul Eggert
0766b489e1 * dispextern.h (struct face.stipple):
* image.c (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
(x_bitmap_mask, x_allocate_bitmap_record)
(x_create_bitmap_from_data, x_create_bitmap_from_file)
(x_destroy_bitmap, x_destroy_all_bitmaps, x_create_bitmap_mask)
(x_create_bitmap_from_xpm_data):
* nsterm.h (struct ns_display_info.bitmaps_size, .bitmaps_last):
* w32term.h (struct w32_display_info.icon_bitmap_id, .bitmaps_size)
(.bitmaps_last):
* xfaces.c (load_pixmap):
* xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap):
* xterm.h (struct x_display_info.icon_bitmap_id, .bitmaps_size)
(.bitmaps_last, struct x_output.icon_bitmap):
Use ptrdiff_t, not int, for bitmap indexes.
(x_allocate_bitmap_record): Check for size overflow.
* dispextern.h, lisp.h: Adjust to API changes elsewhere.
2011-06-21 23:16:16 -07:00
Paul Eggert
21514da7b2 * buffer.c (OVERLAY_COUNT_MAX): New macro.
(overlays_in, mouse_face_overlay_overlaps, Foverlays_in):
Use ptrdiff_t, not int, for sizes.
(overlays_in): Check for size-calculation overflow.
2011-06-21 16:16:43 -07:00
Lars Magne Ingebrigtsen
6af7a7844e Set :use-starttls-if-possible so that we always use STARTTLS if the server supports it.
SMTP servers that support STARTTLS commonly require it.
2011-06-22 00:55:52 +02:00
Lars Magne Ingebrigtsen
7d36ad4669 (smtpmail-via-smtp): Check for servers saying they want AUTH after MAIL FROM, too. 2011-06-22 00:33:44 +02:00
Andrew Cohen
183a6951a6 nnimap.el (nnimap-find-article-by-message-id): return nil when no article found. 2011-06-21 22:13:24 +00:00
Paul Eggert
b081724f64 Use ptrdiff_t, not int, for overlay counts.
* buffer.h (overlays_at, sort_overlays, GET_OVERLAYS_AT):
* editfns.c (overlays_around, get_pos_property):
* textprop.c (get_char_property_and_overlay):
* xdisp.c (next_overlay_change, note_mouse_highlight):
* xfaces.c (face_at_buffer_position):
* buffer.c (overlays_at, sort_overlays, Foverlays_at)
(Fnext_overlay_change, Fprevious_overlay_change):
Use ptrdiff_t, not int, for sizes.
(overlays_at): Check for size-calculation overflow.
2011-06-21 14:32:10 -07:00
Lars Magne Ingebrigtsen
95f41d9ad1 Rewritten smtpmail.el to use `open-network-stream' to do STARTTLS
upgrades opportunistically, and to only use auth-source for all
credentials.  Mostly backwards compatible, but
`smtpmail-auth-credentials' and `smtpmail-starttls-credentials' are
removed, and users who relied on those will have to put the
credentials in ~/.authinfo instead.
2011-06-21 23:10:52 +02:00