bpt/emacs.git
12 years agoDocument that UNICOWS.DLL is required to run Emacs on Windows 9X.
Eli Zaretskii [Fri, 28 Oct 2011 15:03:13 +0000 (17:03 +0200)]
Document that UNICOWS.DLL is required to run Emacs on Windows 9X.

 nt/README.W32: Mention UNICOWS.DLL as prerequisite for running
 Emacs on Windows 9X.
 admin/nt/README-ftp-server: Mention UNICOWS.DLL as prerequisite for
 running Emacs on Windows 9X.

Fixes: debbugs:8562

12 years ago* net/rcirc.el (rcirc-mode): Use hard newlines.
Deniz Dogan [Fri, 28 Oct 2011 14:47:50 +0000 (16:47 +0200)]
* net/rcirc.el (rcirc-mode): Use hard newlines.

12 years ago* src/window.c (make_window): Initialize phys_cursor_on_p.
Dan Nicolaescu [Fri, 28 Oct 2011 14:34:06 +0000 (08:34 -0600)]
* src/window.c (make_window): Initialize phys_cursor_on_p.

12 years agoMerge
Alan Mackenzie [Fri, 28 Oct 2011 14:02:04 +0000 (14:02 +0000)]
Merge

12 years agoMerge in random stuff from savannah.
Alan Mackenzie [Fri, 28 Oct 2011 13:56:09 +0000 (13:56 +0000)]
Merge in random stuff from savannah.

12 years ago* src/lisp.h (struct Lisp_Symbol): Update comments.
Stefan Monnier [Fri, 28 Oct 2011 13:48:19 +0000 (09:48 -0400)]
* src/lisp.h (struct Lisp_Symbol): Update comments.

12 years agosrc/w32font.c (w32_load_unicows_or_gdi32): Add missing return.
Juanma Barranquero [Fri, 28 Oct 2011 10:59:24 +0000 (12:59 +0200)]
src/w32font.c (w32_load_unicows_or_gdi32): Add missing return.

12 years agoFix bug #8562 with Emacs display on Windows 9X.
Eli Zaretskii [Fri, 28 Oct 2011 09:54:02 +0000 (11:54 +0200)]
Fix bug #8562 with Emacs display on Windows 9X.
Thanks to oslsachem <oslsachem@gmail.com> for helping to debug this.

 src/w32font.c (g_b_init_is_w9x, g_b_init_get_outline_metrics_w)
 (g_b_init_get_text_metrics_w, g_b_init_get_glyph_outline_w)
 (g_b_init_get_glyph_outline_w): New static variables.
 (GetOutlineTextMetricsW_Proc, GetTextMetricsW_Proc)
 (GetGlyphOutlineW_Proc): New typedefs.
 (w32_load_unicows_or_gdi32, get_outline_metrics_w)
 (get_text_metrics_w, get_glyph_outline_w, globals_of_w32font): New
 functions.
 (w32font_open_internal, compute_metrics): Call
 get_outline_metrics_w, get_text_metrics_w, and get_glyph_outline_w
 instead of calling the "wide" APIs directly.
 src/emacs.c (main) [HAVE_NTGUI]: Call globals_of_w32font.
 src/w32.h (syms_of_w32font): Add prototype.

12 years ago* lisp/vc/log-edit.el: Fill empty field rather than adding new one.
Stefan Monnier [Fri, 28 Oct 2011 02:50:05 +0000 (22:50 -0400)]
* lisp/vc/log-edit.el: Fill empty field rather than adding new one.
(log-edit-add-field): New function.
(log-edit-insert-changelog): Use it.

12 years ago* lisp/mail/rmail.el (rmail-mode-map): Add M-C-f as in rmailsum.
Mark Lillibridge [Fri, 28 Oct 2011 02:47:43 +0000 (22:47 -0400)]
* lisp/mail/rmail.el (rmail-mode-map): Add M-C-f as in rmailsum.

Fixes: debbugs:9802

12 years ago* lisp/progmodes/gdb-mi.el: Warn the user when -i=mi is missing.
Stefan Monnier [Fri, 28 Oct 2011 02:22:38 +0000 (22:22 -0400)]
* lisp/progmodes/gdb-mi.el: Warn the user when -i=mi is missing.
(gdb--check-interpreter): New function.
(gdb): Use it.

12 years agoAmend to indent and fontify macros "which include their own semicolon"
Alan Mackenzie [Thu, 27 Oct 2011 20:34:23 +0000 (20:34 +0000)]
Amend to indent and fontify macros "which include their own semicolon"
correctly, using the "virtual semicolon" mechanism.

cc-defs.el: Update "virtual semicolon" comments.

cc-engine.el (c-crosses-statement-barrier-p): Recoded to scan one line at
at time rather than having \n and \r explicitly in c-stmt-delim-chars
(for some modes, e.g. AWK).
(c-forward-label): Amend for virtual semicolons.
(c-at-macro-vsemi-p, c-macro-vsemi-status-unknown-p): New functions

cc-fonts.el (c-font-lock-declarations): Take account of the new C macros.

cc-langs.el (c-at-vsemi-p-fn, c-vsemi-status-unknown-p-fn): move to
earlier in the file.
(c-opt-cpp-symbol, c-line-comment-start-regexp): New language variables.
(c-opt-cpp-macro-define): Make into a full language variable.
(c-stmt-delim-chars, c-stmt-delim-chars-with-comma): Special value for
AWK Mode (including \n, \r) removed, no longer needed.

cc-mode.el (c-mode, c++-mode, objc-mode): Invoke
c-make-macro-with-semi-re.

cc-vars.el (c-macro-with-semi-re, c-macro-names-with-semicolon): New
variables.
(c-make-macro-with-semi-re): New function

