]> code.delx.au - gnu-emacs/log
gnu-emacs
9 years ago* lisp/tar-mode.el (tar--extract, tar-extract): Avoid disabling undo
Glenn Morris [Thu, 28 Aug 2014 19:18:24 +0000 (15:18 -0400)]
* lisp/tar-mode.el (tar--extract, tar-extract): Avoid disabling undo
in extracted buffers.

Fixes: debbugs:18344
9 years agoFix bug #18339 with segfault when $ is typed into empty LaTeX buffer.
Eli Zaretskii [Thu, 28 Aug 2014 16:26:39 +0000 (19:26 +0300)]
Fix bug #18339 with segfault when $ is typed into empty LaTeX buffer.
Back-ported from trunk revision-id: 2014-08-27T19:40:54Z!eliz@gnu.org

 src/syntax.c (scan_lists): Don't examine positions before BEGV.

9 years ago* etc/emacs.appdata.xml: New file
Glenn Morris [Thu, 28 Aug 2014 01:53:26 +0000 (18:53 -0700)]
* etc/emacs.appdata.xml: New file

Ref: http://people.freedesktop.org/~hughsient/appdata/

The description is adapted from the Emacs homepage.

9 years ago* emacs-lisp/authors.el (authors-aliases): Addition.
Michael Albinus [Wed, 27 Aug 2014 07:53:58 +0000 (09:53 +0200)]
* emacs-lisp/authors.el (authors-aliases): Addition.

9 years ago* net/tramp-adb.el: Spell author name correctly.
Michael Albinus [Wed, 27 Aug 2014 07:25:37 +0000 (09:25 +0200)]
* net/tramp-adb.el: Spell author name correctly.

9 years agoshr.el: Comment.
Glenn Morris [Wed, 27 Aug 2014 05:06:20 +0000 (22:06 -0700)]
shr.el: Comment.

9 years ago* net/shr.el (shr-expand-url): Plain expand-file-name is not enough;
João Távora [Wed, 27 Aug 2014 05:04:47 +0000 (22:04 -0700)]
* net/shr.el (shr-expand-url): Plain expand-file-name is not enough;
use url-expand-file-name.

Fixes: debbugs:18310
9 years agoFix unoptimized build on MSDOS.
Eli Zaretskii [Mon, 25 Aug 2014 17:44:27 +0000 (20:44 +0300)]
Fix unoptimized build on MSDOS.

 msdos/sedlibmk.inp (gl_LIBOBJS): Add execinfo.o.  Reported by Juan
 Manuel Guerrero <juan.guerrero@gmx.de>.

 src/conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Don't define.

9 years ago* emulation/cua-rect.el (cua--highlight-rectangle): Avoid error at point-min.
Glenn Morris [Mon, 25 Aug 2014 16:40:53 +0000 (12:40 -0400)]
* emulation/cua-rect.el (cua--highlight-rectangle): Avoid error at point-min.

Fixes: debbugs:18309
9 years agoFix compilation warnings about snprintf in the MSDOS build.
Eli Zaretskii [Sat, 23 Aug 2014 08:22:46 +0000 (11:22 +0300)]
Fix compilation warnings about snprintf in the MSDOS build.

 msdos/sed2v2.inp [DJGPP <= 2.03]: Add a prototype for snprintf, to
 avoid compilation warning from newer GCC versions that have
 snprintf as a built-in.  Reported by Juan Manuel Guerrero
 <juan.guerrero@gmx.de>.

