]> git.eshelyaron.com Git - emacs.git/log
emacs.git
10 years agoFix handling of menu bar line on TTY frames (Bug#18136) (Bug#18196).
Martin Rudalics [Sun, 10 Aug 2014 08:26:28 +0000 (10:26 +0200)]
Fix handling of menu bar line on TTY frames (Bug#18136) (Bug#18196).

* dispnew.c (handle_window_change_signal):
* keyboard.c (Fsuspend_emacs): Call change_frame_size with
frame's menu bar lines subtracted from height.
* frame.c (frame_inhibit_resize): Inhibit resizing of TTY
frames.
(adjust_frame_size): Count in menu bar when setting FrameRows.
(make_terminal_frame): When setting up the frame's lines and
text height don't count in the menu bar.
(Fmake_terminal_frame): Call adjust_frame_size with menu bar
lines subtracted from height.
(do_switch_frame): Set tty's FrameRows to number of total lines
of frame.
(Fframe_pixel_height, Fframe_pixel_width): If no window system
is used, return total number of lines and columns.
* menu.c (emulate_dialog_with_menu): Use FRAME_TOTAL_LINES instead
of FRAME_LINES.
* term.c (OUTPUT, tty_set_terminal_modes)
(tty_set_terminal_window, tty_set_scroll_region)
(tty_clear_to_end, tty_write_glyphs, tty_write_glyphs_with_face)
(tty_ins_del_lines, tty_menu_display, tty_menu_activate): Use
FRAME_TOTAL_LINES instead of FRAME_LINES.
(Fresume_tty): Use FRAME_TOTAL_LINES instead of FRAME_LINES.
Call change_frame_size with frame's menu bar lines subtracted
from height.
* w32console.c (w32con_clear_to_end, w32con_clear_frame)
(w32con_ins_del_lines): Use FRAME_TOTAL_LINES instead of
FRAME_LINES.

10 years ago* lisp/vc/vc-annotate.el (vc-annotate-background-mode): Add :set
Juri Linkov [Sat, 9 Aug 2014 23:55:39 +0000 (02:55 +0300)]
* lisp/vc/vc-annotate.el (vc-annotate-background-mode): Add :set
to reevaluate `vc-annotate-color-map'.

Fixes: debbugs:18189
10 years agosrc/alloc.c: remove a stray brace
Reuben Thomas [Sat, 9 Aug 2014 21:50:14 +0000 (22:50 +0100)]
src/alloc.c: remove a stray brace

10 years agoprogmodes/cc-fonts.el (c-font-lock-declarators): Remove check for
Alan Mackenzie [Sat, 9 Aug 2014 20:54:04 +0000 (20:54 +0000)]
progmodes/cc-fonts.el (c-font-lock-declarators): Remove check for
top-level that can cause unacceptable slow-down in scrolling.
See email Subject: Huge {...} blocks in C/C++ again, from Dmitry Antipov
from 2013-10-14 in emacs-devel.

10 years agoMinor fixes in the last commit wrt MS-DOS build.
Eli Zaretskii [Sat, 9 Aug 2014 18:48:45 +0000 (21:48 +0300)]
Minor fixes in the last commit wrt MS-DOS build.

 config.bat: Fix EOL format in lines modified by last commit.

 msdos/INSTALL: Fix last change.

10 years agoAdd changelog entry missing from previous commit
Reuben Thomas [Sat, 9 Aug 2014 16:59:43 +0000 (17:59 +0100)]
Add changelog entry missing from previous commit

10 years agosrc/process.c: fix a comment typo
Reuben Thomas [Sat, 9 Aug 2014 16:20:29 +0000 (17:20 +0100)]
src/process.c: fix a comment typo

10 years agoRemove support for DJGPP < 2.02
Reuben Thomas [Sat, 9 Aug 2014 16:12:33 +0000 (17:12 +0100)]
Remove support for DJGPP < 2.02

This also removes some specially-licensed files and lots of accompanying
explanation.

10 years ago* widget.c (DEFAULT_FACE_FONT, EmacsFrameSetValues, setup_frame_gcs)
Jan Djärv [Sat, 9 Aug 2014 09:06:25 +0000 (11:06 +0200)]
* widget.c (DEFAULT_FACE_FONT, EmacsFrameSetValues, setup_frame_gcs)
(resources, setup_frame_cursor_bits): Remove unused variables and
functions, esp. wrt. font.

* widgetprv.h (EmacsFramePart): Remove font.

Fixes: debbugs:18227
10 years agoMerge from gnulib.
Paul Eggert [Sat, 9 Aug 2014 06:57:59 +0000 (23:57 -0700)]
Merge from gnulib.

This incorporates:
2014-08-07 getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
2014-08-05 sys_select: fix FD_ZERO problem on Solaris 10
* lib/getdtablesize.c, lib/sys_select.in.h: Update from gnulib.

10 years agoibuffer.el (ibuffer-mode-map): Use toggle button for
Rüdiger Sonderfeld [Fri, 8 Aug 2014 14:35:40 +0000 (16:35 +0200)]
ibuffer.el (ibuffer-mode-map): Use toggle button for
`ibuffer-auto-mode' menu entry.
(ibuffer-mode-hook): Add `ibuffer-auto-mode' customization option.

10 years agolisp/ChangeLog: Fix last entry.
Rüdiger Sonderfeld [Fri, 8 Aug 2014 14:05:16 +0000 (16:05 +0200)]
lisp/ChangeLog: Fix last entry.

I did not realize that a bug was filed for that patch.  Also "make"
instead of "made".

10 years agoprogmodes/prog-mode.el (prog-mode-hook): Made customizable.
Matthias Meulien [Fri, 8 Aug 2014 13:51:47 +0000 (15:51 +0200)]
progmodes/prog-mode.el (prog-mode-hook): Made customizable.

https://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00353.html

10 years ago* lisp/erc/erc.el: rename server buffers and fix variable names
Kelvin White [Thu, 7 Aug 2014 16:44:19 +0000 (12:44 -0400)]
* lisp/erc/erc.el: rename server buffers and fix variable names

10 years agoIn window--min-size-1 set WINDOW arg when calling window-min-pixel-height/-width.
Martin Rudalics [Thu, 7 Aug 2014 14:34:06 +0000 (16:34 +0200)]
In window--min-size-1 set WINDOW arg when calling window-min-pixel-height/-width.

* window.el (window--min-size-1): Explicitly set WINDOW arg in
calls of window-min-pixel-height and window-min-pixel-width.

10 years ago* xterm.c (x_delete_terminal): Plug file descriptor leak.
Paul Eggert [Thu, 7 Aug 2014 14:17:03 +0000 (07:17 -0700)]
* xterm.c (x_delete_terminal): Plug file descriptor leak.

Fixes: debbugs:17691
10 years agoRemove remaining mentions of VMS as a host
Reuben Thomas [Thu, 7 Aug 2014 11:49:36 +0000 (12:49 +0100)]
Remove remaining mentions of VMS as a host

* notes/exit-value: Remove specific discussion of VMS.
* doc/emacs/programs.texi (Program Modes): Don't advertise VMS DCL support
any more.
* doc/misc/ediff.texi (Merging and diff3): Don't mention lack of support
for VMS diff, we no longer support VMS.
* lisp/progmodes/ada-mode.el:
* lisp/net/tramp.el (tramp-handle-file-symlink-p):
* lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): Remove a comment
about VMS, which we no longer support.
* lisp/progmodes/ada-xref.el (ada-xref-current): Remove mention of VMS,
and fix a FIXME, using convert-standard-filename in place of
removed ada-convert-file-name.
* lisp/url/url-handlers.el: Remove a comment about VMS, which we no longer
support.

10 years agoFix a few ``MS-DOG''s overlooked in the previous commit.
Reuben Thomas [Thu, 7 Aug 2014 10:15:52 +0000 (11:15 +0100)]
Fix a few ``MS-DOG''s overlooked in the previous commit.

* README: ``MSDOG'' becomes ``MS-DOS''.
* lisp/arc-mode.el: Fix a couple of ``MS-DOG''s missed in the previous
commit.
* lisp/file-mode.el: ditto.
* src/editfns.c: Fix a couple of ``MS-DOG''s missed in the previous commit.
* src/xfaces.c: ditto.

10 years agoRefer to MS-DOS using the same name everywhere.
Reuben Thomas [Thu, 7 Aug 2014 09:55:09 +0000 (10:55 +0100)]
Refer to MS-DOS using the same name everywhere.

* admin/FOR-RELEASE: ``MS-DOG'', ``MSDOG'' and ``msdog'' become
``MS-DOS''; ``msdog'' in filenames becomes ``msdos''.
* admin/MAINTAINERS: ditto.
* doc/emacs/Makefile.in (EMACSSOURCES): ditto.
* doc/emacs/emacs-xtra.texi: ditto.
* doc/emacs/emacs.texi: ditto.
* doc/emacs/makefile.w32-in: ditto.
* doc/emacs/msdog-xtra.texi: ditto, and rename file.
* doc/emacs/msdog.texi: ditto, and rename file.
* lisp/arc-mode.el: ditto.
* lisp/frame.el: ditto.

10 years ago* tramp.texi (Remote shell setup): Explain, how to change command
Michael Albinus [Thu, 7 Aug 2014 09:15:44 +0000 (11:15 +0200)]
* tramp.texi (Remote shell setup): Explain, how to change command
line arguments of remote "nc" listener.

10 years ago* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Michael Albinus [Thu, 7 Aug 2014 09:13:54 +0000 (11:13 +0200)]
* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Use cached "remote-copy-args" value, if available.

10 years ago* lisp/help.el (temp-buffer-setup-hook,temp-buffer-show-hook): Revert
Leo Liu [Thu, 7 Aug 2014 03:25:09 +0000 (11:25 +0800)]
* lisp/help.el (temp-buffer-setup-hook,temp-buffer-show-hook): Revert
change on 2014-03-22.

10 years ago* test/automated/Makefile.in (check-tar): Remove, hydra recipe does it now.
Glenn Morris [Thu, 7 Aug 2014 00:07:32 +0000 (17:07 -0700)]
* test/automated/Makefile.in (check-tar): Remove, hydra recipe does it now.

10 years agoFix Bug#15408 (icalendar time zone problem)
Ulf Jasper [Wed, 6 Aug 2014 18:19:34 +0000 (20:19 +0200)]
Fix Bug#15408 (icalendar time zone problem)

2014-07-30 Christophe Deleuze <christophe.deleuze@free.fr>

* calendar/icalendar.el (icalendar--decode-isodatetime): Use
actual current-time-zone when converting to local time. (Bug#15408)

2014-07-30  Ulf Jasper  <ulf.jasper@web.de>

* automated/icalendar-tests.el (icalendar--decode-isodatetime): New test.

10 years agognus-sum.el (gnus-summary-expire-articles): Revert last change
Katsumi Yamaoka [Wed, 6 Aug 2014 11:14:08 +0000 (11:14 +0000)]
gnus-sum.el (gnus-summary-expire-articles): Revert last change

10 years ago* gnus-sum.el (gnus-summary-expire-articles): Functions registered to
Eric Abrahamsen [Wed, 6 Aug 2014 00:33:37 +0000 (00:33 +0000)]
* gnus-sum.el (gnus-summary-expire-articles): Functions registered to
the gnus-summary-article-expire-hook should be told where the function
is going. In particular, the Gnus registry might want to know.

10 years agolisp/gnus/ChangeLog (2014-07-31): Add missing entry
Tassilo Horn [Wed, 6 Aug 2014 00:31:29 +0000 (00:31 +0000)]
lisp/gnus/ChangeLog (2014-07-31): Add missing entry

10 years agolisp/ChangeLog: Fix a typo in last entry.
Eli Zaretskii [Tue, 5 Aug 2014 19:01:51 +0000 (22:01 +0300)]
lisp/ChangeLog: Fix a typo in last entry.

10 years agoUse a max-width when displaying images
Lars Magne Ingebrigtsen [Tue, 5 Aug 2014 18:18:39 +0000 (20:18 +0200)]
Use a max-width when displaying images

* lisp/image-mode.el (image-toggle-display-image): Alway rescale images
to not be bigger than the current window.

10 years agolisp/net/eww.el (eww-bookmarks-directory): New variable.
Eric Brown [Tue, 5 Aug 2014 18:15:52 +0000 (20:15 +0200)]
lisp/net/eww.el (eww-bookmarks-directory): New variable.

* lisp/net/eww.el (eww-bookmarks-directory): New variable.
(eww-write-bookmarks): Use it.
(eww-read-bookmarks): Ditto.

10 years ago* lisp/net/shr.el (shr-copy-url): Also copy the image URL.
Lars Magne Ingebrigtsen [Tue, 5 Aug 2014 18:15:03 +0000 (20:15 +0200)]
* lisp/net/shr.el (shr-copy-url): Also copy the image URL.

* lisp/net/shr.el (shr-copy-url): Also copy the image URL.

10 years agoDon't redeem scroll bars that have been turned off.
Martin Rudalics [Tue, 5 Aug 2014 08:25:28 +0000 (10:25 +0200)]
Don't redeem scroll bars that have been turned off.

* w32term.c (w32_redeem_scroll_bar):
* xterm.c (XTredeem_scroll_bar): Revert part of last change by
not redeeming scroll bars that have been turned off.

10 years agoFix typo in last commit.
Michael Albinus [Tue, 5 Aug 2014 08:24:47 +0000 (10:24 +0200)]
Fix typo in last commit.

10 years ago* net/tramp-cache.el (tramp-flush-file-function): Suppress function
Michael Albinus [Tue, 5 Aug 2014 08:13:28 +0000 (10:13 +0200)]
* net/tramp-cache.el (tramp-flush-file-function): Suppress function
also for Tramp working buffers.

10 years ago* keyboard.c (safe_run_hooks): Follow the convenient style to bind
Dmitry Antipov [Tue, 5 Aug 2014 05:43:35 +0000 (09:43 +0400)]
* keyboard.c (safe_run_hooks): Follow the convenient style to bind
inhibit-quit to t and pass 2 args to safe_run_hook_funcall.  See
<http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00077.html>.
(safe_run_hook_funcall): Adjust accordingly.

10 years ago* lisp/progmodes/python.el: Fix completions inside (i)pdb.
Fabián Ezequiel Gallina [Mon, 4 Aug 2014 21:35:17 +0000 (18:35 -0300)]
* lisp/progmodes/python.el: Fix completions inside (i)pdb.
(python-shell-completion-pdb-string-code): Make obsolete.
(python-shell-completion-get-completions): Use
python-shell-completion-string-code resending setup code
continuously for (i)pdb.

10 years agoMerge from gnulib, incorporating:
Paul Eggert [Mon, 4 Aug 2014 18:44:49 +0000 (11:44 -0700)]
Merge from gnulib, incorporating:

2014-08-04 extern-inline: port to FreeBSD, DragonFly
* lib/gnulib.mk: Regenerate (comment change only).
* m4/extern-inline.m4: Update from gnulib.

10 years agoFix scroll bar handling for non-toolkit builds.
Martin Rudalics [Mon, 4 Aug 2014 16:47:27 +0000 (18:47 +0200)]
Fix scroll bar handling for non-toolkit builds.

* frame.h (FRAME_HAS_HORIZONTAL_SCROLL_BARS): Condition
correctly according to toolkit used.
* frame.c (make_initial_frame, make_terminal_frame)
(x_set_horizontal_scroll_bars, x_set_scroll_bar_height)
(Vdefault_frame_horizontal_scroll_bars): Correctly condition
assignments according to presence of toolkit scrollbars.
* window.h (WINDOW_HAS_HORIZONTAL_SCROLL_BAR): Condition
correctly according to toolkit used.
* window.c (set_window_scroll_bars): Set horizontal scroll bar
only if toolkit supports it.
* w32term.c (w32_redeem_scroll_bar): Always redeem scroll bar if
present.
* xterm.c (x_scroll_bar_create): Initialize horizontal slot for
non-toolkit builds.
(XTredeem_scroll_bar): Always redeem scroll bar if present.

10 years ago* rect.el (rectangle--default-line-number-format): Rename
Paul Eggert [Mon, 4 Aug 2014 06:27:14 +0000 (23:27 -0700)]
* rect.el (rectangle--default-line-number-format): Rename

from misspelled rectange--default-line-number-format (Bug#18045).
All uses changed.

10 years ago* keyboard.c (safe_run_hook_funcall): Avoid consing around
Dmitry Antipov [Mon, 4 Aug 2014 04:03:31 +0000 (08:03 +0400)]
* keyboard.c (safe_run_hook_funcall): Avoid consing around
Vinhibit_quit and prefer internal_condition_case_n to pass args.
(safe_run_hooks_error, safe_run_hooks_1): Adjust accordingly.
(safe_run_hooks): Remove comment which is not relevant any more.

10 years agoDon't let big frames overrun the stack.
Paul Eggert [Sun, 3 Aug 2014 23:16:39 +0000 (16:16 -0700)]
Don't let big frames overrun the stack.

* dispnew.c (mirrored_line_dance, mirror_line_dance, scrolling):
Use SAFE_NALLOCA, not alloca.

10 years agoMerge from emacs-24; up to 2014-06-27T16:27:08Z!rgm@gnu.org
Glenn Morris [Sun, 3 Aug 2014 20:34:33 +0000 (16:34 -0400)]
Merge from emacs-24; up to 2014-06-27T16:27:08Z!rgm@gnu.org

10 years agoDon't mishandle year-9999 dates.
Paul Eggert [Sun, 3 Aug 2014 15:38:52 +0000 (08:38 -0700)]
Don't mishandle year-9999 dates.

* lisp/calendar/parse-time.el (parse-time-rules):
Allow years up to most-positive-fixnum.
* lisp/calendar/time-date.el (date-to-time):
Pass "Specified time is not representable" errors through.
* lisp/url/url-cookie.el (url-cookie-expired-p): Treat out-of-range
expiration dates as if they were far in the future.
* src/editfns.c (decode_time_components): Store an invalid timespec
on overflow, instead of returning false, so that the caller can
distinguish overflow from other errors.
(lisp_time_argument, lisp_seconds_argument): If the time is out
of range, signal a time overflow instead of an invalid time spec.
* src/keyboard.c (decode_timer): Treat time overflow like other
timespec errors.

Fixes: debbugs:18176
10 years agoAvoid undefined behavior with signed left shift.
Paul Eggert [Sun, 3 Aug 2014 12:34:44 +0000 (05:34 -0700)]
Avoid undefined behavior with signed left shift.

Caught by 'gcc -fsanitize=undefined'.
* dispextern.h, scroll.c (scrolling_max_lines_saved, scrolling_1):
* dispnew.c (line_hash_code, scrolling):
* scroll.c (calculate_scrolling, calculate_direct_scrolling):
Use 'unsigned', not 'int', for line hashes.
(scrolling_max_lines_saved): Avoid mystery constants for hash sizes.

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 ago* test/automated/Makefile.in (check-tar): New rule.
Glenn Morris [Sun, 3 Aug 2014 03:45:59 +0000 (23:45 -0400)]
* test/automated/Makefile.in (check-tar): New rule.

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 ago* progmodes/python.el: Completion code cleanups.
Fabián Ezequiel Gallina [Sat, 2 Aug 2014 22:52:55 +0000 (19:52 -0300)]
* progmodes/python.el: Completion code cleanups.
(python-shell-completion-get-completions): Detect and send import
statements directly to completion function.
(python-shell-completion-at-point): Simplify prompt calculation
and import vs input completion logic.

10 years ago* configure.ac (HAVE_TIMERFD): Also check for TFD_NONBLOCK,
Paul Eggert [Sat, 2 Aug 2014 21:50:13 +0000 (14:50 -0700)]
* configure.ac (HAVE_TIMERFD): Also check for TFD_NONBLOCK,

since the code is using TFD_NONBLOCK now.

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 ago* test/automated/fns-tests.el (fns-tests-compare-strings): Update test.
Glenn Morris [Sat, 2 Aug 2014 20:22:31 +0000 (16:22 -0400)]
* test/automated/fns-tests.el (fns-tests-compare-strings): Update test.

10 years agoFix confusion in C++ file caused by comma in "= {1,2},".
Alan Mackenzie [Sat, 2 Aug 2014 18:52:48 +0000 (18:52 +0000)]
Fix confusion in C++ file caused by comma in "= {1,2},".
cc-engine.el (c-beginning-of-statement-1): In checking for a statement
boundary marked by "}", check there's no "=" before the "{".
(c-guess-basic-syntax CASE 9B): Call c-beginning-of-statement with
non-nil `comma-delim' argument.
cc-fonts.el (c-font-lock-declarators): Parse an initializer expression
more accurately.

10 years agoFix spacing in ChangeLog
Dmitry Antipov [Sat, 2 Aug 2014 17:12:11 +0000 (21:12 +0400)]
Fix spacing in ChangeLog

10 years agoCorrect loop termination condition in c-syntactic-skip-backward.
Alan Mackenzie [Sat, 2 Aug 2014 16:42:29 +0000 (16:42 +0000)]
Correct loop termination condition in c-syntactic-skip-backward.
progmodes/cc-engine.el (c-syntactic-skip-backward): Correct for the
situation where, after moving back out of a literal, skip-chars-backward
doesn't move further, yet checks have still to be done.

10 years agoMake compare-strings more compatible with old behavior.
Paul Eggert [Sat, 2 Aug 2014 15:56:18 +0000 (08:56 -0700)]
Make compare-strings more compatible with old behavior.

* fns.c (Fcompare_strings): Silently bring too-large ends into range.

Fixes: debbugs:17903
10 years ago* gtkutil.c (create_dialog): Force min spacing 10 between buttons.
Jan Djärv [Sat, 2 Aug 2014 13:32:40 +0000 (15:32 +0200)]
* gtkutil.c (create_dialog): Force min spacing 10 between buttons.
Don't add label between left and right buttons.

Fixes: debbugs:18129
10 years ago* automated/icalendar-tests.el (icalendar--decode-isodatetime): Hydra fix.
Glenn Morris [Sat, 2 Aug 2014 05:44:18 +0000 (01:44 -0400)]
* automated/icalendar-tests.el (icalendar--decode-isodatetime): Hydra fix.
Use more precise TZ specification, as per 2013-08-04.

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

10 years agoMake functions static that no longer need to be extern.
Paul Eggert [Fri, 1 Aug 2014 15:12:01 +0000 (08:12 -0700)]
Make functions static that no longer need to be extern.

* frame.c, frame.h (set_menu_bar_lines):
* keyboard.c (Qleftmost, Qrightmost):
* xfns.c, frame.h, menu.h (x_set_menu_bar_lines, x_set_tool_bar_lines)
(x_set_internal_border_width):
Now static.

10 years agoChangeLog date fix
Glenn Morris [Fri, 1 Aug 2014 14:49:28 +0000 (10:49 -0400)]
ChangeLog date fix

10 years agoMerge from emacs-24; up to 2014-06-26T21:51:25Z!rgm@gnu.org.
Eli Zaretskii [Fri, 1 Aug 2014 13:10:07 +0000 (16:10 +0300)]
Merge from emacs-24; up to 2014-06-26T21:51:25Z!rgm@gnu.org.

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 agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 1 Aug 2014 10:21:35 +0000 (06:21 -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 ago* atimer.c (toplevel) [HAVE_TIMERFD]: Include errno.h.
Dmitry Antipov [Fri, 1 Aug 2014 06:52:02 +0000 (10:52 +0400)]
* atimer.c (toplevel) [HAVE_TIMERFD]: Include errno.h.
(timerfd_callback): Ignore weird events with no data.  Add tight
assertions and comments.
(init_atimer) [HAVE_TIMERFD]: Add environment variable to optionally
disabletimerfd-based timer.  Use TFD_NONBLOCK for timer descriptor.

10 years ago* lisp/progmodes/python.el: Shell output capture enhancements.
Fabián Ezequiel Gallina [Fri, 1 Aug 2014 00:18:19 +0000 (21:18 -0300)]
* lisp/progmodes/python.el: Shell output capture enhancements.
(python-shell-accept-process-output): New function.
(inferior-python-mode)
(python-shell-send-setup-code): Use it.

10 years agodoc/misc/ChangeLog: Add missing entry for gnus.texi
Tassilo Horn [Fri, 1 Aug 2014 00:10:16 +0000 (00:10 +0000)]
doc/misc/ChangeLog: Add missing entry for gnus.texi

10 years agoMinor style fix to previous patch.
Paul Eggert [Fri, 1 Aug 2014 00:04:52 +0000 (17:04 -0700)]
Minor style fix to previous patch.

10 years ago* frame.c (x_set_frame_parameters): Fix typo in previous patch.
Paul Eggert [Fri, 1 Aug 2014 00:01:44 +0000 (17:01 -0700)]
* frame.c (x_set_frame_parameters): Fix typo in previous patch.

I had confused && with ||.

10 years agoSimplify timerfd configuration and fix some minor glitches.
Paul Eggert [Thu, 31 Jul 2014 20:17:01 +0000 (13:17 -0700)]
Simplify timerfd configuration and fix some minor glitches.

* configure.ac (HAVE_TIMERFD): Define only if TFD_CLOEXEC works,
since the code leaked file descriptors to children when !TFD_CLOEXEC.
(HAVE_TIMERFD_CLOEXEC): Remove; no longer used.
* m4/clock_time.m4 (gl_CLOCK_TIME): Don't check for clock_getres.
This reverts the previous change to this file, so it matches
gnulib again.
* src/atimer.c (TIMERFD_CREATE_FLAGS): Remove; we now assume TFD_CLOEXEC.
(alarm_timer, alarm_timer_ok, set_alarm, init_atimer):
Fall back on timer_create if timerfd_create fails at runtime.
(resolution) [HAVE_CLOCK_GETRES]: Remove; we now rely on the
kernel primitives to do resolution.  All uses removed.
(timerfd) [!HAVE_TIMERFD]: Define to be -1, for convenience.
(turn_on_atimers): Clear timer_create-based timers too,
for consistency.

10 years ago* frame.c (x_set_frame_parameters): Don't use uninitialized locals.
Paul Eggert [Thu, 31 Jul 2014 13:55:12 +0000 (06:55 -0700)]
* frame.c (x_set_frame_parameters): Don't use uninitialized locals.

Without this change, the code can access the local variable 'width'
even when it has not been initialized, and likewise for 'height';
in either case this leads to undefined behavior.

10 years ago[Gnus] Allow list-valued gcc-self group params
Tassilo Horn [Thu, 31 Jul 2014 13:11:41 +0000 (13:11 +0000)]
[Gnus] Allow list-valued gcc-self group params

* lisp/gnus/gnus-msg.el (gnus-inews-insert-gcc):
  Allow `gcc-self' to be a list of groups and t.
* doc/misc/gnus.texi (Group Parameters):
  Document that `gcc-self' may also be a list.

10 years agoChangeLog fix
Glenn Morris [Wed, 30 Jul 2014 17:13:16 +0000 (13:13 -0400)]
ChangeLog fix

10 years agoFix Bug#15408 (icalendar time zone problem)
Ulf Jasper [Wed, 30 Jul 2014 16:25:58 +0000 (18:25 +0200)]
Fix Bug#15408 (icalendar time zone problem)

2014-07-30 Christophe Deleuze <christophe.deleuze@free.fr>

* calendar/icalendar.el (icalendar--decode-isodatetime): Use
actual current-time-zone when converting to local time. (Bug#15408)

2014-07-30  Ulf Jasper  <ulf.jasper@web.de>

* automated/icalendar-tests.el (icalendar--decode-isodatetime): New test.

10 years ago* xterm.c (x_sync_with_move): Really wait 0.5s, not 0.0005s.
Dmitry Antipov [Wed, 30 Jul 2014 04:03:45 +0000 (08:03 +0400)]
* xterm.c (x_sync_with_move): Really wait 0.5s, not 0.0005s.

10 years ago* xrdb.c (x_load_resources) [USE_MOTIF]: Although not strictly
Dmitry Antipov [Wed, 30 Jul 2014 03:41:56 +0000 (07:41 +0400)]
* xrdb.c (x_load_resources) [USE_MOTIF]: Although not strictly
necessary, put horizontal scroll bar resources as well.  See
<http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00430.html>.

10 years ago* xrdb.c (x_load_resources) [!USE_MOTIF]: Put horizontal scroll bar
Dmitry Antipov [Tue, 29 Jul 2014 16:38:46 +0000 (20:38 +0400)]
* xrdb.c (x_load_resources) [!USE_MOTIF]: Put horizontal scroll bar
background value to match the resource of its vertical counterpart.

10 years agoIn window--state-put-2 handle horizontal scroll bars.
Martin Rudalics [Tue, 29 Jul 2014 15:08:30 +0000 (17:08 +0200)]
In window--state-put-2 handle horizontal scroll bars.

* window.el (window--state-put-2): Handle horizontal scroll
bars, if present.

10 years agoFix Bug#18016.
Rüdiger Sonderfeld [Tue, 29 Jul 2014 14:21:11 +0000 (16:21 +0200)]
Fix Bug#18016.

menu-bar.el (menu-bar-update-buffers): Update item list format
in `buffers-menu' to confirm with changes to `get_keyelt'
(2014-07-02T01:49:31Z!monnier@iro.umontreal.ca).  (Bug#18016)

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 agoIn adjust_frame_size use FRAME_WINDOW_P instead of FRAME_X_WINDOW (Bug#18138).
Martin Rudalics [Tue, 29 Jul 2014 08:51:49 +0000 (10:51 +0200)]
In adjust_frame_size use FRAME_WINDOW_P instead of FRAME_X_WINDOW (Bug#18138).

* frame.c (adjust_frame_size): Use FRAME_WINDOW_P instead of
FRAME_X_WINDOW when calling x_set_window_size (Bug#18138).

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 ago* lisp/progmodes/python.el (inferior-python-mode): Make input prompts
Fabián Ezequiel Gallina [Mon, 28 Jul 2014 21:07:10 +0000 (18:07 -0300)]
* lisp/progmodes/python.el (inferior-python-mode): Make input prompts
read-only.

10 years agoFix Changelog typo, introduced by last commit.
Michael Albinus [Mon, 28 Jul 2014 19:14:21 +0000 (21:14 +0200)]
Fix Changelog typo, introduced by last commit.

10 years ago* net/tramp-sh.el (tramp-get-remote-python): Also search for
Emilio C. Lopes [Mon, 28 Jul 2014 19:08:43 +0000 (21:08 +0200)]
* net/tramp-sh.el (tramp-get-remote-python): Also search for
executables named "python2" or "python3".
(tramp-get-remote-uid-with-python): Use parentheses around
arguments to `print' to make it compatible with Python 3.
(tramp-get-remote-gid-with-python): Ditto.

Fixes: debbugs:18118
10 years agoFix some issues with setting the frame height.
Martin Rudalics [Mon, 28 Jul 2014 17:03:23 +0000 (19:03 +0200)]
Fix some issues with setting the frame height.

* frame.c (x_set_frame_parameters): Revert part of 2014-07-24
change that added the top margin height to the requested height
and revert (undocumented) part of 2014-07-28 change that changed
the logic of whether a size change occurred.

10 years agoFix Gnus-related issues reported by David Kastrup <dak@gnu.org> in
Dmitry Antipov [Mon, 28 Jul 2014 14:50:55 +0000 (18:50 +0400)]
Fix Gnus-related issues reported by David Kastrup <dak@gnu.org> in
<http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00370.html>.
* atimer.c (timerfd_callback): Always read expiration data.
Add comment.
(turn_on_atimers) [HAVE_TIMERFD]: Disarm timerfd timer.
* process.c (add_timer_wait_descriptor): Add timer descriptor
to input_wait_mask and non_process_wait_mask as well.

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 from emacs-24; up to 2014-06-26T06:55:15Z!rgm@gnu.org
Glenn Morris [Mon, 28 Jul 2014 09:39:09 +0000 (05:39 -0400)]
Merge from emacs-24; up to 2014-06-26T06:55:15Z!rgm@gnu.org

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 agoOpen doc text also if it's not saved to a file.
Stephen Berman [Mon, 28 Jul 2014 09:07:56 +0000 (11:07 +0200)]
Open doc text also if it's not saved to a file.

* doc-view.el (doc-view-open-text): Don't require that the
document is saved in a file (e.g., email attachment).

10 years agoFix --without-x build and pacify --enable-gcc-warnings.
Dmitry Antipov [Mon, 28 Jul 2014 08:07:55 +0000 (12:07 +0400)]
Fix --without-x build and pacify --enable-gcc-warnings.
Problems reported in Bug#18122 and Bug#18124.
* frame.c (get_frame_param): Define even if !HAVE_WINDOW_SYSTEM.
(frame_windows_min_size): Now static.
* frame.h (FRAME_HAS_HORIZONTAL_SCROLL_BARS) [!HAVE_WINDOW_SYSTEM]:
Define as no-op.
(adjust_frame_size): Always declare prototype.

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 the GDB xsubchartable command.
Eli Zaretskii [Mon, 28 Jul 2014 07:17:22 +0000 (10:17 +0300)]
Fix the GDB xsubchartable command.

 src/.gdbinit (xsubchartable): The members 'depth' and 'min_char' are
 now C integers.

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 agoOn GNU/Linux, use timerfd for asynchronous timers.
Dmitry Antipov [Mon, 28 Jul 2014 06:28:15 +0000 (10:28 +0400)]
On GNU/Linux, use timerfd for asynchronous timers.
* configure.ac (toplevel): Check whether GNU/Linux-specific
timerfd functions and macros are available.
* m4/clock_time.m4 (gl_CLOCK_TIME): Check for clock_getres as well.
* src/atimer.c (toplevel) [HAVE_TIMERFD]: Include sys/timerfd.h.
(toplevel): Rename alarm_timer_ok to special_timer_available.
[HAVE_TIMERFD]: Declare timerfd.
[HAVE_CLOCK_GETRES]: Declare resolution.
(start_atimer) [HAVE_CLOCK_GETRES]: Round up timestamp to
system timer resolution.
(set_alarm) [HAVE_TIMERFD]: Use timerfd_settime.
(timerfd_callback) [HAVE_TIMERFD]: New function.
(atimer_result, debug_timer_callback, Fdebug_timer_check)
[ENABLE_CHECKING]: New function for the sake of automated tests.
(init_atimer) [HAVE_TIMERFD]: Setup timerfd.
[HAVE_CLOCK_GETRES]: Likewise for system timer resolution.
[ENABLE_CHECKING]: Defsubr test function.
* src/atimer.h (timerfd_callback) [HAVE_TIMERFD]: Add prototype.
* src/lisp.h (add_timer_wait_descriptor) [HAVE_TIMERFD]: Likewise.
* src/process.c (add_timer_wait_descriptor) [HAVE_TIMERFD]: New function.
* test/automated/timer-tests.el (timer-tests-debug-timer-check): New test.

10 years agoParse completion input in a iPython friendly way.
Fabián Ezequiel Gallina [Mon, 28 Jul 2014 04:32:28 +0000 (01:32 -0300)]
Parse completion input in a iPython friendly way.

* lisp/progmodes/python.el
(python-shell-completion-at-point): Rename from
python-shell-completion-complete-at-point.
(inferior-python-mode): Use it.
(python-completion-at-point): Rename from
python-completion-complete-at-point.  Parse input up to first
backward occurrence of whitespace, open-paren, close-paren or
string delimiter.
(python-mode): Use it.

Fixes: debbugs:18084
10 years agoPrevent Python process shell buffer to pop twice.
Fabián Ezequiel Gallina [Mon, 28 Jul 2014 03:58:06 +0000 (00:58 -0300)]
Prevent Python process shell buffer to pop twice.
* lisp/progmodes/python.el (python-shell-switch-to-shell): Do not call
pop-to-buffer.