]> code.delx.au - gnu-emacs/log
gnu-emacs
12 years ago* xterm.h (x_check_errors): Add ATTRIBUTE_FORMAT_PRINTF.
Paul Eggert [Mon, 29 Aug 2011 20:04:46 +0000 (13:04 -0700)]
* xterm.h (x_check_errors): Add ATTRIBUTE_FORMAT_PRINTF.

12 years ago* xterm.c (x_io_error_quitter): Don't overrun sprintf buffer.
Paul Eggert [Mon, 29 Aug 2011 20:03:30 +0000 (13:03 -0700)]
* xterm.c (x_io_error_quitter): Don't overrun sprintf buffer.

12 years ago* xfns.c (x_window): Make sprintf buffer a bit bigger
Paul Eggert [Mon, 29 Aug 2011 19:59:51 +0000 (12:59 -0700)]
* xfns.c (x_window): Make sprintf buffer a bit bigger

to avoid potential buffer overrun.

12 years ago* xfaces.c (x_update_menu_appearance): Don't overrun buffer
Paul Eggert [Mon, 29 Aug 2011 19:58:56 +0000 (12:58 -0700)]
* xfaces.c (x_update_menu_appearance): Don't overrun buffer

if X resource line is longer than 512 bytes.

12 years ago* term.c (produce_glyphless_glyph): Make sprintf buffer a bit bigger
Paul Eggert [Mon, 29 Aug 2011 19:47:44 +0000 (12:47 -0700)]
* term.c (produce_glyphless_glyph): Make sprintf buffer a bit bigger

to avoid potential buffer overrun.

12 years ago* process.c (make_process): Use printmax_t, not int, to format
Paul Eggert [Mon, 29 Aug 2011 19:46:15 +0000 (12:46 -0700)]
* process.c (make_process): Use printmax_t, not int, to format

process-name gensyms.

12 years ago* print.c (float_to_string): Detect width overflow more reliably.
Paul Eggert [Mon, 29 Aug 2011 19:14:47 +0000 (12:14 -0700)]
* print.c (float_to_string): Detect width overflow more reliably.

(print_object): Make sprintf buffer a bit bigger, to avoid potential
buffer overrun.  Don't assume list length fits in 'int'.  Treat
print length of 0 as 0, not as infinity; to be consistent with other
uses of print length in this function.  Don't overflow print length
index.  Don't assume hash table size fits in 'long', or that
vectorlike size fits in 'unsigned long'.

12 years ago* nsterm.m ((NSSize)windowWillResize): Use esprintf, not sprintf,
Paul Eggert [Mon, 29 Aug 2011 19:09:16 +0000 (12:09 -0700)]
* nsterm.m ((NSSize)windowWillResize): Use esprintf, not sprintf,

in case result does not fit in int.

12 years ago* macros.c (executing_kbd_macro_iterations): Now EMACS_INT, not int.
Paul Eggert [Mon, 29 Aug 2011 19:07:18 +0000 (12:07 -0700)]
* macros.c (executing_kbd_macro_iterations): Now EMACS_INT, not int.

(Fend_kbd_macro): Don't mishandle MOST_NEGATIVE_FIXNUM by treating
it as a large positive number.
(Fexecute_kbd_macro): Don't assume repeat count fits in int.
* macros.h (executing_kbd_macro_iterations): Now EMACS_INT, not int.

12 years ago* lread.c (dir_warning): Don't blindly alloca buffer; use SAFE_ALLOCA.
Paul Eggert [Mon, 29 Aug 2011 18:55:58 +0000 (11:55 -0700)]
* lread.c (dir_warning): Don't blindly alloca buffer; use SAFE_ALLOCA.

Use esprintf, not sprintf, in case result does not fit in int.

12 years ago* gtkutil.c (xg_check_special_colors, xg_set_geometry):
Paul Eggert [Mon, 29 Aug 2011 18:54:11 +0000 (11:54 -0700)]
* gtkutil.c (xg_check_special_colors, xg_set_geometry):

Make sprintf buffers a bit bigger, to avoid potential buffer overrun.

12 years ago* frame.c (tty_frame_count): Now printmax_t, not int.
Paul Eggert [Mon, 29 Aug 2011 18:52:26 +0000 (11:52 -0700)]
* frame.c (tty_frame_count): Now printmax_t, not int.

(make_terminal_frame, set_term_frame_name): Print it.
(x_report_frame_params): In X, window IDs are unsigned long,
not signed long, so print them as unsigned.
(validate_x_resource_name): Check for implausibly long names,
and don't assume name length fits in 'int'.
(x_get_resource_string): Don't blindly alloca invocation name;
use SAFE_ALLOCA.  Use esprintf, not sprintf, in case result does
not fit in int.

