]> git.eshelyaron.com Git - emacs.git/log
emacs.git
10 years agoTemporary fix for the MS-Windows build broken by last commit.
Eli Zaretskii [Fri, 11 Jul 2014 09:56:58 +0000 (12:56 +0300)]
Temporary fix for the MS-Windows build broken by last commit.

 src/minibuf.c (read_minibuf_noninteractive) [WINDOWSNT]: Don't
 reference termios structure members.

Fixes: debbugs:17839
10 years ago* NEWS: Passwords in batch mode are hidden.
Michael Albinus [Fri, 11 Jul 2014 09:33:06 +0000 (11:33 +0200)]
* NEWS: Passwords in batch mode are hidden.

10 years agoHide password in batch mode
Michael Albinus [Fri, 11 Jul 2014 09:09:54 +0000 (11:09 +0200)]
Hide password in batch mode

* doc/lispref/minibuf.texi (Intro to Minibuffers, Reading a Password):
Password hiding is available in batch mode, do not mention it in
the exclusion list.  Mention `read-hide-char'.

* lisp/subr.el (read-passwd): Use `read-hide-char' if non-nil.  Bind it
when calling `read-string'.

* src/minibuf.c (top): Include systty.h.  Declare external
emacs_get_tty and emacs_set_tty.
(Vread_hide_char): New lisp variable.
(read_minibuf_noninteractive): Hide characters with
Vread_hide_char if it is a character.

* src/sysdep.c (emacs_get_tty, emacs_set_tty): Make them externally visible.

Fixes: debbugs:17839
10 years agoImplement memory-info for MS-Windows.
Eli Zaretskii [Thu, 10 Jul 2014 19:09:26 +0000 (22:09 +0300)]
Implement memory-info for MS-Windows.

 src/w32.c (w32_memory_info): New function.
 src/w32.h (w32_memory_info): Prototype it.
 src/alloc.c (Fmemory_info) [WINDOWSNT]: Call it.

10 years agolisp/files.el (warn-maybe-out-of-memory): Fix the wording of the warning.
Eli Zaretskii [Thu, 10 Jul 2014 18:19:37 +0000 (21:19 +0300)]
lisp/files.el (warn-maybe-out-of-memory): Fix the wording of the warning.

10 years ago* files.el (warn-maybe-out-of-memory): Fix last change.
Dmitry Antipov [Thu, 10 Jul 2014 13:00:45 +0000 (17:00 +0400)]
* files.el (warn-maybe-out-of-memory): Fix last change.

10 years ago* configure.ac: Check whether sys/sysinfo.h provides
Dmitry Antipov [Thu, 10 Jul 2014 12:33:35 +0000 (16:33 +0400)]
* configure.ac: Check whether sys/sysinfo.h provides
Linux 'sysinfo' function and 'struct sysinfo' type.
* src/alloc.c (Fmemory_info): New function.
* lisp/files.el (warn-maybe-out-of-memory): New function.
(find-file-noselect): Use it.

10 years ago* coding.h (struct coding_system): Remove 'error_positions' (unused)
Dmitry Antipov [Thu, 10 Jul 2014 04:35:55 +0000 (08:35 +0400)]
* coding.h (struct coding_system): Remove 'error_positions' (unused)
and 'errors' (set but unused) fields.  Use bitfields for 'eol_seen',
'mode', 'common_flags' and 'result' fields, adjust layout to avoid
extra padding and shrink struct coding_system by 56 bytes (x86_64).
* coding.c (decode_coding_utf_8, decode_coding_utf_16)
(decode_coding_emacs_mule, decode_coding_iso_2022, decode_coding_sjis)
(decode_coding_big5, decode_coding_charset, decode_coding)
(encode_coding): Adjust users.

10 years ago* syntax.c (back_comment): Use more-natural location for label.
Paul Eggert [Wed, 9 Jul 2014 23:39:58 +0000 (16:39 -0700)]
* syntax.c (back_comment): Use more-natural location for label.

10 years ago* font.c, font.h (font_unparse_fcname): Now static.
Paul Eggert [Wed, 9 Jul 2014 23:35:31 +0000 (16:35 -0700)]
* font.c, font.h (font_unparse_fcname): Now static.

Define only if HAVE_XFT || HAVE_FREETYPE || HAVE_NS.

10 years agoTreat the perl keyword `constant' like `bless', `return' &c
Sam Steingold [Wed, 9 Jul 2014 14:51:52 +0000 (10:51 -0400)]
Treat the perl keyword `constant' like `bless', `return' &c

* lisp/progmodes/cperl-mode.el (cperl-block-p): Tread the perl keyword
`constant' like `bless', `return' &c

10 years ago* coding.c (ALLOC_CONVERSION_WORK_AREA): Prefer ptrdiff_t to int and
Dmitry Antipov [Wed, 9 Jul 2014 10:36:35 +0000 (14:36 +0400)]
* coding.c (ALLOC_CONVERSION_WORK_AREA): Prefer ptrdiff_t to int and
so avoid integer overflow if decoded gap size exceeds INT_MAX bytes.

10 years agoNext minor cleanup of font subsystem.
Dmitry Antipov [Wed, 9 Jul 2014 06:25:35 +0000 (10:25 +0400)]
Next minor cleanup of font subsystem.
* font.h (enum font_property_index): Remove FONT_ENTITY_INDEX (no
users) and FONT_FORMAT_INDEX (set by a few font drivers but never
really used).
(FONT_ENTITY_NOT_LOADABLE, FONT_ENTITY_SET_NOT_LOADABLE): Remove;
unused.
* ftfont.h (ftfont_font_format): Remove prototype.
* ftfont.c (ftfont_font_format): Remove; now unused.
(ftfont_open):
* nsfont.m (nsfont_open):
* w32font.c (w32font_open_internal):
* w32uniscribe.c (uniscribe_open):
* xfont.c (xfont_open):
* xftfont.c (xftfont_open): All users changed.

10 years ago* lisp/rect.el (apply-on-rectangle): Check forward-line really moved to the
Stefan Monnier [Wed, 9 Jul 2014 02:20:21 +0000 (22:20 -0400)]
* lisp/rect.el (apply-on-rectangle): Check forward-line really moved to the
next line.

10 years agoMerge from emacs-24; up to 2014-06-19T14:03:45Z!monnier@iro.umontreal.ca
Glenn Morris [Wed, 9 Jul 2014 02:04:12 +0000 (19:04 -0700)]
Merge from emacs-24; up to 2014-06-19T14:03:45Z!monnier@iro.umontreal.ca

10 years ago* lisp/erc/erc.el (erc-channel-receive-names): Reduce redundancy.
Stefan Monnier [Tue, 8 Jul 2014 19:45:24 +0000 (15:45 -0400)]
* lisp/erc/erc.el (erc-channel-receive-names): Reduce redundancy.

10 years ago* lisp/linum.el (linum--face-height): New function.
Stefan Monnier [Tue, 8 Jul 2014 19:33:37 +0000 (15:33 -0400)]
* lisp/linum.el (linum--face-height): New function.
(linum-update-window): Use it to adjust margin to linum's width.

Fixes: debbugs:17813
10 years ago* lisp/leim/quail/sisheng.el (sisheng-list): Don't bother with-case-table.
Stefan Monnier [Tue, 8 Jul 2014 19:15:28 +0000 (15:15 -0400)]
* lisp/leim/quail/sisheng.el (sisheng-list): Don't bother with-case-table.
* lisp/eshell/em-smart.el (eshell-smart-scroll-window): Use
with-selected-window.

10 years ago* lisp/xt-mouse.el (xterm-mouse-translate-1): Intern drag event.
Stefan Monnier [Tue, 8 Jul 2014 18:47:47 +0000 (14:47 -0400)]
* lisp/xt-mouse.el (xterm-mouse-translate-1): Intern drag event.
Remove also pointless window&mark manipulation.

Fixes: debbugs:17894
10 years ago* lisp/progmodes/sh-script.el (sh-smie-sh-rules): Don't align with a && in
Stefan Monnier [Tue, 8 Jul 2014 18:38:07 +0000 (14:38 -0400)]
* lisp/progmodes/sh-script.el (sh-smie-sh-rules): Don't align with a && in
the middle of a line.

Fixes: debbugs:17896
10 years ago* doc/lispref/debugging.texi (Function Debugging, Debugger Commands):
Stefan Monnier [Tue, 8 Jul 2014 18:24:39 +0000 (14:24 -0400)]
* doc/lispref/debugging.texi (Function Debugging, Debugger Commands):
Update debug-on-entry w.r.t behavior after redefinitions.

Fixes: debbugs:17902
10 years ago* process.c (read_and_dispose_of_process_output): Fix typo
Paul Eggert [Tue, 8 Jul 2014 17:13:32 +0000 (10:13 -0700)]
* process.c (read_and_dispose_of_process_output): Fix typo

in previous patch: we want nonnegative fds, not nonzero fds.

10 years ago* lisp/progmodes/perl-mode.el: Use syntax-ppss; fix one indentation case.
Stefan Monnier [Tue, 8 Jul 2014 16:51:35 +0000 (12:51 -0400)]
* lisp/progmodes/perl-mode.el: Use syntax-ppss; fix one indentation case.
(perl-indent-line): Use syntax-ppss to detect we're in a doc-section.
(perl-continuation-line-p): Don't skip over anything else than labels.
Return the previous char.
(perl-calculate-indent): Use syntax-ppss instead of parse-start
and update callers accordingly.  For continuation lines, check the
the case of array hashes.
(perl-backward-to-noncomment): Make it non-interactive.
(perl-backward-to-start-of-continued-exp): Rewrite.
* test/indent/perl.perl: Add indentation pattern for hash-table entries.

10 years agoNew user commands, similar to what is available in ESS
Sam Steingold [Tue, 8 Jul 2014 15:35:29 +0000 (11:35 -0400)]
New user commands, similar to what is available in ESS

* lisp/progmodes/inf-lisp.el (lisp-eval-paragraph, lisp-eval-form-and-next):
New user commands.

10 years agoFix bug #17969 with vertical-motion through continuation lines with TABs.
Eli Zaretskii [Tue, 8 Jul 2014 15:12:39 +0000 (18:12 +0300)]
Fix bug #17969 with vertical-motion through continuation lines with TABs.

 src/xdisp.c (move_it_to): Adjust calculation of line_start_x to what
 x_produce_glyphs does when it generates a stretch glyph that
 represents a TAB.

10 years ago* font.c (font_build_object) [HAVE_XFT || HAVE_FREETYPE || HAVE_NS]:
Dmitry Antipov [Tue, 8 Jul 2014 14:50:45 +0000 (18:50 +0400)]
* font.c (font_build_object) [HAVE_XFT || HAVE_FREETYPE || HAVE_NS]:
New function, with an intention to avoid code duplication between
a few font drivers.
* font.h (font_build_object) [HAVE_XFT || HAVE_FREETYPE || HAVE_NS]:
Add prototype.
* ftfont.c (ftfont_open):
* macfont.m (macfont_open):
* xftfont.c (xftfont_open): Use it.

10 years ago* nsfont.m (nsfont_close): Free glyphs and metrics arrays as well.
Dmitry Antipov [Tue, 8 Jul 2014 14:19:34 +0000 (18:19 +0400)]
* nsfont.m (nsfont_close): Free glyphs and metrics arrays as well.

10 years ago* lisp/startup.el (command-line): Append displaying the warning about
Juri Linkov [Tue, 8 Jul 2014 09:17:09 +0000 (12:17 +0300)]
* lisp/startup.el (command-line): Append displaying the warning about
the errors in the init file to the end of `after-init-hook'.