9 years agoBackport: * configure.ac (HAVE_XPM): Explain the use of CPPFLAGS in the Cygwin-w32...
Ken Brown [Fri, 22 Aug 2014 13:03:05 +0000 (09:03 -0400)]
Backport: * configure.ac (HAVE_XPM): Explain the use of CPPFLAGS in the Cygwin-w32 build.  (Bug#18302)

9 years agoUpdate Emacs's bidirectional conformance per Unicode 6.3.0.
Eli Zaretskii [Tue, 19 Aug 2014 18:56:29 +0000 (21:56 +0300)]
Update Emacs's bidirectional conformance per Unicode 6.3.0.

 doc/lispref/display.texi (Bidirectional Display): Update the Emacs's class
 of bidirectional conformance.

9 years ago* python-tests.el (python-shell-calculate-exec-path-2): Update test
Glenn Morris [Mon, 18 Aug 2014 19:15:06 +0000 (15:15 -0400)]
* python-tests.el (python-shell-calculate-exec-path-2): Update test
for today's python.el changes.

9 years ago* lisp/progmodes/python.el (python-shell-prompt-detect): Remove redundant
Stefan Monnier [Mon, 18 Aug 2014 16:11:43 +0000 (12:11 -0400)]
* lisp/progmodes/python.el (python-shell-prompt-detect): Remove redundant
executable-find.

Fixes: debbugs:18244
9 years agosrc/xdisp.c (handle_stop): Improve commentary.
Eli Zaretskii [Mon, 18 Aug 2014 15:38:56 +0000 (18:38 +0300)]
src/xdisp.c (handle_stop): Improve commentary.

9 years agoFix bug #18276 with vertical motion through a display property.
Eli Zaretskii [Mon, 18 Aug 2014 15:34:49 +0000 (18:34 +0300)]
Fix bug #18276 with vertical motion through a display property.

 src/indent.c (Fvertical_motion): Fix vertical motion up through a
 display property after a newline.

9 years ago* lisp/simple.el (self-insert-uses-region-functions): Defvar.
Stefan Monnier [Mon, 18 Aug 2014 15:20:27 +0000 (11:20 -0400)]
* lisp/simple.el (self-insert-uses-region-functions): Defvar.

9 years agoAvoid inflooping in redisplay caused by hscrolled R2L lines.
Eli Zaretskii [Sun, 17 Aug 2014 14:48:50 +0000 (17:48 +0300)]
Avoid inflooping in redisplay caused by hscrolled R2L lines.

 src/xdisp.c (display_line): Don't assume that the call to
 reseat_at_next_visible_line_start ends up at a character
 immediately following the newline on the previous line.  Avoids
 setting the ends_at_zv_p flag on screen lines that are not at or
 beyond ZV, which causes infloop in redisplay.  For the details, see
 http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00368.html.

9 years agoFix bug #18277 with mouse clicks on R2L lines.
Eli Zaretskii [Sun, 17 Aug 2014 14:34:05 +0000 (17:34 +0300)]
Fix bug #18277 with mouse clicks on R2L lines.

 src/dispnew.c (buffer_posn_from_coords): Fix mirroring of X
 coordinate for hscrolled R2L screen lines.

9 years agoRegenerate ldefs-boot.el emacs-24.3.93
Glenn Morris [Fri, 15 Aug 2014 04:05:36 +0000 (21:05 -0700)]
Regenerate ldefs-boot.el

9 years agoRegenerate etc/AUTHORS
Glenn Morris [Thu, 14 Aug 2014 20:02:30 +0000 (16:02 -0400)]
Regenerate etc/AUTHORS

9 years agoBump version number to 24.3.93
Glenn Morris [Thu, 14 Aug 2014 19:56:31 +0000 (15:56 -0400)]
Bump version number to 24.3.93

9 years ago* speedbar.el (speedbar-generic-list-tag-p): Allow special
Leo Liu [Wed, 13 Aug 2014 03:21:43 +0000 (11:21 +0800)]
* speedbar.el (speedbar-generic-list-tag-p): Allow special
elements from imenu.

9 years ago* src/gmalloc.c (_malloc_mutex, _aligned_blocks_mutex) [CYGWIN]: Use ERRORCHECK mutex...
Ken Brown [Mon, 11 Aug 2014 15:25:08 +0000 (11:25 -0400)]
* src/gmalloc.c (_malloc_mutex, _aligned_blocks_mutex) [CYGWIN]: Use ERRORCHECK mutexes.  (Bug#18222)

9 years ago* lisp/subr.el (with-output-to-temp-buffer): Doc fix; from elisp manual.
Glenn Morris [Mon, 11 Aug 2014 01:13:38 +0000 (18:13 -0700)]
* lisp/subr.el (with-output-to-temp-buffer): Doc fix; from elisp manual.

9 years agoRevert 2013-01-31 change that decides coding system before backing up
Glenn Morris [Mon, 11 Aug 2014 00:38:19 +0000 (17:38 -0700)]
Revert 2013-01-31 change that decides coding system before backing up

It causes a more serious problem than the one it solves.
This closes bug#18141, and reopens bug#13522.

* lisp/files.el (basic-save-buffer-2): Revert 2013-01-31 change.

* src/fileio.c: Revert 2013-01-31 change.
(choose_write_coding_system): No longer callable from Lisp.
Move last piece back here from Fwrite_region.
(Fwrite_region, syms_of_fileio): Update for above changes.

* test/automated/data/files-bug18141.el.gz: New file.
* test/automated/files.el (files-test-bug-18141-file):
New variable and test.

9 years agoSimplify previous patch.
Paul Eggert [Sun, 10 Aug 2014 21:06:07 +0000 (14:06 -0700)]
Simplify previous patch.

Fixes: debbugs:18232
9 years agoDon't prevent random file systems from being unmounted.
Paul Eggert [Sun, 10 Aug 2014 20:40:57 +0000 (13:40 -0700)]
Don't prevent random file systems from being unmounted.

This fix relies on having the 'fchdir' function, and on having
"." be searchable (or at least readable, on platforms lacking O_SEARCH),
but that's good enough to handle the vast majority of cases and the
remaining folks can just live with the annoyance of file systems
that occasionally can't be unmounted.
* configure.ac (fchdir): New function to check for.
* lib/save-cwd.c: Copy from gnulib, except omit the part that
allocates memory, since that can cause problems in Emacs.
* lib/save-cwd.h: Copy from gnulib.

Fixes: debbugs:18232
9 years agoMake doc-string of window-total-size more self-contained.
Martin Rudalics [Sun, 10 Aug 2014 10:41:28 +0000 (12:41 +0200)]
Make doc-string of window-total-size more self-contained.

* window.el (window-total-size): Make doc-string more
self-contained.

9 years agoIn display-buffer-below-selected reuse window below selected if it shows buffer alrea...
Martin Rudalics [Sat, 9 Aug 2014 16:50:13 +0000 (18:50 +0200)]
In display-buffer-below-selected reuse window below selected if it shows buffer already (Bug#18181).

* window.el (display-buffer-below-selected): Restore original
behavior if buffer is already displayed in the window below the
selected one (Bug#18181).

9 years agoSecond attempt to fix some doc-strings in window.c.
Martin Rudalics [Sat, 9 Aug 2014 11:12:45 +0000 (13:12 +0200)]
Second attempt to fix some doc-strings in window.c.

* window.c (Fwindow_new_total, Fwindow_new_normal)
(Fwindow_new_pixel, Fset_window_new_pixel)
(Fset_window_new_total, Fset_window_new_normal): Second attempt
to fix the doc-strings of these functions.  See:
http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-08/msg00287.html

9 years ago* lisp/mouse.el (mouse--down-1-maybe-follows-link): Don't convert the down
Stefan Monnier [Fri, 8 Aug 2014 16:56:50 +0000 (12:56 -0400)]
* lisp/mouse.el (mouse--down-1-maybe-follows-link): Don't convert the down
event.

Fixes: debbugs:18212
9 years agolisp/info.el (info): Doc fix.
Eli Zaretskii [Fri, 8 Aug 2014 13:53:55 +0000 (16:53 +0300)]
lisp/info.el (info): Doc fix.

9 years agoFix some doc-strings in window.c (Bug#18112) (Bug#18194).
Martin Rudalics [Fri, 8 Aug 2014 09:52:59 +0000 (11:52 +0200)]
Fix some doc-strings in window.c (Bug#18112) (Bug#18194).

* window.c (Fwindow_valid_p): Fix doc-string (Bug#18194).
(Fwindow_new_total, Fwindow_normal_size, Fwindow_new_normal)
(Fwindow_new_pixel, Fset_window_new_pixel)
(Fset_window_new_total, Fset_window_new_normal)
(Fwindow_resize_apply): Fix doc-strings (see Bug#18112).

9 years agoFix typos in TUTORIAL.fr
Bastien Guerry [Fri, 8 Aug 2014 05:20:52 +0000 (07:20 +0200)]
Fix typos in TUTORIAL.fr

9 years ago* lisp/info.el (Info-mode-map): Override a global down-mouse-2 binding.
Stefan Monnier [Thu, 7 Aug 2014 18:35:54 +0000 (14:35 -0400)]
* lisp/info.el (Info-mode-map): Override a global down-mouse-2 binding.

Fixes: debbugs:18212
9 years agoFix bug #18162 with assertion violations due to empty face cache.
Eli Zaretskii [Thu, 7 Aug 2014 15:18:10 +0000 (18:18 +0300)]
Fix bug #18162 with assertion violations due to empty face cache.

 src/fontset.c (Finternal_char_font): Recompute basic faces if the
 frame's face cache was cleared.

9 years ago* test/automated/Makefile.in (check-tar): Remove, no longer needed.
Glenn Morris [Thu, 7 Aug 2014 00:08:57 +0000 (17:08 -0700)]
* test/automated/Makefile.in (check-tar): Remove, no longer needed.

No need to merge this to trunk.

9 years agosrc/coding.c: Fix typos in comments and doc strings.
Eli Zaretskii [Wed, 6 Aug 2014 17:37:22 +0000 (20:37 +0300)]
src/coding.c: Fix typos in comments and doc strings.

9 years agoFix bug #18195 with inaccurate results from window-screen-lines.
Eli Zaretskii [Tue, 5 Aug 2014 13:34:06 +0000 (16:34 +0300)]
Fix bug #18195 with inaccurate results from window-screen-lines.

 lisp/simple.el (default-line-height): A floating-point value of
 line-spacing means a fraction of the default frame font's height,
 not of the font currently used by the 'default' face.  Truncate
 the pixel value, like the display engine does.
 (window-screen-lines): Use window-inside-pixel-edges for
 determining the window height in pixels.

9 years agoFix bug with uninitialized undo list of an indirect buffer (Bug#18180).
Dmitry Antipov [Tue, 5 Aug 2014 06:04:38 +0000 (10:04 +0400)]
Fix bug with uninitialized undo list of an indirect buffer (Bug#18180).
* buffer.c (Fmake_indirect_buffer): Initialize undo list with the
base buffer's undo list.

9 years agoFix bug with an attempt to select uninitialized frame (Bug#18161).
Dmitry Antipov [Sun, 3 Aug 2014 07:19:43 +0000 (11:19 +0400)]
Fix bug with an attempt to select uninitialized frame (Bug#18161).
* xfns.c (Fx_create_frame): Move call to change_frame_size to
a section where Lisp evaluation is disabled.  This way a pointer
to uninitialized frame is not accessible from Lisp, which becomes
critical if following call to x_figure_window_size throws an error.

9 years ago* test/automated/Makefile.in (check-tar): Add as alias for check.
Glenn Morris [Sun, 3 Aug 2014 03:52:00 +0000 (23:52 -0400)]
* test/automated/Makefile.in (check-tar): Add as alias for check.

Do not merge this to trunk.

9 years agoFix bug with clang + directory_files_internal + GC.
Paul Eggert [Sat, 2 Aug 2014 22:58:09 +0000 (15:58 -0700)]
Fix bug with clang + directory_files_internal + GC.

* src/dired.c (directory_files_internal): Use a volatile variable
to prevent the compiler from optimizing away all copies of a local.
I wonder how many other GC-related bugs like this lurk elsewhere?

Fixes: debbugs:16986
9 years agoAvoid 100% CPU utilization on ssh session exit.
Paul Eggert [Sat, 2 Aug 2014 21:31:18 +0000 (14:31 -0700)]
Avoid 100% CPU utilization on ssh session exit.

* src/xterm.h (struct x_display_info): New member 'connection'.
* src/xterm.c (x_term_init, x_delete_terminal): Set and use it,
so that x_delete_terminal has a file descriptor to pass to
delete_keyboard_wait_descriptor.

Fixes: debbugs:17691
9 years agoSpelling+grammar fix.
Paul Eggert [Fri, 1 Aug 2014 15:44:42 +0000 (08:44 -0700)]
Spelling+grammar fix.

9 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 1 Aug 2014 11:18:48 +0000 (07:18 -0400)]
Auto-commit of loaddefs files.

9 years agoFix display of R2L lines when the last character fits only partially.
Eli Zaretskii [Fri, 1 Aug 2014 09:39:04 +0000 (12:39 +0300)]
Fix display of R2L lines when the last character fits only partially.

 See http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00476.html
 for the details.
 src/xdisp.c (extend_face_to_end_of_line): If the last glyph of an
 R2L row is visible only partially, give the row a negative x
 offset.
 (display_line): Fix the calculation of the glyph whose pixel width
 is used to decide whether the last produced glyph fits on the
 line.  When the last glyph fits only partially, give the row a
 negative x offset.

9 years agoFix bug #18146 with bogus key rebindings in TUTORIAL.he.
Eli Zaretskii [Tue, 29 Jul 2014 13:41:50 +0000 (16:41 +0300)]
Fix bug #18146 with bogus key rebindings in TUTORIAL.he.

 lisp/tutorial.el (tutorial--display-changes): Accept punctuation
 characters before the key binding.  (Bug#18146)

9 years agoFix hscroll of R2L lines that begin with a TAB or another wide glyph.
Eli Zaretskii [Tue, 29 Jul 2014 08:19:29 +0000 (11:19 +0300)]
Fix hscroll of R2L lines that begin with a TAB or another wide glyph.

 src/xdisp.c (append_stretch_glyph): In a R2L glyph row, decrease the
 pixel width of the first glyph that is hscrolled from display.
 (display_line): In R2L glyph rows, don't give a negative offset to
 row->x when the first glyph begins before first_visible_x.

9 years agoFixes: debbugs:18140
Andreas Schwab [Tue, 29 Jul 2014 08:08:04 +0000 (10:08 +0200)]
Fixes: debbugs:18140
* macros.c (Fstart_kbd_macro): Initialize kbd_macro_ptr and
kbd_macro_end together with kbd_macro_buffer.

9 years agoFix another part of bug #18035 with redisplay of line-prefix and linum-mode.
Eli Zaretskii [Mon, 28 Jul 2014 13:09:02 +0000 (16:09 +0300)]
Fix another part of bug #18035 with redisplay of line-prefix and linum-mode.

 src/xdisp.c (display_line): If called with iterator set up to write
 to a marginal area, delay the call to handle_line_prefix until we
 switch back to the text area.

9 years agoMerge commit 2014-07-28T09:07:56Z!tsdh@gnu.org from trunk.
Tassilo Horn [Mon, 28 Jul 2014 09:32:25 +0000 (11:32 +0200)]
Merge commit 2014-07-28T09:07:56Z!tsdh@gnu.org from trunk.

9 years agosrc/ChangeLog: Fix a typo.
Eli Zaretskii [Mon, 28 Jul 2014 07:18:46 +0000 (10:18 +0300)]
src/ChangeLog: Fix a typo.

9 years agoFix GDB xwindow command.
Eli Zaretskii [Mon, 28 Jul 2014 07:10:17 +0000 (10:10 +0300)]
Fix GDB xwindow command.

 src/.gdbinit (xwindow): The members total_cols, total_lines,
 left_col, and top_line are C integers (and has been so for the
 last 1.5 years).

9 years agoFix bugs #16674 and #18112 with resizing TTY frames after switching terminals.
Eli Zaretskii [Sun, 27 Jul 2014 13:01:07 +0000 (16:01 +0300)]
Fix bugs #16674 and #18112 with resizing TTY frames after switching terminals.

 lisp/window.el (window--pixel-to-total): Use FRAME's root window, not
 that of the selected frame.

9 years agosrc/window.c (window_resize_check, window_resize_apply): Fix typos in comments.
Eli Zaretskii [Sun, 27 Jul 2014 12:04:29 +0000 (15:04 +0300)]
src/window.c (window_resize_check, window_resize_apply): Fix typos in comments.

9 years agoFixes: debbugs:18117
Andreas Schwab [Sun, 27 Jul 2014 11:38:59 +0000 (13:38 +0200)]
Fixes: debbugs:18117
* textmodes/tex-mode.el (tex-font-lock-verb): Doc fix.

9 years agosrc/dispnew.c (allocate_matrices_for_frame_redisplay): Fix typo in a comment.
Eli Zaretskii [Sun, 27 Jul 2014 06:32:56 +0000 (09:32 +0300)]
src/dispnew.c (allocate_matrices_for_frame_redisplay): Fix typo in a comment.

9 years ago* lisp/progmodes/python.el (inferior-python-mode): Doc fix.
Fabián Ezequiel Gallina [Sun, 27 Jul 2014 01:36:48 +0000 (22:36 -0300)]
* lisp/progmodes/python.el (inferior-python-mode): Doc fix.

9 years agoFix bug #18113 with ambiguous wording in etc/DEBUG.
Eli Zaretskii [Sat, 26 Jul 2014 13:40:53 +0000 (16:40 +0300)]
Fix bug #18113 with ambiguous wording in etc/DEBUG.

 etc/DEBUG: Improve wording.

9 years ago* calendar/todo-mode.el (todo-edit-item--next-key): If next key is
Stephen Berman [Fri, 25 Jul 2014 21:53:52 +0000 (23:53 +0200)]
* calendar/todo-mode.el (todo-edit-item--next-key): If next key is
not a character, ignore it instead of raising an error.

9 years agoFix code and doc involving marked items.
Stephen Berman [Fri, 25 Jul 2014 16:01:05 +0000 (18:01 +0200)]
Fix code and doc involving marked items.

* todo-mode.texi (Marked Items): Correct omission of item deletion
from commands applying to both todo and done items.

* calendar/todo-mode.el: Fix handling of marked items and make
minor code improvements.
(todo-edit-item): If there are marked items, ensure user can only
invoke editing commands that work with marked items.
(todo-edit-item--text): When there are marked items, make it a
noop if invoked with point not on an item; otherwise, ensure it
applies only to item at point.
(todo-item-undone): If there are marked not-done items, return
point to its original position before signaling user error.
(todo--user-error-if-marked-done-item): New function.
(todo-edit-item--header, todo-edit-item--diary-inclusion)
(todo-item-done): Use it.

9 years agovc-hooks.el: Fix doc typo in previous
Glenn Morris [Fri, 25 Jul 2014 10:05:10 +0000 (06:05 -0400)]
vc-hooks.el: Fix doc typo in previous

9 years agoMore toggle-read-only doc tweaks
Glenn Morris [Fri, 25 Jul 2014 09:24:53 +0000 (05:24 -0400)]
More toggle-read-only doc tweaks

* lisp/files.el (toggle-read-only): Re-add basic doc-string.

* lisp/vc/vc-hooks.el (vc-toggle-read-only): Tweak obsolescence mesage.

9 years agoprolog.el: Fix for missing `switch-to-prolog'
Glenn Morris [Fri, 25 Jul 2014 08:24:00 +0000 (04:24 -0400)]
prolog.el: Fix for missing `switch-to-prolog'

Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00228.html

* lisp/progmodes/prolog.el (prolog-mode-keybindings-edit):
Replace missing `switch-to-prolog' with `run-prolog'.
(switch-to-prolog): Define as (obsolete) alias, as in 23.4.

9 years ago* calendar/todo-mode.el (todo-set-top-priorities): Fix overwriting
Stephen Berman [Tue, 22 Jul 2014 21:32:04 +0000 (23:32 +0200)]
* calendar/todo-mode.el (todo-set-top-priorities): Fix overwriting
of file-wide setting when changing category-wide setting.

9 years agoSpelling fixes.
Paul Eggert [Mon, 21 Jul 2014 14:41:19 +0000 (07:41 -0700)]
Spelling fixes.

9 years agoNEWS copyedit
Glenn Morris [Mon, 21 Jul 2014 06:18:01 +0000 (02:18 -0400)]
NEWS copyedit

9 years agoNEWS tweaks
Glenn Morris [Mon, 21 Jul 2014 05:58:27 +0000 (01:58 -0400)]
NEWS tweaks

9 years agoSmall fixes re toggle-read-only, mainly doc
Glenn Morris [Mon, 21 Jul 2014 05:38:17 +0000 (01:38 -0400)]
Small fixes re toggle-read-only, mainly doc

* progmodes/hideif.el (hide-ifdef-mode-submap): Also substitute read-only-mode.

* bindings.el (mode-line-toggle-read-only):
* bs.el (bs-toggle-readonly):
* buff-menu.el (Buffer-menu-toggle-read-only):
* dired.el (dired-toggle-read-only):
* files.el (view-read-only, find-file-read-only)
(find-file-read-only-other-window)
(find-file-read-only-other-frame):
* progmodes/hideif.el (hide-ifdef-toggle-outside-read-only):
Doc fixes re toggle-read-only.

* view.el: Comment updates.

9 years ago* doc/emacs/emacs.texi (Intro): Workaround makeinfo 4 @acronym bug.
Glenn Morris [Mon, 21 Jul 2014 03:31:36 +0000 (23:31 -0400)]
* doc/emacs/emacs.texi (Intro): Workaround makeinfo 4 @acronym bug.

Fixes: debbugs:18040
9 years ago* lisp/progmodes/python.el: Add comment about pipe buffering and
Fabián Ezequiel Gallina [Sun, 20 Jul 2014 19:51:16 +0000 (16:51 -0300)]
* lisp/progmodes/python.el: Add comment about pipe buffering and
solutions for missing/delayed output in inferior Python shells.

Fixes: debbugs:17304
9 years ago* lisp/progmodes/python.el (python-mode): Don't set
Fabián Ezequiel Gallina [Sun, 20 Jul 2014 18:28:50 +0000 (15:28 -0300)]
* lisp/progmodes/python.el (python-mode): Don't set
mode-require-final-newline.

Fixes: debbugs:17990
9 years agoMake python.el work with IPython automatically.
Fabián Ezequiel Gallina [Sun, 20 Jul 2014 18:12:30 +0000 (15:12 -0300)]
Make python.el work with IPython automatically.

* lisp/progmodes/python.el:
(python-shell-completion-setup-code): New value supporting iPython.
(python-shell-completion-string-code): New value supporting iPython.
(python-shell-completion-get-completions): Use them.
(python-shell-completion-module-string-code): Make obsolete.
(python-shell-prompt-input-regexps)
(python-shell-prompt-output-regexps): Add safeguard for ipdb.
(python-shell-output-filter): Fix comment typo.

* test/automated/python-tests.el:
(python-util-clone-local-variables-1): Fix test.

Fixes: debbugs:15510
9 years ago* macfont.h (macfont_update_antialias_threshold): Declare.
Jan Djärv [Sun, 20 Jul 2014 13:18:47 +0000 (15:18 +0200)]
* macfont.h (macfont_update_antialias_threshold): Declare.

* macfont.m (macfont_update_antialias_threshold): Remove static.

* nsterm.h (EmacsApp): Add antialiasThresholdDidChange.

* nsterm.m (applicationDidFinishLaunching:): Call
antialiasThresholdDidChange, register for antialias changes.
(antialiasThresholdDidChange:): New method for EmacsApp.

Fixes: debbugs:17534
9 years agoFix Python shell prompts detection for remote hosts.
Fabián Ezequiel Gallina [Sat, 19 Jul 2014 19:19:47 +0000 (16:19 -0300)]
Fix Python shell prompts detection for remote hosts.

* lisp/progmodes/python.el (python-shell-prompt-detect): Replace
call-process with process-file and make it more robust.

9 years agoAutodetect Python shell prompts.
Fabián Ezequiel Gallina [Sat, 19 Jul 2014 13:13:07 +0000 (10:13 -0300)]
Autodetect Python shell prompts.

* lisp/progmodes/python.el:
(python-shell-interpreter-interactive-arg)
(python-shell-prompt-detect-enabled)
(python-shell-prompt-detect-failure-warning)
(python-shell-prompt-input-regexps)
(python-shell-prompt-output-regexps): New vars.
(python-shell-prompt-calculated-input-regexp)
(python-shell-prompt-calculated-output-regexp): New vars.
(python-shell-get-process-name)
(python-shell-internal-get-process-name)
(python-shell-output-filter)
(python-shell-completion-get-completions): Use them.
(python-shell-prompt-detect)
(python-shell-prompt-validate-regexps): New functions.
(python-shell-prompt-set-calculated-regexps): New function.
(inferior-python-mode): Use it.  Also honor overriden
python-shell-interpreter and python-shell-interpreter-args.
(python-shell-make-comint): Honor overriden
python-shell-interpreter and python-shell-interpreter-args.
(python-shell-get-or-create-process): Make it testable by allowing
to call run-python non-interactively.
(python-util-valid-regexp-p): New function.
(python-shell-prompt-regexp, python-shell-prompt-block-regexp)
(python-shell-prompt-output-regexp)
(python-shell-prompt-pdb-regexp): Use it as defcustom :safe.

* test/automated/python-tests.el (python-shell-make-comint-1):
(python-shell-make-comint-2): Fix indentation.
(python-shell-make-comint-3)
(python-shell-make-comint-4): New tests.
(python-shell-get-or-create-process-1): Fix test.
(python-shell-get-or-create-process-2)
(python-shell-get-or-create-process-3): New tests.
(python-shell-internal-get-or-create-process-1): Fix test.
(python-shell-prompt-detect-1): New test.
(python-shell-prompt-detect-2): New test.  (Bug#17370)
(python-shell-prompt-detect-3)
(python-shell-prompt-detect-4)
(python-shell-prompt-detect-5)
(python-shell-prompt-detect-6)
(python-shell-prompt-validate-regexps-1)
(python-shell-prompt-validate-regexps-2)
(python-shell-prompt-validate-regexps-3)
(python-shell-prompt-validate-regexps-4)
(python-shell-prompt-validate-regexps-5)
(python-shell-prompt-validate-regexps-6)
(python-shell-prompt-validate-regexps-7)
(python-shell-prompt-set-calculated-regexps-1)
(python-shell-prompt-set-calculated-regexps-2)
(python-shell-prompt-set-calculated-regexps-3)
(python-shell-prompt-set-calculated-regexps-4)
(python-shell-prompt-set-calculated-regexps-5)
(python-shell-prompt-set-calculated-regexps-6)
(python-util-valid-regexp-p-1): New tests.

9 years agoFix last commit of src/w16select.c.
Eli Zaretskii [Thu, 17 Jul 2014 15:40:18 +0000 (18:40 +0300)]
Fix last commit of src/w16select.c.

9 years agoFix src/ChangeLog entry of last commit.
Eli Zaretskii [Thu, 17 Jul 2014 15:39:07 +0000 (18:39 +0300)]
Fix src/ChangeLog entry of last commit.

9 years agoFix setting up coding-systems for clipboard access on MS-Windows and MS-DOS.
Eli Zaretskii [Thu, 17 Jul 2014 15:37:48 +0000 (18:37 +0300)]
Fix setting up coding-systems for clipboard access on MS-Windows and MS-DOS.

 src/w32select.c (setup_windows_coding_system): Apply
 CODING_ANNOTATION_MASK to the common_flags member of struct
 coding_system.  Reported by Martin Rudalics <rudalics@gmx.at>.
 src/w16select.c (Fw16_get_clipboard_data): Apply
 CODING_ANNOTATION_MASK to the common_flags member of struct
 coding_system.

9 years agoFix assertion violation when restoring hscrolled window configurations.
Eli Zaretskii [Thu, 17 Jul 2014 15:25:21 +0000 (18:25 +0300)]
Fix assertion violation when restoring hscrolled window configurations.

 src/xdisp.c (hscroll_window_tree): Don't try hscrolling windows whose cursor
 row has zero buffer position as their start position.  Reported by
 Martin Rudalics <rudalics@gmx.at>.

9 years agoFix part of bug #18035 with overlay strings on invisible text.
Eli Zaretskii [Thu, 17 Jul 2014 15:17:52 +0000 (18:17 +0300)]
Fix part of bug #18035 with overlay strings on invisible text.

 src/xdisp.c (init_iterator): Initialize it->stop_charpos to the
 buffer position where we are to start the iteration.
 (handle_invisible_prop): Record in it->stop_charpos the position
 where the invisible text ends.

9 years agoFix bug #18036 with infloop in redisplay with huge fringes.
Eli Zaretskii [Wed, 16 Jul 2014 18:39:35 +0000 (21:39 +0300)]
Fix bug #18036 with infloop in redisplay with huge fringes.

 src/xdisp.c (move_it_vertically_backward, move_it_by_lines): Prevent
 infinite looping in redisplay when display lines don't have enough
 space to display even a single character.

9 years ago* lisp/desktop.el (after-init-hook): Disable startup frame restoration
Glenn Morris [Wed, 16 Jul 2014 04:28:42 +0000 (21:28 -0700)]
* lisp/desktop.el (after-init-hook): Disable startup frame restoration
in non-graphical situations.

Fixes: debbugs:17693
9 years agoetc/TODO: Minor updates.
Eli Zaretskii [Tue, 15 Jul 2014 16:11:33 +0000 (19:11 +0300)]
etc/TODO: Minor updates.

9 years agoFix bug #18025 with typos in Emacs Lisp Introduction manual.
Alvar Jesus Ibeas Martin [Tue, 15 Jul 2014 16:06:49 +0000 (19:06 +0300)]
Fix bug #18025 with typos in Emacs Lisp Introduction manual.

 doc/lispintro/emacs-lisp-intro.texi (Variables, Buffer Names, if & or)
 (Symbols as Chest, fwd-para while): Fix typos.

9 years agoTweak earlier vc-log-edit change
Glenn Morris [Mon, 14 Jul 2014 19:29:29 +0000 (15:29 -0400)]
Tweak earlier vc-log-edit change

* lisp/vc/vc-dispatcher.el (vc-log-edit): Do set up the log buffer
if it was "empty", or used for a different set of files.

Fixes: debbugs:17884
9 years agoFix bug #17986 with infloop in redisplay when default-directory is nil.
Eli Zaretskii [Sun, 13 Jul 2014 14:49:59 +0000 (17:49 +0300)]
Fix bug #17986 with infloop in redisplay when default-directory is nil.

 src/xdisp.c (decode_mode_spec): Call file-remote-p on the current
 buffer's default-directory only if it is a string.

 lisp/bindings.el (mode-line-remote): If default-directory is not a
 string, don't call file-remote-p on it; instead state in the
 help-echo that it is nil.

9 years ago* etags.c (Lisp_functions): Also record cl-defun etc.
Paul Eggert [Sat, 12 Jul 2014 16:26:54 +0000 (09:26 -0700)]
* etags.c (Lisp_functions): Also record cl-defun etc.

Fixes: debbugs:17965
9 years agoAttempt to fix bug #17962 with SIGSEGV in display_line.
Eli Zaretskii [Sat, 12 Jul 2014 10:29:13 +0000 (13:29 +0300)]
Attempt to fix bug #17962 with SIGSEGV in display_line.

 src/xdisp.c (display_line): Don't call FETCH_BYTE with argument less than 1.

9 years agoDocument the behavior of file selection dialogs on Windows 7 (bug #17950).
Eli Zaretskii [Sat, 12 Jul 2014 09:25:29 +0000 (12:25 +0300)]
Document the behavior of file selection dialogs on Windows 7 (bug #17950).

 etc/PROBLEMS: Mention the problem from bug #17950.

 src/w32fns.c (Fx_file_dialog): Mention in the doc string the
 behavior on Windows 7 and later when the function is repeatedly
 invoked with the same value of DIR.
 src/xfns.c (Fx_file_dialog) [USE_MOTIF, USE_GTK]: Update the doc
 string to match the one in w32fns.c.

9 years agoetc/PROBLEMS: Update problems specific to MS-Windows.
Eli Zaretskii [Sat, 12 Jul 2014 09:08:41 +0000 (12:08 +0300)]
etc/PROBLEMS: Update problems specific to MS-Windows.

9 years agoFix bug: C-x v v discarded existing log message.
Paul Eggert [Sat, 12 Jul 2014 02:24:02 +0000 (19:24 -0700)]
Fix bug: C-x v v discarded existing log message.

* lisp/vc/vc-dispatcher.el (vc-log-edit):
Don't clobber an already-existing log message.

Fixes: debbugs:17884
9 years ago* Makefile.in (install-arch-indep): Avoid readdir race.
Paul Eggert [Fri, 11 Jul 2014 17:28:53 +0000 (10:28 -0700)]
* Makefile.in (install-arch-indep): Avoid readdir race.

Fixes: debbugs:17971
9 years agoTweak previous log-edit-changelog-entries change
Glenn Morris [Thu, 10 Jul 2014 18:09:04 +0000 (14:09 -0400)]
Tweak previous log-edit-changelog-entries change

* lisp/vc/log-edit.el (log-edit-changelog-entries):
Check for a visited-but-never-saved ChangeLog.

9 years ago* lisp/vc/log-edit.el (log-edit-changelog-entries): Don't both visiting
Stefan Monnier [Wed, 9 Jul 2014 18:54:06 +0000 (14:54 -0400)]
* lisp/vc/log-edit.el (log-edit-changelog-entries): Don't both visiting
a non-existing file.

Fixes: debbugs:17970
9 years ago* lisp/faces.el (face-name): Undo last change.
Stefan Monnier [Wed, 9 Jul 2014 18:46:33 +0000 (14:46 -0400)]
* lisp/faces.el (face-name): Undo last change.
(x-resolve-font-name): Don't call face-name.

Fixes: debbugs:17956
9 years agoFix dedenters and electric colon handling.
Fabián Ezequiel Gallina [Wed, 9 Jul 2014 03:55:53 +0000 (00:55 -0300)]
Fix dedenters and electric colon handling.

* lisp/progmodes/python.el
(python-rx-constituents): Add dedenter and block-ender.
(python-indent-dedenters, python-indent-block-enders): Delete.
(python-indent-context): Return new case for dedenter-statement.
(python-indent-calculate-indentation): Handle new case.
(python-indent-calculate-levels): Fix levels calculation for
dedenter statements.
(python-indent-post-self-insert-function): Fix colon handling.
(python-info-dedenter-opening-block-message): New function.
(python-indent-line): Use it.
(python-info-closing-block)
(python-info-closing-block-message): Remove.
(python-info-dedenter-opening-block-position)
(python-info-dedenter-opening-block-positions)
(python-info-dedenter-statement-p): New functions.

* test/automated/python-tests.el
(python-indent-block-enders-1)
(python-indent-block-enders-2): Fix tests.
(python-indent-block-enders-3)
(python-indent-block-enders-4)
(python-indent-block-enders-5)
(python-indent-dedenters-1)
(python-indent-dedenters-2): Remove tests.
(python-indent-dedenters-1)
(python-indent-dedenters-2)
(python-indent-dedenters-3)
(python-indent-dedenters-4)
(python-indent-dedenters-5)
(python-indent-dedenters-6)
(python-indent-dedenters-7)
(python-info-dedenter-opening-block-position-1)
(python-info-dedenter-opening-block-position-2)
(python-info-dedenter-opening-block-position-3)
(python-info-dedenter-opening-block-positions-1)
(python-info-dedenter-opening-block-positions-2)
(python-info-dedenter-opening-block-positions-3)
(python-info-dedenter-opening-block-positions-4)
(python-info-dedenter-opening-block-positions-5)
(python-info-dedenter-opening-block-message-1)
(python-info-dedenter-opening-block-message-2)
(python-info-dedenter-opening-block-message-3)
(python-info-dedenter-opening-block-message-4)
(python-info-dedenter-opening-block-message-5)
(python-info-dedenter-statement-p-1)
(python-info-dedenter-statement-p-2)
(python-info-dedenter-statement-p-3)
(python-info-dedenter-statement-p-4)
(python-info-dedenter-statement-p-5): New tests.

Fixes: debbugs:15163
9 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