12 years ago* fontset.c (num_auto_fontsets): Now printmax_t, not int.
Paul Eggert [Mon, 29 Aug 2011 18:48:24 +0000 (11:48 -0700)]
* fontset.c (num_auto_fontsets): Now printmax_t, not int.

(fontset_from_font): Print it.

12 years ago* font.c (font_unparse_xlfd): Don't blindly alloca long strings.
Paul Eggert [Mon, 29 Aug 2011 18:46:42 +0000 (11:46 -0700)]
* font.c (font_unparse_xlfd): Don't blindly alloca long strings.

Don't assume XINT result fits in int, or that XFLOAT_DATA * 10
fits in int, when using sprintf.  Use single snprintf to count
length of string rather than counting it via multiple sprintfs;
that's simpler and more reliable.
(APPEND_SPRINTF): New macro.
(font_unparse_fcname): Use it to avoid sprintf buffer overrun.
(generate_otf_features) [0 && HAVE_LIBOTF]: Use esprintf, not
sprintf, in case result does not fit in int.

12 years ago* filelock.c (lock_file_1, lock_file): Don't blindly alloca long name;
Paul Eggert [Mon, 29 Aug 2011 16:48:19 +0000 (09:48 -0700)]
* filelock.c (lock_file_1, lock_file): Don't blindly alloca long name;

use SAFE_ALLOCA instead.  Use esprintf to avoid int-overflow issues.

12 years ago* eval.c (verror): Simplify by rewriting in terms of evxprintf,
Paul Eggert [Mon, 29 Aug 2011 16:01:33 +0000 (09:01 -0700)]
* eval.c (verror): Simplify by rewriting in terms of evxprintf,

which has the guts of the old verror function.

12 years ago* emacs.c (main) [NS_IMPL_COCOA]: Don't overrun buffer
Paul Eggert [Mon, 29 Aug 2011 15:56:20 +0000 (08:56 -0700)]
* emacs.c (main) [NS_IMPL_COCOA]: Don't overrun buffer

when creating daemon; the previous buffer-overflow check was incorrect.

12 years ago* editfns.c (Fcurrent_time_zone): Don't overrun buffer
Paul Eggert [Mon, 29 Aug 2011 15:53:21 +0000 (08:53 -0700)]
* editfns.c (Fcurrent_time_zone): Don't overrun buffer

even if the time zone offset is outlandishly large.
Don't mishandle offset == INT_MIN.

12 years ago* dispnew.c (add_window_display_history): Don't overrun buffer.
Paul Eggert [Mon, 29 Aug 2011 15:51:23 +0000 (08:51 -0700)]
* dispnew.c (add_window_display_history): Don't overrun buffer.

Truncate instead; this is OK since it's just a log.

12 years ago* dbusbind.c (xd_signature, Fdbus_register_signal):
Paul Eggert [Mon, 29 Aug 2011 15:49:19 +0000 (08:49 -0700)]
* dbusbind.c (xd_signature, Fdbus_register_signal):

Do not overrun buffer; instead, report string overflow.

12 years agosprintf-related integer and memory overflow issues.
Paul Eggert [Mon, 29 Aug 2011 15:43:34 +0000 (08:43 -0700)]
sprintf-related integer and memory overflow issues.

* doprnt.c (doprnt): Support printing ptrdiff_t and intmax_t values.
(esprintf, esnprintf, exprintf, evxprintf): New functions.
* keyboard.c (command_loop_level): Now EMACS_INT, not int.
(cmd_error): kbd macro iterations count is now EMACS_INT, not int.
(modify_event_symbol): Do not assume that the length of
name_alist_or_stem is safe to alloca and fits in int.
(Fexecute_extended_command): Likewise for function name and binding.
(Frecursion_depth): Wrap around reliably on integer overflow.
* keymap.c (push_key_description): First arg is now EMACS_INT, not int,
since some callers pass EMACS_INT values.
(Fsingle_key_description): Don't crash if symbol name contains more
than MAX_ALLOCA bytes.
* minibuf.c (minibuf_level): Now EMACS_INT, not int.
(get_minibuffer): Arg is now EMACS_INT, not int.
* lisp.h (get_minibuffer, push_key_description): Reflect API changes.
(esprintf, esnprintf, exprintf, evxprintf): New decls.
* window.h (command_loop_level, minibuf_level): Reflect API changes.

12 years agoAdd Bug#.
Paul Eggert [Mon, 29 Aug 2011 00:27:35 +0000 (17:27 -0700)]
Add Bug#.