Fixes: debbugs:17927
10 years ago* lisp/faces.el (face-name): Return input arg `face' as is
Juri Linkov [Tue, 8 Jul 2014 09:03:23 +0000 (12:03 +0300)]
* lisp/faces.el (face-name): Return input arg `face' as is
when it's not a symbol.
(x-resolve-font-name): Don't check if the face is a symbol.

Fixes: debbugs:17956
10 years ago* lisp/facemenu.el (list-colors-print): In help-echo format use %.2f
Juri Linkov [Tue, 8 Jul 2014 08:55:00 +0000 (11:55 +0300)]
* lisp/facemenu.el (list-colors-print): In help-echo format use %.2f
instead of %d because now HSV values are floating-point components
between 0.0 and 1.0.

10 years ago* lisp/vc/vc-annotate.el (vc-annotate-background-mode): New defcustom.
Juri Linkov [Tue, 8 Jul 2014 08:49:18 +0000 (11:49 +0300)]
* lisp/vc/vc-annotate.el (vc-annotate-background-mode): New defcustom.
(vc-annotate-color-map): Use less saturated colors (20%) for
background-mode.
(vc-annotate-very-old-color): Add default value for background-mode.
(vc-annotate-background): Set default value to nil since now text on
the default backgrounds should be legible in light and dark modes.
(vc-annotate-lines): Use `vc-annotate-background-mode'.  Doc fix.

Fixes: debbugs:17808
10 years ago* lisp/simple.el (transpose-chars): Don't move point into read-only area.
Juri Linkov [Tue, 8 Jul 2014 08:27:46 +0000 (11:27 +0300)]
* lisp/simple.el (transpose-chars): Don't move point into read-only area.

Fixes: debbugs:17829
10 years ago* lisp/window.el (with-displayed-buffer-window): New macro.
Juri Linkov [Tue, 8 Jul 2014 08:02:50 +0000 (11:02 +0300)]
* lisp/window.el (with-displayed-buffer-window): New macro.
(with-temp-buffer-window, with-current-buffer-window):
Use `macroexp-let2' to evaluate and bind variables
in the same order as macro arguments.
(display-buffer--action-function-custom-type): Add
`display-buffer-below-selected' and `display-buffer-at-bottom'.

