]> git.eshelyaron.com Git - emacs.git/log
emacs.git
10 years ago* etc/NEWS: Mention timer error reporting.
Glenn Morris [Thu, 11 Sep 2014 17:35:44 +0000 (13:35 -0400)]
* etc/NEWS: Mention timer error reporting.
Ref: http://debbugs.gnu.org/18444#8

10 years agoIn Fresize_mini_window_internal set w->total_lines from w->pixel_height (Bug#18422).
Martin Rudalics [Thu, 11 Sep 2014 08:47:34 +0000 (10:47 +0200)]
In Fresize_mini_window_internal set w->total_lines from w->pixel_height (Bug#18422).

* window.c (Fresize_mini_window_internal): Set w->total_lines
from w->pixel_height (Bug#18422).

10 years ago* lisp/desktop.el (desktop-create-buffer): Check that buffers are still live
Ivan Shmakov [Wed, 10 Sep 2014 00:47:20 +0000 (20:47 -0400)]
* lisp/desktop.el (desktop-create-buffer): Check that buffers are still live
before burying them.

Fixes: debbugs:18373
10 years agosrc/xdisp.c (pos_visible_p): Don't assign a boolean value to an int var.
Eli Zaretskii [Tue, 9 Sep 2014 18:23:26 +0000 (21:23 +0300)]
src/xdisp.c (pos_visible_p): Don't assign a boolean value to an int var.

10 years ago* calendar/diary-lib.el (diary-list-entries): Restore 24.3 display behavior.
Glenn Morris [Tue, 9 Sep 2014 18:09:54 +0000 (14:09 -0400)]
* calendar/diary-lib.el (diary-list-entries): Restore 24.3 display behavior.

Fixes: debbugs:18381
10 years ago* nsterm.m (updateFrameSize:, initFrameFromEmacs:)
Jan Djärv [Tue, 9 Sep 2014 17:46:28 +0000 (19:46 +0200)]
* nsterm.m (updateFrameSize:, initFrameFromEmacs:)
(toggleFullScreen:): Take frame_resize_pixelwise into account when
setting resize increments.

Fixes: debbugs:18435
10 years agoFix the row number mistakenly reported by pos_visible_p in rare cases.
Eli Zaretskii [Tue, 9 Sep 2014 15:04:35 +0000 (18:04 +0300)]
Fix the row number mistakenly reported by pos_visible_p in rare cases.

 src/xdisp.c (pos_visible_p): Properly save and restore the iterator
 state around the call to line_bottom, since it can move the
 iterator to another screen line.  This fixes off-by-one errors in
 the reported row in some rare cases.

10 years agoFix mouse-dragging mode lines on text-mode terminals.
Eli Zaretskii [Tue, 9 Sep 2014 15:00:51 +0000 (18:00 +0300)]
Fix mouse-dragging mode lines on text-mode terminals.

 lisp/mouse.el (mouse-drag-line): On text-mode frames, count the mode
 line and header line as 1 pixel.  This fixes the 1-"pixel" (row)
 discrepancy between window-pixel-edges and mouse events, and
 avoids moving mode line up when the mouse click is on the modeline
 and no drag is attempted.

10 years agoNEWS fix
Glenn Morris [Tue, 9 Sep 2014 01:20:01 +0000 (21:20 -0400)]
NEWS fix
display-buffer-in-previous-window existed before 24.4, but was not
in display-buffer-fallback-action

10 years ago* calendar.el (calendar-basic-setup): Avoid clobbering calendar with diary.
Glenn Morris [Mon, 8 Sep 2014 05:57:24 +0000 (22:57 -0700)]
* calendar.el (calendar-basic-setup): Avoid clobbering calendar with diary.

Fixes: debbugs:18381
10 years agoFix bug #18419 with disappearing line numbers when minibuffer is resized.
Eli Zaretskii [Sun, 7 Sep 2014 17:16:36 +0000 (20:16 +0300)]
Fix bug #18419 with disappearing line numbers when minibuffer is resized.

 src/dispnew.c (prepare_desired_row): When MODE_LINE_P is zero,
 always make sure the marginal areas of the row are in sync with
 what the window wants.

10 years ago* lisp/vc/vc-dir.el (vc-dir-update): Don't burp in corner case.
Stefan Monnier [Fri, 5 Sep 2014 17:37:12 +0000 (13:37 -0400)]
* lisp/vc/vc-dir.el (vc-dir-update): Don't burp in corner case.

10 years ago* lisp/isearch.el (isearch-yank-word-or-char): Obey superword-mode
Lars Ljung [Thu, 4 Sep 2014 16:14:26 +0000 (12:14 -0400)]
* lisp/isearch.el (isearch-yank-word-or-char): Obey superword-mode
as well.

Fixes: debbugs:18400
10 years ago* doc/lispref/functions.texi (Core Advising Primitives): Add a note about the
Stefan Monnier [Thu, 4 Sep 2014 15:43:06 +0000 (11:43 -0400)]
* doc/lispref/functions.texi (Core Advising Primitives): Add a note about the
confusing treatment of `interactive' for :filter-args.

Fixes: debbugs:18399
10 years agoFix misleading doc string revealed in bug #18385.
Eli Zaretskii [Thu, 4 Sep 2014 15:21:40 +0000 (18:21 +0300)]
Fix misleading doc string revealed in bug #18385.

 lisp/subr.el (posn-actual-col-row): Doc fix.

10 years agoFix bug #18331 with "C-h k C-g" not showing documentation on Windows.
Eli Zaretskii [Thu, 4 Sep 2014 15:09:49 +0000 (18:09 +0300)]
Fix bug #18331 with "C-h k C-g" not showing documentation on Windows.

 src/data.c (set_internal): Use assq_no_quit, not Fassq, to find an
 existing binding of a variable, to avoid silently aborting
 commands that use specbind.

10 years agosrc/sysdep.c (emacs_full_write): Fix a typo in a comment.
Eli Zaretskii [Wed, 3 Sep 2014 18:13:45 +0000 (21:13 +0300)]
src/sysdep.c (emacs_full_write): Fix a typo in a comment.

10 years agoMinor updates in unidata-gen.el.
Eli Zaretskii [Wed, 3 Sep 2014 16:03:34 +0000 (19:03 +0300)]
Minor updates in unidata-gen.el.

 admin/unidata/unidata-gen.el (unidata-check): Bring this function up
 to date with the currently supported methods of generating Unicode
 property tables.  Add a comment with a description how to invoke
 the check.  Update the copyright years in the reference to the
 Unicode data files we use.

10 years agotest/indent/scheme.scm: New file.
Stefan Monnier [Tue, 2 Sep 2014 20:47:44 +0000 (16:47 -0400)]
test/indent/scheme.scm: New file.

10 years ago* lisp/emacs-lisp/package.el (package-generate-description-file):
Stefan Monnier [Tue, 2 Sep 2014 19:51:25 +0000 (15:51 -0400)]
* lisp/emacs-lisp/package.el (package-generate-description-file):
Properly quote the arguments.  Change second arg.
(package--alist-to-plist-args): Rename from package--alist-to-plist and
quote the elements.
(package--make-autoloads-and-stuff): Fix the test for pre-existence of
the *-pkg.el file.  Adjust to new calling convention of
package-generate-description-file.

Fixes: debbugs:18332
10 years ago* lisp/progmodes/gud.el (gud-gdb-completion-at-point): Add hack.
Stefan Monnier [Tue, 2 Sep 2014 18:16:32 +0000 (14:16 -0400)]
* lisp/progmodes/gud.el (gud-gdb-completion-at-point): Add hack.
(gud-gdb-completions): Remove obsolete workaround.

Fixes: debbugs:18282
10 years agoFix bug #18384 with incorrect reporting of row number by posn-col-row.
Eli Zaretskii [Tue, 2 Sep 2014 15:16:42 +0000 (18:16 +0300)]
Fix bug #18384 with incorrect reporting of row number by posn-col-row.

 lisp/subr.el (posn-col-row): Revert the change from commit
 2010-11-13T21:07:58Z!eliz@gnu.org, which
 was inadvertently merged from emacs-23 release branch in
2010-11-18T03:54:14Z!monnier@iro.umontreal.ca, and
 introduced an off-by-one error in the reported row when there is a
 header line.

 src/dispnew.c (buffer_posn_from_coords): Fix an off-by-one error in
 the reported row in the case of a window with a header line, by
 improving on the fix committed in 2011-10-08T10:58:50Z!eliz@gnu.org
 eliz@gnu.org-20111008105850-ht4tvsayohvr1kjc.

10 years ago* lisp/tutorial.el: Restore comment lost 2006-12-21.
Glenn Morris [Tue, 2 Sep 2014 06:48:20 +0000 (23:48 -0700)]
* lisp/tutorial.el: Restore comment lost 2006-12-21.

10 years ago* eval.c (internal_lisp_condition_case): Don't overrun the stack
Paul Eggert [Tue, 2 Sep 2014 06:29:01 +0000 (23:29 -0700)]
* eval.c (internal_lisp_condition_case): Don't overrun the stack

when configured --with-wide-int on typical 32-bit platforms.

10 years ago* lisp/progmodes/python.el (python-indent-post-self-insert-function):
Fabián Ezequiel Gallina [Mon, 1 Sep 2014 22:51:46 +0000 (19:51 -0300)]
* lisp/progmodes/python.el (python-indent-post-self-insert-function):
Avoid electric colon at beginning-of-defun.

* test/automated/python-tests.el:
(python-indent-electric-colon-1): New test.  (Bug#18228)

10 years ago* lisp/tutorial.el (tutorial--display-changes): Fix 2014-07-29 change.
Glenn Morris [Mon, 1 Sep 2014 16:44:06 +0000 (09:44 -0700)]
* lisp/tutorial.el (tutorial--display-changes): Fix 2014-07-29 change.

Fixes: debbugs:18382
10 years agoFix cursor display on the fringe of R2L screen lines.
Eli Zaretskii [Sun, 31 Aug 2014 15:53:27 +0000 (18:53 +0300)]
Fix cursor display on the fringe of R2L screen lines.

 src/xdisp.c (display_and_set_cursor): Call erase_phys_cursor also
 when HPOS is negative, for the benefit of R2L glyph rows whose
 newline overflows into the fringe.

10 years ago* src/conf_post.h (strnicmp) [CYGWIN && HAVE_NTGUI]: Define. (Bug#18366)
Ken Brown [Sat, 30 Aug 2014 19:47:56 +0000 (15:47 -0400)]
* src/conf_post.h (strnicmp) [CYGWIN && HAVE_NTGUI]: Define.  (Bug#18366)

10 years agoMinor ChangeLog fix.
Eli Zaretskii [Sat, 30 Aug 2014 09:29:13 +0000 (12:29 +0300)]
Minor ChangeLog fix.

10 years ago* lisp/startup.el (fancy-splash-frame): Extend the fix for Bug#16014 to the Cygwin...
Ken Brown [Fri, 29 Aug 2014 22:13:43 +0000 (18:13 -0400)]
* lisp/startup.el (fancy-splash-frame): Extend the fix for Bug#16014 to the Cygwin-w32 build.  (Bug#18347)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

10 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

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

10 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

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

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

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

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

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

Fixes: debbugs:18232
10 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
10 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.

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

10 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

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

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

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

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

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

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

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

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

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

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

10 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
10 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
10 years agoSpelling+grammar fix.
Paul Eggert [Fri, 1 Aug 2014 15:44:42 +0000 (08:44 -0700)]
Spelling+grammar fix.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

10 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

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

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

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

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

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

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