12 years ago* update-game-score.c: Include <limits.h>
Paul Eggert [Sun, 28 Aug 2011 23:59:14 +0000 (16:59 -0700)]
* update-game-score.c: Include <limits.h>

(get_user_id): Do not assume uid fits in 'int'.  Simplify.

12 years ago* movemail.c (main): Do not use sprintf when its result might not fit
Paul Eggert [Sun, 28 Aug 2011 23:57:19 +0000 (16:57 -0700)]
* movemail.c (main): Do not use sprintf when its result might not fit

in 'int'.  Instead, put the possibly-long file name into the
output of pfatal_with_name.

12 years ago* etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,
Paul Eggert [Sun, 28 Aug 2011 23:55:41 +0000 (16:55 -0700)]
* etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,

to avoid potential buffer overflow issues on typical 64-bit hosts.
(whatlen_max): New static var.
(main): Avoid buffer overflow if subsidiary command length is
greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its
result might not fit in 'int'.

12 years agoInteger and memory overflow issues.
Paul Eggert [Sun, 28 Aug 2011 23:52:34 +0000 (16:52 -0700)]
Integer and memory overflow issues.

* emacsclient.c (xmalloc): Accept size_t, not unsigned int, to
avoid potential buffer overflow issues on typical 64-bit hosts.
Return void *, not long *.
(get_current_dir_name): Report a failure, instead of looping
forever, if buffer size calculation overflows.  Treat malloc
failures like realloc failures, as that has better behavior and is
more consistent.  Do not check whether xmalloc returns NULL, as
that's not possible.
(message): Do not arbitrarily truncate message to 2048 bytes when
sending it to stderr; use vfprintf instead.
(get_server_config, set_local_socket)
(start_daemon_and_retry_set_socket): Do not alloca
arbitrarily-large buffers; that's not safe.
(get_server_config, set_local_socket): Do not use sprintf when its
result might not fit in 'int'.
(set_local_socket): Do not assume uid fits in 'int'.

12 years agoMerge from trunk.
Paul Eggert [Fri, 26 Aug 2011 16:13:07 +0000 (09:13 -0700)]
Merge from trunk.

12 years ago* package.el (package-install): Call package-initialize if called interactively.
Chong Yidong [Fri, 26 Aug 2011 15:53:50 +0000 (11:53 -0400)]
* package.el (package-install): Call package-initialize if called interactively.

12 years agoDocument package manager in Emacs manual.
Chong Yidong [Fri, 26 Aug 2011 15:48:19 +0000 (11:48 -0400)]
Document package manager in Emacs manual.

* doc/emacs/package.texi: New file, documenting the package manager.

* doc/emacs/emacs.texi: Include it.

* doc/emacs/help.texi (Help Summary): Add describe-package.

12 years agoAuto-commit of generated files.
Glenn Morris [Fri, 26 Aug 2011 10:19:08 +0000 (06:19 -0400)]
Auto-commit of generated files.

12 years agoFix bug #9324 with unwarranted repositioning of point.
Eli Zaretskii [Fri, 26 Aug 2011 10:07:06 +0000 (13:07 +0300)]
Fix bug #9324 with unwarranted repositioning of point.

 src/xdisp.c (redisplay_window): Don't force window start if point
 will be invisible in the resulting window.

12 years agoFix format bug in defstruct
Leo Liu [Fri, 26 Aug 2011 09:52:07 +0000 (17:52 +0800)]
Fix format bug in defstruct

http://debbugs.gnu.org/9357

12 years agomailcap.el (mailcap-mime-data): Regexp-quote MIME subtype.
Katsumi Yamaoka [Fri, 26 Aug 2011 09:01:56 +0000 (09:01 +0000)]
mailcap.el (mailcap-mime-data): Regexp-quote MIME subtype.

12 years ago* configure.in: Add -MP to DEPFLAGS.
Jan Djärv [Fri, 26 Aug 2011 07:12:16 +0000 (09:12 +0200)]
* configure.in: Add -MP to DEPFLAGS.

Fixes: debbugs:9372
12 years agoMerge from trunk.
Paul Eggert [Fri, 26 Aug 2011 05:05:13 +0000 (22:05 -0700)]
Merge from trunk.

12 years agognus-msg.el (gnus-setup-message): Remove extra apostrophe.
Katsumi Yamaoka [Fri, 26 Aug 2011 04:25:55 +0000 (04:25 +0000)]
gnus-msg.el (gnus-setup-message): Remove extra apostrophe.

12 years agoMerge from trunk.
Paul Eggert [Thu, 25 Aug 2011 22:38:52 +0000 (15:38 -0700)]
Merge from trunk.

