bpt/emacs.git
12 years ago* doc/misc/Makefile.in: Fix ert rules.
Glenn Morris [Sat, 8 Oct 2011 21:00:41 +0000 (14:00 -0700)]
* doc/misc/Makefile.in: Fix ert rules.

Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg00224.html

12 years ago* doc/lispref/symbols.texi (Other Plists): Markup fix. (Bug#9702)
Glenn Morris [Sat, 8 Oct 2011 20:53:06 +0000 (13:53 -0700)]
* doc/lispref/symbols.texi (Other Plists): Markup fix.  (Bug#9702)

12 years ago* doc/lispref/positions.texi (Excursions): Update warning message.
Glenn Morris [Sat, 8 Oct 2011 20:52:03 +0000 (13:52 -0700)]
* doc/lispref/positions.texi (Excursions): Update warning message.

12 years ago* doc/emacs/mini.texi (Completion Options): Document completion-cycle-threshold.
Chong Yidong [Sat, 8 Oct 2011 19:17:34 +0000 (15:17 -0400)]
* doc/emacs/mini.texi (Completion Options): Document completion-cycle-threshold.

12 years agodoc/emacs/mule.texi (Bidirectional Editing): Correct some inaccuracies.
Eli Zaretskii [Sat, 8 Oct 2011 17:29:45 +0000 (19:29 +0200)]
doc/emacs/mule.texi (Bidirectional Editing): Correct some inaccuracies.

12 years agoRework count-words-region. New command count-words.
Chong Yidong [Sat, 8 Oct 2011 16:37:46 +0000 (12:37 -0400)]
Rework count-words-region.  New command count-words.

See discussion at http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg00193.html

* lisp/simple.el (count-words-region): Always count in the region.
Report the number of lines and characters too.
(count-words): New command, which counts in the buffer if the
region is inactive, as count-words-region used to.
(count-words--message): New function.  Handle plurals.
(count-lines-region): Make it an alias for count-words-region.

* lisp/bindings.el (esc-map): Replace count-lines-region with
count-words-region.

* doc/emacs/basic.texi (Position Info): Omit page commands.  Document
count-words-region and count-words.

* doc/emacs/text.texi (Pages): Move what-page documentation here.

12 years agoDocument completion styles in Emacs manual; copyedits.
Chong Yidong [Sat, 8 Oct 2011 15:08:50 +0000 (11:08 -0400)]
Document completion styles in Emacs manual; copyedits.

* doc/emacs/mini.texi (Minibuffer File): Minor copyedits.  Use xref to
Remote Files node instead of linking directly to the Tramp manual.
(Minibuffer Edit): Add xref to Blank Lines.
(Completion): Add xref to Symbol Completion.  Remove redundant
example, which is repeated in the next node.
(Completion Commands): Minor clarifications.
(Completion Styles): New node, split from Completion Commands.
Document substring and initials styles.
(Strict Completion): Remove information duplicated in other nodes.
(Completion Options): Consolidate case difference discussion here.

* doc/emacs/files.texi (File Names): Add index entries.

* doc/emacs/help.texi (Help Mode): Fix kindex entries.

12 years agoFix doc-string typo in switch-to-buffer.
Martin Rudalics [Sat, 8 Oct 2011 14:01:55 +0000 (16:01 +0200)]
Fix doc-string typo in switch-to-buffer.

12 years agoDelete dedicated frame when killing its buffer. (Bug#9699)
Martin Rudalics [Sat, 8 Oct 2011 13:52:16 +0000 (15:52 +0200)]
Delete dedicated frame when killing its buffer.  (Bug#9699)

* window.el (window--delete): Delete dedicated frame unconditionally
when argument KILL is non-nil.  (Bug#9699)

12 years agoFix cursor positioning in hscrolled lines with R2L characters.
Eli Zaretskii [Sat, 8 Oct 2011 13:03:43 +0000 (15:03 +0200)]
Fix cursor positioning in hscrolled lines with R2L characters.

 src/xdisp.c (set_cursor_from_row): Fix cursor positioning in mixed L2R+R2L
 lines that are hscrolled on the left.

12 years agosrc/xdisp.c (hscroll_window_tree): Support hscroll in right-to-left lines.
Eli Zaretskii [Sat, 8 Oct 2011 12:15:08 +0000 (14:15 +0200)]
src/xdisp.c (hscroll_window_tree): Support hscroll in right-to-left lines.

12 years agoFix bug #4426 with buffer_posn_from_coords when header line is present.
Eli Zaretskii [Sat, 8 Oct 2011 10:58:50 +0000 (12:58 +0200)]
Fix bug #4426 with buffer_posn_from_coords when header line is present.

 dispnew.c (buffer_posn_from_coords): Account it.vpos for a possible
 presence of header-line.

12 years agoAuto-commit of generated files.
Glenn Morris [Sat, 8 Oct 2011 10:18:34 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years ago* lisp/eshell/eshell.el (eshell-command): Avoid using hooks.
thierry volpiatto [Sat, 8 Oct 2011 06:08:00 +0000 (08:08 +0200)]
* lisp/eshell/eshell.el (eshell-command): Avoid using hooks.

12 years agoMerge from gnulib, fixing some 'configure' typos (Bug#9696).
Paul Eggert [Fri, 7 Oct 2011 21:15:00 +0000 (14:15 -0700)]
Merge from gnulib, fixing some 'configure' typos (Bug#9696).

* lib/signal.in.h, lib/sigprocmask.c, m4/gl-comp.m4:
* m4/gnulib-common.m4: Merge from gnulib.
Without this, 'configure' would say "func_gl_gnulib_m4code_pathmax:
command not found" on powerpc-apple-darwin9.8.0.

12 years ago* alloc.c: Add comment.
Paul Eggert [Fri, 7 Oct 2011 16:42:32 +0000 (09:42 -0700)]
* alloc.c: Add comment.

12 years agoCopyedits and updates for Emacs manual's first few chapters.
Chong Yidong [Fri, 7 Oct 2011 16:22:04 +0000 (12:22 -0400)]
Copyedits and updates for Emacs manual's first few chapters.

* doc/emacs/basic.texi (Inserting Text): Add xref to Completion.  Add
ucs-insert example, and document prefix argument.
(Moving Point): Fix introduction; C-f/C-b are no longer equivalent
to left/right.  Tweak left-char and right-char descriptions.
M-left and M-right are now bound to left-word/right-word.
(Erasing): Document delete-forward-char.

* doc/emacs/commands.texi (User Input): Define "input event" more clearly.
(Keys): Add xref to Echo Area.
(Commands): Clarify relation between commands and functions.

* doc/emacs/entering.texi (Entering Emacs): Define "startup screen".
Document window-splitting behavior with command-line inputs.
(Exiting): Remove obsolete paragraph about shells without suspend
functionality.

* doc/emacs/frames.texi (Non-Window Terminals): Index just "text-only
terminal", which is used throughout the manual now.

* doc/emacs/screen.texi (Screen, Menu Bar): Copyedits.
(Point): Remove duplicate paragraph on cursors, also in Screen.
(Mode Line): Trailing dashes no longer shown on X displays.

12 years ago* bindings.el ([M-left],[M-right]): Bind to left-word and right-word respectively.
Chong Yidong [Fri, 7 Oct 2011 16:05:10 +0000 (12:05 -0400)]
* bindings.el ([M-left],[M-right]): Bind to left-word and right-word respectively.

12 years ago* src/buffer.c (syms_of_buffer) <enable-multibyte-characters>: Don't
Stefan Monnier [Fri, 7 Oct 2011 13:08:47 +0000 (09:08 -0400)]
* src/buffer.c (syms_of_buffer) <enable-multibyte-characters>: Don't
advertise functionality which we discourage or doesn't work.

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

12 years agoFix alignment-related core dump during GC.
Paul Eggert [Fri, 7 Oct 2011 07:23:44 +0000 (00:23 -0700)]
Fix alignment-related core dump during GC.

* configure.in (GC_LISP_OBJECT_ALIGNMENT): Remove.
This is now done by src/alloc.c.
* src/alloc.c (GC_LISP_OBJECT_ALIGNMENT): Use offsetof, not __alignof__
or sizeof.  __alignof__ gives the wrong answer on Fedora x86-64
with GCC 4.6.1 when configured with CC='gcc -m32' --with-wide-int;
this makes Emacs dump core during garbage collection on rare
occasions.  sizeof is obviously inferior to offsetof here, so
stick with offsetof.
(GC_POINTER_ALIGNMENT): New macro.
(mark_memory): Omit 3rd (offset) arg; caller changed.
Don't assume EMACS_INT alignment is the same as pointer alignment.

12 years ago* lisp/cus-start.el (debug-on-quit): Fix custom type.
Glenn Morris [Fri, 7 Oct 2011 02:17:29 +0000 (22:17 -0400)]
* lisp/cus-start.el (debug-on-quit): Fix custom type.

12 years agoMerge changes made in Gnus trunk.
Gnus developers [Thu, 6 Oct 2011 22:11:15 +0000 (22:11 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Gnus Utility Functions): Add more references and explanations (bug#9683).
ecomplete.el (ecomplete-display-matches): Use a local keymap to handle bindings.
gnus-win.el (gnus-configure-windows): Protect against reading ephemeral groups outside of Gnus.

12 years ago(define-key-after): Clarify that the function is not useful for non-menu keymaps.
Lars Magne Ingebrigtsen [Thu, 6 Oct 2011 19:15:19 +0000 (21:15 +0200)]
(define-key-after): Clarify that the function is not useful for non-menu keymaps.

12 years ago* progmodes/gdb-mi.el (gdb): Fix typo in doc string.
Lars Magne Ingebrigtsen [Thu, 6 Oct 2011 16:11:38 +0000 (18:11 +0200)]
* progmodes/gdb-mi.el (gdb): Fix typo in doc string.

12 years agoUpdate Changelog
thierry volpiatto [Thu, 6 Oct 2011 16:06:01 +0000 (18:06 +0200)]
Update Changelog

12 years ago* lisp/eshell/eshell.el (eshell-command): Enable `eshell-mode' only in current minibu...
thierry volpiatto [Thu, 6 Oct 2011 15:56:15 +0000 (17:56 +0200)]
* lisp/eshell/eshell.el (eshell-command): Enable `eshell-mode' only in current minibuffer (Fix bug with recursive minibuffers).

12 years ago* lisp/eshell/eshell.el (eshell-command): Enable `eshell-mode' only in current minibu...
thierry volpiatto [Thu, 6 Oct 2011 15:18:48 +0000 (17:18 +0200)]
* lisp/eshell/eshell.el (eshell-command): Enable `eshell-mode' only in current minibuffer (Fix bug with recursive minibuffers).

12 years agoDocument exactly how emacsclient's -a "" starts the daemon.
Chong Yidong [Thu, 6 Oct 2011 15:13:45 +0000 (11:13 -0400)]
Document exactly how emacsclient's -a "" starts the daemon.

* doc/emacs/misc.texi (emacsclient Options): Document how emacsclient
  runs the Emacs daemon.

* doc/man/emacsclient.1: Document how -a "" starts the daemon.

Fixes: debbugs:9674

12 years ago* lisp/progmodes/gdb-mi.el (gdb): Doc fix.
Chong Yidong [Thu, 6 Oct 2011 14:55:10 +0000 (10:55 -0400)]
* lisp/progmodes/gdb-mi.el (gdb): Doc fix.

See http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00229.html

12 years agoshr.el (shr-tag-img): Don't get images displayed in tables.
Katsumi Yamaoka [Thu, 6 Oct 2011 09:25:26 +0000 (09:25 +0000)]
shr.el (shr-tag-img): Don't get images displayed in tables.

12 years ago* display.texi (Low-Level Font, Face Attributes, Font Lookup): Fix xref.
Chong Yidong [Wed, 5 Oct 2011 21:39:54 +0000 (17:39 -0400)]
* display.texi (Low-Level Font, Face Attributes, Font Lookup): Fix xref.

Fixes: debbugs:9675

12 years agoNew functions window-point-1 and set-window-point-1.
Martin Rudalics [Wed, 5 Oct 2011 08:59:13 +0000 (10:59 +0200)]
New functions window-point-1 and set-window-point-1.

* window.el (window-point-1, set-window-point-1): New functions.
(window-in-direction, record-window-buffer, window-state-get-1)
(display-buffer-record-window): Use window-point-1 instead of
window-point.
(set-window-buffer-start-and-point): Use set-window-point-1.

12 years agoNew option frame-auto-hide-function replacing frame-auto-delete.
Martin Rudalics [Wed, 5 Oct 2011 06:49:53 +0000 (08:49 +0200)]
New option frame-auto-hide-function replacing frame-auto-delete.

* window.el (frame-auto-hide-function): New option replacing
frame-auto-delete.  Suggested by Stefan Monnier.
(window--delete): Call frame-auto-hide-function instead of
investigating frame-auto-delete.

12 years ago* lisp/emacs-lisp/edebug.el: Heed checkdoc recommendations.
Stefan Monnier [Wed, 5 Oct 2011 05:30:03 +0000 (01:30 -0400)]
* lisp/emacs-lisp/edebug.el: Heed checkdoc recommendations.

12 years agoSmall perl-mode fixes.
Glenn Morris [Wed, 5 Oct 2011 05:28:55 +0000 (22:28 -0700)]
Small perl-mode fixes.

* lisp/progmodes/perl-mode.el (perl-electric-terminator): Doc fix.
(perl-calculate-indent): Suppress scan errors.  (Bug#2205)

12 years agoFix argument to buffer-live-p in read-char-choice
Leo Liu [Wed, 5 Oct 2011 03:37:21 +0000 (11:37 +0800)]
Fix argument to buffer-live-p in read-char-choice

12 years ago* lisp/mpc.el (mpc-tool-bar-map): Add labels.
Stefan Monnier [Wed, 5 Oct 2011 00:56:26 +0000 (20:56 -0400)]
* lisp/mpc.el (mpc-tool-bar-map): Add labels.

12 years ago* lisp/calendar/holidays.el (calendar-check-holidays): Doc fix.
Glenn Morris [Tue, 4 Oct 2011 17:26:55 +0000 (13:26 -0400)]
* lisp/calendar/holidays.el (calendar-check-holidays): Doc fix.

12 years agoMake frame iconification/deletion optional when burying buffers.
Martin Rudalics [Tue, 4 Oct 2011 15:28:25 +0000 (17:28 +0200)]
Make frame iconification/deletion optional when burying buffers.

* window.el (window--delete): New function.
(frame-auto-delete): Resuscitate option.
(bury-buffer, replace-buffer-in-windows)
(quit-window): Rewrite using window--delete.
(display-buffer-pop-up-frame, display-buffer-pop-up-window):
Pass display-buffer-mark-dedicated to window--display-buffer-2
(Bug#9639).

12 years agoTweak debbugs entry in gnus-bug-group-download-format-alist again.
Glenn Morris [Mon, 3 Oct 2011 23:27:29 +0000 (19:27 -0400)]
Tweak debbugs entry in gnus-bug-group-download-format-alist again.

* lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist):
Once again get the "maintainer" version of debbugs.gnu.org reports.

12 years ago* src/keyboard.c (read_key_sequence_remapped): New var.
Stefan Monnier [Mon, 3 Oct 2011 20:50:54 +0000 (16:50 -0400)]
* src/keyboard.c (read_key_sequence_remapped): New var.
(read_key_sequence): Compute remapping in the right buffer.
(command_loop_1): Use read_key_sequence's remapping directly.

12 years ago* lisp/pcmpl-unix.el (pcomplete/scp): Don't assume pcomplete-all-entries
Stefan Monnier [Mon, 3 Oct 2011 16:49:56 +0000 (12:49 -0400)]
* lisp/pcmpl-unix.el (pcomplete/scp): Don't assume pcomplete-all-entries
returns a list.  Add remote file name completion.
* lisp/comint.el (comint--table-subvert): Curry and get quote&unquote
functions as arguments.
(comint--complete-file-name-data): Adjust call accordingly.
* lisp/pcomplete.el (pcomplete--table-subvert): Remove.
(pcomplete-completions-at-point): Use comint--table-subvert instead.

Fixes: debbugs:9554

12 years ago* lisp/minibuffer.el (completion-table-case-fold): Use currying.
Stefan Monnier [Mon, 3 Oct 2011 15:03:00 +0000 (11:03 -0400)]
* lisp/minibuffer.el (completion-table-case-fold): Use currying.
(completion--styles-type, completion--cycling-threshold-type): New constants.
(completion-styles, completion-category-overrides)
(completion-cycle-threshold): Use them.
* lisp/pcomplete.el (pcomplete-completions-at-point): Adjust call to
completion-table-case-fold.

12 years ago* lisp/minibuffer.el (completion-category-overrides): Fix type of styles
Stephen Berman [Mon, 3 Oct 2011 14:47:40 +0000 (10:47 -0400)]
* lisp/minibuffer.el (completion-category-overrides): Fix type of styles
and add more user friendly tags.

Fixes: debbugs:9660

12 years ago* lisp/international/mule-cmds.el: Fix abuses of apply-partially.
Stefan Monnier [Mon, 3 Oct 2011 14:18:42 +0000 (10:18 -0400)]
* lisp/international/mule-cmds.el: Fix abuses of apply-partially.
(mule-input-method-string): New widget.
(default-input-method, language-info-custom-alist): Use it.

Fixes: debbugs:9661

12 years agoAuto-commit of generated files.
Glenn Morris [Mon, 3 Oct 2011 10:18:29 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years agoFix some (unrelated) typos in comment and ChangeLog.
Glenn Morris [Sun, 2 Oct 2011 23:53:59 +0000 (16:53 -0700)]
Fix some (unrelated) typos in comment and ChangeLog.

12 years agoRename `linux' to `gnu_linux'.
Richard M. Stallman [Sun, 2 Oct 2011 22:43:52 +0000 (18:43 -0400)]
Rename `linux' to `gnu_linux'.

12 years agoshr.el (shr-tag-img): Add a space at the end of an ALT image text to make asynchronou...
Lars Magne Ingebrigtsen [Sun, 2 Oct 2011 22:03:55 +0000 (22:03 +0000)]
shr.el (shr-tag-img): Add a space at the end of an ALT image text to make asynchronous adjacent image insertion work better.

12 years ago* lisp/pcomplete.el: Require comint.
Stefan Monnier [Sun, 2 Oct 2011 04:08:50 +0000 (00:08 -0400)]
* lisp/pcomplete.el: Require comint.
(pcomplete--common-suffix): Remove.
(pcomplete--common-quoted-suffix): Use comint--common-suffix instead.
(pcomplete--table-subvert): Sync with comint--table-subvert.
(pcomplete--entries): Use comint-completion-file-name-table.
* lisp/comint.el (comint-unquote-filename): Simplify.
(comint-completion-file-name-table): New function.
(comint--complete-file-name-data): Use it.
* src/dired.c (file_name_completion): Don't expand file name.
(Ffile_name_completion, Ffile_name_all_completions): Expand file name
before checking file name handler.

Fixes: debbugs:9616

12 years ago* pcmpl-gnu.el: Use lexical-binding.
Stefan Monnier [Sun, 2 Oct 2011 01:04:01 +0000 (21:04 -0400)]
* pcmpl-gnu.el: Use lexical-binding.
(pcmpl-gnu-with-file-buffer): Fix last change.

12 years ago* lisp/pcmpl-gnu.el (pcmpl-gnu-with-file-buffer): New macro.
Stefan Monnier [Sun, 2 Oct 2011 01:00:17 +0000 (21:00 -0400)]
* lisp/pcmpl-gnu.el (pcmpl-gnu-with-file-buffer): New macro.
(pcmpl-gnu-tar-buffer): Remove.
(pcmpl-gnu-with-file-buffer): Use it to avoid leaving the tar's buffer
avoid.  Make sure pcomplete-suffix-list is only changed temporarily.
Don't look inside the tar's file is it's too large.

Fixes: debbugs:9643

12 years ago* src/minibuf.c (Finternal_complete_buffer): Only show internal buffers if
Stefan Monnier [Sun, 2 Oct 2011 00:25:27 +0000 (20:25 -0400)]
* src/minibuf.c (Finternal_complete_buffer): Only show internal buffers if
they've been requested explicitly.

Fixes: debbugs:9591

12 years agoetc/NEWS: Fix typo. Remove duplicate info.
Juanma Barranquero [Sat, 1 Oct 2011 23:15:46 +0000 (01:15 +0200)]
etc/NEWS: Fix typo.  Remove duplicate info.

12 years agoFix manual description of display-buffer-pop-up-window.
Chong Yidong [Sat, 1 Oct 2011 22:16:24 +0000 (18:16 -0400)]
Fix manual description of display-buffer-pop-up-window.
Also, tweaks to NEWS.

* doc/lispref/windows.texi (Display Action Functions): Fix description of
display-buffer-pop-up-window.

12 years agoAdd :version tag to shell-dir-cookie-re.
Chong Yidong [Sat, 1 Oct 2011 22:05:36 +0000 (18:05 -0400)]
Add :version tag to shell-dir-cookie-re.

12 years agoDocument some Emacs 24 scrolling changes.
Chong Yidong [Sat, 1 Oct 2011 21:54:33 +0000 (17:54 -0400)]
Document some Emacs 24 scrolling changes.

* doc/emacs/basic.texi (Moving Point):
* doc/emacs/custom.texi (Mouse Buttons):
* doc/emacs/rmail.texi (Rmail Scrolling):
* doc/emacs/search.texi (Isearch Scroll):

* doc/emacs/display.texi (Scrolling): Replace scroll-up/down with
scroll-up/down-command.  Fix scroll-preserve-screen-position
description.  Document scroll-error-top-bottom.

* doc/lispref/windows.texi (Textual Scrolling): Document scroll-up-command,
scroll-down-command, scroll-error-top-bottom, and the
scroll-command symbol property.

12 years agoChange scroll-up/down bindings to Emacs 24's scroll-*-command.
Chong Yidong [Sat, 1 Oct 2011 20:32:01 +0000 (16:32 -0400)]
Change scroll-up/down bindings to Emacs 24's scroll-*-command.

* cus-edit.el (custom-mode-map):
* epa.el (epa-key-list-mode-map):
* man.el (Man-mode-map):
* startup.el (splash-screen-keymap):
* simple.el (special-mode-map): Use scroll-up-command and
scroll-down-command.

* progmodes/idlw-help.el (idlwave-help-mode-map):
* progmodes/ebrowse.el (ebrowse-electric-position-mode-map):
* net/newst-plainview.el (newsticker-mode-map):
* emulation/ws-mode.el (wordstar-mode-map):
* emulation/vi.el (vi-com-map):
* calc/calc-graph.el (calc-graph-show-dumb):
* term/sun.el (terminal-init-sun):
* term/ns-win.el (global-map):
* progmodes/grep.el (grep-mode-map):
* progmodes/ebrowse.el (ebrowse-electric-list-mode-map):
* mail/rmail.el (rmail-mode-map):
* progmodes/cpp.el (cpp-edit-mode-map): Likewise.

12 years agoMerge changes from emacs-23
Chong Yidong [Sat, 1 Oct 2011 18:46:45 +0000 (14:46 -0400)]
Merge changes from emacs-23

12 years agoAllow overriding of theme confirmation via custom-safe-themes.
Chong Yidong [Sat, 1 Oct 2011 18:27:21 +0000 (14:27 -0400)]
Allow overriding of theme confirmation via custom-safe-themes.

See http://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00121.html

* lisp/custom.el (custom-safe-themes, load-theme): Treat value of t for
custom-safe-themes as special.

12 years ago* notifications.el (notifications-notify): Fix docstring.
Julien Danjou [Sat, 1 Oct 2011 13:19:17 +0000 (15:19 +0200)]
* notifications.el (notifications-notify): Fix docstring.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 1 Oct 2011 10:20:53 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.

12 years ago* lisp/pcmpl-gnu.el (pcomplete/tar): Fix tar-header-name call.
Per Starbäck [Sat, 1 Oct 2011 02:38:46 +0000 (19:38 -0700)]
* lisp/pcmpl-gnu.el (pcomplete/tar): Fix tar-header-name call.

Fixes: debbugs:9643

12 years ago* buffer.h (struct buffer): Use time_t, not int, for a time stamp.
Paul Eggert [Fri, 30 Sep 2011 20:22:01 +0000 (13:22 -0700)]
* buffer.h (struct buffer): Use time_t, not int, for a time stamp.

This fixes a Y2038 bug on 64-bit hosts.
* buffer.c (reset_buffer):
* fileio.c (Fdo_auto_save, Fset_buffer_auto_saved)
(Fclear_buffer_auto_save_failure):
Use 0, not -1, to represent an unset failure time, since time_t
might not be signed.

12 years ago* doc/emacs/commands.texi (Keys): Whitespace fix. (Bug#9635)
Glenn Morris [Fri, 30 Sep 2011 18:17:34 +0000 (14:17 -0400)]
* doc/emacs/commands.texi (Keys): Whitespace fix.  (Bug#9635)

12 years agoRemove dependency on glibc malloc internals.
Paul Eggert [Fri, 30 Sep 2011 17:07:40 +0000 (10:07 -0700)]
Remove dependency on glibc malloc internals.

* alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE):
Move back here from lisp.h, but with their new implementations.
(XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT)
(XMALLOC_OVERRUN_SIZE_SIZE): Move these new lisp.h macros here.
* charset.c (charset_table_init): New static var.
(syms_of_charset): Use it instead of xmalloc.  This removes a
dependency on glibc malloc internals.  See Eli Zaretskii's comment in
<http://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00815.html>.
* lisp.h (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE):
Move back to alloc.c.
(XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT)
(XMALLOC_OVERRUN_SIZE_SIZE): Move to alloc.c.

12 years agoFix bug number in ChangeLog entry.
Martin Rudalics [Fri, 30 Sep 2011 13:23:12 +0000 (15:23 +0200)]
Fix bug number in ChangeLog entry.

12 years agoInsert initial-scratch-message before displaying *scratch*. (Bug#9636)
Martin Rudalics [Fri, 30 Sep 2011 13:21:29 +0000 (15:21 +0200)]
Insert initial-scratch-message before displaying *scratch*.  (Bug#9636)

* startup.el (command-line-1): Fix last fix by inserting
initial-scratch-message into *scratch* before displaying it.
(Bug#9626) and (Bug#9636)

12 years ago* nsterm.m (windowDidResize): Call x_set_window_size only when
Jan Djärv [Fri, 30 Sep 2011 07:42:26 +0000 (09:42 +0200)]
* nsterm.m (windowDidResize): Call x_set_window_size only when
ns_in_resize is true.  Otherwise set pixelwidth/height and
call change_frame_size.

Fixes: debbugs:9628

12 years agosrc/ChangeLog: Minor typos fixed.
Eli Zaretskii [Fri, 30 Sep 2011 07:25:15 +0000 (10:25 +0300)]
src/ChangeLog: Minor typos fixed.

12 years agoPort --enable-checking=all to Fedora 14 x86-64.
Paul Eggert [Fri, 30 Sep 2011 07:16:38 +0000 (00:16 -0700)]
Port --enable-checking=all to Fedora 14 x86-64.

* charset.c (syms_of_charset): Also account for glibc malloc's
internal overhead when calculating the initial malloc maximum.

12 years agoPort --enable-checking=all to Fedora 14 x86.
Paul Eggert [Fri, 30 Sep 2011 03:25:46 +0000 (20:25 -0700)]
Port --enable-checking=all to Fedora 14 x86.

* alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE):
Move to lisp.h.
(xmalloc_put_size, xmalloc_get_size, overrun_check_malloc)
(overrun_check_realloc, overrun_check_free):
Use XMALLOC_OVERRUN_SIZE_SIZE, not sizeof (size_t).
That way, xmalloc returns a properly-aligned pointer even if
XMALLOC_OVERRUN_CHECK is defined.  The old debugging code happened
to align OK on typical 64-bit hosts, but not on Fedora 14 x86.
* charset.c (syms_of_charset): Take XMALLOC_OVERRUN_CHECK_OVERHEAD
into account when calculating the initial malloc maximum.
* lisp.h (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE):
Move here from alloc.c, so that charset.c can use it too.
Properly align; the old code wasn't right for common 32-bit hosts
when configured with --enable-checking=all.
(XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT)
(XMALLOC_OVERRUN_SIZE_SIZE): New macros.

12 years agoAdd a few more MS-DOS specific files to .bzrignore.
Eli Zaretskii [Thu, 29 Sep 2011 14:17:42 +0000 (17:17 +0300)]
Add a few more MS-DOS specific files to .bzrignore.

 .bzrignore: Add lib/SYS, lib/alloca.in-h, lib/signal.in-h.

12 years agoFix bug #9607 with vertical motion when auto-hscroll-mode is disabled.
Eli Zaretskii [Thu, 29 Sep 2011 13:03:42 +0000 (16:03 +0300)]
Fix bug #9607 with vertical motion when auto-hscroll-mode is disabled.

 lisp/simple.el (line-move): If auto-hscroll-mode is disabled and the
 window is hscrolled, move by logical lines.
 (line-move-visual): Update the doc string to the above effect.

12 years agoFix ChangeLog entry for the last commit.
Eli Zaretskii [Thu, 29 Sep 2011 12:18:08 +0000 (15:18 +0300)]
Fix ChangeLog entry for the last commit.

12 years agoFix the MSDOS build due to recent changes.
Eli Zaretskii [Thu, 29 Sep 2011 12:13:54 +0000 (15:13 +0300)]
Fix the MSDOS build due to recent changes.

 msdos/mainmake.v2 (boot): Condition the value on the existence of
 autogen/README, not admin/admin.el, since the latter is now part
 of the release tarball.
 (install): Don't copy lib-src/fns.el, as that file is no longer
 generated in that directory.
 msdos/sed1v2.inp (LIB_PTHREAD, LIB_PTHREAD_SIGMASK): Edit to empty.
 (SETTINGS_CFLAGS, SETTINGS_LIBS): Edit these instead of
 GCONF_CFLAGS and GCONF_LIBS.
 msdos/sedlibmk.inp (ALLOCA_H, AR, ARFLAGS, GNULIB_CHDIR, GNULIB_DUP)
 (GNULIB_FDATASYNC, GNULIB_FDOPEN, GNULIB_FSTAT, GNULIB_PCLOSE)
 (GNULIB_PTHREAD_SIGMASK, GNULIB_RAISE, GNULIB_SIGACTION)
 (GNULIB_SIGPROCMASK, GNULIB_SIGNAL_H_SIGPIPE, HAVE_FDATASYNC)
 (HAVE_PCLOSE, HAVE_POPEN, HAVE_POSIX_SIGNALBLOCKING)
 (HAVE_PTHREAD_SIGMASK, HAVE_RAISE, HAVE_SIGACTION)
 (HAVE_SIGHANDLER_T, HAVE_SIGINFO_T, HAVE_SIGSET_T)
 (HAVE_STRUCT_SIGACTION_SA_SIGACTION)
 (HAVE_TYPE_VOLATILE_SIG_ATOMIC_T, LIB_PTHREAD)
 (LIB_PTHREAD_SIGMASK, NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H)
 (NEXT_SIGNAL_H, REPLACE_FDOPEN, REPLACE_PTHREAD_SIGMASK)
 (REPLACE_RAISE): New edits.
 (gl_LIBOBJS): Remove md5.o, filemode.o, and sha1.o.  Add
 pthread_sigmask.o.
 (@GL_GENERATE_ALLOCA_H_TRUE@, @GL_GENERATE_ALLOCA_H_FALSE@): Edit
 to comment out unneeded lines.
 (warn-on-use.h): Edit the recipe commands to work with DJGPP
 without requiring a Unixy shell.
 msdos/inttypes.h (strtoimax) [DJGPP < 2.04]: New macro.
 msdos/sed2v2.inp (HAVE_ALLOCA, HAVE_DECL_STRTOLL, HAVE_DECL_STRTOIMAX)
 (HAVE_STRTOLL, HAVE_SIGSET_T, HAVE_SNPRINTF): New edits.

 .bzrignore: Add ./GNUmakefile.unix.
 config.bat: Rename GNUmakefile, so it is not run on MS-DOS.
 Rename signal.in.h and alloca.in.h.

 src/sysdep.c (snprintf) [EOVERFLOW]: If EOVERFLOW is not defined,
 use EDOM.

12 years agoRestore GNUmakefile. Fix capitalization in config.bat.
Eli Zaretskii [Thu, 29 Sep 2011 12:08:36 +0000 (15:08 +0300)]
Restore GNUmakefile.  Fix capitalization in config.bat.

12 years agoFix the MSDOS build.
Eli Zaretskii [Thu, 29 Sep 2011 12:00:18 +0000 (15:00 +0300)]
Fix the MSDOS build.

 msdos/mainmake.v2 (boot): Condition the value on the existence of
 autogen/README, not admin/admin.el, since the latter is now part
 of the release tarball.
 (install): Don't copy lib-src/fns.el, as that file is no longer
 generated in that directory.
 msdos/sed1v2.inp (LIB_PTHREAD, LIB_PTHREAD_SIGMASK): Edit to empty.
 (SETTINGS_CFLAGS, SETTINGS_LIBS): Edit these instead of
 GCONF_CFLAGS and GCONF_LIBS.
 msdos/sedlibmk.inp (ALLOCA_H, AR, ARFLAGS, GNULIB_CHDIR, GNULIB_DUP)
 (GNULIB_FDATASYNC, GNULIB_FDOPEN, GNULIB_FSTAT, GNULIB_PCLOSE)
 (GNULIB_PTHREAD_SIGMASK, GNULIB_RAISE, GNULIB_SIGACTION)
 (GNULIB_SIGPROCMASK, GNULIB_SIGNAL_H_SIGPIPE, HAVE_FDATASYNC)
 (HAVE_PCLOSE, HAVE_POPEN, HAVE_POSIX_SIGNALBLOCKING)
 (HAVE_PTHREAD_SIGMASK, HAVE_RAISE, HAVE_SIGACTION)
 (HAVE_SIGHANDLER_T, HAVE_SIGINFO_T, HAVE_SIGSET_T)
 (HAVE_STRUCT_SIGACTION_SA_SIGACTION)
 (HAVE_TYPE_VOLATILE_SIG_ATOMIC_T, LIB_PTHREAD)
 (LIB_PTHREAD_SIGMASK, NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H)
 (NEXT_SIGNAL_H, REPLACE_FDOPEN, REPLACE_PTHREAD_SIGMASK)
 (REPLACE_RAISE): New edits.
 (gl_LIBOBJS): Remove md5.o, filemode.o, and sha1.o.  Add
 pthread_sigmask.o.
 (@GL_GENERATE_ALLOCA_H_TRUE@, @GL_GENERATE_ALLOCA_H_FALSE@): Edit
 to comment out unneeded lines.
 (warn-on-use.h): Edit the recipe commands to work with DJGPP
 without requiring a Unixy shell.
 msdos/inttypes.h (strtoimax) [DJGPP < 2.04]: New macro.
 msdos/sed2v2.inp (HAVE_ALLOCA, HAVE_DECL_STRTOLL, HAVE_DECL_STRTOIMAX)
 (HAVE_STRTOLL, HAVE_SIGSET_T, HAVE_SNPRINTF): New edits.

 .bzrignore: Add ./GNUMakefile.unix.
 config.bat: Rename GNUMakefile, so it is not run on MS-DOS.
 Rename signal.in.h and alloca.in.h.

 src/sysdep.c (snprintf) [EOVERFLOW]: If EOVERFLOW is not defined,
 use EDOM.

12 years agoIn display-buffer-record-window call point for selected window. (Bug#9626)
Martin Rudalics [Thu, 29 Sep 2011 09:20:45 +0000 (11:20 +0200)]
In display-buffer-record-window call point for selected window.  (Bug#9626)

* window.el (display-buffer-record-window): When WINDOW is the
selected window use `point' instead of `window-point'.  (Bug#9626)

12 years agoIn command-line-1 insert initial-scratch-message before markers (Bug#9605).
Martin Rudalics [Thu, 29 Sep 2011 08:16:15 +0000 (10:16 +0200)]
In command-line-1 insert initial-scratch-message before markers (Bug#9605).

* startup.el (command-line-1): Use insert-before-markers when
inserting initial-scratch-message.  (Bug#9605)
* help.el (help-window): Remove variable.

12 years ago* lisp/pcmpl-cvs.el (pcomplete/cvs): Add "status" handler.
Glenn Morris [Thu, 29 Sep 2011 07:21:06 +0000 (00:21 -0700)]
* lisp/pcmpl-cvs.el (pcomplete/cvs): Add "status" handler.

12 years agolisp/descr-text.el (describe-char-categories): Accept multiline descriptions.
Juanma Barranquero [Thu, 29 Sep 2011 00:12:44 +0000 (02:12 +0200)]
lisp/descr-text.el (describe-char-categories): Accept multiline descriptions.

12 years ago* simple.el (delete-trailing-whitespace): Fix last change.
Stefan Monnier [Wed, 28 Sep 2011 20:50:16 +0000 (16:50 -0400)]
* simple.el (delete-trailing-whitespace): Fix last change.

12 years agoINSTALL: Mention that m17n libraries and libotf are needed for Arabic shaping.
Eli Zaretskii [Wed, 28 Sep 2011 17:49:09 +0000 (20:49 +0300)]
INSTALL: Mention that m17n libraries and libotf are needed for Arabic shaping.

12 years agoFix bug #9624 with crashes in Muse mode.
Eli Zaretskii [Wed, 28 Sep 2011 14:37:27 +0000 (17:37 +0300)]
Fix bug #9624 with crashes in Muse mode.

 src/xdisp.c (compute_display_string_end): If there's no display
 string at CHARPOS, return -1.
 src/bidi.c (bidi_fetch_char): When compute_display_string_end
 returns a negative value, treat the character as a normal
 character not covered by a display string.

12 years agognus-uu.el (gnus-uu-grab-articles): Require gnus-async so that `gnus-asynchronous...
Lars Magne Ingebrigtsen [Wed, 28 Sep 2011 09:03:55 +0000 (09:03 +0000)]
gnus-uu.el (gnus-uu-grab-articles): Require gnus-async so that `gnus-asynchronous' isn't shadowed.

12 years ago* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Stefan Monnier [Wed, 28 Sep 2011 02:19:56 +0000 (22:19 -0400)]
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Don't confuse "y => 3" as the beginning of a `y' operation.

12 years ago* lisp/emacs-lisp/debug.el (debug-convert-byte-code): Don't assume the
Stefan Monnier [Wed, 28 Sep 2011 01:20:41 +0000 (21:20 -0400)]
* lisp/emacs-lisp/debug.el (debug-convert-byte-code): Don't assume the
object has more than 4 slots.

Fixes: debbugs:9613

12 years agoFix typos.
Juanma Barranquero [Wed, 28 Sep 2011 00:59:28 +0000 (02:59 +0200)]
Fix typos.

12 years agoMove test/newsticker-testsuite.el to automated/newsticker-tests.el
Ulf Jasper [Tue, 27 Sep 2011 19:08:40 +0000 (21:08 +0200)]
Move test/newsticker-testsuite.el to automated/newsticker-tests.el

2011-09-27  Ulf Jasper  <ulf.jasper@web.de>

* automated/newsticker-tests.el: Move newsticker-testsuite.el
to automated/newsticker-tests.el. Convert to ERT.

12 years agoMove test/newsticker-testsuite.el to automated/newsticker-tests.el
Ulf Jasper [Tue, 27 Sep 2011 18:52:00 +0000 (20:52 +0200)]
Move test/newsticker-testsuite.el to automated/newsticker-tests.el

2011-09-27  Ulf Jasper  <ulf.jasper@web.de>

* automated/newsticker-tests.el: Move newsticker-testsuite.el
to automated/newsticker-tests.el. Convert to ERT.

12 years agoImprove doc strings for completion styles.
Eli Zaretskii [Tue, 27 Sep 2011 18:51:05 +0000 (21:51 +0300)]
Improve doc strings for completion styles.

 lisp/minibuffer.el (completion-styles)
 (completion-category-overrides): Cross reference each other in doc
 strings.

12 years agopcmpl-cvs.el fix for bug#9606
Glenn Morris [Tue, 27 Sep 2011 18:09:43 +0000 (14:09 -0400)]
pcmpl-cvs.el fix for bug#9606

* lisp/pcmpl-cvs.el (pcmpl-cvs-entries): Update for Emacs 22.1 changes
to split-string.

12 years ago* mail/smtpmail.el (smtpmail-via-smtp): Fix STARTTLS detection.
Lars Magne Ingebrigtsen [Tue, 27 Sep 2011 17:45:18 +0000 (19:45 +0200)]
* mail/smtpmail.el (smtpmail-via-smtp): Fix STARTTLS detection.

Fixes: debbugs:9615

12 years agoFix bug #9610 with slow cursor motion in buffers with invisible text.
Eli Zaretskii [Tue, 27 Sep 2011 17:18:31 +0000 (20:18 +0300)]
Fix bug #9610 with slow cursor motion in buffers with invisible text.

 src/xdisp.c (handle_invisible_prop): If invisible text ends on a
 newline, reseat the iterator instead of bidi-iterating there one
 character at a time.  (Bug#9610)
 (BUFFER_POS_REACHED_P, move_it_in_display_line_to): Bail when past
 TO_CHARPOS if the bidi iterator is at base embedding level.

12 years agoForce left-to-right paragraphs in Org buffers.
Eli Zaretskii [Tue, 27 Sep 2011 16:46:17 +0000 (19:46 +0300)]
Force left-to-right paragraphs in Org buffers.

 lisp/org/org.el (org-mode): Force left-to-right paragraphs in Org
 buffers.  For a related discussions, see
 https://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00349.html.

12 years ago* lisp/emacs-lisp/package.el (list-packages): Fix echo area message.
Chong Yidong [Tue, 27 Sep 2011 15:58:13 +0000 (11:58 -0400)]
* lisp/emacs-lisp/package.el (list-packages): Fix echo area message.

12 years agoAuto-commit of generated files.
Glenn Morris [Tue, 27 Sep 2011 10:19:42 +0000 (06:19 -0400)]
Auto-commit of generated files.

12 years agoAccept cons cell HIST arg in ido-read-internal
Leo Liu [Tue, 27 Sep 2011 09:28:03 +0000 (17:28 +0800)]
Accept cons cell HIST arg in ido-read-internal