* lisp/minibuffer.el (minibuffer-completion-help): Replace
`with-output-to-temp-buffer' with `with-displayed-buffer-window'
with actions that display *Completions* at-bottom when called
from the minibuffer, or below-selected in a normal buffer.
Associate `window-height' with `fit-window-to-buffer'.
Let-bind `pop-up-windows' to nil.

* lisp/dired.el (dired-mark-pop-up): Use `with-displayed-buffer-window'
instead of `with-current-buffer-window'.

Fixes: debbugs:17809
10 years ago* chartab.c (char_table_translate): Move to...
Dmitry Antipov [Tue, 8 Jul 2014 07:17:04 +0000 (11:17 +0400)]
* chartab.c (char_table_translate): Move to...
* character.h (char_table_translate): ... inline function here.
Avoid Faref and assume that args are always valid.  This helps to
speedup search, which is especially important for a huge buffers.
* lisp.h (char_table_translate): Remove prototype.

10 years ago* process.c: Add sanity checks for file descriptors.
Paul Eggert [Tue, 8 Jul 2014 06:24:07 +0000 (23:24 -0700)]
* process.c: Add sanity checks for file descriptors.

(wait_reading_process_output, Fprocess_filter_multibyte_p):
Check that infd is nonnegative before using it as an fd.
(read_and_dispose_of_process_output, Fprocess_send_eof):
Likewise, for outfd.
(wait_reading_process_output): Omit unnecessary check of infd.

Fixes: debbugs:17844
10 years agoChangeLog fix: correcting file path.
Luke Lee [Tue, 8 Jul 2014 01:52:48 +0000 (09:52 +0800)]
ChangeLog fix: correcting file path.

10 years agoMinor fixups related to usage of the 'long' type.
Paul Eggert [Mon, 7 Jul 2014 23:33:05 +0000 (16:33 -0700)]
Minor fixups related to usage of the 'long' type.

* gnutls.c (emacs_gnutls_handshake):
* xfaces.c (dump_realized_face):
Work even if 'long' is narrower than 'void *'.
* termcap.c (scan_file):
* xselect.c (x_decline_selection_request)
(x_reply_selection_request, x_get_window_property):
* xterm.c (x_set_frame_alpha):
Remove unnecessary 'L' suffixes of integer constants.
* xfns.c (hack_wm_protocols):
* xselect.c (x_fill_property_data):
* xterm.c (x_set_offset, x_set_window_size_1, x_make_frame_invisible):
Remove unnecessary casts to 'long'.
(set_machine_and_pid_properties): Don't assume pid_t fits in 32 bits.

10 years agoMinor ImageMagick safety fixes.
Paul Eggert [Mon, 7 Jul 2014 23:25:13 +0000 (16:25 -0700)]
Minor ImageMagick safety fixes.

* image.c (imagemagick_compute_animated_image):
Remove useless assignment to local.  Avoid problems if dest_width is 0.
(imagemagick_load_image): Use int for pixel counts that can't
exceed INT_MAX.  Avoid problem if PixelGetNextIteratorRow returns
a row width greater than the image width (or greater than LONG_MAX!).

10 years agoHideIfDef mode bug fixes and enhancements. This is #3 of 3 patches based
Luke Lee [Mon, 7 Jul 2014 08:59:32 +0000 (16:59 +0800)]
HideIfDef mode bug fixes and enhancements. This is #3 of 3 patches based
on the completed work posted on http://www.emacswiki.org/emacs/HideIfDef.

- Add macro evaluation function and key binding for a marked region.
- Merge continuous "..." lines into one.
- Fix old hideif bugs that fail to hide the correct #elif regions
- Support hide/show commands in a marked region.
- Expand top level for .h files to prevent re-inclusion protection.
- Change maintainer.

* lisp/progmodes/hideif.el (hide-ifdef-env): Change to global.
(hide-ifdef-env-backup): New variable.
(hide-ifdef-expand-reinclusion-protection, hide-ifdef-header-regexp):
New customizable variables.
(hif-clear-all-ifdef-defined): New defun.
(hif-merge-ifdef-region, hide-ifdef-region-internal, hide-ifdef-region)
(hif-show-ifdef-region): Merge hidden regions to prevent continuous "...".
(hif-tokenize): Fix for MS-DOS/Win EOL style.
(hif-endif-to-ifdef, hif-make-range, hif-find-range, hif-possibly-hide):
Fix bug to hide the correct #elif region(s).
(hif-range-elif): New defun.
(hif-recurse-level): New var.
(hif-evaluate-region, hif-evaluate-macro): New defun.
(hide-ifdef-guts): Prevent reinclusion protected C/C++ headers from
fully hidden.
(hide-ifdef-define, hide-ifdefs, hide-ifdef-block, show-ifdef-block):
Better interaction.

10 years agolisp/gnus/gnus-start.el (gnus-dribble-read-file): Don't stop auto-saving
Katsumi Yamaoka [Mon, 7 Jul 2014 05:47:59 +0000 (05:47 +0000)]
lisp/gnus/gnus-start.el (gnus-dribble-read-file): Don't stop auto-saving

10 years ago* cua-rect.el (cua--activate-rectangle): Avoid setting cua--rectangle to nil.
Glenn Morris [Sun, 6 Jul 2014 23:58:52 +0000 (16:58 -0700)]
* cua-rect.el (cua--activate-rectangle): Avoid setting cua--rectangle to nil.

Fixes: debbugs:17877
10 years ago* calendar/todo-mode.el: Fix wrong-type-argument error when
Stephen Berman [Sun, 6 Jul 2014 20:28:38 +0000 (22:28 +0200)]
* calendar/todo-mode.el: Fix wrong-type-argument error when
marking multiple consecutive items.
(todo-toggle-mark-item): Don't try to mark the empty lines at the
end of the todo and done items sections.  Note in doc string that
items marked by passing a numeric prefix argument can include the
last todo and first done items.
(todo-mark-category): Don't try to mark the empty line between the
todo and done items sections.

10 years ago* lisp/emacs-lisp/edebug.el (edebug-eval-defun): Print result using
Stefan Monnier [Sat, 5 Jul 2014 19:11:59 +0000 (15:11 -0400)]
* lisp/emacs-lisp/edebug.el (edebug-eval-defun): Print result using
proper Lisp quoting.

Fixes: debbugs:17934
10 years ago* lisp/progmodes/ruby-mode.el (ruby-mode-variables): Don't meddle with
Stefan Monnier [Sat, 5 Jul 2014 18:37:45 +0000 (14:37 -0400)]
* lisp/progmodes/ruby-mode.el (ruby-mode-variables): Don't meddle with
require-final-newline since prog-mode already took care of it.

Fixes: debbugs:17947
10 years agomerge trunk
Kenichi Handa [Sat, 5 Jul 2014 14:07:57 +0000 (23:07 +0900)]
merge trunk

10 years agosrc/xdisp.c (pos_visible_p): Fix inaccurate comment.
Eli Zaretskii [Sat, 5 Jul 2014 10:24:11 +0000 (13:24 +0300)]
src/xdisp.c (pos_visible_p): Fix inaccurate comment.

10 years agoFix bug #17944 with pos-visible-in-window-p when there's image at window start.
Eli Zaretskii [Sat, 5 Jul 2014 09:53:50 +0000 (12:53 +0300)]
Fix bug #17944 with pos-visible-in-window-p when there's image at window start.

 src/xdisp.c (pos_visible_p):  Fix condition for finding CHARPOS by the
 first call to move_it_to.

10 years agoA better fix for bug #17942.
Eli Zaretskii [Sat, 5 Jul 2014 08:24:07 +0000 (11:24 +0300)]
A better fix for bug #17942.

 src/xdisp.c (pos_visible_p): If CHARPOS is at beginning of window,
 and there is a display property at that position, don't call
 move_it_to to move to a position before window start.

10 years agoFix bug #17942 with pos-visible-in-window-p and image and BOB.
Eli Zaretskii [Sat, 5 Jul 2014 07:38:13 +0000 (10:38 +0300)]
Fix bug #17942 with pos-visible-in-window-p and image and BOB.

 src/xdisp.c (pos_visible_p): If CHARPOS is at BEGV, and there is a
 display property at BEGV, don't call move_it_to to move to a
 position before BEGV.

10 years ago* src/syntax.c (find_defun_start): Try the cache even
Stefan Monnier [Sat, 5 Jul 2014 02:17:14 +0000 (22:17 -0400)]
* src/syntax.c (find_defun_start): Try the cache even
if !open_paren_in_column_0_is_defun_start.
(back_comment): If find_defun_start was pessimistic, use the
scan_sexps_forward result to improve the cache.

Fixes: debbugs:16526
10 years ago* todo-mode.texi (Levels of Organization): Comment out statement
Stephen Berman [Fri, 4 Jul 2014 19:09:29 +0000 (21:09 +0200)]
* todo-mode.texi (Levels of Organization): Comment out statement
that Emacs recognizes todo files by their extension, since this
feature has been removed due to bug#17482.

10 years ago* calendar/todo-mode.el: Fix two bugs. Shorten Commentary and
Stephen Berman [Fri, 4 Jul 2014 15:53:25 +0000 (17:53 +0200)]
* calendar/todo-mode.el: Fix two bugs.  Shorten Commentary and
refer to the Todo mode Info manual.  Update the comment on
requiring cl-lib.
(todo-find-filtered-items-file): Add todo-prefix overlays.
(todo-filter-items): Reorder a let-bound variable to avoid a
wrong-type-argument error on canceling the file choice dialog.

10 years agoBackport from trunk.
Jan Djärv [Fri, 4 Jul 2014 15:15:02 +0000 (17:15 +0200)]
Backport from trunk.
* xfns.c (create_frame_xic): Pass XNStatusAttributes to XCreateIC
only if xic_style calls for it.  This change allows Emacs to work
with ibus.  Also, don't leak resources if create_frame_xic fails,
and stop caching xic_style across different displays.
(supported_xim_styles): Make const.
(best_xim_style): Remove first parameter: it's always just
supported_xim_styles.  Change to look at supported_xim_styles
directly.

Fixes: debbugs:17928
10 years agoFix bug #17905 with display of point in partially visible line at end of window.
Eli Zaretskii [Fri, 4 Jul 2014 13:22:04 +0000 (16:22 +0300)]
Fix bug #17905 with display of point in partially visible line at end of window.

 src/xdisp.c (redisplay_window): If redisplay of a window ends up
 with point in a partially visible line at end of the window, make
 sure the amended position of point actually has smaller Y
 coordinate; if not, give up and scroll the display.
 src/window.c (window_scroll_pixel_based): When point ends up at the
 last fully visible line, don't let move_it_to stop at the left
 edge of the line and dupe us into thinking point is inside the
 scroll margin.

10 years ago* automated/dbus-tests.el (dbus-test02-register-service-session)
Michael Albinus [Fri, 4 Jul 2014 10:07:45 +0000 (12:07 +0200)]
* automated/dbus-tests.el (dbus-test02-register-service-session)
(dbus-test02-register-service-system): Fix docstring.
(dbus-test02-register-service-own-bus)
(dbus-test03-peer-interface): New tests.

10 years agoFix Bug#17858
Michael Albinus [Fri, 4 Jul 2014 10:03:14 +0000 (12:03 +0200)]
Fix Bug#17858

* net/dbus.el (dbus-peer-handler): New defun.
(dbus-register-service): Register it.
(dbus-managed-objects-handler): Fix docstring.

10 years agosrc/w32.c (network_interface_info): Make sure the argument is a Lisp string.
Eli Zaretskii [Fri, 4 Jul 2014 07:40:08 +0000 (10:40 +0300)]
src/w32.c (network_interface_info): Make sure the argument is a Lisp string.

10 years agoMinor updates in etc/TODO and etc/NEWS.
Eli Zaretskii [Fri, 4 Jul 2014 07:35:22 +0000 (10:35 +0300)]
Minor updates in etc/TODO and etc/NEWS.

 etc/TODO: Remove items that were already done.  Rearrange a few
 items that are closely related.  Update a couple of items with new
 information.
 etc/NEWS: Mention 'network-interface-list' and 'network-interface-info'
 being available on MS-Windows.

10 years ago* font.h (struct font_driver): Remove get_outline and free_outline;
Dmitry Antipov [Fri, 4 Jul 2014 02:28:54 +0000 (06:28 +0400)]
* font.h (struct font_driver): Remove get_outline and free_outline;
not used by any font driver.
* ftfont.c (ftfont_driver):
* macfont.m (macfont_driver):
* nsfont.m (nsfont_driver):
* w32font.c (w32font_driver):
* w32uniscribe.c (uniscribe_font_driver):
* xfont.c (xfont_driver): Related users changed.
* xselect.c (x_get_window_property): Use convenient xmalloc.
Call to xfree only if some data was really allocated.

10 years ago* lisp/emacs-lisp/lisp.el (narrow-to-defun-include-comments): New var.
Phil Sainty [Fri, 4 Jul 2014 02:00:54 +0000 (22:00 -0400)]
* lisp/emacs-lisp/lisp.el (narrow-to-defun-include-comments): New var.
(narrow-to-defun): New arg include-comments, defaulting to it.

Fixes: debbugs:16328
10 years ago* lisp/progmodes/octave.el (inferior-octave-mode):
Stefan Monnier [Fri, 4 Jul 2014 01:35:23 +0000 (21:35 -0400)]
* lisp/progmodes/octave.el (inferior-octave-mode):
Set comint-input-ring-size to a number.

Fixes: debbugs:17912
10 years ago* doc/emacs/search.texi (Regexp Search): Update lax space matching that is
Juri Linkov [Thu, 3 Jul 2014 23:52:42 +0000 (02:52 +0300)]
* doc/emacs/search.texi (Regexp Search): Update lax space matching that is
not active in regexp search by default now.

Fixes: debbugs:17901
10 years ago* lisp/desktop.el (desktop-minor-mode-table): Add `defining-kbd-macro'
Juri Linkov [Thu, 3 Jul 2014 23:48:24 +0000 (02:48 +0300)]
* lisp/desktop.el (desktop-minor-mode-table): Add `defining-kbd-macro'
and `isearch-mode' associated with nil.