12 years ago* lisp/isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
Juri Linkov [Thu, 25 Aug 2011 20:48:45 +0000 (23:48 +0300)]
* lisp/isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
`search-whitespace-regexp'.

Fixes: debbugs:9364
12 years ago* lisp/isearch.el (isearch-edit-string): Let-bind `search-ring' and
Juri Linkov [Thu, 25 Aug 2011 20:32:54 +0000 (23:32 +0300)]
* lisp/isearch.el (isearch-edit-string): Let-bind `search-ring' and
`regexp-search-ring' to their global values to protect from
updating by `read-from-minibuffer'.

Fixes: debbugs:9185
12 years ago* lisp/textmodes/ispell.el (ispell-command-loop): Add newline
Juri Linkov [Thu, 25 Aug 2011 19:54:07 +0000 (22:54 +0300)]
* lisp/textmodes/ispell.el (ispell-command-loop): Add newline
at the end of the "Use option `i'..." line.

12 years ago* lisp/battery.el (display-battery-mode): If `battery-status-function'
Juri Linkov [Thu, 25 Aug 2011 19:49:57 +0000 (22:49 +0300)]
* lisp/battery.el (display-battery-mode): If `battery-status-function'
or `battery-mode-line-format' is nil, display the message and set
`display-battery-mode' to nil.

Fixes: debbugs:9363
12 years agoMerge from trunk.
Paul Eggert [Thu, 25 Aug 2011 19:06:56 +0000 (12:06 -0700)]
Merge from trunk.

12 years agoFix last change for text terminals.
Eli Zaretskii [Thu, 25 Aug 2011 17:16:39 +0000 (20:16 +0300)]
Fix last change for text terminals.

 src/xdisp.c (try_cursor_movement): Don't advance `row' beyond the
 last row of the window.

12 years agoFix cursor motion with long continued lines near window bottom.
Eli Zaretskii [Thu, 25 Aug 2011 16:33:16 +0000 (19:33 +0300)]
Fix cursor motion with long continued lines near window bottom.

 src/xdisp.c (try_cursor_movement): Check for the need to scroll more
 accurately, and prefer exact match for point under bidi.

12 years agoFix Emacs manual chapter numbers in last change.
Chong Yidong [Thu, 25 Aug 2011 16:30:46 +0000 (12:30 -0400)]
Fix Emacs manual chapter numbers in last change.

12 years agoRelocate some additional Emacs manual nodes.
Chong Yidong [Thu, 25 Aug 2011 16:13:59 +0000 (12:13 -0400)]
Relocate some additional Emacs manual nodes.

* doc/emacs/display.texi (Narrowing): Move into display chapter.

* doc/emacs/picture-xtra.texi (Picture Mode): Group with Editing Binary
Files section.  Convert from chapter into section.

* doc/emacs/text.texi (Two-Column): Move into Text chapter.

12 years agoRearrange manual chapters to group mail, rmail, and gnus together.
Chong Yidong [Thu, 25 Aug 2011 15:38:49 +0000 (11:38 -0400)]
Rearrange manual chapters to group mail, rmail, and gnus together.

* sending.texi (Sending Mail):
* rmail.texi (Rmail):
* misc.texi (Gnus, Document View):
* dired.texi (Dired):
* emacs.texi: Group the mail, rmail, and gnus chapters together.

12 years agoCosmetic fixes.
Bastien Guerry [Thu, 25 Aug 2011 11:00:13 +0000 (13:00 +0200)]
Cosmetic fixes.

12 years agoHandle `(space ...)' display spec as paragraph separator.
Eli Zaretskii [Thu, 25 Aug 2011 10:45:33 +0000 (13:45 +0300)]
Handle `(space ...)' display spec as paragraph separator.

 src/xdisp.c (compute_display_string_pos): Return 2 in DISP_PROP when
 the display spec is of the form `(space ...)'.
 (handle_display_spec): Return the value returned by
 handle_single_display_spec, not just 1 or zero.
 (handle_single_display_spec): If the display spec is of the form
 `(space ...)', and specifies display in the text area, return 2
 rather than 1.
 src/dispextern.h (struct bidi_it): Rename the disp_prop_p member
 into disp_prop; all users changed.
 src/bidi.c (bidi_fetch_char): If compute_display_string_pos returns
 DISP_PROP = 2, substitute the u+2029 PARAGRAPH SEPARATOR character
 for the text covered by the display property.
 lisp/buff-menu.el (Buffer-menu-buffer+size): Remove calls to
 bidi-string-mark-left-to-right; they are unnecessary now.
 doc/lispref/display.texi (Specified Space): Mention that `space' specs
 influence bidi reordering.
 (Bidirectional Display): Explain how to use `(space . PROPS)' for
 separating fields with bidirectional content.