cc-mode.texi (Indentation Commands): Mention "macros with semicolons".
(Other Special Indentations): Add an xref to "Macros with ;".
(Customizing Macros): Add stuff about syntax in macros.  Add an xref to
"Macros with ;".
(Macros with ;): New page.

12 years ago* lisp/emacs-lisp/cl.el (most-negative-float): Fix doc typo.
Glenn Morris [Thu, 27 Oct 2011 19:38:35 +0000 (15:38 -0400)]
* lisp/emacs-lisp/cl.el (most-negative-float): Fix doc typo.

12 years agosrc/window.c: Fix typos in docstrings.
Juanma Barranquero [Thu, 27 Oct 2011 14:35:51 +0000 (16:35 +0200)]
src/window.c: Fix typos in docstrings.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 27 Oct 2011 10:22:00 +0000 (06:22 -0400)]
Auto-commit of loaddefs files.

12 years agoMore gnutls memory fixes.
Chong Yidong [Thu, 27 Oct 2011 08:07:28 +0000 (16:07 +0800)]
More gnutls memory fixes.

* src/gnutls.c (emacs_gnutls_deinit): Deinit the gnutls_state if it is
non-NULL, regardless of GNUTLS_INITSTAGE.
(Fgnutls_boot): Cleanups.  Call emacs_gnutls_deinit if we signal
an error.  Set process slots as soon as we allocate them.

* src/gnutls.h (GNUTLS_LOG, GNUTLS_LOG2): Fix macros.

* src/process.c (make_process): Set gnutls_state to NULL.

12 years agoAdd doc-strings to some cl float parameters.
Glenn Morris [Thu, 27 Oct 2011 07:21:00 +0000 (00:21 -0700)]
Add doc-strings to some cl float parameters.

* lisp/emacs-lisp/cl-extra.el (cl-float-limits): Add doc string.
* lisp/emacs-lisp/cl.el (most-positive-float, most-negative-float)
(least-positive-float, least-negative-float)
(least-positive-normalized-float, least-negative-normalized-float)
(float-epsilon, float-negative-epsilon): Add doc-strings,
based on those in cl.texi.

* lisp/emacs-lisp/cl-extra.el (most-positive-float, most-negative-float)
(least-positive-float, least-negative-float)
(least-positive-normalized-float, least-negative-normalized-float)
(float-epsilon, float-negative-epsilon):
Remove unnecessary declarations.

12 years agoMake set-visited-file-name reload local variables if needed.
Glenn Morris [Thu, 27 Oct 2011 06:38:32 +0000 (23:38 -0700)]
Make set-visited-file-name reload local variables if needed.

* lisp/files.el (set-visited-file-name):
If the major-mode changed, reload the local variables.

Fixes: debbugs:9796

12 years agoFix a memory leak in the built-in GnuTLS support.
Chong Yidong [Thu, 27 Oct 2011 06:07:09 +0000 (14:07 +0800)]
Fix a memory leak in the built-in GnuTLS support.
* src/gnutls.c (emacs_gnutls_deinit): New function.  Deallocate
credentials structures as well as calling gnutls_deinit.
(Fgnutls_deinit, Fgnutls_boot): Use it.

* src/process.c (make_process): Initialize GnuTLS credentials to NULL.
(deactivate_process): Call emacs_gnutls_deinit.

12 years agoReplace fundamental-mode-hook with change-major-mode-after-body-hook.
Chong Yidong [Thu, 27 Oct 2011 03:01:40 +0000 (11:01 +0800)]
Replace fundamental-mode-hook with change-major-mode-after-body-hook.

* lisp/simple.el (fundamental-mode):
* lisp/emacs-lisp/derived.el (define-derived-mode): Revert 2010-04-28
change introducing fundamental-mode-hook.

* lisp/subr.el (change-major-mode-after-body-hook): New hook.
(run-mode-hooks): Run it.

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Use
change-major-mode-before-body-hook.

12 years agosrc/image.c, src/w32*.c, lib-src/emacsclient.c: Silence warnings under -Wall.
Juanma Barranquero [Thu, 27 Oct 2011 00:59:21 +0000 (02:59 +0200)]
src/image.c, src/w32*.c, lib-src/emacsclient.c: Silence warnings under -Wall.

12 years ago* lisp/gnus/message.el: Don't insert TAB in headers with completion.
Stefan Monnier [Wed, 26 Oct 2011 17:27:51 +0000 (13:27 -0400)]
* lisp/gnus/message.el: Don't insert TAB in headers with completion.
(message-completion-function): Don't fallback on message-tab-body-function
when message-completion-alist fails to find a completion.

Fixes: debbugs:9158

12 years agoFix typos.
Juanma Barranquero [Wed, 26 Oct 2011 14:07:31 +0000 (16:07 +0200)]
Fix typos.

12 years ago* lisp/term/w32-win.el (w32-default-color-map): Declare obsolete.
Juanma Barranquero [Wed, 26 Oct 2011 13:42:33 +0000 (15:42 +0200)]
* lisp/term/w32-win.el (w32-default-color-map): Declare obsolete.

* src/w32fns.c (w32_default_color_map): New function, extracted from
  Fw32_default_color_map.
  (Fw32_default_color_map, Fx_open_connection): Use it.

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

12 years agomml.el: Support quoting <#secure> tag.
Daiki Ueno [Wed, 26 Oct 2011 09:25:34 +0000 (09:25 +0000)]
mml.el: Support quoting <#secure> tag.

