]> code.delx.au - gnu-emacs/log
gnu-emacs
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
9 years ago* doc/lispref/debugging.texi (Function Debugging, Debugger Commands):
Stefan Monnier [Tue, 8 Jul 2014 18:24:39 +0000 (14:24 -0400)]
* doc/lispref/debugging.texi (Function Debugging, Debugger Commands):
Update debug-on-entry w.r.t behavior after redefinitions.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Fixes: debbugs:17867
9 years agoFix bug #17875 with changing TTY frame size, then selecting new frame.
Eli Zaretskii [Mon, 30 Jun 2014 16:45:38 +0000 (19:45 +0300)]
Fix bug #17875 with changing TTY frame size, then selecting new frame.

 src/frame.c (do_switch_frame): When switching to another TTY frame,
 make sure FrameCols and FrameRows are in sync with the new frame's
 data.

9 years ago* vc/vc-git.el (vc-git-checkin): When operating on the whole tree
Andreas Schwab [Sun, 29 Jun 2014 20:48:55 +0000 (22:48 +0200)]
* vc/vc-git.el (vc-git-checkin): When operating on the whole tree
pass "-a".

10 years agoDoc and comment fixes re "online" help
Glenn Morris [Sun, 29 Jun 2014 02:33:50 +0000 (19:33 -0700)]
Doc and comment fixes re "online" help

* doc/emacs/help.texi (Misc Help):
* doc/emacs/trouble.texi (Checklist):
* doc/lispintro/emacs-lisp-intro.texi (Note for Novices, Finding More)
(Conclusion):
* doc/lispref/help.texi (Help Functions):
* doc/misc/info.texi, doc/misc/mh-e.texi:
* etc/refcards/calccard.tex (section{Getting Help}):
* lisp/cus-edit.el (help):
* lisp/finder.el (finder-known-keywords):
* lisp/help.el (help-for-help-internal):
* lisp/vc/ediff-mult.el (ediff-meta-buffer-verbose-message)
(ediff-redraw-registry-buffer):
* lisp/vc/ediff-ptch.el (ediff-patch-file-internal):
Doc fixes re "online" help.

Fixes: debbugs:17803
10 years agoUpdate idlwave url
Glenn Morris [Sun, 29 Jun 2014 02:17:17 +0000 (19:17 -0700)]
Update idlwave url

* doc/misc/idlwave.texi (Introduction): Comment out dead http screenshot links.

* lisp/progmodes/idlwave.el (idlwave): Update url-link for custom group.
(idlwave-mode): Doc URL update.

10 years agoFixes: debbugs:17865
Andreas Schwab [Sat, 28 Jun 2014 07:24:01 +0000 (09:24 +0200)]
Fixes: debbugs:17865
* coding.c (encode_coding_utf_8): Correctly count produced_chars
also in unibyte case.

10 years ago* calc-test.el: Set copyright to FSF; standardize permissions notice
Glenn Morris [Sat, 28 Jun 2014 03:11:24 +0000 (20:11 -0700)]
* calc-test.el: Set copyright to FSF; standardize permissions notice

10 years ago* test/automated/calc-tests.el: New file and add tests for math-bignum.
Leo Liu [Sat, 28 Jun 2014 02:15:13 +0000 (10:15 +0800)]
* test/automated/calc-tests.el: New file and add tests for math-bignum.

Fixes: debbugs:17556
10 years ago* automated/dbus-tests.el (dbus--test-register-service)
Michael Albinus [Fri, 27 Jun 2014 18:20:21 +0000 (20:20 +0200)]
* automated/dbus-tests.el (dbus--test-register-service)
(dbus-test02-register-service-session): Replace `dbus-ping' calls
by `dbus-list-known-names'.

Fixes: debbugs:17858
10 years ago* calendar/todo-mode.el (todo-set-top-priorities): Fix logic to
Stephen Berman [Fri, 27 Jun 2014 15:15:30 +0000 (17:15 +0200)]
* calendar/todo-mode.el (todo-set-top-priorities): Fix logic to
account for file-wide setting of todo-top-priorities-overrides.
Make code a bit cleaner.

10 years agoRegenerate ldefs-boot.el emacs-24.3.92
Glenn Morris [Fri, 27 Jun 2014 05:53:13 +0000 (22:53 -0700)]
Regenerate ldefs-boot.el

10 years agoBackport fix for http://debbugs.gnu.org/17556 from trunk
Leo Liu [Fri, 27 Jun 2014 04:10:04 +0000 (12:10 +0800)]
Backport fix for http://debbugs.gnu.org/17556 from trunk

* lisp/calc/calc.el (math-bignum): Handle most-negative-fixnum.

10 years ago* lisp/net/eww.el (eww-mode) <eww-current-title>: Make local.
Glenn Morris [Fri, 27 Jun 2014 00:48:34 +0000 (20:48 -0400)]
* lisp/net/eww.el (eww-mode) <eww-current-title>: Make local.

Fixes: debbugs:17860
10 years agoChangeLog fix (no need to merge to trunk)
Glenn Morris [Fri, 27 Jun 2014 00:34:42 +0000 (20:34 -0400)]
ChangeLog fix (no need to merge to trunk)

Since the change was just quickly reverting a change that does not
have a ChangeLog entry of its own, it's confusing and unnecessary for
the reversion to have a ChangeLog entry.