12 years ago* lisp/net/quickurl.el: Documentation typo fixes.
Deniz Dogan [Thu, 25 Aug 2011 05:43:57 +0000 (07:43 +0200)]
* lisp/net/quickurl.el: Documentation typo fixes.

12 years ago* lisp/emacs-lisp/derived.el (define-derived-mode): Doc fix.
Glenn Morris [Thu, 25 Aug 2011 05:37:55 +0000 (22:37 -0700)]
* lisp/emacs-lisp/derived.el (define-derived-mode): Doc fix.

12 years agoDelete record-buffer, and rename unrecord-buffer to bury-buffer-internal.
Chong Yidong [Thu, 25 Aug 2011 00:45:23 +0000 (20:45 -0400)]
Delete record-buffer, and rename unrecord-buffer to bury-buffer-internal.

* lisp/window.el (bury-buffer, quit-window): Use bury-buffer-internal.

* src/buffer.c (Fbury_buffer_internal): Rename from Funrecord_buffer.
Change return value to nil.
(Frecord_buffer): Delete unused function.

12 years agoMinor smtpmail.el fixes.
Glenn Morris [Thu, 25 Aug 2011 00:41:03 +0000 (20:41 -0400)]
Minor smtpmail.el fixes.

* lisp/mail/smtpmail.el (smtpmail-smtp-user): Add version: tag.
(smtpmail-via-smtp): Handle nil response from smtp.

12 years agoMerge from trunk.
Paul Eggert [Wed, 24 Aug 2011 21:20:36 +0000 (14:20 -0700)]
Merge from trunk.

12 years agoMore uses of `error' and `warning' faces.
Juri Linkov [Wed, 24 Aug 2011 18:09:18 +0000 (21:09 +0300)]
More uses of `error' and `warning' faces.

* lisp/battery.el (battery-update): Use the face `error' instead of
`font-lock-warning-face'.

* lisp/ibuffer.el (ibuffer-marked-face): Change default face from
`font-lock-warning-face' to `warning'.
(ibuffer-deletion-face): Change default face from
`font-lock-type-face' to `error'.

* lisp/proced.el (proced-marked): Inherit from `error' instead of
`font-lock-warning-face'.

Fixes: debbugs:6117
12 years ago* lisp/faces.el (success): Change face color from "Green3" to
Juri Linkov [Wed, 24 Aug 2011 18:01:40 +0000 (21:01 +0300)]
* lisp/faces.el (success): Change face color from "Green3" to
"ForestGreen" on light background.

Fixes: debbugs:9353
12 years agoRename quit-restore-window into quit-window.
Chong Yidong [Wed, 24 Aug 2011 17:38:46 +0000 (13:38 -0400)]
Rename quit-restore-window into quit-window.

* lisp/window.el (quit-window): Renamed from quit-restore-window.  Use
same arglist as old quit-window.
(frame-auto-delete): Doc fix.

* lisp/view.el (view-mode-exit): Use quit-window.

12 years agoFix cursor movement in R2L text within L2R paragraphs.
Eli Zaretskii [Wed, 24 Aug 2011 15:51:56 +0000 (18:51 +0300)]
Fix cursor movement in R2L text within L2R paragraphs.

 src/xdisp.c (set_cursor_from_row): Consider candidate row a win if its
 glyph represents a newline and point is on that newline.  Fixes cursor
 positioning on the newline at EOL of R2L text within L2R
 paragraph, and vice versa.
 (try_cursor_movement): Check continued rows, in addition to
 continuation rows.  Fixes unwarranted scroll when point enters a
 continued line of R2L text within an L2R paragraph, or vice versa.
 (cursor_row_p): Consider the case of point being equal to
 MATRIX_ROW_END_CHARPOS.  Prevents cursor being stuck when moving
 from the end of a short line to the beginning of a continued line
 of R2L text within L2R paragraph.
 (RECORD_MAX_MIN_POS): For max_pos, use IT_CHARPOS even for
 composed characters.

12 years agoFix current-bidi-paragraph-direction and its doc.
Eli Zaretskii [Wed, 24 Aug 2011 11:49:54 +0000 (14:49 +0300)]
Fix current-bidi-paragraph-direction and its doc.

 src/xdisp.c (Fcurrent_bidi_paragraph_direction): For unibyte
 buffers, return left-to-right.
 doc/lispref/display.texi (Bidirectional Display): Document return value in
 buffers that are not bidi-reordered for display, and in unibyte
 buffers.

12 years ago"C-s M-p" brings the tip of the search ring.
Juri Linkov [Wed, 24 Aug 2011 09:40:58 +0000 (12:40 +0300)]
"C-s M-p" brings the tip of the search ring.