Fixes: debbugs:17849
10 years ago* lisp/rect.el (rectangle--highlight-for-redisplay): Don't pass `orig' with
Stefan Monnier [Thu, 3 Jul 2014 22:22:42 +0000 (18:22 -0400)]
* lisp/rect.el (rectangle--highlight-for-redisplay): Don't pass `orig' with
different calling convention to rectangle--unhighlight-for-redisplay.

10 years agoOn MS-Windows, display busy cursor on all GUI frames.
Dmitry Antipov [Thu, 3 Jul 2014 18:12:41 +0000 (22:12 +0400)]
On MS-Windows, display busy cursor on all GUI frames.
This is similar to what we have on X.  Quickly tested by Dani Moncayo.
* w32fns.c (toplevel): Remove hourglass_hwnd; no longer used.
(w32_show_hourglass, w32_hide_hourglass, w32_note_current_window):
Likewise.
(hide_hourglass, show_hourglass): Redesign to match X counterparts.
* xdisp.c (start_hourglass): Remove Windows-specific bits.

10 years ago* etc/NEWS: Fix description of incompatible change in `read-char'.
Stefan Monnier [Thu, 3 Jul 2014 16:29:22 +0000 (12:29 -0400)]
* etc/NEWS: Fix description of incompatible change in `read-char'.

