]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 years agoFix distribution tarball for the MS-DOS build.
Eli Zaretskii [Mon, 31 Oct 2011 17:37:39 +0000 (19:37 +0200)]
Fix distribution tarball for the MS-DOS build.

 make-dist (tempdir): Create `autogen'.
 (msdos): Add depfiles.bat and inttypes.h.
 (autogen): Put README, config.in, and Makefile.in ionto the
 distribution, they are needed for the MS-DOS build.
 msdos/sed3v2.inp (insrcdir): Comment out definition.
 $(insrcdir): Edit into MS-DOS existence test.

13 years ago* lisp/subr.el (keymap--menu-item-with-binding): Ignore item if not a
Andreas Schwab [Mon, 31 Oct 2011 10:53:16 +0000 (11:53 +0100)]
* lisp/subr.el (keymap--menu-item-with-binding): Ignore item if not a
menu-item.

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

13 years agoBump version to 24.0.91. emacs-pretest-24.0.91
Chong Yidong [Mon, 31 Oct 2011 02:25:01 +0000 (10:25 +0800)]
Bump version to 24.0.91.
Regenerate AUTHORS and ldefs-boot.el.

13 years agoAdjust comment.
Vinicius Jose Latorre [Mon, 31 Oct 2011 01:39:04 +0000 (23:39 -0200)]
Adjust comment.

13 years agoBetter code for whitespace-newline-mode.
Vinicius Jose Latorre [Mon, 31 Oct 2011 01:15:40 +0000 (23:15 -0200)]
Better code for whitespace-newline-mode.

13 years ago* admin/grammars/bovine-grammar.el: Avoid using old-style backquotes.
David Engster [Mon, 31 Oct 2011 01:00:32 +0000 (09:00 +0800)]
* admin/grammars/bovine-grammar.el: Avoid using old-style backquotes.

13 years agoDisable whitespace-newline-mode properly.
Vinicius Jose Latorre [Mon, 31 Oct 2011 00:37:09 +0000 (22:37 -0200)]
Disable whitespace-newline-mode properly.

13 years agoFix random crashes while scrolling backwards.
Eli Zaretskii [Sun, 30 Oct 2011 18:07:48 +0000 (20:07 +0200)]
Fix random crashes while scrolling backwards.

 src/xdisp.c (try_cursor_movement): Make sure ROW isn't decremented
 past the beginning of the current glyph matrix.

13 years agoFix bug 9869.
Jan Djärv [Sun, 30 Oct 2011 18:04:13 +0000 (19:04 +0100)]
Fix bug 9869.

xterm.c: Include X11/Xproto.h if HAVE_GTK3.
(x_error_handler): Ignore BadMatch for X_SetInputFocus for
HAVE_GTK3 (Bug#9869).

13 years ago* gtkutil.c (xg_win_to_widget, xg_event_is_for_menubar): Initialize
Jan Djärv [Sun, 30 Oct 2011 17:31:02 +0000 (18:31 +0100)]
* gtkutil.c (xg_win_to_widget, xg_event_is_for_menubar): Initialize
type to GDK_NOTHING so valgrind does not complain.

Fixes: debbugs:9901
13 years agoFix hang after C-z in gnome-shell.
Jan Djärv [Sun, 30 Oct 2011 17:17:48 +0000 (18:17 +0100)]
Fix hang after C-z in gnome-shell.

* xterm.c: Declare x_handle_net_wm_state to return int.
(handle_one_xevent): Check if we are iconified but don't have
_NET_WM_STATE_HIDDEN.  If do, treat as deiconify.
(get_current_wm_state): Return non-zero if not hidden,
check for _NET_WM_STATE_HIDDEN (Bug#9893).
(do_ewmh_fullscreen): Ignore return value from get_current_wm_state.
(x_handle_net_wm_state): Return what get_current_wm_state returns.
(x_term_init): Initialize dpyinfo->Xatom_net_wm_state_hidden.

* xterm.h (x_display_info): Add Xatom_net_wm_state_hidden (Bug#9893).

13 years agonewsticker: Clean up newsticker--group-manage-orphan-feeds
Ulf Jasper [Sun, 30 Oct 2011 15:21:37 +0000 (16:21 +0100)]
newsticker: Clean up newsticker--group-manage-orphan-feeds

2011-10-30  Ulf Jasper  <ulf.jasper@web.de>

* net/newst-treeview.el: Remove "Time-stamp".
(newsticker--group-manage-orphan-feeds): Do not call
newsticker--treeview-tree-update.
(newsticker-treeview-update, newsticker-treeview): Call
newsticker--treeview-tree-update if necessary.

2011-10-30  Ulf Jasper  <ulf.jasper@web.de>

* automated/newsticker-tests.el
(newsticker--group-manage-orphan-feeds): Removed fsetting of
newsticker--treeview-tree-update.

13 years agoRemove "iso-" infix from window combination functions.
Martin Rudalics [Sun, 30 Oct 2011 08:29:56 +0000 (09:29 +0100)]
Remove "iso-" infix from window combination functions.

* window.el (window-iso-combination-p, window-iso-combined-p)
(window-iso-combinations): Remove "iso-" infix.  Suggested by
Chong Yidong.
(window-min-size-1, window-size-fixed-1, window-min-delta-1)
(window-max-delta-1, window-resize, window--resize-siblings)
(window--resize-this-window, adjust-window-trailing-edge)
(split-window, balance-windows-1)
(shrink-window-if-larger-than-buffer):
* calendar/calendar.el (calendar-generate-window):
* help.el (resize-temp-buffer-window): Adjust callers
accordingly.
* windows.texi (Windows and Frames): Remove "iso-" infix from
documentation of window-iso-combined-p.

13 years ago* lisp/eshell/esh-cmd.el (eshell-rewrite-for-command): Fix last change.
Stefan Monnier [Sun, 30 Oct 2011 08:01:31 +0000 (04:01 -0400)]
* lisp/eshell/esh-cmd.el (eshell-rewrite-for-command): Fix last change.
(eshell-do-eval): Handle multiple expressions in `while' body.