* lisp/isearch.el (isearch-ring-adjust1): Start visiting previous
search strings from the index 0 (-1 + 1) instead of 1 (0 + 1).
(isearch-repeat, isearch-edit-string): Call `isearch-ring-adjust1'
for empty search string (when the last search string is reused
automatically) to adjust the isearch ring to the last element and
prepare the correct index for further M-p commands.

Fixes: debbugs:9185
12 years agoMinor changes in bidi.c.
Eli Zaretskii [Wed, 24 Aug 2011 07:46:00 +0000 (10:46 +0300)]
Minor changes in bidi.c.

 src/bidi.c (bidi_check_type): Use xassert.
 (bidi_cache_iterator_state): Update the disp_pos and disp_prop_p
 members.

12 years agomerge trunk
Kenichi Handa [Wed, 24 Aug 2011 07:35:02 +0000 (16:35 +0900)]
merge trunk

12 years agointernational/ucs-normalize.el: If decomposition property of CHAR is the default...
Kenichi Handa [Wed, 24 Aug 2011 07:33:55 +0000 (16:33 +0900)]
international/ucs-normalize.el: If decomposition property of CHAR is the default one (i.e. a list of CHAR itself), treat it as nil.

12 years ago* etc/refcards/refcard.tex: Add a few more commands. (tiny change)
Steve Chapel [Wed, 24 Aug 2011 07:31:35 +0000 (00:31 -0700)]
* etc/refcards/refcard.tex: Add a few more commands.  (tiny change)

Fixes: debbugs:9343
12 years ago* lisp/mpc.el (mpc--proc-filter): Don't signal mpc-proc-error since signals
Stefan Monnier [Wed, 24 Aug 2011 01:55:10 +0000 (21:55 -0400)]
* lisp/mpc.el (mpc--proc-filter): Don't signal mpc-proc-error since signals
from process filters aren't reliably transmitted to the surrounding
accept-process-output.
(mpc-proc-check): New function.
(mpc-proc-sync): Use it

Fixes: debbugs:8293
12 years ago* lisp/emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric):
Stefan Monnier [Tue, 23 Aug 2011 18:53:51 +0000 (14:53 -0400)]
* lisp/emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric):
Add compatibility functions.

Fixes: debbugs:9313
12 years agocus-start.el: Add :version tag to bidi-paragraph-direction.
Eli Zaretskii [Tue, 23 Aug 2011 15:53:46 +0000 (18:53 +0300)]
cus-start.el: Add :version tag to bidi-paragraph-direction.

12 years agocus-start.el: Add entry for bidi-paragraph-direction.
Eli Zaretskii [Tue, 23 Aug 2011 15:21:19 +0000 (18:21 +0300)]
cus-start.el: Add entry for bidi-paragraph-direction.

12 years agoFollowup for character properties in 2011-08-23T11:48:07Z!handa@m17n.org.
Eli Zaretskii [Tue, 23 Aug 2011 14:45:14 +0000 (17:45 +0300)]
Followup for character properties in 2011-08-23T11:48:07Z!handa@m17n.org.

 src/bidi.c (bidi_get_type): Abort if we get zero as the bidi type of
 a character.
 admin/unidata/unidata-gen.el (unidata-prop-alist): Update the default
 values of bidi-class according to DerivedBidiClass.txt from the
 latest UCD.
 lisp/international/uni-bidi.el: Regenerated.
 doc/lispref/nonascii.texi (Character Properties): Document the values for
 unassigned codepoints.

12 years ago* src/nsfont.m (ns_otf_to_script): Fix typo.
Chong Yidong [Tue, 23 Aug 2011 14:41:07 +0000 (10:41 -0400)]
* src/nsfont.m (ns_otf_to_script): Fix typo.

12 years agomerge trunk
Kenichi Handa [Tue, 23 Aug 2011 11:49:03 +0000 (20:49 +0900)]
merge trunk

12 years agoFix default values of character properties.
Kenichi Handa [Tue, 23 Aug 2011 11:48:07 +0000 (20:48 +0900)]
Fix default values of character properties.

12 years agoFix bug #8874 with recentering and header line under scroll-conservatively.
Eli Zaretskii [Tue, 23 Aug 2011 10:35:47 +0000 (13:35 +0300)]
Fix bug #8874 with recentering and header line under scroll-conservatively.

 src/xdisp.c (redisplay_window): When computing centering_position,
 account for the height of the header line.

12 years agoFix message in help-window-setup (Bug#9341).
Martin Rudalics [Tue, 23 Aug 2011 09:31:54 +0000 (11:31 +0200)]
Fix message in help-window-setup (Bug#9341).

* help.el (help-window-setup): Fix message displayed when other
window is reused.  (Bug#9341)

12 years agoFix crashes with completion and composed characters.
Eli Zaretskii [Tue, 23 Aug 2011 08:38:29 +0000 (11:38 +0300)]
Fix crashes with completion and composed characters.

 src/dispnew.c (buffer_posn_from_coords): Use buf_charpos_to_bytepos
 instead of CHAR_TO_BYTE.  Fixes a crash when a completion
 candidate is selected by the mouse, and that candidate has a
 composed character under the mouse.

12 years agoFix pos-visible-in-window-p for zero-column composed character.
Eli Zaretskii [Tue, 23 Aug 2011 07:01:25 +0000 (10:01 +0300)]
Fix pos-visible-in-window-p for zero-column composed character.

 src/xdisp.c (x_produce_glyphs): Set it->nglyphs to 1.  Fixes pixel
 coordinates reported by pos-visible-in-window-p for a composed
 character in column zero.

12 years ago* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
Stefan Monnier [Tue, 23 Aug 2011 05:25:17 +0000 (01:25 -0400)]
* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
* lisp/pcomplete.el (pcomplete-quote-argument): Fix thinko.

Fixes: debbugs:9161
12 years ago* lisp/pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop.
Stefan Monnier [Tue, 23 Aug 2011 05:21:09 +0000 (01:21 -0400)]
* lisp/pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop.
Mark obsolete.
* lisp/shell.el (shell-parse-pcomplete-arguments): New function.
(shell-completion-vars): Use it instead.

Fixes: debbugs:9160
12 years ago* src/cmds.c (Fself_insert_command): Mention post-self-insert-hook.
Stefan Monnier [Tue, 23 Aug 2011 03:09:59 +0000 (23:09 -0400)]
* src/cmds.c (Fself_insert_command): Mention post-self-insert-hook.

12 years ago* lisp/progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
Stefan Monnier [Mon, 22 Aug 2011 22:10:21 +0000 (18:10 -0400)]
* lisp/progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
strings and comments.

Fixes: debbugs:9333
12 years ago* lisp/emacs-lisp/debug.el (debug-arglist): New function.
Stefan Monnier [Mon, 22 Aug 2011 21:16:46 +0000 (17:16 -0400)]
* lisp/emacs-lisp/debug.el (debug-arglist): New function.
(debug-convert-byte-code): Use it.  Handle lexical byte-codes.
(debug-on-entry-1): Handle interpreted closures.

Fixes: debbugs:9120
12 years agoFix vertical cursor motion under bidi on auto-composed characters.
Eli Zaretskii [Mon, 22 Aug 2011 17:00:40 +0000 (20:00 +0300)]
Fix vertical cursor motion under bidi on auto-composed characters.

 src/xdisp.c (BUFFER_POS_REACHED_P): If this is a composition,
 consider it a hit if to_charpos is anywhere in the range of the
 composed buffer positions.

12 years ago* etc/compilation.txt: Add more samples of output and non-output switches (bug#9319).
Juri Linkov [Mon, 22 Aug 2011 13:08:35 +0000 (16:08 +0300)]
* etc/compilation.txt: Add more samples of output and non-output switches (bug#9319).

12 years agoBack out inadvertent changes in minibuffer.el.
Eli Zaretskii [Mon, 22 Aug 2011 12:58:37 +0000 (15:58 +0300)]
Back out inadvertent changes in minibuffer.el.

12 years ago* lisp/progmodes/compile.el (compilation-mode-font-lock-keywords):
Juri Linkov [Mon, 22 Aug 2011 12:46:45 +0000 (15:46 +0300)]
* lisp/progmodes/compile.el (compilation-mode-font-lock-keywords):
Revert regexp that highlights output switches to its old
pre-2010-10-28 value and remove one `?' from it (bug#9319).

