]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 years ago* w32menu.c: Change 'unsigned long' to 'Time' in #if-0 code.
Paul Eggert [Mon, 16 May 2011 05:17:23 +0000 (22:17 -0700)]
* w32menu.c: Change 'unsigned long' to 'Time' in #if-0 code.

13 years ago* insdel.c (count_size_as_multibyte): Check for string overflow.
Paul Eggert [Mon, 16 May 2011 05:15:51 +0000 (22:15 -0700)]
* insdel.c (count_size_as_multibyte): Check for string overflow.

13 years ago* character.c (lisp_string_width): Check for string overflow.
Paul Eggert [Mon, 16 May 2011 05:08:59 +0000 (22:08 -0700)]
* character.c (lisp_string_width): Check for string overflow.

Use EMACS_INT, not int, for string indexes and lengths; in
particular, 2nd arg is now EMACS_INT, not int.  Do not crash if
the resulting string length overflows an EMACS_INT; instead,
report a string overflow if no precision given.  When checking for
precision exhaustion, use a check that cannot possibly have
integer overflow.  (Bug#8675)
* character.h (lisp_string_width): Adjust to new signature.

13 years ago* alloc.c (string_overflow): New function.
Paul Eggert [Mon, 16 May 2011 01:11:54 +0000 (18:11 -0700)]
* alloc.c (string_overflow): New function.

(Fmake_string): Use it.  This doesn't change behavior, but saves
a few bytes and will simplify future changes.
* character.c (string_escape_byte8): Likewise.
* lisp.h (string_overflow): New decl.

13 years ago* vc/diff-mode.el (diff-fixup-modifs): Remove stray ')' (Bug#8672).
Paul Eggert [Mon, 16 May 2011 01:07:08 +0000 (18:07 -0700)]
* vc/diff-mode.el (diff-fixup-modifs): Remove stray ')' (Bug#8672).

13 years agoMerge from gnulib.
Paul Eggert [Mon, 16 May 2011 00:51:54 +0000 (17:51 -0700)]
Merge from gnulib.

13 years agoMerge: user-interface timestamps and other int overflow patches.
Paul Eggert [Sun, 15 May 2011 17:17:44 +0000 (10:17 -0700)]
Merge: user-interface timestamps and other int overflow patches.

13 years agoFix minor bug of diff-fixup-modifs on small diffs (Bug#8672).
Chong Yidong [Sun, 15 May 2011 14:09:43 +0000 (10:09 -0400)]
Fix minor bug of diff-fixup-modifs on small diffs (Bug#8672).

* vc/diff-mode.el (diff-fixup-modifs): Locate correct position for
hunk-end tags.

13 years agoBind = to diff command in vc-annotate mode (Bug#8671)
Chong Yidong [Sun, 15 May 2011 13:47:56 +0000 (09:47 -0400)]
Bind = to diff command in vc-annotate mode (Bug#8671)

* lisp/vc/vc-annotate.el (vc-annotate-mode-map): Bind = to
vc-annotate-show-diff-revision-at-line.

13 years agoAuto-commit of generated files.
Glenn Morris [Sun, 15 May 2011 10:19:52 +0000 (06:19 -0400)]
Auto-commit of generated files.

13 years agoadd-log font-lock fix for mutilple authors (bug#8644)
Glenn Morris [Sat, 14 May 2011 23:58:25 +0000 (16:58 -0700)]
add-log font-lock fix for mutilple authors (bug#8644)

* lisp/vc/add-log.el (change-log-font-lock-keywords): Also handle multiple
author lines with leading tabs.

13 years agoadd-log.el fix for multiple author entries (bug#8645)
Glenn Morris [Sat, 14 May 2011 23:27:09 +0000 (16:27 -0700)]
add-log.el fix for multiple author entries (bug#8645)

* lisp/vc/add-log.el (add-change-log-entry): Don't start adding a new entry
in the middle of an existing one with multiple authors.

13 years agoRemove obsolete comment.
Glenn Morris [Sat, 14 May 2011 20:14:25 +0000 (13:14 -0700)]
Remove obsolete comment.

13 years agoUse a single Author: header.
Glenn Morris [Sat, 14 May 2011 20:13:30 +0000 (13:13 -0700)]
Use a single Author: header.

13 years ago* lisp/allout.el: Comment fix.
Glenn Morris [Sat, 14 May 2011 20:11:34 +0000 (13:11 -0700)]
* lisp/allout.el: Comment fix.

13 years ago* doc/misc/dired-x.texi (Omitting Examples): Minor addition.
Glenn Morris [Sat, 14 May 2011 20:04:07 +0000 (13:04 -0700)]
* doc/misc/dired-x.texi (Omitting Examples): Minor addition.

13 years agoMake configure.in give an error if no X-toolkit was detected.
Glenn Morris [Sat, 14 May 2011 19:52:13 +0000 (12:52 -0700)]
Make configure.in give an error if no X-toolkit was detected.

* configure.in: Treat failure to find an X toolkit the same way we treat
failure to find X and image support.

13 years agoappt.el trivia.
Glenn Morris [Sat, 14 May 2011 19:13:40 +0000 (12:13 -0700)]
appt.el trivia.

* lisp/calendar/appt.el (appt-check): Rename some local variables.
Some simplification/reordering.

13 years ago* admin/notes/bugtracker: Small updates.
Glenn Morris [Sat, 14 May 2011 19:11:47 +0000 (12:11 -0700)]
* admin/notes/bugtracker: Small updates.

13 years ago* admin/notes/bzr: Update changelog_merge branch details.
Glenn Morris [Sat, 14 May 2011 19:09:37 +0000 (12:09 -0700)]
* admin/notes/bzr: Update changelog_merge branch details.

13 years ago* msdos.c (mouse_get_pos): Likewise.
Paul Eggert [Sat, 14 May 2011 19:06:08 +0000 (12:06 -0700)]
* msdos.c (mouse_get_pos): Likewise.

* w32inevt.c (movement_time, w32_console_mouse_position): Likewise.

13 years ago* lisp/mail/feedmail.el (bbdb-dwim-net-address, vm-mail): Declare.
Glenn Morris [Sat, 14 May 2011 18:47:29 +0000 (11:47 -0700)]
* lisp/mail/feedmail.el (bbdb-dwim-net-address, vm-mail): Declare.

13 years agoClean-up previous feedmail.el merge.
Glenn Morris [Sat, 14 May 2011 18:43:43 +0000 (11:43 -0700)]
Clean-up previous feedmail.el merge.

* lisp/mail/feedmail.el (feedmail-confirm-outgoing-timeout)
(feedmail-sendmail-f-doesnt-sell-me-out)
(feedmail-queue-slug-suspect-regexp, feedmail-debug)
(feedmail-debug-sit-for, feedmail-queue-express-hook)
(feedmail-queue-runner-message-sender): Set :version.
(bbdb-search, bbdb-records, smtp-via-smtp, smtp-server): Declare.
(feedmail-binmail-gnulinuxish-template):
Rename from feedmail-binmail-linuxish-template.
(feedmail-buffer-to-smtp, feedmail-vm-mail-mode):
Use insert-buffer-substring.

13 years agonewsticker: Added README to etc/newsticker/images
Ulf Jasper [Sat, 14 May 2011 18:39:26 +0000 (20:39 +0200)]
newsticker: Added README to etc/newsticker/images

etc/ChangeLog:

2011-05-14  Ulf Jasper  <ulf.jasper@web.de>

* images/newsticker/README: Added.

13 years agoUpdate from version on author's website.
Bill Carpenter [Sat, 14 May 2011 18:30:21 +0000 (11:30 -0700)]
Update from version on author's website.

* lisp/mail/feedmail.el (feedmail-patch-level): Increase.
(feedmail-debug): New custom group.
(feedmail-confirm-outgoing-timeout)
(feedmail-sendmail-f-doesnt-sell-me-out)
(feedmail-queue-slug-suspect-regexp, feedmail-debug)
(feedmail-debug-sit-for, feedmail-queue-express-hook): New options.
(feedmail-sender-line, feedmail-from-line)
(feedmail-fiddle-headers-upwardly, feedmail-enable-spray)
(feedmail-spray-this-address, )
(feedmail-spray-address-fiddle-plex-list)
(feedmail-queue-use-send-time-for-date)
(feedmail-queue-use-send-time-for-message-id)
(feedmail-last-chance-hook, feedmail-queue-runner-mode-setter)
(feedmail-buffer-eating-function):
Doc fixes.
(feedmail-spray-via-bbdb, feedmail-buffer-to-smtp)
(feedmail-vm-mail-mode, feedmail-message-action-scroll-up)
(feedmail-message-action-scroll-down): New functions.
(feedmail-queue-directory, feedmail-queue-draft-directory):
Use expand-file-name.
(feedmail-prompt-before-queue-standard-alist): Add scroll entries.
Remove C-v help entry.
(feedmail-queue-buffer-file-name): New variable.
(feedmail-mail-send-hook-splitter, feedmail-buffer-to-binmail)
(feedmail-buffer-to-smtpmail, feedmail-queue-express-to-draft)
(feedmail-message-action-send-strong, feedmail-message-action-edit)
(feedmail-message-action-draft, feedmail-message-action-draft-strong)
(feedmail-message-action-queue, feedmail-message-action-queue-strong)
(feedmail-message-action-toggle-spray)
(feedmail-run-the-queue-no-prompts)
(feedmail-run-the-queue-global-prompt, feedmail-queue-reminder)
(feedmail-look-at-queue-directory, feedmail-queue-subject-slug-maker)
(feedmail-create-queue-filename, feedmail-rfc822-time-zone):
(feedmail-fiddle-header, feedmail-give-it-to-buffer-eater)
(feedmail-envelope-deducer, feedmail-fiddle-from)
(feedmail-fiddle-sender, feedmail-default-date-generator)
(feedmail-fiddle-date, feedmail-fiddle-message-id)
(feedmail-fiddle-spray-address)
(feedmail-fiddle-list-of-spray-fiddle-plexes)
(feedmail-fiddle-list-of-fiddle-plexes)
(feedmail-fill-to-cc-function, feedmail-fill-this-one)
(feedmail-one-last-look, feedmail-fqm-p): Add debug calls.
(feedmail-queue-runner-message-sender, feedmail-binmail-template):
Change default.  Doc fix.
(feedmail-queue-runner-cleaner-upper): Use feedmail-say-chatter.
(feedmail-binmail-linuxish-template): New constant.
(feedmail-buffer-to-sendmail): Doc fix.  Add debug call.
Respect feedmail-sendmail-f-doesnt-sell-me-out.
(feedmail-send-it): Add debug call.
Use feedmail-queue-buffer-file-name, and
feedmail-send-it-immediately-wrapper.
(feedmail-message-action-send): Add debug call.
Use feedmail-send-it-immediately-wrapper.
(feedmail-queue-express-to-queue): Add debug call.
Run feedmail-queue-express-hook.
(feedmail-message-action-help): Add debug call.  Use feedmail-p-h-b-n.
(feedmail-message-action-help-blat):
Rename from feedmail-queue-send-edit-prompt-help-first.
(feedmail-run-the-queue): Add debug call.  Set buffer-file-type.
Check line-endings.  Handle errors better.
(feedmail-queue-reminder-brief, feedmail-queue-reminder-medium):
Doc fix.  Add debug call.
(feedmail-queue-send-edit-prompt): Doc fix.  Add debug call.
Use feedmail-queue-send-edit-prompt-inner.
(feedmail-queue-runner-prompt, feedmail-scroll-buffer): New functions.
(feedmail-queue-send-edit-prompt-inner): New function, extracted
from feedmail-queue-send-edit-prompt.
(feedmail-queue-send-edit-prompt-help)
(feedmail-queue-send-edit-prompt-help-later): Remove functions.
(feedmail-tidy-up-slug): Add debug call.
Respect feedmail-queue-slug-suspect-regexp.
(feedmail-queue-subject-slug-maker): Use buffer-substring-no-properties.
(feedmail-dump-message-to-queue): Add debug call.
Expand queue-directory.
(feedmail-dump-message-to-queue): Change message slightly.
Use feedmail-say-chatter.
(feedmail-rfc822-date): Add debug call.  Bind system-time-locale.
(feedmail-send-it-immediately-wrapper): New function.
(feedmail-send-it-immediately): Add debug calls.  Use let not let*.
Insert empty string rather than newline.  Handle full-frame case.
Use catch/throw.  Use feedmail-say-chatter.
(feedmail-fiddle-from): Try mail-host-address.
(feedmail-default-message-id-generator): Doc fix.
Bind system-time-locale.  Handle missing end.
(feedmail-fiddle-x-mailer): Add debug call.
Handle feedmail-x-mailer-line being nil.
(feedmail-accume-n-nuke-header, feedmail-deduce-address-list):
Add debug call.  Use buffer-substring-no-properties.
(feedmail-say-debug, feedmail-say-chatter): New functions.
(feedmail-find-eoh): Give an explicit error.

13 years agoFix minor errors in ELisp manual.
Eli Zaretskii [Sat, 14 May 2011 14:50:46 +0000 (17:50 +0300)]
Fix minor errors in ELisp manual.

 doc/lispref/nonascii.texi (Character Properties): Fix inconsistencies with
 implementation.

13 years agoFixups, following up to the user-interface timestamp change.
Paul Eggert [Sat, 14 May 2011 09:03:53 +0000 (02:03 -0700)]
Fixups, following up to the user-interface timestamp change.

* nsterm.m (last_mouse_movement_time, ns_mouse_position): Use Time
for UI timestamps, instead of unsigned long.
* w32gui.h (Time): Define by including "systime.h" rather than by
declaring it ourselves.  (Bug#8664)

13 years agoFix bug #8652 with indentation of variable docs.
Eli Zaretskii [Sat, 14 May 2011 08:46:11 +0000 (11:46 +0300)]
Fix bug #8652 with indentation of variable docs.

 doc/lispref/text.texi (Special Properties): Move @defvar's out of the
 @table.

13 years agonewsticker: Moved icons to etc/newsticker/images
Ulf Jasper [Fri, 13 May 2011 19:35:36 +0000 (21:35 +0200)]
newsticker: Moved icons to etc/newsticker/images

lisp/ChangeLog:

2011-05-13  Ulf Jasper  <ulf.jasper@web.de>

* net/newst-treeview.el (newsticker-treeview-face): Changed default
family from helvetica to sans.
(newsticker-treeview-tool-bar-map): Moved tool-bar icons to
etc/images/newsticker.

* net/newst-reader.el (newsticker-feed-face): Changed default
family from helvetica to sans.

* net/newst-plainview.el (newsticker-new-item-face)
(newsticker-old-item-face, newsticker-immortal-item-face)
(newsticker-obsolete-item-face, newsticker-date-face)
(newsticker-statistics-face): Changed default family from
helvetica to sans.
(newsticker--plainview-tool-bar-map): Moved tool-bar icons to
etc/images/newsticker.

* net/newst-backend.el (newsticker--do-run-auto-mark-filter),
(newsticker--process-auto-mark-filter-match): : Tell user about
auto-marking.

etc/ChangeLog:

2011-05-13  Ulf Jasper  <ulf.jasper@web.de>

* images/newsticker: Added.
* images/newsticker/browse-url.xpm: Added.
* images/newsticker/get-all.xpm: Added.
* images/newsticker/mark-immortal.xpm: Added.
* images/newsticker/mark-read.xpm: Added.
* images/newsticker/narrow.xpm: Added.
* images/newsticker/next-feed.xpm: Added.
* images/newsticker/next-item.xpm: Added.
* images/newsticker/prev-feed.xpm: Added.
* images/newsticker/prev-item.xpm: Added.
* images/newsticker/update.xpm: Added.

13 years agoCommon Lisp indentation improvements on defmethod and lambda-lists.
Didier Verna [Fri, 13 May 2011 19:27:52 +0000 (16:27 -0300)]
Common Lisp indentation improvements on defmethod and lambda-lists.
* cl-indent.el: Advertise the changes and remove obsolete TODO entries.
(lisp-lambda-list-keyword-parameter-indentation)
(lisp-lambda-list-keyword-parameter-alignment)
(lisp-lambda-list-keyword-alignment): New customizable user options.
(lisp-indent-defun-method): Improve docstring.
(extended-loop-p): Fix comment.
(lisp-indent-lambda-list-keywords-regexp): New variable.
(lisp-indent-lambda-list): New function.
(lisp-indent-259): Use it.
(lisp-indent-defmethod): Support for more than one
method qualifier and properly indent methods lambda-lists.
(defgeneric): Provide a missing common-lisp-indent-function property.

13 years agonewsticker: Moved icons to etc/newsticker/images
Ulf Jasper [Fri, 13 May 2011 19:06:36 +0000 (21:06 +0200)]
newsticker: Moved icons to etc/newsticker/images

lisp/ChangeLog:

2011-05-13  Ulf Jasper  <ulf.jasper@web.de>

* net/newst-treeview.el (newsticker-treeview-face): Changed default
family from helvetica to sans.
(newsticker-treeview-tool-bar-map): Moved tool-bar icons to
etc/images/newsticker.

* net/newst-reader.el (newsticker-feed-face): Changed default
family from helvetica to sans.

* net/newst-plainview.el (newsticker-new-item-face)
(newsticker-old-item-face, newsticker-immortal-item-face)
(newsticker-obsolete-item-face, newsticker-date-face)
(newsticker-statistics-face): Changed default family from
helvetica to sans.
(newsticker--plainview-tool-bar-map): Moved tool-bar icons to
etc/images/newsticker.

* net/newst-backend.el (newsticker--do-run-auto-mark-filter),
(newsticker--process-auto-mark-filter-match): : Tell user about
auto-marking.

etc/ChangeLog:

2011-05-13  Ulf Jasper  <ulf.jasper@web.de>

* images/newsticker: Added.
* images/newsticker/browse-url.xpm: Added.
* images/newsticker/get-all.xpm: Added.
* images/newsticker/mark-immortal.xpm: Added.
* images/newsticker/mark-read.xpm: Added.
* images/newsticker/narrow.xpm: Added.
* images/newsticker/next-feed.xpm: Added.
* images/newsticker/next-item.xpm: Added.
* images/newsticker/prev-feed.xpm: Added.
* images/newsticker/prev-item.xpm: Added.
* images/newsticker/update.xpm: Added.

13 years ago* fns.c: Fix misspellings.
Paul Eggert [Fri, 13 May 2011 18:08:56 +0000 (11:08 -0700)]
* fns.c: Fix misspellings.

13 years ago* lisp/thingatpt.el (bounds-of-thing-at-point): Return nil rather than
Stefan Monnier [Fri, 13 May 2011 17:02:56 +0000 (14:02 -0300)]
* lisp/thingatpt.el (bounds-of-thing-at-point): Return nil rather than
bounds for the empty string.

Fixes: debbugs:8667
13 years agognus-html.el (gnus-html-put-image): Fix last change.
Katsumi Yamaoka [Fri, 13 May 2011 07:53:12 +0000 (07:53 +0000)]
gnus-html.el (gnus-html-put-image): Fix last change.

13 years ago* editfns.c (Fformat): Fix several integer overflow problems.
Paul Eggert [Fri, 13 May 2011 06:12:24 +0000 (23:12 -0700)]
* editfns.c (Fformat): Fix several integer overflow problems.

For example, without this change, (format "%2147483648d" 1) dumps
core on x86-64 GNU/Linux.  Use EMACS_INT, not size_t, for sizes,
since we prefer using signed values, and EMACS_INT will be big
enough soon, even on 32-bit hosts.  Also, prefer EMACS_INT to int
for sizes.  Don't assume that pI is either "l" or ""; it might be
"ll" or "I64".  Check for width and precision greater than
INT_MAX, as this can make sprintf go kaflooey.  (Bug#8668)

13 years agognus-html.el (gnus-html-put-image): Register a displayer.
Katsumi Yamaoka [Fri, 13 May 2011 05:35:56 +0000 (05:35 +0000)]
gnus-html.el (gnus-html-put-image): Register a displayer.
shr.el (shr-image-displayer): Don't remove text props from alt text.

13 years agoregistry.el (prune-factor): New initialization parameter defaulting to 0.1.
Teodor Zlatanov [Fri, 13 May 2011 04:12:37 +0000 (04:12 +0000)]
registry.el (prune-factor): New initialization parameter defaulting to 0.1.
 (registry-prune-hard): Use it.
gnus-registry.el (gnus-registry-fixup-registry): Set prune-factor to 0.1 expicitly.

13 years ago* lisp/gnus/message.el (sendmail-program): Declare.
Glenn Morris [Fri, 13 May 2011 02:16:09 +0000 (19:16 -0700)]
* lisp/gnus/message.el (sendmail-program): Declare.

13 years agomessage.el trivia.
Glenn Morris [Fri, 13 May 2011 02:10:17 +0000 (19:10 -0700)]
message.el trivia.

* lisp/gnu/message.el (message-send-mail-with-sendmail): Assume
sendmail-program is bound, since this function requires sendmail.

13 years ago* lisp/mail/feedmail.el (feedmail-buffer-to-sendmail): Require sendmail.
Glenn Morris [Fri, 13 May 2011 02:06:35 +0000 (19:06 -0700)]
* lisp/mail/feedmail.el (feedmail-buffer-to-sendmail): Require sendmail.

13 years agosendmail.el trivia.
Glenn Morris [Fri, 13 May 2011 01:42:24 +0000 (18:42 -0700)]
sendmail.el trivia.

* lisp/mail/sendmail.el (sendmail-program): Try executable-find first.
(sendmail-send-it): sendmail-program cannot be unbound.

13 years ago* calendar/appt.el (appt-check): Change mode-line message at time of the appt.
Glenn Morris [Fri, 13 May 2011 01:38:31 +0000 (18:38 -0700)]
* calendar/appt.el (appt-check): Change mode-line message at time of the appt.

13 years ago* lisp/calendar/appt.el (appt-time-msg-list): Doc fix.
Glenn Morris [Fri, 13 May 2011 01:35:11 +0000 (18:35 -0700)]
* lisp/calendar/appt.el (appt-time-msg-list): Doc fix.

13 years ago* lisp/calendar/appt.el (appt-make-list): Simplify.
Glenn Morris [Fri, 13 May 2011 01:31:53 +0000 (18:31 -0700)]
* lisp/calendar/appt.el (appt-make-list): Simplify.

13 years agoOmit newline.
Paul Eggert [Fri, 13 May 2011 01:11:23 +0000 (18:11 -0700)]
Omit newline.

13 years ago* dispextern.h (struct image): Don't assume time_t <= unsigned long.
Paul Eggert [Fri, 13 May 2011 01:10:46 +0000 (18:10 -0700)]
* dispextern.h (struct image): Don't assume time_t <= unsigned long.

* image.c (clear_image_cache): Likewise.

13 years ago* term.c (term_mouse_position): Don't assume time_t wraparound.
Paul Eggert [Thu, 12 May 2011 20:30:05 +0000 (13:30 -0700)]
* term.c (term_mouse_position): Don't assume time_t wraparound.

13 years agoBe more systematic about user-interface timestamps.
Paul Eggert [Thu, 12 May 2011 20:23:33 +0000 (13:23 -0700)]
Be more systematic about user-interface timestamps.

Before, the code sometimes used 'Time', sometimes 'unsigned long',
and sometimes 'EMACS_UINT', to represent these timestamps.  This
change causes it to use 'Time' uniformly, as that's what X uses.
This makes the code easier to follow, and makes it easier to catch
integer overflow bugs such as Bug#8664.
* frame.c (Fmouse_position, Fmouse_pixel_position):
Use Time, not unsigned long, for user-interface timestamps.
* keyboard.c (last_event_timestamp, kbd_buffer_get_event): Likewise.
(button_down_time, make_lispy_position, make_lispy_movement): Likewise.
* keyboard.h (last_event_timestamp): Likewise.
* menu.c (Fx_popup_menu) [!HAVE_X_WINDOWS]: Likewise.
* menu.h (xmenu_show): Likewise.
* term.c (term_mouse_position): Likewise.
* termhooks.h (struct input_event.timestamp): Likewise.
(struct terminal.mouse_position_hook): Likewise.
* xmenu.c (create_and_show_popup_menu, xmenu_show): Likewise.
* xterm.c (XTmouse_position, x_scroll_bar_report_motion): Likewise.
* systime.h (Time): New decl.  Pull it in from <X11/X.h> if
HAVE_X_WINDOWS, otherwise define it as unsigned long, which is
what it was before.
* menu.h, termhooks.h: Include "systime.h", for Time.

13 years agoAdd Bug#.
Paul Eggert [Thu, 12 May 2011 20:00:02 +0000 (13:00 -0700)]
Add Bug#.

13 years ago* keyboard.c (make_lispy_event): Fix problem in integer overflow.
Paul Eggert [Thu, 12 May 2011 19:37:40 +0000 (12:37 -0700)]
* keyboard.c (make_lispy_event): Fix problem in integer overflow.

Don't assume that the difference between two unsigned long values
can fit into an integer.  At this point, we know button_down_time
<= event->timestamp, so the difference must be nonnegative, so
there's no need to cast the result if double-click-time is
nonnegative, as it should be; check that it's nonnegative, just in
case.  This bug is triggered when events are more than 2**31 ms
apart (about 25 days).

13 years ago* xselect.c (x_own_selection): Remove needless cast to unsigned long.
Paul Eggert [Thu, 12 May 2011 17:18:58 +0000 (10:18 -0700)]
* xselect.c (x_own_selection): Remove needless cast to unsigned long.

13 years ago* lisp/progmodes/ld-script.el (ld-script-keywords)
Andreas Schwab [Thu, 12 May 2011 16:46:53 +0000 (18:46 +0200)]
* lisp/progmodes/ld-script.el (ld-script-keywords)
(ld-script-builtins): Update keywords list.

13 years ago* xselect.c (last_event_timestamp): Remove duplicate decl.
Paul Eggert [Thu, 12 May 2011 16:38:09 +0000 (09:38 -0700)]
* xselect.c (last_event_timestamp): Remove duplicate decl.

13 years agoPut ChangeLog entries in the correct files.
Glenn Morris [Thu, 12 May 2011 16:30:17 +0000 (09:30 -0700)]
Put ChangeLog entries in the correct files.

13 years ago* frame.h (struct frame): Use int for menu_bar_items_used
Paul Eggert [Thu, 12 May 2011 16:25:30 +0000 (09:25 -0700)]
* frame.h (struct frame): Use int for menu_bar_items_used

instead of EMACS_INT, since it always fits in int.

13 years ago* xmenu.c (set_frame_menubar): Use int, not EMACS_UINT, for indexes
Paul Eggert [Thu, 12 May 2011 16:16:40 +0000 (09:16 -0700)]
* xmenu.c (set_frame_menubar): Use int, not EMACS_UINT, for indexes

that always fit in int.  Use a sentinel instead of a counter, to
avoid a temp and to allay GCC's concerns about possible int overflow.

13 years ago* lisp/progmodes/grep.el (grep-filter): Don't trip on partial lines.
Stefan Monnier [Thu, 12 May 2011 15:10:17 +0000 (12:10 -0300)]
* lisp/progmodes/grep.el (grep-filter): Don't trip on partial lines.

13 years ago* lisp/shell.el (shell-completion-vars): New function.
Stefan Monnier [Thu, 12 May 2011 12:55:10 +0000 (09:55 -0300)]
* lisp/shell.el (shell-completion-vars): New function.
(shell-mode):
* lisp/simple.el (read-shell-command): Use it.
(blink-matching-open): No need for " [...]" in minibuffer-message.

13 years agoappt.el code simplifications.
Glenn Morris [Thu, 12 May 2011 07:56:02 +0000 (00:56 -0700)]
appt.el code simplifications.

* lisp/calendar/appt.el (appt-now-displayed): Remove pointless variable.
(appt-check): Simplify.

Details:
appt-now-displayed was set non-nil the first time a reminder was displayed.
Nothing ever set it back to nil again.  Thus when full-check was nil,
mode-line-only was always true, so the "(when (or full-check mode-line-only)"
was pointless.  That was the only use of full-check.  mode-line-only
was only used in a negative sense, and can be reduced to the zerop test.

13 years ago* doc/lispref/display.texi (Image Descriptors): Fix typo. (Bug#8495)
Glenn Morris [Thu, 12 May 2011 07:27:35 +0000 (00:27 -0700)]
* doc/lispref/display.texi (Image Descriptors): Fix typo.  (Bug#8495)

13 years agoSmall Makefile.in fixes for bug#8642.
Glenn Morris [Thu, 12 May 2011 07:24:14 +0000 (00:24 -0700)]
Small Makefile.in fixes for bug#8642.

* Makefile.in (src, install-arch-indep, bootstrap-clean, check-declare):
Shell portability fixes.

13 years agoMerge from emacs-23; up to 2010-06-10T12:56:11Z!michael.albinus@gmx.de.
Glenn Morris [Thu, 12 May 2011 07:07:06 +0000 (00:07 -0700)]
Merge from emacs-23; up to 2010-06-10T12:56:11Z!michael.albinus@gmx.de.

13 years ago* menu.c (grow_menu_items): Check for int overflow.
Paul Eggert [Thu, 12 May 2011 06:48:32 +0000 (23:48 -0700)]
* menu.c (grow_menu_items): Check for int overflow.

13 years ago* xmenu.c (set_frame_menubar): Don't mishandle vectors with no nils.
Paul Eggert [Thu, 12 May 2011 06:46:26 +0000 (23:46 -0700)]
* xmenu.c (set_frame_menubar): Don't mishandle vectors with no nils.

13 years agobytecomp.el fix for bug#8647
Glenn Morris [Thu, 12 May 2011 02:36:05 +0000 (19:36 -0700)]
bytecomp.el fix for bug#8647

* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defmumble):
Let byte-compile-initial-macro-environment always take precedence.

13 years ago* lisp/net/rcirc.el: Add support for SSL/TLS connections.
Stefan Monnier [Thu, 12 May 2011 02:25:58 +0000 (23:25 -0300)]
* lisp/net/rcirc.el: Add support for SSL/TLS connections.
(rcirc-server-alist): New field `encryption'.
(rcirc): Check `encryption' settings.
(rcirc-connect): New arg `encryption'.  Use open-network-stream.
Merge make-local-variable into `set'.
(rcirc--connection-open-p): New function.
(rcirc-send-string, rcirc-clean-up-buffer): Use it to handle case where
the process is not a network process (e.g. running gnutls-cli).
(set-rcirc-decode-coding-system, set-rcirc-encode-coding-system):
Make rcirc-(en|de)code-coding-system local here.
(rcirc-mode): Merge make-local-variable into `set'.
(rcirc-parent-buffer): Make permanent buffer-local.
(rcirc-multiline-minor-mode): Don't do it here.
(rcirc-switch-to-server-buffer): Don't switch to a random buffer if
there's no server buffer.

13 years ago* xterm.c: Use EMACS_INT for Emacs modifiers, and int for X modifiers.
Paul Eggert [Wed, 11 May 2011 23:16:52 +0000 (16:16 -0700)]
* xterm.c: Use EMACS_INT for Emacs modifiers, and int for X modifiers.

Before, the code was not consistent.  These values cannot exceed
2**31 - 1 so there's no need to make them unsigned.
(x_x_to_emacs_modifiers): Accept int and return EMACS_INT.
(x_emacs_to_x_modifiers): Accept EMACS_INT and return int.
(x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Reject non-integers
as modifiers.
* xterm.h (x_x_to_emacs_modifiers): Adjust to signature change.

13 years agoregistry.el (registry-usage-test): Disable pruning test.
Teodor Zlatanov [Wed, 11 May 2011 22:12:27 +0000 (22:12 +0000)]
registry.el (registry-usage-test): Disable pruning test.

13 years ago* lisp.h (XINT) [USE_LISP_UNION_TYPE]: Cast to EMACS_INT.
Paul Eggert [Wed, 11 May 2011 21:42:11 +0000 (14:42 -0700)]
* lisp.h (XINT) [USE_LISP_UNION_TYPE]: Cast to EMACS_INT.

(XUINT) [USE_LISP_UNION_TYPE]: Cast to EMACS_UINT.
Otherwise, GCC 4.6.0 warns about printf (pI, XINT (...)),
presumably because the widths might not match.

13 years ago* automated/gnus-tests.el: Require CL.
Ted Zlatanov [Wed, 11 May 2011 21:34:40 +0000 (16:34 -0500)]
* automated/gnus-tests.el: Require CL.

13 years ago* automated/gnus-tests.el: Add wrapper for Gnus tests.
Ted Zlatanov [Wed, 11 May 2011 21:31:33 +0000 (16:31 -0500)]
* automated/gnus-tests.el: Add wrapper for Gnus tests.

13 years agoRevert accidental portion of previous bytecomp.el commit.
Glenn Morris [Wed, 11 May 2011 17:32:38 +0000 (13:32 -0400)]
Revert accidental portion of previous bytecomp.el commit.

13 years agosrc/textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).
Drew Adams [Wed, 11 May 2011 16:38:18 +0000 (18:38 +0200)]
src/textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).

13 years ago* lisp/newcomment.el (comment-kill): Prefix "unused" local.
Glenn Morris [Wed, 11 May 2011 16:37:03 +0000 (09:37 -0700)]
* lisp/newcomment.el (comment-kill): Prefix "unused" local.

13 years agojavascript.el trivia.
Glenn Morris [Wed, 11 May 2011 16:35:54 +0000 (09:35 -0700)]
javascript.el trivia.

* lisp/semantic/wisent/javascript.el (semantic-get-local-variables):
Use define-mode-local-override rather than its obsolete alias.

13 years ago* lisp/term/w32console.el (get-screen-color): Declare.
Glenn Morris [Wed, 11 May 2011 16:34:15 +0000 (09:34 -0700)]
* lisp/term/w32console.el (get-screen-color): Declare.

13 years agobytecomp.el partial fix for bug#8646.
Glenn Morris [Wed, 11 May 2011 16:31:33 +0000 (09:31 -0700)]
bytecomp.el partial fix for bug#8646.

* lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn):
Handle symbol elements of byte-compile-initial-macro-environment.

13 years ago* window.c (size_window): Avoid needless test at loop start.
Paul Eggert [Wed, 11 May 2011 05:29:31 +0000 (22:29 -0700)]
* window.c (size_window): Avoid needless test at loop start.

13 years agoTake account of fringe background extension in scroll_run_hook.
YAMAMOTO Mitsuharu [Wed, 11 May 2011 03:13:58 +0000 (12:13 +0900)]
Take account of fringe background extension in scroll_run_hook.

* w32term.c (w32_draw_fringe_bitmap): Rename local vars `left' and
`width' to `bar_area_x' and `bar_area_width', respectively.
(x_scroll_run): Take account of fringe background extension.

* xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: Rename
local vars `left' and `width' to `bar_area_x' and
`bar_area_width', respectively.
(x_scroll_run) [USE_TOOLKIT_SCROLL_BARS]: Take account of fringe
background extension.

13 years agoregistry.el (registry-prune-hard-candidates, registry-prune-soft-candidates): Helper...
Teodor Zlatanov [Tue, 10 May 2011 22:21:39 +0000 (22:21 +0000)]
registry.el (registry-prune-hard-candidates, registry-prune-soft-candidates): Helper methods for registry pruning.
 (registry-prune): Use them.  Make the sort function optional.

13 years agoBind bookmark-bmenu-search to `/'
Leo Liu [Tue, 10 May 2011 19:34:51 +0000 (03:34 +0800)]
Bind bookmark-bmenu-search to `/'

13 years agofix many doubled-word typos
U. Ser [Tue, 10 May 2011 13:57:12 +0000 (15:57 +0200)]
fix many doubled-word typos

13 years agoshr.el (shr-put-color-1): Do not bug out when old-props is a face symbol and not...
Julien Danjou [Tue, 10 May 2011 13:20:21 +0000 (13:20 +0000)]
shr.el (shr-put-color-1): Do not bug out when old-props is a face symbol and not a list.

13 years agosrc/image.c (Finit_image_library): Return t for built-in image types (bug#8640).
Juanma Barranquero [Tue, 10 May 2011 10:31:33 +0000 (12:31 +0200)]
src/image.c (Finit_image_library): Return t for built-in image types (bug#8640).

13 years agoAuto-commit of generated files.
Glenn Morris [Tue, 10 May 2011 10:18:34 +0000 (06:18 -0400)]
Auto-commit of generated files.

13 years agoAdd a new footnote style unicode
Leo Liu [Tue, 10 May 2011 08:20:21 +0000 (16:20 +0800)]
Add a new footnote style unicode

See also the discussion thread in:
http://thread.gmane.org/gmane.emacs.devel/139221

13 years agoConvert mail/footnote.el to utf-8 encoding
Leo Liu [Tue, 10 May 2011 08:14:42 +0000 (16:14 +0800)]
Convert mail/footnote.el to utf-8 encoding

13 years agognus-art.el (gnus-article-mode): Move binding of shr-put-image-function here from...
Katsumi Yamaoka [Tue, 10 May 2011 07:30:49 +0000 (07:30 +0000)]
gnus-art.el (gnus-article-mode): Move binding of shr-put-image-function here from gnus-article-prepare-display.

13 years agoshr.el (shr-put-image-function): New variable.
Katsumi Yamaoka [Tue, 10 May 2011 03:14:44 +0000 (03:14 +0000)]
shr.el (shr-put-image-function): New variable.
 (shr-image-fetched, shr-image-displayer, shr-tag-img): Funcall it.
 (shr-put-image): Return scaled image.
gnus-art.el (gnus-shr-put-image): New function.
 (gnus-article-prepare-display): Bind shr-put-image-function to it.
gnus-html.el (gnus-html-wash-images): Register scaled images, not original ones, as deletable.

13 years agoDeprecate using "mode:" to enable minor modes (bug#8613)
Glenn Morris [Tue, 10 May 2011 02:31:42 +0000 (19:31 -0700)]
Deprecate using "mode:" to enable minor modes (bug#8613)

* lisp/files.el (hack-one-local-variable-eval-safep):
Consider "eval: (foo-mode)" to be safe.

* doc/emacs/custom.texi (Specifying File Variables):
Deprecate using mode: for minor modes.

* etc/NEWS: Mention this.

* lisp/doc-view.el, lisp/net/soap-client.el:
Change "mode:" minor-mode file local variables to use "eval:".

13 years agodiary-lib.el doc fixes.
Glenn Morris [Tue, 10 May 2011 02:22:55 +0000 (19:22 -0700)]
diary-lib.el doc fixes.

* lisp/calendar/diary-lib.el (diary-list-entries-hook)
(diary-mark-entries-hook, diary-nongregorian-listing-hook)
(diary-nongregorian-marking-hook, diary-list-entries)
(diary-include-other-diary-files, diary-mark-entries)
(diary-mark-included-diary-files): Doc fixes.

13 years agolisp/misc.el: Require tabulated-list.el during compilation.
Juanma Barranquero [Mon, 9 May 2011 23:57:40 +0000 (01:57 +0200)]
lisp/misc.el: Require tabulated-list.el during compilation.

13 years ago* test/automated/occur-tests.el: Move from test/occur-testsuite.el.
Juri Linkov [Mon, 9 May 2011 23:21:32 +0000 (03:21 +0400)]
* test/automated/occur-tests.el: Move from test/occur-testsuite.el.
Convert to ERT.

13 years agoregistry.el (registry-full): Add convenience method. Fix logic.
Teodor Zlatanov [Mon, 9 May 2011 22:27:17 +0000 (22:27 +0000)]
registry.el (registry-full): Add convenience method.  Fix logic.
 (registry-insert): Use it.  Fix logic here too.
gnus-registry.el (gnus-registry-insert): Add wrapper that calls `registry-prune' if `registry-full' returns t.
 (gnus-registry-handle-action, gnus-registry-get-or-make-entry, gnus-registry-set-id-key, gnus-registry-usage-test): Use it.

13 years agoTypo fix in doc/lispref/files.texi.
Eli Zaretskii [Mon, 9 May 2011 20:38:50 +0000 (23:38 +0300)]
Typo fix in doc/lispref/files.texi.

13 years agoCall compilation-filter-hook in the no-async case too.
Chong Yidong [Mon, 9 May 2011 19:42:45 +0000 (15:42 -0400)]
Call compilation-filter-hook in the no-async case too.

* progmodes/compile.el (compilation-start): Run
compilation-filter-hook for the async case too.
(compilation-filter-hook): Doc fix.

13 years ago* lisp/gnus/nntp.el (nntp-open-connection): Set TCP keepalive option.
Stefan Monnier [Mon, 9 May 2011 19:41:14 +0000 (16:41 -0300)]
* lisp/gnus/nntp.el (nntp-open-connection): Set TCP keepalive option.

13 years agoAdd forgotten ChangeLog entry.
Deniz Dogan [Mon, 9 May 2011 17:50:47 +0000 (19:50 +0200)]
Add forgotten ChangeLog entry.

13 years ago* lisp/wdired.el: Remove outdated installation comment. Fix usage
Deniz Dogan [Mon, 9 May 2011 17:47:01 +0000 (19:47 +0200)]
* lisp/wdired.el: Remove outdated installation comment.  Fix usage
comment.

13 years agolisp/misc.el: Implement new command `list-dynamic-libraries'.
Juanma Barranquero [Mon, 9 May 2011 15:52:57 +0000 (17:52 +0200)]
lisp/misc.el: Implement new command `list-dynamic-libraries'.

* misc.el (list-dynamic-libraries--loaded-only-p): New variable.
  (list-dynamic-libraries--refresh): New function.
  (list-dynamic-libraries): New command.