10 years agoFix nick duplication in format-@nick
Kelvin White [Thu, 3 Jul 2014 12:30:26 +0000 (08:30 -0400)]
Fix nick duplication in format-@nick

10 years agoUse convenient alists to manage per-frame font driver-specific data.
Dmitry Antipov [Thu, 3 Jul 2014 12:20:00 +0000 (16:20 +0400)]
Use convenient alists to manage per-frame font driver-specific data.
* frame.h (struct frame): Rename font_data_list to...
[HAVE_XFT || HAVE_FREETYPE]: ... font_data, which is a Lisp_Object now.
* font.h (struct font_data_list): Remove; no longer need a special
data type.
(font_put_frame_data, font_get_frame_data) [HAVE_XFT || HAVE_FREETYPE]:
Adjust prototypes.
* font.c (font_put_frame_data, font_get_frame_data)
[HAVE_XFT || HAVE_FREETYPE]: Prefer alist functions to ad-hoc list
management.
* xftfont.c (xftfont_get_xft_draw, xftfont_end_for_frame):
Related users changed.
* ftxfont.c (ftxfont_get_gcs, ftxfont_end_for_frame): Likewise.
Prefer convenient xmalloc and xfree.

10 years ago* net/tramp-adb.el (tramp-adb-sh-fix-ls-output): Use `bolp'.
Michael Albinus [Thu, 3 Jul 2014 09:27:02 +0000 (11:27 +0200)]
* net/tramp-adb.el (tramp-adb-sh-fix-ls-output): Use `bolp'.