12 years ago* lisp/progmodes/grep.el (grep-process-setup): Use `buffer-modified-p'
Juri Linkov [Mon, 22 Aug 2011 09:54:38 +0000 (12:54 +0300)]
* lisp/progmodes/grep.el (grep-process-setup): Use `buffer-modified-p'
to check for empty output.

Fixes: debbugs:9226
12 years agoFix some word/symbol classifications in scheme-mode's syntax table.
Chong Yidong [Mon, 22 Aug 2011 03:38:30 +0000 (23:38 -0400)]
Fix some word/symbol classifications in scheme-mode's syntax table.

* lisp/progmodes/scheme.el (scheme-mode-syntax-table): Don't use
symbol-constituent as the default, as that stops font-lock from
working properly.

Fixes: debbugs:8843
12 years agoFix animated gif segfault and frame clearing bug.
Chong Yidong [Mon, 22 Aug 2011 02:34:23 +0000 (22:34 -0400)]
Fix animated gif segfault and frame clearing bug.

* src/image.c (gif_load): Don't assume that each subimage has the same
dimensions as the base image.  Handle disposal method that is
"undefined" by the gif spec.

Fixes: debbugs:9335
12 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 22:10:49 +0000 (22:10 +0000)]
Merge changes made in Gnus trunk.