Fixes: debbugs:9907
13 years ago* lisp/eshell/esh-cmd.el (eshell-rewrite-for-command): Don't modify the list
Stefan Monnier [Sun, 30 Oct 2011 03:58:48 +0000 (23:58 -0400)]
* lisp/eshell/esh-cmd.el (eshell-rewrite-for-command): Don't modify the list
in place.
(eshell-subcommand-arg-values, eshell-rewrite-named-command)
(eshell-rewrite-if-command, eshell-rewrite-for-command)
(eshell-structure-basic-command, eshell-rewrite-while-command)
(eshell-invokify-arg, eshell-parse-pipeline, eshell-parse-command)
(eshell-parse-subcommand-argument, eshell-parse-lisp-argument)
(eshell-trap-errors, eshell-do-pipelines, eshell-do-eval)
(eshell-do-pipelines-synchronously, eshell-eval-command):
Use backquotes and prefer setq to set.
(eshell-lookup-function, function-p-func, eshell-functionp): Remove.
(eshell-macrop): Use functionp.

Fixes: debbugs:9907
13 years ago* viper-cmd.el (viper-exec-change): Use push-mark not set-mark.
Chong Yidong [Sun, 30 Oct 2011 03:39:11 +0000 (11:39 +0800)]
* viper-cmd.el (viper-exec-change): Use push-mark not set-mark.

Fixes: debbugs:9810
13 years agoRename split-window-{above-each-other|split-window-side-by-side}
Chong Yidong [Sun, 30 Oct 2011 01:56:03 +0000 (09:56 +0800)]
Rename split-window-{above-each-other|split-window-side-by-side}
to split-window-below and split-window-right.

* lisp/window.el (split-window-below, split-window-right): Rename from
split-window-above-each-other and split-window-side-by-side
respectively.  All callers changed.
(split-window-sensibly, split-window-sensibly): Use them.
(split-window-keep-point): Doc fix.

* lisp/isearch.el: Add isearch-scroll property to split-window-below
and split-window-right.

* lisp/follow.el (follow-mode):
* lisp/vc/pcvs-util.el (cvs-pop-to-buffer-same-frame):
* lisp/progmodes/ada-xref.el (ada-gdb-application):
* lisp/emulation/vip.el (vip-buffer-in-two-windows):
* lisp/image-dired.el (image-dired-dired-with-window-configuration):
* lisp/dired-x.el (dired-do-find-marked-files):
* lisp/dired.el (dired-pop-to-buffer):
* lisp/bs.el (bs--show-with-configuration):
* lisp/vc/emerge.el (emerge-setup-windows):
* lisp/textmodes/two-column.el (2C-two-columns):
* lisp/textmodes/reftex-toc.el (reftex-toc):
* lisp/progmodes/gdb-mi.el (gdb-setup-windows):
* lisp/progmodes/fortran.el (fortran-window-create):
* lisp/net/newst-treeview.el (newsticker--treeview-window-init):
* lisp/emulation/ws-mode.el (wordstar-C-o-map, wordstar-mode):
* lisp/emulation/tpu-edt.el (tpu-gold-map):
* lisp/emulation/crisp.el (crisp-mode-map):
* lisp/calendar/calendar.el (calendar-basic-setup): Callers changed.

