Paul Eggert
cf950e6bbd
Merge from trunk.
2011-07-13 23:41:47 -07:00
Paul Eggert
ca4aa93591
* image.c: Improve checking for integer overflow.
...
(check_image_size): Assume that f is nonnull, since
it is always nonnull in practice. This is one less thing to
worry about when checking for integer overflow later.
(x_check_image_size): New function, which checks for integer
overflow issues inside X.
(x_create_x_image_and_pixmap, xbm_read_bitmap_data): Use it.
This removes the need for a memory_full check.
(xbm_image_p): Rewrite to avoid integer multiplication overflow.
(Create_Pixmap_From_Bitmap_Data, xbm_load): Use x_check_image_size.
(xbm_read_bitmap_data): Change locals back to 'int', since
their values must fit in 'int'.
(xpm_load_image, png_load, tiff_load):
Invoke x_create_x_image_and_pixmap earlier,
to avoid much needless work if the image is too large.
(tiff_load): Treat overly large images as if
x_create_x_image_and_pixmap failed, not as malloc failures.
(gs_load): Use x_check_image_size.
2011-07-13 23:20:53 -07:00
Chong Yidong
27fa387ad1
* bindings.el: Add advertised binding for set-mark-command (Bug#5772).
2011-07-13 21:58:51 -04:00
Chong Yidong
8bdfa0649b
Adapt 2011-07-05 switch-to-buffer changes to new switch-to-buffer
...
* lisp/bindings.el (mode-line-other-buffer):
* lisp/bookmark.el (bookmark-bmenu-2-window):
* lisp/bs.el (bs-cycle-next, bs-cycle-previous):
* lisp/net/tramp-cmds.el (tramp-append-tramp-buffers): Revert to using
switch-to-buffer.
* lisp/net/tramp-compat.el (tramp-compat-pop-to-buffer-same-window):
Deleted.
2011-07-13 21:40:30 -04:00
Juanma Barranquero
5eba16a37c
Fix typos.
2011-07-14 03:09:00 +02:00
Kevin Ryde
c0a8ae956f
* cl.texi (For Clauses): Add destructuring example processing an
...
alist.
2011-07-14 02:14:35 +02:00
Lars Magne Ingebrigtsen
f2027cdf5a
(Documentation Basics): Add a link to the Function Documentation node.
...
Fixes: debbugs:6580
2011-07-14 02:02:09 +02:00
Lars Magne Ingebrigtsen
837c31f830
Fstring_to_char doc clarification
...
* editfns.c (Fstring_to_char): Clarify just what is returned
(bug#6576). Text by Eli Zaretskii.
2011-07-14 01:48:35 +02:00
Lars Magne Ingebrigtsen
a28e4607f0
Doc fix for with-silent-modifications
...
* subr.el (with-silent-modifications): Clarify somewhat what the
macro inhibits.
Fixes: debbugs:6525
2011-07-14 01:40:11 +02:00
Lars Magne Ingebrigtsen
15853710e1
Doc fix for eval-expression
...
* simple.el (eval-expression): Note what it does if called
interactively.
Fixes: debbugs:6495
2011-07-14 01:35:36 +02:00
Lars Magne Ingebrigtsen
0bc59b255e
Mention :visible menu bar separators
...
* keymaps.texi (Menu Bar): Mention :visible and :enable
(bug#6344). Text by Drew Adams.
Fixes: debbugs:6334
2011-07-14 01:17:24 +02:00
Lars Magne Ingebrigtsen
bd2fcc8d5c
(make-directory): Clarify that an error will be raised if there's an error
...
Fixes: debbugs:6387
2011-07-14 00:22:08 +02:00
Chong Yidong
bee0fcef3d
Add FORCE-SAME-WINDOW argument to switch-to-buffer.
...
* lisp/window.el (switch-to-buffer): New arg FORCE-SAME-WINDOW. Use
pop-to-buffer buffer-or-name if it is nil.
* lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
Remove switch-to-buffer.
2011-07-13 18:00:48 -04:00
Lars Magne Ingebrigtsen
0f04b32ce1
* startup.el (initial-buffer-choice): Add `none' as a choice
...
Fixes: debbugs:6234
2011-07-13 23:53:41 +02:00
Lars Magne Ingebrigtsen
63d55f1f91
* modes.texi (Running Hooks): Mention buffer-local hook variables
...
Fixes: debbugs:6218
2011-07-13 23:42:54 +02:00
Lars Magne Ingebrigtsen
465c5fc88d
Clarify manual and `add-hook' doc string about buffer-local hooks
2011-07-13 23:38:56 +02:00
Lars Magne Ingebrigtsen
5827450416
* dired.el (dired-flagged): Clarify doc string.
...
Fixes: debbugs:6117
2011-07-13 23:27:13 +02:00
Juanma Barranquero
ac389d0c75
src/gnutls.c (init_gnutls_functions): Honor gnutls_log_level (bug#9059).
2011-07-13 22:33:44 +02:00
Juanma Barranquero
bead9a43c1
Preserve point when doing untabify
...
* tabify.el (untabify): Preserve the current column so that point
doesn't move.
Fixes: debbugs:6032
2011-07-13 20:12:05 +02:00
Glenn Morris
90a6258b05
* doc/emacs/dired.texi (Dired Enter): Mention --dired. (Bug#9039)
2011-07-13 13:55:04 -04:00
Lars Magne Ingebrigtsen
3af98a7b7d
Doc string fix.
...
* progmodes/cperl-mode.el (cperl-syntaxify-by-font-lock): Rewrite
to avoid awkward possessive "s".
Fixes: debbugs:5986
2011-07-13 19:47:17 +02:00
Glenn Morris
6240145a7f
Small dired fixes related to bug#9039.
...
* lisp/dired.el (dired-use-ls-dired): Doc fix.
(dired-insert-directory): Give a message the first time
if ls is found not to support --dired.
2011-07-13 13:34:31 -04:00
Lars Magne Ingebrigtsen
c758836452
Clarify `mark-ring-max' documentation.
...
* mark.texi (Mark Ring): Clarify how many locations are saved
(bug#5770).
(Global Mark Ring): Ditto.
2011-07-13 18:58:15 +02:00
Lars Magne Ingebrigtsen
1d8c2ccc66
Clarify doc string
...
* simple.el (toggle-truncate-lines): Clarify what is toggled
(bug#5580). Text by Drew Adams.
2011-07-13 18:39:49 +02:00
Chong Yidong
5fc4038e20
* simple.el (blink-matching-open): Make error message from last change less verbose.
2011-07-13 12:15:07 -04:00
Paul Eggert
5f8f9cc269
* gtkutil.c: Omit integer casts.
...
(xg_get_pixbuf_from_pixmap): Remove unnecessary cast.
(xg_set_toolkit_scroll_bar_thumb): Rewrite to avoid need for cast.
2011-07-13 08:42:12 -07:00
Dan Nicolaescu
bf6012e5b1
Use "yellow" on low color terminals for comments
...
* font-lock.el (font-lock-comment-face): Use the high contrast
"yellow" color for font-lock-comment-face on low color terminals
using a dark background color.
Fixes: debbugs:4221
2011-07-13 17:33:08 +02:00
Lars Magne Ingebrigtsen
7e9505c5eb
(dired-insert-set-properties): Make the doc string reflect what it does now
...
Fixes: debbugs:5325
2011-07-13 17:15:26 +02:00
Lars Magne Ingebrigtsen
f987fde448
(General Escape Syntax): "a with grave accent" is ?xe0, not ?x8e0.
...
Fixes: debbugs:5259
2011-07-13 17:07:57 +02:00
Lars Magne Ingebrigtsen
c26fdcf522
Say that we were unable to find the match within the limit
...
* simple.el (blink-matching-open): Say that we were unable to find
the match within the limit, if we're limited (bug#5122).
2011-07-13 16:57:28 +02:00
Lars Magne Ingebrigtsen
bb388cc58b
(prefer-coding-system): Add an example
...
Fixes: debbugs:4869
2011-07-13 16:34:10 +02:00
Lars Magne Ingebrigtsen
343c3b5a4e
(tags-search): Document `file-list-form'
2011-07-13 16:20:45 +02:00
Chris Newton
b0c9af93ab
Copy over `url-show-status' to the async buffer
...
* url-http.el (url-http): Copy over `url-show-status' to the async
buffer so that `url-display-percentage' does the right thing
(bug#4680).
2011-07-13 16:12:06 +02:00
Lawrence Mitchell
2a517d45db
Make the default browser choice a bit more logical
...
* net/browse-url.el (browse-url-default-browser)
(browse-url-browser-function): Make the default browser choice a
bit more logical. Also clean up the doc string.
Fixes: debbugs:4300
2011-07-13 15:49:55 +02:00
Juanma Barranquero
b6c78ef21f
(completion-ignored-extensions): Add OpenMCL/Clozure binary endings.
...
Fixes: debbugs:4440
2011-07-13 15:39:23 +02:00
Lars Magne Ingebrigtsen
a201406306
(info-insert-file-contents): Inhibit jka-compr messages, which can be pretty annoying
...
Fixes: debbugs:8971
2011-07-13 15:35:02 +02:00
Lars Magne Ingebrigtsen
9c9c2d8874
* jka-compr.el (jka-compr-verbose): New variable, and use throughout.
...
Fixes: debbugs:8971
2011-07-13 15:25:29 +02:00
Lars Magne Ingebrigtsen
1c4dd947d6
(Info-find-file): Fall back on the installation directory if we can't find the info node anywhere else.
2011-07-13 15:10:54 +02:00
Jan Djärv
2ad77c9dd4
* configure.in (GSETTINGS): Check for gio-2.0 >= 2.26.
2011-07-13 12:36:12 +02:00
Sergei Organov
a1c9f41b78
* lisp/vc/vc.el (vc-revert-file): Don't set file time-stamp in the past.
...
Fixes: debbugs:5181
2011-07-13 00:58:34 -07:00
Eli Zaretskii
0be0ce4741
src/buffer.c (mmap_find): Fix a typo.
2011-07-13 00:09:28 -04:00
Paul Eggert
89bfafe5d3
Merge from trunk.
2011-07-12 20:45:56 -07:00
Paul Eggert
5adf60bc23
* image.c (png_load): Don't assume height * row_bytes fits in 'int'.
2011-07-12 20:42:26 -07:00
Johan Bockgård
cd18e7e3f4
Fix execution of x selection hooks.
...
* xselect.c (Qx_lost_selection_functions)
(Qx_sent_selection_functions): New vars.
(syms_of_xselect): DEFSYM them.
(x_handle_selection_request): Pass Qx_sent_selection_functions
rather than Vx_sent_selection_functions to Frun_hook_with_args.
(x_handle_selection_clear,x_clear_frame_selections):
Pass Qx_lost_selection_functions rather than
Vx_lost_selection_functions to Frun_hook_with_args.
2011-07-13 03:48:43 +02:00
Paul Eggert
2941c447eb
* buffer.c (Fget_buffer_create): Initialized inhibit_shrinking.
...
The old code sometimes used this field without initializing it.
2011-07-12 18:15:33 -07:00
Paul Eggert
47ea7f442f
* alloc.c (gc_sweep): Don't read past end of array.
...
In theory, the old code could also have corrupted Emacs internals,
though it'd be very unlikely.
2011-07-12 18:04:29 -07:00
Lars Magne Ingebrigtsen
7152b011c2
Give better error messages when trying to load non-existent symlinks
...
* files.el (after-find-file): Give a better error message when
trying to find a symlink that points to a file that doesn't exist
(bug#4398).
2011-07-13 01:25:50 +02:00
Lars Magne Ingebrigtsen
536f3d362f
* progmodes/cc-vars.el: Remove (probably) misleading comment
2011-07-13 01:19:33 +02:00
Lars Magne Ingebrigtsen
d648feab65
(Table Recognition): Use "at point" instead of "under point"
...
Fixes: debbugs:4345
2011-07-13 00:39:21 +02:00
Lars Magne Ingebrigtsen
4cb4f3ba22
Manual fixes related to clarifying cursor shapes
...
Fixes: debbugs:4345
2011-07-13 00:37:20 +02:00