nnmail.el (nnmail-get-new-mail-1): If one mail source bugs out, continue on and do the clean-up phase (bug#9188).
gnus-sum.el (gnus-summary-expire-articles): When expiring articles, just ignore groups that can't be opened instead of erroring out (bug#9225).
gnus-art.el (gnus-article-update-date-headers): Flip the default to nil since some many people are fuddy-duddies.
gnus-html.el (gnus-html-image-fetched): Don't cache zero-length images.

12 years ago(smtpmail-query-smtp-server): Allow `quit'-ing out in case the probe hangs.
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 20:29:11 +0000 (22:29 +0200)]
(smtpmail-query-smtp-server): Allow `quit'-ing out in case the probe hangs.

12 years ago(smtpmail-try-auth-methods): Expand the secret password.
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 20:10:29 +0000 (22:10 +0200)]
(smtpmail-try-auth-methods): Expand the secret password.

12 years agoOnly bind `coding-system-for-*' around the process open call to avoid auth-source...
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 19:27:27 +0000 (21:27 +0200)]
Only bind `coding-system-for-*' around the process open call to avoid auth-source side effects.

12 years ago* lisp/term.el (term-mouse-paste): Yank primary selection (Bug#6845).
Chong Yidong [Sun, 21 Aug 2011 17:56:19 +0000 (13:56 -0400)]
* lisp/term.el (term-mouse-paste): Yank primary selection (Bug#6845).

12 years agoImprove Edebug error for attempting to instrument built-in functions.
Chong Yidong [Sun, 21 Aug 2011 17:43:31 +0000 (13:43 -0400)]
Improve Edebug error for attempting to instrument built-in functions.

* lisp/emacs-lisp/edebug.el (edebug-instrument-function): Use it to
signal an error for built-in functions.

* lisp/emacs-lisp/find-func.el (find-function-noselect): New arg
lisp-only.

Fixes: debbugs:6664
12 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 21 Aug 2011 09:39:07 +0000 (09:39 +0000)]
Merge changes made in Gnus trunk.

nntp.el (nntp-authinfo-file): Mark as obsolete -- use auth-source instead.
pop3.el (pop3-wait-for-messages): Don't use Gnus functions here.
gnus-util.el (gnus-process-live-p): Copy over compat function.
pop3.el (pop3-wait-for-messages): If the pop3 process dies, stop processing.
nntp.el (nntp-kill-buffer): Kill the process before killing the buffer to avoid warnings.
gnus-agent.el (gnus-agent-expire-done-message): Use %.f as format specified to reduce precision.

12 years agoIntroduce a new variable to allow controlling the SMTP user name
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 04:11:59 +0000 (06:11 +0200)]
Introduce a new variable to allow controlling the SMTP user name

* mail/smtpmail.el (smtpmail-smtp-user): New variable.
(smtpmail-try-auth-methods): Use it.

12 years agoMinor fix to last change.
Chong Yidong [Sun, 21 Aug 2011 03:02:39 +0000 (23:02 -0400)]
Minor fix to last change.

12 years agoAdd some docstrings to font-lock.el.
Chong Yidong [Sun, 21 Aug 2011 03:00:52 +0000 (23:00 -0400)]
Add some docstrings to font-lock.el.

* font-lock.el (font-lock-fontify-region)
(font-lock-unfontify-region, font-lock-default-fontify-buffer)
(font-lock-default-unfontify-buffer)
(font-lock-default-fontify-region)
(font-lock-default-unfontify-region): Add docstrings (Bug#8624).

12 years agoFix to `ant' compile regexp.
Chong Yidong [Sun, 21 Aug 2011 02:24:07 +0000 (22:24 -0400)]
Fix to `ant' compile regexp.

* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
  Fix 2011-05-09 change to `ant' regexp.

12 years agoFix error in compilation-error-properties.
Chong Yidong [Sun, 21 Aug 2011 02:07:00 +0000 (22:07 -0400)]
Fix error in compilation-error-properties.

* lisp/progmodes/compile.el (compilation-error-properties): Fix
confusion between file struct and message struct (Bug#9319).