13 years ago* alloc.c (which_symbols): Declare EXTERNALLY_VISIBLE,
Paul Eggert [Sat, 29 Oct 2011 17:25:44 +0000 (10:25 -0700)]
* alloc.c (which_symbols): Declare EXTERNALLY_VISIBLE,

so that this new function doesn't get optimized away by a
whole-program optimizer.  Make the 2nd arg EMACS_INT, not int.

13 years ago* src/frame.h (MOUSE_HL_INFO): Remove excess parens.
Andreas Schwab [Sat, 29 Oct 2011 15:50:30 +0000 (17:50 +0200)]
* src/frame.h (MOUSE_HL_INFO): Remove excess parens.

13 years agonewsticker: Fixed bug#9763, again
Ulf Jasper [Sat, 29 Oct 2011 15:29:16 +0000 (17:29 +0200)]
newsticker: Fixed bug#9763, again

2011-10-29  Ulf Jasper  <ulf.jasper@web.de>

* automated/newsticker-tests.el
(newsticker--group-manage-orphan-feeds): Use fset instead of flet.

13 years agonewsticker: Fixed bug#9763
Ulf Jasper [Sat, 29 Oct 2011 15:17:30 +0000 (17:17 +0200)]
newsticker: Fixed bug#9763

2011-10-29  Ulf Jasper  <ulf.jasper@web.de>

* trunk/test/automated/newsticker-tests.el
(newsticker--group-manage-orphan-feeds): Prevent updating
newsticker treeview. Fixed bug#9763.