12 years ago* ido.el (ido-file-name-all-completions-1): Do not require
Michael Albinus [Wed, 26 Oct 2011 08:42:22 +0000 (10:42 +0200)]
* ido.el (ido-file-name-all-completions-1): Do not require
tramp.el explicitely.  (Bug#7583)

12 years ago* lisp/progmodes/octave-*.el: Update maintainer.
Stefan Monnier [Wed, 26 Oct 2011 01:18:13 +0000 (21:18 -0400)]
* lisp/progmodes/octave-*.el: Update maintainer.

12 years ago* doc/emacs/modes.texi (Running Hooks): Document with-wrapper-hook.
Chong Yidong [Wed, 26 Oct 2011 00:47:58 +0000 (08:47 +0800)]
* doc/emacs/modes.texi (Running Hooks): Document with-wrapper-hook.

12 years agoDocument with-wrapper-hook.
Chong Yidong [Wed, 26 Oct 2011 00:44:06 +0000 (08:44 +0800)]
Document with-wrapper-hook.

* doc/emacs/modes.texi (Running Hooks): Document with-wrapper-hook.

* lisp/subr.el (with-wrapper-hook): Rewrite doc.

12 years ago* configure.in: Respect MAKE env-var. (Bug#9868, part 2)
Paul Eggert [Tue, 25 Oct 2011 20:46:31 +0000 (13:46 -0700)]
* configure.in: Respect MAKE env-var.  (Bug#9868, part 2)

12 years agoDon't put INSTALL into w32 binary distributions. (Bug#9861)
Eli Zaretskii [Tue, 25 Oct 2011 16:54:19 +0000 (18:54 +0200)]
Don't put INSTALL into w32 binary distributions.  (Bug#9861)

 nt/makefile.w32-in (dist): Don't put the top-level INSTALL into the
 distribution.

12 years ago* configure.in (HAVE_GNU_MAKE): Respect MAKE env-var. (tiny change)
Nali Toja [Tue, 25 Oct 2011 16:41:26 +0000 (09:41 -0700)]
* configure.in (HAVE_GNU_MAKE): Respect MAKE env-var.  (tiny change)

Fixes: debbugs:9868

12 years ago* dispextern.h (Fcontrolling_tty_p): New decl (Bug#6649 part 2).
Paul Eggert [Tue, 25 Oct 2011 16:36:20 +0000 (09:36 -0700)]
* dispextern.h (Fcontrolling_tty_p): New decl (Bug#6649 part 2).

12 years agoMake function-key-map apply when key is bound to `undefined'.
Stefan Monnier [Tue, 25 Oct 2011 12:54:04 +0000 (08:54 -0400)]
Make function-key-map apply when key is bound to `undefined'.
* src/keyboard.c (test_undefined): New function.
(read_key_sequence): Use it to detect when a key is bound to `undefined'.

Fixes: debbugs:9751

12 years ago* net/tramp-sh.el (tramp-sh-handle-file-directory-p): Return t for
Michael Albinus [Tue, 25 Oct 2011 12:50:03 +0000 (14:50 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-directory-p): Return t for
filenames "/method:foo:".

12 years ago* comint.el (comint-get-old-input-default): Fix thinko in last change.
Stefan Monnier [Tue, 25 Oct 2011 12:33:31 +0000 (08:33 -0400)]
* comint.el (comint-get-old-input-default): Fix thinko in last change.

Fixes: debbugs:9865

12 years ago* abbrevs.texi (Saving Abbrevs): quietly-read-abbrev-file is not a command.
Glenn Morris [Tue, 25 Oct 2011 07:25:45 +0000 (00:25 -0700)]
* abbrevs.texi (Saving Abbrevs): quietly-read-abbrev-file is not a command.

Fixes: debbugs:9866

12 years ago* sysdep.c (init_sys_modes): Fix the check for the controlling terminal.
Enami Tsugutomo [Tue, 25 Oct 2011 04:27:47 +0000 (12:27 +0800)]
* sysdep.c (init_sys_modes): Fix the check for the controlling terminal.

Fixes: debbugs:6649

12 years ago* INSTALL: Update URL for GTK download page.
Christoph Scholtes [Tue, 25 Oct 2011 02:33:24 +0000 (20:33 -0600)]
* INSTALL: Update URL for GTK download page.

12 years ago* lisp/comint.el (comint-get-old-input-default): Fix use-prompt-regexp case.
Stefan Monnier [Tue, 25 Oct 2011 02:19:17 +0000 (22:19 -0400)]
* lisp/comint.el (comint-get-old-input-default): Fix use-prompt-regexp case.

Fixes: debbugs:9865

12 years agolisp/facemenu.el: Slightly expand a comment in `list-colors-duplicates'.
Juanma Barranquero [Mon, 24 Oct 2011 19:29:19 +0000 (21:29 +0200)]
lisp/facemenu.el: Slightly expand a comment in `list-colors-duplicates'.

12 years ago* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix. (Bug#9819)
Glenn Morris [Mon, 24 Oct 2011 17:37:03 +0000 (13:37 -0400)]
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.  (Bug#9819)

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

12 years ago* notifications.el: Add the requirement of a running D-Bus session
Michael Albinus [Mon, 24 Oct 2011 08:02:02 +0000 (10:02 +0200)]
* notifications.el: Add the requirement of a running D-Bus session
bus to the Commentary.

12 years ago* lisp/isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
Juri Linkov [Mon, 24 Oct 2011 05:56:04 +0000 (08:56 +0300)]
* lisp/isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
`search-whitespace-regexp' only when `isearch-regexp' is non-nil.

Fixes: debbugs:9364

12 years ago* lisp/info.el (Info-following-node-name-re): Add newline to the list
Juri Linkov [Mon, 24 Oct 2011 05:47:05 +0000 (08:47 +0300)]
* lisp/info.el (Info-following-node-name-re): Add newline to the list
of allowed characters for leading space.

Fixes: debbugs:9824

12 years ago* lisp/progmodes/octave-inf.el (inferior-octave-mode-map): Fix C-c C-h binding.
Stefan Monnier [Mon, 24 Oct 2011 02:56:59 +0000 (22:56 -0400)]
* lisp/progmodes/octave-inf.el (inferior-octave-mode-map): Fix C-c C-h binding.
* lisp/progmodes/octave-mod.el (octave-help): Remove.

12 years ago* configure.in (LIB_PTHREAD): Prepend -lpthread to LIBS (Bug#9852)
Paul Eggert [Mon, 24 Oct 2011 02:40:23 +0000 (19:40 -0700)]
* configure.in (LIB_PTHREAD): Prepend -lpthread to LIBS (Bug#9852)

if the library is found.  Otherwise, later configure-time tests,
such as the test for pthread_sigmask, generate the wrong results
on some platforms.  Problem reported for FreeBSD by Nali Toja.

12 years ago* subr.el (apply-partially): Remove redundant comment.
Stefan Monnier [Mon, 24 Oct 2011 02:03:24 +0000 (22:03 -0400)]
* subr.el (apply-partially): Remove redundant comment.

12 years agoDocument scroll-up-line and scroll-down-line in Emacs manual.
Chong Yidong [Mon, 24 Oct 2011 02:01:54 +0000 (10:01 +0800)]
Document scroll-up-line and scroll-down-line in Emacs manual.

* doc/emacs/display.texi (Scrolling): Document scroll-up-line and
scroll-down-line.  Document scroll-command property.
(Recentering): New node, split off from Scrolling.

Also, minor copyedits to standardize on the phrase "key binding"
rather than "keybinding" in the manual.

12 years agoSync with Tramp 2.2.3.
Michael Albinus [Sun, 23 Oct 2011 16:08:19 +0000 (18:08 +0200)]
Sync with Tramp 2.2.3.

* trampver.texi: Update release number.

12 years agoSync with Tramp 2.2.3.
Michael Albinus [Sun, 23 Oct 2011 15:59:54 +0000 (17:59 +0200)]
Sync with Tramp 2.2.3.

* net/tramp-cache.el (top): Pacify byte-compiler using
`init-file-user' and `site-run-file'.

* net/trampver.el: Update release number.

12 years agoDocument scroll bar changes in Emacs manual.
Chong Yidong [Sun, 23 Oct 2011 14:57:53 +0000 (22:57 +0800)]
Document scroll bar changes in Emacs manual.

* doc/emacs/buffers.texi (Misc Buffer): Don't mention vc-toggle-read-only.

* doc/emacs/frames.texi (Scroll Bars): GTK uses right scroll bars now.
(Tool Bars): Copyedits.

12 years agoMake vc-toggle-read-only an alias for toggle-read-only.
Chong Yidong [Sun, 23 Oct 2011 03:38:23 +0000 (11:38 +0800)]
Make vc-toggle-read-only an alias for toggle-read-only.

It hasn't worked in a VC sense since 2008-05-02T07:12:59Z!esr@snark.thyrsus.com, though this was
not documented at the time (grr).

* lisp/vc/vc-hooks.el (vc-toggle-read-only): Make it an obsolete alias
for toggle-read-only.  Note that this hasn't called vc-next-action
since 2008-05-02, though it wasn't documented at the time.

* lisp/files.el (toggle-read-only): Remove obsolete comment about
version control.

* doc/emacs/buffers.texi (Misc Buffer): Don't mention vc-toggle-read-only.

* lisp/cedet/ede.el (ede-maybe-checkout): Function deleted;
vc-toggle-read-only does not do version control now.

* lisp/cedet/ede/project-am.el (project-remove-file, project-add-file)
(project-new-target): Don't call ede-maybe-checkout.

* lisp/cedet/ede/util.el (ede-make-buffer-writable): Don't use
vc-toggle-read-only.

* lisp/vc/ediff-init.el (ediff-toggle-read-only-function): Use
toggle-read-only.

12 years agoIn mouse-drag-line correctly use window-in-direction.
Martin Rudalics [Sat, 22 Oct 2011 17:06:13 +0000 (19:06 +0200)]
In mouse-drag-line correctly use window-in-direction.

12 years ago* doc/emacs/windows.texi (Displaying Buffers): Fix broken lispref link.
Chong Yidong [Sat, 22 Oct 2011 10:57:50 +0000 (18:57 +0800)]
* doc/emacs/windows.texi (Displaying Buffers): Fix broken lispref link.

12 years agoFix bug #9560, sporadic wrong indentation; improve instrumentation of
Alan Mackenzie [Sat, 22 Oct 2011 10:17:25 +0000 (10:17 +0000)]
Fix bug #9560, sporadic wrong indentation; improve instrumentation of
c-parse-state.
cc-engine.el (c-append-lower-brace-pair-to-state-cache): correct faulty
logical expression.

(c-parse-state-state, c-record-parse-state-state):
(c-replay-parse-state-state): New defvar/defuns.
(c-debug-parse-state): Use new functions.

12 years agoFix minibuffer resizing.
Martin Rudalics [Sat, 22 Oct 2011 09:43:09 +0000 (11:43 +0200)]
Fix minibuffer resizing.

* mouse.el (mouse-drag-line): Fix minibuffer resizing broken by
last change.

12 years agoFix bugs #641 and #9794 with %Z and current-time-zone on w32.
Eli Zaretskii [Sat, 22 Oct 2011 09:17:01 +0000 (11:17 +0200)]
Fix bugs #641 and #9794 with %Z and current-time-zone on w32.

 nt/config.nt (HAVE_TZNAME, HAVE_DECL_TZNAME): Define.

12 years agoReorganize confirm-nonexistent-file-or-buffer documentation in Emacs manual.
Chong Yidong [Sat, 22 Oct 2011 01:17:33 +0000 (09:17 +0800)]
Reorganize confirm-nonexistent-file-or-buffer documentation in Emacs manual.

* doc/emacs/buffers.texi (Buffers): Tweak mention of mail buffer name.
(Select Buffer): Move confirmation discussion to Minibuffer Exit.

* doc/emacs/files.texi (File Names, Visiting): Move detailed discussion of
minibuffer confirmation to Minibuffer Exit.

* doc/emacs/mini.texi (Minibuffer Exit): Rename from Strict Completion.
Move confirm-nonexistent-file-or-buffer discussion here.

12 years agoFix for 2011-10-21T02:23:59Z!cyd@gnu.org.
Chong Yidong [Fri, 21 Oct 2011 14:48:39 +0000 (22:48 +0800)]
Fix for 2011-10-21T02:23:59Z!cyd@gnu.org.

* lisp/progmodes/idlwave.el (idlwave-mode):
* lisp/progmodes/vera-mode.el (vera-mode): No need to set
require-final-newline; that's done in prog-mode.  Suggested by
Stefan Monnier.

12 years agoUpdate Files chapter of Emacs manual.
Chong Yidong [Fri, 21 Oct 2011 14:45:34 +0000 (22:45 +0800)]
Update Files chapter of Emacs manual.
Plus miscellaneous minor speling fixes in other manual files.

* doc/emacs/files.texi (File Names, Visiting, Interlocking): Copyedits.
(Backup Copying): backup-by-copying-when-mismatch is now t.
(Customize Save): Fix description of require-final-newline.
(Reverting): Note that revert-buffer can't be undone.  Mention VC.
(Auto Save Control): Clarify.
(File Archives): Add 7z.
(Remote Files): ange-ftp-make-backup-files defaults to nil.

* doc/emacs/arevert-xtra.texi (Autorevert): Copyedits.

12 years agoetc/PROBLEMS: Mention crashes on MS-Windows when compiled with GCC 4.6.1.
Eli Zaretskii [Fri, 21 Oct 2011 12:29:07 +0000 (14:29 +0200)]
etc/PROBLEMS: Mention crashes on MS-Windows when compiled with GCC 4.6.1.

12 years agoFix and improve mouse-dragging of horizontal/vertical lines.
Martin Rudalics [Fri, 21 Oct 2011 09:15:32 +0000 (11:15 +0200)]
Fix and improve mouse-dragging of horizontal/vertical lines.

* mouse.el (mouse-drag-window-above)
(mouse-drag-move-window-bottom, mouse-drag-move-window-top)
(mouse-drag-mode-line-1, mouse-drag-header-line)
(mouse-drag-vertical-line-rightward-window): Remove.
(mouse-drag-line): New function.
(mouse-drag-mode-line, mouse-drag-header-line)
(mouse-drag-vertical-line): Call mouse-drag-line.
* window.el (window-at-side-p, windows-at-side): New functions.

12 years agotar-grind-file-mode fix.
Ulrich Mueller [Fri, 21 Oct 2011 06:44:20 +0000 (23:44 -0700)]
tar-grind-file-mode fix.

* lisp/tar-mode.el (tar-grind-file-mode):
Fix handling of setuid/setgid, handle sticky bit.

Fixes: debbugs:9817

12 years agoUse mode-require-final-newline for idlwave.el and vera-mode.el.
Chong Yidong [Fri, 21 Oct 2011 02:23:59 +0000 (22:23 -0400)]
Use mode-require-final-newline for idlwave.el and vera-mode.el.
* progmodes/idlwave.el (idlwave-mode):
* progmodes/vera-mode.el (vera-mode): Use mode-require-final-newline.

12 years ago* test/automated/vc-bzr.el (vc-bzr-test-bug9781): New test.
Glenn Morris [Thu, 20 Oct 2011 22:23:54 +0000 (18:23 -0400)]
* test/automated/vc-bzr.el (vc-bzr-test-bug9781): New test.

12 years ago* lisp/vc/vc.el (vc-next-action): Handle removed directories. (Bug#9781)
Glenn Morris [Thu, 20 Oct 2011 21:01:45 +0000 (17:01 -0400)]
* lisp/vc/vc.el (vc-next-action): Handle removed directories. (Bug#9781)

12 years agosrc/bidi.c: Fix a typo in a comment.
Eli Zaretskii [Thu, 20 Oct 2011 16:37:10 +0000 (18:37 +0200)]
src/bidi.c: Fix a typo in a comment.

12 years agoImprove the speedup of bidi display introduced in 2011-10-18T16:56:09Z!eliz@gnu.org...
Eli Zaretskii [Thu, 20 Oct 2011 12:39:52 +0000 (14:39 +0200)]
Improve the speedup of bidi display introduced in 2011-10-18T16:56:09Z!eliz@gnu.org for bug#9771.

 src/dispextern.h (struct bidi_it): New member next_en_type.
 src/bidi.c (bidi_line_init): Initialize the next_en_type member.
 (bidi_resolve_explicit_1): When next_en_pos is valid for the
 current character, check also for next_en_type being WEAK_EN.
 (bidi_resolve_weak): Don't enter the expensive loop if the current
 position is before next_en_pos.  Record the bidi type of the first
 non-ET, non-BN character we find, in addition to its position.
 (bidi_level_of_next_char): Invalidate next_en_type when
 next_en_pos is over-stepped.

12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 20 Oct 2011 10:20:23 +0000 (06:20 -0400)]
Auto-commit of generated files.

12 years agoTime zone name fixes for non-ASCII locales (Bug#641, Bug#9794)
Paul Eggert [Thu, 20 Oct 2011 06:52:55 +0000 (23:52 -0700)]
Time zone name fixes for non-ASCII locales (Bug#641, Bug#9794)

* configure.in (AC_STRUCT_TM, AC_STRUCT_TIMEZONE, HAVE_TM_GMTOFF):
Remove; no longer needed, now that we defer to strftime for time
zone names.
* src/editfns.c: Rewrite current-time-zone so that it invokes
the equivalent of (format-time-string "%Z") to get the time zone name.
This fixes a bug when the time zone name contains characters that
need converting from the system time locale to Emacs internal format.
This fixes a shortcoming that I introduced in my 1999-10-19 patch:
that patch fixed format-time-string to do the conversion, but
I forgot to fix current-time-zone.
(format_time_string): New function, containing most of
what Fformat_time_string used to contain.
(Fformat_time_string): Rewrite in terms of format_time_string.
This doesn't change this function's behavior.
(current-time-zone): Rewrite to use format_time_string.
This fixes the bug reported by Michael Schierl in
<http://lists.gnu.org/archive/html/emacs-devel/2007-06/msg00334.html>.
Jason Rumney's 2007-06-07 change worked around this bug, but
didn't fix it.
* src/systime.h (tzname, timezone): Remove no-longer-used declarations.

12 years agoFix ChangeLog attribution.
Glenn Morris [Thu, 20 Oct 2011 04:16:51 +0000 (21:16 -0700)]
Fix ChangeLog attribution.

This was clearly a tiny change, ref:
http://article.gmane.org/gmane.emacs.gnus.cvs/8206

12 years agoFix ChangeLog attribution.
Glenn Morris [Thu, 20 Oct 2011 04:09:12 +0000 (21:09 -0700)]
Fix ChangeLog attribution.

All 4 listed authors have assignments, so I am not going to bother
working out precisely who wrote which piece of this.

12 years agoFix ChangeLog attribution.
Glenn Morris [Thu, 20 Oct 2011 04:05:36 +0000 (21:05 -0700)]
Fix ChangeLog attribution.

Ref: http://thread.gmane.org/gmane.emacs.gnus.general/56492/focus=57459

From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Subject: Re: display picons _and_ textual address
Newsgroups: gmane.emacs.gnus.general
Date: 2004-05-18 12:21:19 GMT

12 years agoFix ChangeLog attribution.
Glenn Morris [Thu, 20 Oct 2011 03:58:45 +0000 (20:58 -0700)]
Fix ChangeLog attribution.

Ref: http://thread.gmane.org/gmane.emacs.gnus.general/56861/focus=56907

From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: CRM114 Mailfilter and spam.el
Newsgroups: gmane.emacs.gnus.general
Date: 2004-05-20 18:39:25 GMT

12 years agoFix ChangeLog attribution, add bug ref.
Glenn Morris [Thu, 20 Oct 2011 03:50:14 +0000 (20:50 -0700)]
Fix ChangeLog attribution, add bug ref.

12 years ago* test/automated/vc-bzr.el: New file.
Glenn Morris [Thu, 20 Oct 2011 03:39:45 +0000 (20:39 -0700)]
* test/automated/vc-bzr.el: New file.

12 years ago* emulation/cua-base.el (cua-set-mark): Fix case of string.
Christoph Scholtes [Thu, 20 Oct 2011 01:40:32 +0000 (19:40 -0600)]
* emulation/cua-base.el (cua-set-mark): Fix case of string.

12 years agoAdapt to new minor mode function behavior in manual examples.
Chong Yidong [Thu, 20 Oct 2011 00:41:15 +0000 (20:41 -0400)]
Adapt to new minor mode function behavior in manual examples.

* doc/emacs/custom.texi (Hooks, Init Examples):
* doc/emacs/display.texi (Font Lock):
* doc/emacs/fixit.texi (Spelling):
* doc/emacs/rmail.texi (Rmail Display): Minor mode function with no arg now
enables it.

* doc/emacs/fixit.texi (Spelling): Fix description of inline completion.

12 years agoFix more minor mode docstrings.
Chong Yidong [Thu, 20 Oct 2011 00:26:14 +0000 (20:26 -0400)]
Fix more minor mode docstrings.

* lisp/emulation/cua-base.el (cua-mode):
* lisp/mail/footnote.el (footnote-mode):
* lisp/mail/mailabbrev.el (mail-abbrevs-mode):
* lisp/net/xesam.el (xesam-minor-mode):
* lisp/progmodes/bug-reference.el (bug-reference-mode):
* lisp/progmodes/cap-words.el (capitalized-words-mode):
* lisp/progmodes/compile.el (compilation-minor-mode)
(compilation-shell-minor-mode):
* lisp/progmodes/gud.el (gud-tooltip-mode):
* lisp/progmodes/hideif.el (hide-ifdef-mode):
* lisp/progmodes/idlw-shell.el (idlwave-shell-electric-debug-mode):
* lisp/progmodes/subword.el (subword-mode):
* lisp/progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
* lisp/progmodes/which-func.el (which-function-mode):
* lisp/term/tvi970.el (tvi970-set-keypad-mode):
* lisp/term/vt100.el (vt100-wide-mode):
* lisp/textmodes/flyspell.el (flyspell-mode):
* lisp/textmodes/ispell.el (ispell-minor-mode):
* lisp/textmodes/nroff-mode.el (nroff-electric-mode):
* lisp/textmodes/paragraphs.el (use-hard-newlines):
* lisp/textmodes/refill.el (refill-mode):
* lisp/textmodes/reftex.el (reftex-mode):
* lisp/textmodes/rst.el (rst-minor-mode):
* lisp/textmodes/sgml-mode.el (html-autoview-mode)
(sgml-electric-tag-pair-mode):
* lisp/textmodes/tex-mode.el (latex-electric-env-pair-mode):
* lisp/vc/diff-mode.el (diff-auto-refine-mode, diff-minor-mode):
* lisp/emulation/crisp.el (crisp-mode):
* lisp/emacs-lisp/eldoc.el (eldoc-mode):
* lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode): Doc fixes for new
minor mode behavior.

* lisp/erc/erc-fill.el (erc-fill-mode):
* lisp/erc/erc-track.el (erc-track-minor-mode): Doc fix.

* lisp/erc/erc.el (define-erc-module): Fix autogenerated docstring to
reflect Emacs 24 minor mode changes.

* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Doc fix (in Emacs 24,
calling a minor mode from Lisp with nil arg enables it, so we have to
make the working a bit ambiguous here).

12 years ago* lisp/descr-text.el (describe-char): Add #x2010 and #x2011 to
Juri Linkov [Wed, 19 Oct 2011 22:35:48 +0000 (01:35 +0300)]
* lisp/descr-text.el (describe-char): Add #x2010 and #x2011 to
the list of hard-coded chars with escape-glyph face.

12 years ago* vc/log-edit.el (log-edit-empty-buffer-p): Ignore empty headers.
Stefan Monnier [Wed, 19 Oct 2011 21:43:41 +0000 (17:43 -0400)]
* vc/log-edit.el (log-edit-empty-buffer-p): Ignore empty headers.

12 years ago* net/tramp.el (tramp-connectable-p): Make a stronger check on a
Michael Albinus [Wed, 19 Oct 2011 20:21:35 +0000 (22:21 +0200)]
* net/tramp.el (tramp-connectable-p): Make a stronger check on a
running process.

12 years ago* lisp/vc/vc-bzr.el (vc-bzr-after-dir-status): Ignore ignored files.
Glenn Morris [Wed, 19 Oct 2011 16:42:20 +0000 (09:42 -0700)]
* lisp/vc/vc-bzr.el (vc-bzr-after-dir-status): Ignore ignored files.

Fixes: debbugs:9726

12 years ago* INSTALL: Remove XCode part.
Jan Djärv [Wed, 19 Oct 2011 15:42:29 +0000 (17:42 +0200)]
* INSTALL: Remove XCode part.

12 years agoFix minor mode docstrings for the new meaning of a nil ARG.
Chong Yidong [Wed, 19 Oct 2011 12:54:24 +0000 (08:54 -0400)]
Fix minor mode docstrings for the new meaning of a nil ARG.

* abbrev.el (abbrev-mode):
* allout.el (allout-mode):
* autoinsert.el (auto-insert-mode):
* autoarg.el (autoarg-mode, autoarg-kp-mode):
* autorevert.el (auto-revert-mode, auto-revert-tail-mode)
(global-auto-revert-mode):
* battery.el (display-battery-mode):
* composite.el (global-auto-composition-mode)
(auto-composition-mode):
* delsel.el (delete-selection-mode):
* desktop.el (desktop-save-mode):
* dired-x.el (dired-omit-mode):
* dirtrack.el (dirtrack-mode):
* doc-view.el (doc-view-minor-mode):
* double.el (double-mode):
* electric.el (electric-indent-mode, electric-pair-mode):
* emacs-lock.el (emacs-lock-mode):
* epa-hook.el (auto-encryption-mode):
* follow.el (follow-mode):
* font-core.el (font-lock-mode):
* frame.el (auto-raise-mode, auto-lower-mode, blink-cursor-mode):
* help.el (temp-buffer-resize-mode):
* hilit-chg.el (highlight-changes-mode)
(highlight-changes-visible-mode):
* hi-lock.el (hi-lock-mode):
* hl-line.el (hl-line-mode, global-hl-line-mode):
* icomplete.el (icomplete-mode):
* ido.el (ido-everywhere):
* image-file.el (auto-image-file-mode):
* image-mode.el (image-minor-mode):
* iswitchb.el (iswitchb-mode):
* jka-cmpr-hook.el (auto-compression-mode):
* linum.el (linum-mode):
* longlines.el (longlines-mode):
* master.el (master-mode):
* mb-depth.el (minibuffer-depth-indicate-mode):
* menu-bar.el (menu-bar-mode):
* minibuf-eldef.el (minibuffer-electric-default-mode):
* mouse-sel.el (mouse-sel-mode):
* msb.el (msb-mode):
* mwheel.el (mouse-wheel-mode):
* outline.el (outline-minor-mode):
* paren.el (show-paren-mode):
* recentf.el (recentf-mode):
* reveal.el (reveal-mode, global-reveal-mode):
* rfn-eshadow.el (file-name-shadow-mode):
* ruler-mode.el (ruler-mode):
* savehist.el (savehist-mode):
* scroll-all.el (scroll-all-mode):
* scroll-bar.el (scroll-bar-mode):
* server.el (server-mode):
* shell.el (shell-dirtrack-mode):
* simple.el (auto-fill-mode, transient-mark-mode)
(visual-line-mode, overwrite-mode, binary-overwrite-mode)
(line-number-mode, column-number-mode, size-indication-mode)
(auto-save-mode, normal-erase-is-backspace-mode, visible-mode):
* strokes.el (strokes-mode):
* time.el (display-time-mode):
* t-mouse.el (gpm-mouse-mode):
* tool-bar.el (tool-bar-mode):
* tooltip.el (tooltip-mode):
* type-break.el (type-break-mode-line-message-mode)
(type-break-query-mode):
* view.el (view-mode):
* whitespace.el (whitespace-mode, whitespace-newline-mode)
(global-whitespace-mode, global-whitespace-newline-mode):
* xt-mouse.el (xterm-mouse-mode): Doc fix.

* emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix
autogenerated docstring.

12 years agoFollowup to 2011-10-19T09:48:35Z!eliz@gnu.org.
Eli Zaretskii [Wed, 19 Oct 2011 11:46:17 +0000 (13:46 +0200)]
Followup to 2011-10-19T09:48:35Z!eliz@gnu.org.

 src/xdisp.c (try_window_reusing_current_matrix): If a line ends in a display
 vector or the next line starts in a display vector, continue
 redrawing the window even though the character position of
 start_row was reached.

Fixes: debbugs:9771

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

12 years agoFix part 2 of bug #9771 with lines that start with a display vector.
Eli Zaretskii [Wed, 19 Oct 2011 09:48:35 +0000 (11:48 +0200)]
Fix part 2 of bug #9771 with lines that start with a display vector.

 src/xdisp.c (start_display): If the character at POS is displayed
 via a display vector, reset IT->current.dpvec_index to zero.

12 years ago* lisp/net/browse-url.el (browse-url-can-use-xdg-open): Support LXDE
Juri Linkov [Wed, 19 Oct 2011 09:10:10 +0000 (12:10 +0300)]
* lisp/net/browse-url.el (browse-url-can-use-xdg-open): Support LXDE
by checking environment variables "DESKTOP_SESSION" and
"XDG_CURRENT_DESKTOP".

Fixes: debbugs:9779

12 years ago* lisp/net/browse-url.el (browse-url-browser-function): Add "Chromium".
Juri Linkov [Wed, 19 Oct 2011 09:03:39 +0000 (12:03 +0300)]
* lisp/net/browse-url.el (browse-url-browser-function): Add "Chromium".
(browse-url-chromium-program, browse-url-chromium-arguments):
New defcustoms.
(browse-url-default-browser): Check for `browse-url-chromium' and
call `browse-url-chromium-program'.
(browse-url-chromium): New command.

Fixes: debbugs:9779

12 years agoUpdate Search chapter in Emacs manual.
Chong Yidong [Wed, 19 Oct 2011 04:21:52 +0000 (00:21 -0400)]
Update Search chapter in Emacs manual.

* doc/emacs/search.texi (Repeat Isearch, Error in Isearch): Add kindex entries.
(Isearch Yank): Document isearch-yank-pop.
(Isearch Scroll): Refer to C-l instead of unbound `recenter'.
(Other Repeating Search): Document Occur Edit mode.

12 years agoMore edits to Display chapter of Emacs manual.
Chong Yidong [Tue, 18 Oct 2011 21:11:17 +0000 (17:11 -0400)]
More edits to Display chapter of Emacs manual.

* doc/emacs/display.texi (Fringes): Move overflow-newline-into-fringe here,
from Line Truncation node.
(Standard Faces): Note that only the background of the cursor face
has an effect.
(Cursor Display): Fix descriptions of cursor face
and bar cursor blinking.
(Text Display): Document nobreak-char-display more clearly.
(Line Truncation): Add xref to Split Window node.
(Display Custom): Don't bother documenting baud-rate or
no-redraw-on-reenter.

* doc/emacs/search.texi (Slow Isearch): Node removed.

12 years agoHave nobreak-char-display handle U+2010 and U+2011.
Chong Yidong [Tue, 18 Oct 2011 21:07:56 +0000 (17:07 -0400)]
Have nobreak-char-display handle U+2010 and U+2011.

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

* src/xdisp.c (get_next_display_element): Handle U+2010 and U+2011
with nobreak-char-display too.

12 years ago* configure.in (GLIB_REQUIRED, GTK_REQUIRED): Set to 2.10.
Jan Djärv [Tue, 18 Oct 2011 18:12:53 +0000 (20:12 +0200)]
* configure.in (GLIB_REQUIRED, GTK_REQUIRED): Set to 2.10.

Fixes: debbugs:9786

12 years agoFix bug #9771 with slow redisplay in long lines full of control characters.
Eli Zaretskii [Tue, 18 Oct 2011 16:56:09 +0000 (18:56 +0200)]
Fix bug #9771 with slow redisplay in long lines full of control characters.

 src/bidi.c (bidi_line_init): Initialize next_en_pos to zero, not -1.
 (bidi_resolve_neutral): Don't enter the expensive loop looking for
 non-neutral characters if the current character is a paragraph
 separator (a.k.a. Newline).  This avoids running the same
 expensive loop twice, once when we consume the preceding newline
 and the other time when the line actually needs to be displayed.
 Avoid the loop when we see neutrals on the base embedding level
 following a character whose directionality is the same as the
 paragraph's.  This avoids running the expensive loop when a line
 ends in a long sequence of neutrals, like control characters.
 Add assertion against STRONG_AL type.  Slightly rearrange code
 that determines the type of a neutral given the first non-neutral
 that follows it.
 (bidi_level_of_next_char): Set next_en_pos to zero when
 invalidating its info.

12 years ago2 GiB, not 4 GiB, for buffer sizes.
Paul Eggert [Tue, 18 Oct 2011 15:55:20 +0000 (08:55 -0700)]
2 GiB, not 4 GiB, for buffer sizes.

12 years agoMention buffer size limit --with-wide-int on 32-bit hosts.
Paul Eggert [Tue, 18 Oct 2011 15:34:06 +0000 (08:34 -0700)]
Mention buffer size limit --with-wide-int on 32-bit hosts.