10 years ago* etc/publicsuffix.txt: Update from source.
Glenn Morris [Fri, 27 Jun 2014 00:33:00 +0000 (20:33 -0400)]
* etc/publicsuffix.txt: Update from source.

* lisp/url/url-domsuf.el: Update example comments.

10 years ago* calendar/todo-mode.el (todo-prefix-overlays): If there is no
Stephen Berman [Thu, 26 Jun 2014 19:22:08 +0000 (21:22 +0200)]
* calendar/todo-mode.el (todo-prefix-overlays): If there is no
category-wide setting of todo-top-priorities-overrides, check for
a file-wide setting and fontify accordingly.

10 years agoWarn about read-passwd in batch mode
Glenn Morris [Thu, 26 Jun 2014 19:00:42 +0000 (15:00 -0400)]
Warn about read-passwd in batch mode

* doc/lispref/minibuf.texi (Intro to Minibuffers): Batch mode is basic.
(Reading a Password): Mention batch mode.

* lisp/subr.el (read-passwd): Warn about batch mode.

Fixes: debbugs:17839
10 years ago* lisp/emacs-lisp/package.el (package--check-signature): (backport)
Daiki Ueno [Thu, 26 Jun 2014 13:47:37 +0000 (09:47 -0400)]
* lisp/emacs-lisp/package.el (package--check-signature): (backport)
If package-check-signature is allow-unsigned, don't signal error when
we can't verify signature because of missing public key.

Fixes: debbugs:17625
10 years ago* lisp/progmodes/hideif.el: Undo last change which should only go to trunk
Stefan Monnier [Thu, 26 Jun 2014 13:40:49 +0000 (09:40 -0400)]
* lisp/progmodes/hideif.el: Undo last change which should only go to trunk
(do not merge).

10 years agoRegenerate etc/AUTHORS
Glenn Morris [Thu, 26 Jun 2014 06:51:30 +0000 (23:51 -0700)]
Regenerate etc/AUTHORS

10 years agoBump version to 24.3.92
Glenn Morris [Thu, 26 Jun 2014 06:48:25 +0000 (23:48 -0700)]
Bump version to 24.3.92

10 years agoRemove some function declarations, no longer needed or correct
Glenn Morris [Thu, 26 Jun 2014 06:43:39 +0000 (23:43 -0700)]
Remove some function declarations, no longer needed or correct

* lisp/emacs-lisp/cl-macs.el (help-add-fundoc-usage):
* lisp/gnus/mm-util.el (help-function-arglist):
Remove outdated declarations.

10 years agoHideIfDef mode bug fixes and enhancements. This is #2 of 3 patches based
Luke Lee [Thu, 26 Jun 2014 05:47:33 +0000 (13:47 +0800)]
HideIfDef mode bug fixes and enhancements. This is #2 of 3 patches based
on the completed work posted on http://www.emacswiki.org/emacs/HideIfDef.

- Supporting argumented macro expansion.
- Stringification, tokenization and concatenation of strings and tokens.
- Add functions to find defines and parse argumented macros into a macro
  tree containing macro name, formal parameters and macro body.
- On macro evaluation, macros will be applied with actual parameters and
  then got expanded recursively.
- Merge main trunk changes

* lisp/progmodes/hideif.el (hif-string-to-number): Merge changes from
main trunk.
(hif-simple-token-only, hif-tokenize): Commentted in detail mainly for
performance enhancements.
(hif-parse-if-exp): Rename to `hif-parse-exp'. Enhanced for macro
expansion.
(hif-factor, hif-string-concatenation, intern-safe): Support string
concatenation and argumented macro expansion.
(hif-if-valid-identifier-p, hif-define-operator, hif-flatten)
(hif-expand-token-list, hif-get-argument-list, hif-define-macro)
(hif-delimit, hif-macro-supply-arguments, hif-invoke, hif-canonicalize)
(hif-canonicalize-tokens, hif-looking-at-elif, hif-place-macro-invocation)
(hif-parse-macro-arglist): Mostly new functions for supporting argumented
macro expansion.
(hif-string-concatenation, hif-stringify, hif-token-concat)
(hif-token-stringification, hif-token-concatenation): Stringify and
concatentation.
(hif-find-next-relevant): Fix comments
(hif-ifdef-to-endif, hif-looking-at-elif, hif-hide-line): Bug fix for
some cases involving #elif.
(hif-find-define, hif-add-new-defines): New functions for automatically
scanning of defined symbols.
(hide-ifdef-guts): Fix for auto defined symbol scanning.
(hide-ifdef-undef): Fix behavior to match CPP.

10 years agoFix last change
Leo Liu [Thu, 26 Jun 2014 04:27:18 +0000 (12:27 +0800)]
Fix last change

10 years ago* lisp/url/url-handlers.el (url-http-parse-response): Remove unused autoload.
Leo Liu [Thu, 26 Jun 2014 04:00:56 +0000 (12:00 +0800)]
* lisp/url/url-handlers.el (url-http-parse-response): Remove unused autoload.
(url-insert-file-contents): Condition on url-http-response-status
for the HTTP/S specific part.

* lisp/url/url-http.el (url-http-end-of-headers): Remove duplicate defvar.

Fixes: debbugs:17549