* net/tramp-sh.el (tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime): Use `point-at-eol'.

* net/tramp.el (tramp-call-process): Handle error strings.

* net/trampver.el: Update release number.

10 years ago* trampver.texi: Update release number.
Michael Albinus [Thu, 3 Jul 2014 09:10:05 +0000 (11:10 +0200)]
* trampver.texi: Update release number.

10 years agoMerge from emacs-24; up to 2014-06-15T04:52:34Z!eli@barzilay.org
Glenn Morris [Thu, 3 Jul 2014 06:00:53 +0000 (23:00 -0700)]
Merge from emacs-24; up to 2014-06-15T04:52:34Z!eli@barzilay.org

10 years ago* lisp/desktop.el (desktop-save): Rename arg `auto-save' to `only-if-changed'.
Juri Linkov [Wed, 2 Jul 2014 23:45:12 +0000 (02:45 +0300)]
* lisp/desktop.el (desktop-save): Rename arg `auto-save' to `only-if-changed'.
Doc fix.

Fixes: debbugs:17873
10 years ago* lisp.h (toplevel): Add compile-time assert to verify suitable member layout
Dmitry Antipov [Wed, 2 Jul 2014 15:22:49 +0000 (19:22 +0400)]
* lisp.h (toplevel): Add compile-time assert to verify suitable member layout
in Lisp_Sub_Char_Table.