13 years agoetc/themes/wombat-theme.el: Add a coding cookie. (Bug#9905)
Eli Zaretskii [Sat, 29 Oct 2011 14:33:42 +0000 (16:33 +0200)]
etc/themes/wombat-theme.el: Add a coding cookie.  (Bug#9905)

13 years agoFix attribution for last commit in src/ChangeLog.
Eli Zaretskii [Sat, 29 Oct 2011 13:38:21 +0000 (15:38 +0200)]
Fix attribution for last commit in src/ChangeLog.

13 years agoFix the `xbytecode' user-defined command in .gdbinit.
Eli Zaretskii [Sat, 29 Oct 2011 13:35:23 +0000 (15:35 +0200)]
Fix the `xbytecode' user-defined command in .gdbinit.

 src/.gdbinit (xprintbytestr): New command.
 (xwhichsymbols): Renamed from `which'; all callers changed.
 (xbytecode): Print the byte-code string as well.
 src/alloc.c (which_symbols): New function.

13 years agoRevert last commit.
Eli Zaretskii [Sat, 29 Oct 2011 10:02:39 +0000 (12:02 +0200)]
Revert last commit.

13 years agoFix bug #9902 with crash caused by clearing mouse highlight.
Eli Zaretskii [Sat, 29 Oct 2011 09:36:42 +0000 (11:36 +0200)]
Fix bug #9902 with crash caused by clearing mouse highlight.

 src/xdisp.c (note_mouse_highlight): Don't clear mouse highlight if
 hlinfo->mouse_face_window is nil.

13 years agoFixes: debbugs:9903
Andreas Schwab [Sat, 29 Oct 2011 08:54:06 +0000 (10:54 +0200)]
Fixes: debbugs:9903
* src/minibuf.c (read_minibuf_noninteractive): Allow reading empty
line.

13 years ago* lisp/subr.el (y-or-n-p): Add code for batch mode.
Chong Yidong [Sat, 29 Oct 2011 08:41:39 +0000 (16:41 +0800)]
* lisp/subr.el (y-or-n-p): Add code for batch mode.

Fixes: debbugs:9818
13 years ago* lisp/mouse.el (mouse-yank-primary): Push the mark.
Chong Yidong [Sat, 29 Oct 2011 06:09:02 +0000 (14:09 +0800)]
* lisp/mouse.el (mouse-yank-primary): Push the mark.

Fixes: debbugs:9894
13 years ago* flyspell.el (flyspell-word): Fix char offset for forged Ispell output.
Chong Yidong [Sat, 29 Oct 2011 04:37:29 +0000 (12:37 +0800)]
* flyspell.el (flyspell-word): Fix char offset for forged Ispell output.

Fixes: debbugs:7904
13 years ago* emacs-lisp/package.el (package-refresh-contents): Add autoload.
Chong Yidong [Sat, 29 Oct 2011 03:42:12 +0000 (11:42 +0800)]
* emacs-lisp/package.el (package-refresh-contents): Add autoload.

13 years ago* etc/NEWS: Document the disappearance of binding caches.
Stefan Monnier [Sat, 29 Oct 2011 00:41:20 +0000 (20:41 -0400)]
* etc/NEWS: Document the disappearance of binding caches.

Fixes: debbugs:9899
13 years ago* lisp/doc-view.el: Avoid ugly errors about not finding nil.
Stefan Monnier [Sat, 29 Oct 2011 00:39:57 +0000 (20:39 -0400)]
* lisp/doc-view.el: Avoid ugly errors about not finding nil.
(doc-view-ghostscript-program, doc-view-dvipdfm-program)
(doc-view-dvipdf-program, doc-view-unoconv-program)
(doc-view-ps2pdf-program, doc-view-pdftotext-program):
Avoid nil or absolute file name as default value.
(doc-view-pdf->txt, doc-view-ps->pdf): Use executable-find here.

13 years agoRevert problematic change to wait_reading_process_output.
Glenn Morris [Sat, 29 Oct 2011 00:12:02 +0000 (20:12 -0400)]
Revert problematic change to wait_reading_process_output.

* src/process.c (wait_reading_process_output): Revert 2009-08-30 change.
Not clear what it was for, and it causes various bugs.  (Bug#9839)

13 years agoFix use of uninitialized variable.
Eli Zaretskii [Fri, 28 Oct 2011 18:41:09 +0000 (20:41 +0200)]
Fix use of uninitialized variable.

 src/xdisp.c (note_mouse_highlight): Initialize `part', to avoid a
 possible random value that matches one of those tested as
 condition to clear the mouse face.

13 years agoIncrement c-version to 5.32.2.
Alan Mackenzie [Fri, 28 Oct 2011 16:16:02 +0000 (16:16 +0000)]
Increment c-version to 5.32.2.

13 years agoAdd and entry to ChangeLog.
Alan Mackenzie [Fri, 28 Oct 2011 15:24:05 +0000 (15:24 +0000)]
Add and entry to ChangeLog.

13 years agoMerge.
Alan Mackenzie [Fri, 28 Oct 2011 15:18:00 +0000 (15:18 +0000)]
Merge.

13 years ago* src/xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
Chong Yidong [Fri, 28 Oct 2011 15:17:09 +0000 (23:17 +0800)]
* src/xdisp.c (note_mouse_highlight): Fix use of uninitialized var.

See:
http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg01202.html

13 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
13 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.

13 years agoBoring merge.
Alan Mackenzie [Fri, 28 Oct 2011 14:37:05 +0000 (14:37 +0000)]
Boring merge.

13 years agoBoring merge from savannah.
Alan Mackenzie [Fri, 28 Oct 2011 14:35:39 +0000 (14:35 +0000)]
Boring merge from savannah.

13 years agoDTRT for c-beginning/end-of-defun in nested declaration scopes.
Alan Mackenzie [Fri, 28 Oct 2011 14:34:39 +0000 (14:34 +0000)]
DTRT for c-beginning/end-of-defun in nested declaration scopes.

13 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.

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

13 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.

13 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.

13 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.

13 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.

13 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.

13 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
13 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.

13 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.

13 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.

13 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.

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

13 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.

13 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.

13 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
13 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.

13 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.

13 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.

13 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
13 years agoFix typos.
Juanma Barranquero [Wed, 26 Oct 2011 14:07:31 +0000 (16:07 +0200)]
Fix typos.

13 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.

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

13 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.

13 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)

13 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.

13 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.

13 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.

13 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)

13 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.

13 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
13 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).

13 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
13 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:".

13 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
13 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
13 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
13 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.

13 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
13 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'.

13 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)

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

13 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.

13 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
13 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
13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.