10 years ago* mouse.el (mouse-yank-primary, mouse-yank-secondary): Use insert-for-yank.
Stefan Monnier [Wed, 2 Jul 2014 14:42:00 +0000 (10:42 -0400)]
* mouse.el (mouse-yank-primary, mouse-yank-secondary): Use insert-for-yank.

Fixes: debbugs:17271
10 years ago* print.c (print_object): Adjust to match new layout of sub char-table
Dmitry Antipov [Wed, 2 Jul 2014 14:00:41 +0000 (18:00 +0400)]
* print.c (print_object): Adjust to match new layout of sub char-table
(Bug#17898).

10 years ago* emacs-lisp/pp.el (pp-eval-expression, pp-eval-last-sexp):
Leo Liu [Wed, 2 Jul 2014 05:05:50 +0000 (13:05 +0800)]
* emacs-lisp/pp.el (pp-eval-expression, pp-eval-last-sexp):
Support lexical-binding.

10 years ago* lisp/progmodes/hideif.el (hide-ifdef-exclude-define-regexp): Add the
Luke Lee [Wed, 2 Jul 2014 04:25:21 +0000 (12:25 +0800)]
* lisp/progmodes/hideif.el (hide-ifdef-exclude-define-regexp): Add the
forgotten :version "24.5".

10 years agoShrink Lisp_Sub_Char_Table by preferring C integers to Lisp_Objects.
Dmitry Antipov [Wed, 2 Jul 2014 03:26:19 +0000 (07:26 +0400)]
Shrink Lisp_Sub_Char_Table by preferring C integers to Lisp_Objects.
* lisp.h (struct Lisp_Sub_Char_Table): Use C integers for depth and
min_char slots.  Adjust comment.
(enum char_table_specials): Rename from CHAR_TABLE_STANDARD_SLOTS.
Add SUB_CHAR_TABLE_OFFSET member.
(make_uninit_sub_char_table): New function.
* alloc.c (mark_char_table): Add extra argument to denote char table
subtype.  Adjust to match new layout of sub char-table.
(mark_object): Always mark sub char-tables with mark_char_table.
* chartab.c (make_sub_char_table, copy_sub_char_table)
(sub_char_table_ref, sub_char_table_ref_and_range, sub_char_table_set)
(sub_char_table_set_range, optimize_sub_char_table, map_sub_char_table)
(map_sub_char_table_for_charset, uniprop_table_uncompress):
All related users changed.
* lread.c (read1): Adjust to match new layout of sub char-table.

10 years ago* doc/lispref/keymaps.texi (Key Lookup): Remove mention of indirect entries.
Stefan Monnier [Wed, 2 Jul 2014 01:49:31 +0000 (21:49 -0400)]
* doc/lispref/keymaps.texi (Key Lookup): Remove mention of indirect entries.
(Scanning Keymaps): Reword the `noindirect' argument.
* src/keymap.c (get_keyelt): Simplify.
(copy_keymap_item): Remove left-over code for when we had
key-shortcut caches.

10 years ago* lisp/man.el (Man-bgproc-sentinel): Use `Man-page-from-arguments'
Juri Linkov [Wed, 2 Jul 2014 00:57:53 +0000 (03:57 +0300)]
* lisp/man.el (Man-bgproc-sentinel): Use `Man-page-from-arguments'
for the message about the man page cleaned up.

10 years agoDisplay man pages immediately and use process-filter to format them asynchronously.
Juri Linkov [Tue, 1 Jul 2014 23:54:59 +0000 (02:54 +0300)]
Display man pages immediately and use process-filter to format them asynchronously.
* lisp/man.el (Man-width): Doc fix.
(man): Doc fix.
(Man-start-calling): Use `with-selected-window' to get
`frame-width' and `window-width'.
(Man-getpage-in-background): Call `Man-notify-when-ready'
immediately after creating a new buffer.  Call `Man-mode' and set
`mode-line-process' in the created buffer.  Set process-filter to
`Man-bgproc-filter' in start-process branch.  In call-process branch
call either `Man-fontify-manpage' or `Man-cleanup-manpage'.
Use `Man-start-calling' inside `with-current-buffer'.
(Man-fontify-manpage): Don't print messages.  Fix boundary condition.
(Man-cleanup-manpage): Don't print messages.
(Man-bgproc-filter): New function.
(Man-bgproc-sentinel): Add `save-excursion' to keep point when
user moved it during asynchronous formatting.  Move calls of
`Man-fontify-manpage' and `Man-cleanup-manpage' to
`Man-bgproc-filter'.  Move the call of `Man-mode' to
`Man-getpage-in-background'.  Use `quit-restore-window'
instead of `kill-buffer'.  Use `message' instead of `error'
because errors are catched by process sentinel.
(Man-mode): Move calls of `Man-build-page-list',
`Man-strip-page-headers', `Man-unindent', `Man-goto-page' to
`Man-bgproc-sentinel'.  Doc fix.  (Bug#2588, bug#5054, bug#9084, bug#17831)

10 years ago* net/gnutls.el (gnutls-negotiate): Prevent destructive modification of
Mario Lang [Tue, 1 Jul 2014 18:48:24 +0000 (20:48 +0200)]
* net/gnutls.el (gnutls-negotiate): Prevent destructive modification of
customization option `gnutls-verify-error.

10 years ago* lisp/simple.el (deactivate-mark, set-mark-command, handle-shift-selection):
Stefan Monnier [Tue, 1 Jul 2014 18:13:28 +0000 (14:13 -0400)]
* lisp/simple.el (deactivate-mark, set-mark-command, handle-shift-selection):
Don't keep transient-mark-mode buffer-local when not needed.

Fixes: debbugs:6316
10 years agosrc/dispnew.c: Fix a typo in a comment.
Eli Zaretskii [Tue, 1 Jul 2014 18:00:29 +0000 (21:00 +0300)]
src/dispnew.c: Fix a typo in a comment.

10 years agoFix bug #17892 with mode/header line and display margins.
Eli Zaretskii [Tue, 1 Jul 2014 17:07:24 +0000 (20:07 +0300)]
Fix bug #17892 with mode/header line and display margins.

 src/dispnew.c (prepare_desired_row): Accept 2 additional arguments:
 the window whose glyph row is being prepared and a flag whether it
 is for mode/header line.  Make sure the glyph row's marginal areas
 are in sync with what the window wants.
 src/xdisp.c (display_line, display_mode_line): Call
 prepare_desired_row with additional arguments, as appropriate.
 src/dispextern.h (prepare_desired_row): Adjust prototype.
 src/window.h: Improve commentary of the marginal columns.

10 years ago* lisp/xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal)
Stefan Monnier [Tue, 1 Jul 2014 16:10:02 +0000 (12:10 -0400)]
* lisp/xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal)
(turn-off-xterm-mouse-tracking-on-terminal): Don't burp if the terminal
is suspended.

Fixes: debbugs:17857
10 years agomerge trunk
Kenichi Handa [Tue, 1 Jul 2014 15:34:58 +0000 (00:34 +0900)]
merge trunk

10 years ago* coding.c (MIN_CHARBUF_SIZE): Delete it.
Kenichi Handa [Tue, 1 Jul 2014 15:31:59 +0000 (00:31 +0900)]
* coding.c (MIN_CHARBUF_SIZE): Delete it.
(MAX_CHARBUF_EXTRA_SIZE): New macro.
(ALLOC_CONVERSION_WORK_AREA): Use MAX_CHARBUF_EXTRA_SIZE.

10 years ago* lisp/vc/log-edit.el (log-edit-goto-eoh): New function.
Stefan Monnier [Tue, 1 Jul 2014 15:15:03 +0000 (11:15 -0400)]
* lisp/vc/log-edit.el (log-edit-goto-eoh): New function.
(log-edit--match-first-line): Use it.

Fixes: debbugs:17861
10 years agoFix ChangeLog entry
Dmitry Antipov [Tue, 1 Jul 2014 14:51:26 +0000 (18:51 +0400)]
Fix ChangeLog entry

10 years ago* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Michael Albinus [Tue, 1 Jul 2014 14:06:11 +0000 (16:06 +0200)]
* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Prefer utf-8 coding.  (Bug#17859)

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 1 Jul 2014 11:19:31 +0000 (07:19 -0400)]
Auto-commit of loaddefs files.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 1 Jul 2014 10:18:16 +0000 (06:18 -0400)]
Auto-commit of loaddefs files.

10 years ago* menu.c (Fx_popup_dialog): Set Vmenu_updating_frame to avoid crash
Dmitry Antipov [Tue, 1 Jul 2014 08:07:32 +0000 (12:07 +0400)]
* menu.c (Fx_popup_dialog): Set Vmenu_updating_frame to avoid crash
caused by xw_popup_dialog in daemon mode (Bug#17891).

10 years ago* xfaces.c (init_frame_faces): Always realize basic faces (#Bug17889).
Dmitry Antipov [Tue, 1 Jul 2014 07:30:33 +0000 (11:30 +0400)]
* xfaces.c (init_frame_faces): Always realize basic faces (#Bug17889).

10 years ago* lisp/vc/log-edit.el (log-edit-hook): Add missing :version.
Glenn Morris [Tue, 1 Jul 2014 07:00:46 +0000 (00:00 -0700)]
* lisp/vc/log-edit.el (log-edit-hook): Add missing :version.

10 years ago* lisp/progmodes/python.el (python-indent-post-self-insert-function):
Fabián Ezequiel Gallina [Tue, 1 Jul 2014 03:54:11 +0000 (00:54 -0300)]
* lisp/progmodes/python.el (python-indent-post-self-insert-function):
Enhancements to electric indentation behavior inside
parens.

* test/automated/python-tests.el
(python-tests-self-insert): New function.
(python-triple-quote-pairing): Use it.
(python-util-forward-comment-1): New test. (Bug#17658)

10 years ago* lisp/ps-def.el (ps-generate-postscript-with-faces1): Don't mess with
Stefan Monnier [Tue, 1 Jul 2014 02:25:52 +0000 (22:25 -0400)]
* lisp/ps-def.el (ps-generate-postscript-with-faces1): Don't mess with
buffer-invisibility-spec.

Fixes: debbugs:17867
10 years ago* lisp/emacs-lisp/subr-x.el (string-reverse): Define as obsolete alias
Fabián Ezequiel Gallina [Mon, 30 Jun 2014 20:17:17 +0000 (17:17 -0300)]
* lisp/emacs-lisp/subr-x.el (string-reverse): Define as obsolete alias
for `reverse'.

10 years agoChangelog, NEWS and Copyright fixes.
Fabián Ezequiel Gallina [Mon, 30 Jun 2014 19:58:56 +0000 (16:58 -0300)]
Changelog, NEWS and Copyright fixes.