bpt/emacs.git
10 years agoFix handling of face attributes in Fx_create_frame (Bug#16529).
Martin Rudalics [Sat, 25 Jan 2014 14:39:49 +0000 (15:39 +0100)]
Fix handling of face attributes in Fx_create_frame (Bug#16529).

* w32fns.c (Fx_create_frame): Don't inhibit running Lisp code
too early.  Again run change_frame_size before assigning menu-
and tool-bar-lines.

10 years agoFix bug #16517 with display change on MS-Windows while in full-screen mode.
Fabrice Popineau [Sat, 25 Jan 2014 13:04:48 +0000 (15:04 +0200)]
Fix bug #16517 with display change on MS-Windows while in full-screen mode.

 src/w32term.c (w32_read_socket): When the WM_DISPLAYCHANGE message
 arrives, call x_check_fullscreen, in case the new display has a
 different resolution.

10 years agoFix bug #16479 with client connections while TTY menu is open.
Eli Zaretskii [Sat, 25 Jan 2014 08:25:51 +0000 (10:25 +0200)]
Fix bug #16479 with client connections while TTY menu is open.

 src/term.c (read_menu_input): If the selected frame changes, exit
 the menu.
 (tty_menu_show): If the selected frame changes while we displayed
 a menu, throw to top level.

10 years ago* doc/misc/cc-mode.texi (Minor Modes): Minor fix.
Xue Fuqiao [Sat, 25 Jan 2014 04:53:33 +0000 (12:53 +0800)]
* doc/misc/cc-mode.texi (Minor Modes): Minor fix.

10 years ago* src/eval.c (Fsignal): Fix `debug' handling to match 2013-10-03 change.
Stefan Monnier [Sat, 25 Jan 2014 03:48:29 +0000 (22:48 -0500)]
* src/eval.c (Fsignal): Fix `debug' handling to match 2013-10-03 change.

10 years agoTypo fix.
Xue Fuqiao [Sat, 25 Jan 2014 03:00:52 +0000 (11:00 +0800)]
Typo fix.

10 years ago* net/shr.el (shr-tag-img): Prefer the title over the alt text.
Adam Sjøgren [Sat, 25 Jan 2014 00:52:16 +0000 (17:52 -0700)]
* net/shr.el (shr-tag-img): Prefer the title over the alt text.

Fixes: debbugs:16537

10 years agoFix references in EIEIO documentation.
David Engster [Fri, 24 Jan 2014 22:15:29 +0000 (23:15 +0100)]
Fix references in EIEIO documentation.

* eieio.texi (Introduction): Fix references.

10 years agoFix bool-vector-count-population bug on MinGW64.
Paul Eggert [Fri, 24 Jan 2014 20:55:22 +0000 (12:55 -0800)]
Fix bool-vector-count-population bug on MinGW64.

* data.c (count_one_bits_word): Fix bug (negated comparison)
when BITS_PER_ULL < BITS_PER_BITS_WORD.

Fixes: debbugs:16535

10 years agoRemove stray ".".
Paul Eggert [Fri, 24 Jan 2014 18:36:44 +0000 (10:36 -0800)]
Remove stray ".".

10 years agoSpelling fix.
Paul Eggert [Fri, 24 Jan 2014 18:32:25 +0000 (10:32 -0800)]
Spelling fix.

10 years ago* editfns.c (Fconstrain_to_field): Fix typo in docstring.
Bastien Guerry [Fri, 24 Jan 2014 16:05:12 +0000 (17:05 +0100)]
* editfns.c (Fconstrain_to_field): Fix typo in docstring.

10 years ago* etc/NEWS: Fix typos
Glenn Morris [Fri, 24 Jan 2014 07:45:40 +0000 (23:45 -0800)]
* etc/NEWS: Fix typos

10 years ago* etc/NEWS.21: lesstif.org domain is defunct, use sourceforge site.
Glenn Morris [Fri, 24 Jan 2014 07:43:34 +0000 (23:43 -0800)]
* etc/NEWS.21: lesstif.org domain is defunct, use sourceforge site.

10 years ago* etc/NEWS: Small edits.
Glenn Morris [Fri, 24 Jan 2014 07:41:42 +0000 (23:41 -0800)]
* etc/NEWS: Small edits.

10 years agoMisc small doc updates
Glenn Morris [Fri, 24 Jan 2014 07:36:34 +0000 (23:36 -0800)]
Misc small doc updates

* doc/emacs/ack.texi (Acknowledgments): No longer mention obsolete terminal.el.

* doc/misc/efaq.texi (Termcap/Terminfo entries for Emacs):
Use M-x term rather than M-x terminal-emulator.

* etc/NEWS: Related markup.

10 years agoMisc small doc updates
Glenn Morris [Fri, 24 Jan 2014 07:29:39 +0000 (23:29 -0800)]
Misc small doc updates

* doc/emacs/ack.texi (Acknowledgments): No longer mention obsolete xesam.el.

* lisp/woman.el (woman-default-faces, woman-monochrome-faces):
Fix obsolescence specification.

* etc/NEWS: Related markup.

10 years ago* net/eww.el (eww-download-callback): Fix reference to eww-download-directory.
Juanma Barranquero [Fri, 24 Jan 2014 04:15:13 +0000 (05:15 +0100)]
* net/eww.el (eww-download-callback): Fix reference to eww-download-directory.

10 years agoSilence byte-compiler warning.
Juanma Barranquero [Fri, 24 Jan 2014 04:13:35 +0000 (05:13 +0100)]
Silence byte-compiler warning.

* emacs-lisp/bytecomp.el (byte-compile-file):
Remove unused local variable `file-name'.

10 years agoDoc updates for with-demoted-errors
Glenn Morris [Fri, 24 Jan 2014 04:11:48 +0000 (20:11 -0800)]
Doc updates for with-demoted-errors

* doc/lispref/control.texi (Handling Errors): Update with-demoted-errors.

* lisp/subr.el (with-demoted-errors): Doc fix.

* etc/NEWS: Related edit.

10 years ago* doc/misc/emacs-mime.texi (time-date): Use float-time.
Glenn Morris [Fri, 24 Jan 2014 03:57:53 +0000 (19:57 -0800)]
* doc/misc/emacs-mime.texi (time-date): Use float-time.

* etc/NEWS: Related edit.

10 years ago* xdisp.c (reseat_1, Fcurrent_bidi_paragraph_direction): Avoid
Dmitry Antipov [Fri, 24 Jan 2014 03:53:16 +0000 (07:53 +0400)]
* xdisp.c (reseat_1, Fcurrent_bidi_paragraph_direction): Avoid
undefined behavior by initializing display property bit of a
string processed by the bidirectional iterator.  For details, see
<http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01920.html>.

10 years ago* doc/lispref/files.texi (File Locks): Every platform supports locking now.
Glenn Morris [Fri, 24 Jan 2014 03:51:52 +0000 (19:51 -0800)]
* doc/lispref/files.texi (File Locks): Every platform supports locking now.

10 years ago* doc/emacs/files.texi (Interlocking): Copyedit.
Glenn Morris [Fri, 24 Jan 2014 03:34:31 +0000 (19:34 -0800)]
* doc/emacs/files.texi (Interlocking): Copyedit.

* etc/NEWS: Related small edits.

10 years agoDocument 2014-01-22T19:02:41Z!eggert@cs.ucla.edu better.
Paul Eggert [Thu, 23 Jan 2014 17:59:46 +0000 (09:59 -0800)]
Document 2014-01-22T19:02:41Z!eggert@cs.ucla.edu better.

10 years agoMinor cleanup of previous change.
Paul Eggert [Thu, 23 Jan 2014 17:27:37 +0000 (09:27 -0800)]
Minor cleanup of previous change.

* image.c (imagemagick_error, Fimagemagick_types):
Omit some recently-introduced and unnecessary casts and assignments.

10 years ago* lisp/emacs-lisp/cl-macs.el: Improve type->predicate mapping.
Stefan Monnier [Thu, 23 Jan 2014 15:01:41 +0000 (10:01 -0500)]
* lisp/emacs-lisp/cl-macs.el: Improve type->predicate mapping.
(cl--macroexp-fboundp): New function.
(cl--make-type-test): Use it.

Fixes: debbugs:16520

10 years agoFix two memory leaks discovered with Valgrind.
Dmitry Antipov [Thu, 23 Jan 2014 12:18:08 +0000 (16:18 +0400)]
Fix two memory leaks discovered with Valgrind.
* ftfont.c (ftfont_list) [HAVE_LIBOTF]: Call OTF_close.
* image.c (Fimagemagick_types): Call MagickRelinquishMemory.

10 years ago* doc/emacs/building.texi (Lisp Eval): Update prefix argument behavior
Glenn Morris [Thu, 23 Jan 2014 08:27:44 +0000 (00:27 -0800)]
* doc/emacs/building.texi (Lisp Eval): Update prefix argument behavior
of eval-expression, eval-last-sexp.

* etc/NEWS: Related edit.

10 years ago* emacs-lisp-intro.texi (lengths-list-file): Fix textual parentheses.
Glenn Morris [Thu, 23 Jan 2014 08:21:53 +0000 (00:21 -0800)]
* emacs-lisp-intro.texi (lengths-list-file): Fix textual parentheses.

10 years agoDoc fixes related to zero prefix argument of eval-expression etc
Glenn Morris [Thu, 23 Jan 2014 07:53:56 +0000 (23:53 -0800)]
Doc fixes related to zero prefix argument of eval-expression etc

* emacs-lisp/lisp-mode.el (eval-print-last-sexp, eval-last-sexp):
* simple.el (eval-expression): Doc fixes.

10 years agoMerge from gnulib.
Paul Eggert [Thu, 23 Jan 2014 02:48:44 +0000 (18:48 -0800)]
Merge from gnulib.

This incorporates:
2014-01-22 qacl: check for fchmod
* m4/acl.m4: Update from gnulib.

10 years ago* etc/NEWS: Small edits
Glenn Morris [Thu, 23 Jan 2014 02:38:18 +0000 (21:38 -0500)]
* etc/NEWS: Small edits

10 years ago* etc/PROBLEMS: Remove more obsolete stuff, modernize exec-shield a bit,
Glenn Morris [Thu, 23 Jan 2014 02:11:13 +0000 (21:11 -0500)]
* etc/PROBLEMS: Remove more obsolete stuff, modernize exec-shield a bit,
downplay LessTif (Motif is free software now).

10 years ago* etc/TODO: Addition.
Glenn Morris [Thu, 23 Jan 2014 02:09:55 +0000 (21:09 -0500)]
* etc/TODO: Addition.

10 years agoDownplay LessTif in docs, since Motif is now free software,
Glenn Morris [Thu, 23 Jan 2014 02:09:31 +0000 (21:09 -0500)]
Downplay LessTif in docs, since Motif is now free software,
and even http://lesstif.sourceforge.net/ recommends it over LessTif.

10 years agoUpdate EIEIO documentation.
David Engster [Wed, 22 Jan 2014 21:50:47 +0000 (22:50 +0100)]
Update EIEIO documentation.

* eieio.texi (Introduction): Move introductory paragraph about
EIEIO and CLOS from 'Building Classes' to here.
(Documentation): Remove, since eieio-doc is not part of Emacs.
(Class Values, CLOS compatibility): Mention that
`describe-function' will also give information about classes.

10 years agoTweak earlier version.el change
Glenn Morris [Wed, 22 Jan 2014 21:14:34 +0000 (16:14 -0500)]
Tweak earlier version.el change

10 years ago* lisp/emacs-lisp/authors.el (authors-fixed-entries): Addition.
Glenn Morris [Wed, 22 Jan 2014 20:05:03 +0000 (15:05 -0500)]
* lisp/emacs-lisp/authors.el (authors-fixed-entries): Addition.

10 years agoFix MS-Windows build in lib-src broken by last commit.
Eli Zaretskii [Wed, 22 Jan 2014 19:38:31 +0000 (21:38 +0200)]
Fix MS-Windows build in lib-src broken by last commit.

 lib-src/update-game-score.c (write_scores) [WINDOWSNT]: Use chmod
 instead of fchmod.

10 years agoChangeLog fix.
Glenn Morris [Wed, 22 Jan 2014 19:26:45 +0000 (14:26 -0500)]
ChangeLog fix.

* lisp/ChangeLog: The installed change was based on this one:
http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00372.html

* etc/NEWS: Fix based on the fact that this does not work out of the box,
unless you fetch the notes, as described in
  http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00015.html
Seems very non-intuitive to me...

10 years ago* lisp/emacs-lisp/package.el: Write files silently.
Stefan Monnier [Wed, 22 Jan 2014 19:22:45 +0000 (14:22 -0500)]
* lisp/emacs-lisp/package.el: Write files silently.
(package-autoload-ensure-default-file)
(package-generate-description-file, package--write-file-no-coding)
(package-install-from-archive, package--download-one-archive):
Tell `write-region' to stay quiet.
(package-menu-mode, package-menu--print-info): Omit the Archive column
if there's only one archive.
(package-all-keywords, package--has-keyword-p): Remove dead code.

10 years agoFix miscellaneous update-game-score bugs.
Paul Eggert [Wed, 22 Jan 2014 19:02:41 +0000 (11:02 -0800)]
Fix miscellaneous update-game-score bugs.

* configure.ac (difftime): Remove.
* lib/update-game-score.c (difftime) [!HAVE_DIFFTIME]: Remove.
(read_score) [HAVE_GETDELIM]: Don't access uninitialized storage.
(read_scores, write_scores): Check for fclose failure.
(write_scores): Use fchmod, not chmod, to avoid a race.
(lock_file): Fix test for out-of-date lock file; it was reversed.
Use ordinary subtraction rather than difftime; since we're already
assuming POSIX we don't need to worry about the possibility of
time_t being a magic cookie.

10 years ago* lisp/version.el (emacs-bzr-version-bzr): Fix typo.
Glenn Morris [Wed, 22 Jan 2014 18:29:40 +0000 (13:29 -0500)]
* lisp/version.el (emacs-bzr-version-bzr): Fix typo.

10 years ago* version.el (emacs-repository-get-version): Avoid error if .git exists but
Glenn Morris [Wed, 22 Jan 2014 17:34:27 +0000 (09:34 -0800)]
* version.el (emacs-repository-get-version): Avoid error if .git exists but
the git executable is not found.

10 years agoFixes for emacs-repository-get-version
Glenn Morris [Wed, 22 Jan 2014 17:26:14 +0000 (09:26 -0800)]
Fixes for emacs-repository-get-version

* lisp/version.el (emacs-repository-get-version):
Check either .bzr or .git, but not both.
Make the git case actually use the DIR argument, and return nil
rather than the empty string.

* etc/NEWS: Don't mention that emacs-repository-version works for git,
because it only returns nil (since it uses %N and there seem to be no
notes in the git version of the Emacs repo.)
No idea why this change is in trunk during a feature freeze anyway.

10 years agoFixes in window size functions around Bug#16430 and Bug#16470.
Martin Rudalics [Wed, 22 Jan 2014 10:29:23 +0000 (11:29 +0100)]
Fixes in window size functions around Bug#16430 and Bug#16470.

* window.c (Fwindow_pixel_width, Fwindow_pixel_height)
(Fwindow_mode_line_height, Fwindow_header_line_height)
(Fwindow_right_divider_width, Fwindow_bottom_divider_width):
Minor doc-string adjustments.
(Fwindow_total_height, Fwindow_total_width): New argument ROUND.
Rewrite doc-strings.
(window_body_height, window_body_width): Do not count partially
visible lines/columns when PIXELWISE is nil (Bug#16470).
(Qfloor, Qceiling): New symbols.
* window.el (window-total-size, window-size): New argument
ROUND.
(window--min-delta-1, window-min-delta, window--max-delta-1): Be
more conservative when calculating the numbers of lines or
columns a window can shrink (Bug#16430).
(fit-window-to-buffer): Simplify code.
* term.el (term-window-width): Call window-body-width again.

10 years ago* automated/file-notify-tests.el (file-notify-test02-events):
Michael Albinus [Wed, 22 Jan 2014 10:02:46 +0000 (11:02 +0100)]
* automated/file-notify-tests.el (file-notify-test02-events):
Hide Bug#16519, until it is solved.

10 years agoSome doc for image-format-suffixes
Glenn Morris [Wed, 22 Jan 2014 08:30:00 +0000 (00:30 -0800)]
Some doc for image-format-suffixes

* doc/lispref/display.texi (ImageMagick Images):
Expand on image-format-suffixes.

* lisp/image.el (image-format-suffixes): Doc fix.

* etc/NEWS: Related markup.

10 years ago* lisp/international/quail.el (quail-define-package): Doc fix.
Glenn Morris [Wed, 22 Jan 2014 07:55:53 +0000 (23:55 -0800)]
* lisp/international/quail.el (quail-define-package): Doc fix.

* etc/NEWS: Related edit.

10 years agoauthors.el small additions
Glenn Morris [Wed, 22 Jan 2014 07:35:50 +0000 (23:35 -0800)]
authors.el small additions

* lisp/emacs-lisp/authors.el (authors-valid-file-names):
(authors-renamed-files-alist): Additions.

* lisp/ChangeLog.5, etc/ChangeLog: Clarify old entries.

10 years agoUnduplicate the lib-src/ and etc/ ChangeLogs
Glenn Morris [Wed, 22 Jan 2014 02:44:44 +0000 (21:44 -0500)]
Unduplicate the lib-src/ and etc/ ChangeLogs

* lisp/emacs-lisp/authors.el (authors-valid-file-names): Related additions.

10 years ago* lisp/vc/vc-git.el (vc-git-print-log): Remove --follow;
Glenn Morris [Wed, 22 Jan 2014 02:01:40 +0000 (21:01 -0500)]
* lisp/vc/vc-git.el (vc-git-print-log): Remove --follow;
reverts 2014-01-09 change.

Fixes: debbugs:16422

10 years agoSet Maintainer: FSF in some files
Glenn Morris [Wed, 22 Jan 2014 01:54:10 +0000 (20:54 -0500)]
Set Maintainer: FSF in some files

10 years agoFix some function declarations
Glenn Morris [Wed, 22 Jan 2014 01:50:40 +0000 (20:50 -0500)]
Fix some function declarations

* lisp/calc/calc-embed.el (thing-at-point-looking-at):
* lisp/emacs-lisp/map-ynp.el (x-popup-dialog):
* lisp/obsolete/lmenu.el (x-popup-dialog):
* lisp/emacs-lisp/package.el (url-recreate-url):
* lisp/mail/mailclient.el (clipboard-kill-ring-save):
* lisp/subr.el (x-popup-dialog): Update declaration.

* lisp/mail/rmail.el (rmail-mime-message-p):
* lisp/window.el (tool-bar-lines-needed): Remove unnecessary declaration.

10 years agoChangeLog fixes
Glenn Morris [Wed, 22 Jan 2014 01:43:37 +0000 (20:43 -0500)]
ChangeLog fixes

10 years agoFix here-doc highlighting
Daniel Colascione [Tue, 21 Jan 2014 23:42:59 +0000 (15:42 -0800)]
Fix here-doc highlighting

10 years agoChangeLog fix
Glenn Morris [Tue, 21 Jan 2014 17:21:19 +0000 (09:21 -0800)]
ChangeLog fix

10 years agoFix bug #16509 with segfault in an assertion when exiting due to missing font.
Eli Zaretskii [Tue, 21 Jan 2014 16:08:31 +0000 (18:08 +0200)]
Fix bug #16509 with segfault in an assertion when exiting due to missing font.

 src/w32fns.c (unwind_create_frame): Avoid crashing inside assertion
 when the image cache is not yet allocated.

10 years ago* automated/file-notify-tests.el
Michael Albinus [Tue, 21 Jan 2014 13:31:39 +0000 (14:31 +0100)]
* automated/file-notify-tests.el
(file-notify--test-local-enabled): Fix error in logic.
(file-notify--wait-for-events): New defmacro.
(file-notify-test02-events): Make short breaks between file operations.
Use `file-notify--wait-for-events'.  Check, that events have arrived.
(file-notify-test03-autorevert): Use `file-notify--wait-for-events'.

10 years ago* lisp/emacs-lisp/eldoc.el: Properly remove message in minibuffer case.
Stefan Monnier [Tue, 21 Jan 2014 13:09:55 +0000 (08:09 -0500)]
* lisp/emacs-lisp/eldoc.el: Properly remove message in minibuffer case.
(eldoc--message-command-p): New function.
(eldoc-display-message-p): Use it.
(eldoc-pre-command-refresh-echo-area): In the minibuffer case, the
message is not automatically erased for us.
(eldoc-print-current-symbol-info): Erase previous message, if any.

10 years agoChangeLog fixes
Glenn Morris [Tue, 21 Jan 2014 08:49:46 +0000 (00:49 -0800)]
ChangeLog fixes

10 years ago* automated/comint-testsuite.el
Michael Albinus [Tue, 21 Jan 2014 08:32:06 +0000 (09:32 +0100)]
* automated/comint-testsuite.el
(comint-testsuite-password-strings): Add localized examples.

10 years agoFix reftex-create-bibtex-file autoload.
Tassilo Horn [Tue, 21 Jan 2014 08:26:31 +0000 (09:26 +0100)]
Fix reftex-create-bibtex-file autoload.

* lisp/textmodes/reftex.el (reftex-create-bibtex-file): Fix autoload to
specify it's an interactive function.

10 years agoFix regex used for searching citation keys.
Tassilo Horn [Tue, 21 Jan 2014 08:18:30 +0000 (09:18 +0100)]
Fix regex used for searching citation keys.

* lisp/textmodes/reftex-cite.el (reftex-all-used-citation-keys): Fix
regex used for scanning for citation keys which failed for
citations with optional arguments.

10 years ago* buffer.c (Fkill_buffer): When killing an indirect buffer,
Dmitry Antipov [Tue, 21 Jan 2014 02:28:57 +0000 (06:28 +0400)]
* buffer.c (Fkill_buffer): When killing an indirect buffer,
re-attach intervals to its base buffer (Bug#16502).
* intervals.c (set_interval_object): Move from here...
* intervals.h (set_interval_object): ... to here.  Fix comments.

10 years ago* simple.el (read--expression): Don't enable eldoc-mode.
Leo Liu [Tue, 21 Jan 2014 01:58:16 +0000 (09:58 +0800)]
* simple.el (read--expression): Don't enable eldoc-mode.

10 years agoChangeLog fixes
Glenn Morris [Mon, 20 Jan 2014 22:39:59 +0000 (17:39 -0500)]
ChangeLog fixes

10 years agoMerge from gnulib.
Paul Eggert [Mon, 20 Jan 2014 20:48:14 +0000 (12:48 -0800)]
Merge from gnulib.

This incorporates:
2014-01-20 stdalign: port to HP-UX compilers
2014-01-16 strtoimax: port to platforms lacking 'long long'
2014-01-16 update from texinfo
* doc/misc/texinfo.tex, lib/stdalign.in.h, lib/strtoimax.c:
Update from gnulib.

10 years ago* etc/NEWS: Small edits
Glenn Morris [Mon, 20 Jan 2014 20:07:57 +0000 (15:07 -0500)]
* etc/NEWS: Small edits

10 years agoDo not document subr-x.el in the manuals
Glenn Morris [Mon, 20 Jan 2014 20:05:04 +0000 (15:05 -0500)]
Do not document subr-x.el in the manuals

* doc/lispref/hash.texi (Other Hash): Do not mention subr-x.el functions;
reverts 2013-12-22 change.

* lisp/emacs-lisp/subr-x.el: Comment.

* etc/NEWS: Small related edits.

10 years agoFix spelling of "GNUstep"
Glenn Morris [Mon, 20 Jan 2014 19:44:56 +0000 (14:44 -0500)]
Fix spelling of "GNUstep"

10 years ago* lisp/simple.el (move-beginning-of-line): Make sure we don't move forward.
Stefan Monnier [Mon, 20 Jan 2014 19:15:10 +0000 (14:15 -0500)]
* lisp/simple.el (move-beginning-of-line): Make sure we don't move forward.

Fixes: debbugs:16497

10 years agoApply previous change even if valgrind is not in use, since it avoids undefined behav...
Paul Eggert [Mon, 20 Jan 2014 16:55:28 +0000 (08:55 -0800)]
Apply previous change even if valgrind is not in use, since it avoids undefined behavior. This is simpler.

10 years agoPacify valgrind by initializing buffer redisplay bit.
Paul Eggert [Mon, 20 Jan 2014 16:47:41 +0000 (08:47 -0800)]
Pacify valgrind by initializing buffer redisplay bit.

Problem reported by Dmitry Antipov in
<http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01756.html>.
* alloc.c (USE_VALGRIND): Move this to ...
* conf_post.h (USE_VALGRIND): ... here.  Use booleans.
* buffer.c (Fget_buffer_create): Initialize redisplay bit
to pacify valgrind.

10 years ago* lisp/saveplace.el (toggle-save-place, save-place-to-alist)
Juri Linkov [Mon, 20 Jan 2014 08:52:44 +0000 (10:52 +0200)]
* lisp/saveplace.el (toggle-save-place, save-place-to-alist)
(save-places-to-alist, save-place-dired-hook): Add (derived-mode-p
'dired-mode) before checking for dired-directory.

Fixes: debbugs:16477

10 years ago* lisp/indent.el (indent-line-to): Use backward-to-indentation
Juri Linkov [Mon, 20 Jan 2014 08:45:56 +0000 (10:45 +0200)]
* lisp/indent.el (indent-line-to): Use backward-to-indentation
instead of back-to-indentation.

Fixes: debbugs:16461

10 years agoSpelling fix.
Paul Eggert [Mon, 20 Jan 2014 08:15:16 +0000 (00:15 -0800)]
Spelling fix.

10 years agoRevert some of the CANNOT_DUMP fix.
Paul Eggert [Mon, 20 Jan 2014 07:56:28 +0000 (23:56 -0800)]
Revert some of the CANNOT_DUMP fix.

Because of this, "make bootstrap" won't work if CANNOT_DUMP=yes,
but fixing this can wait until after the next release.
* leim/Makefile.in (RUN_EMACS): Keep EMACSLOADPATH empty.
* lisp/Makefile.in (emacs): Keep EMACSLOADPATH empty.
* src/lread.c (init_lread): Fix typo: NILP, not !NILP.

Fixes: debbugs:16494

10 years ago* etc/NEWS: Small edits
Glenn Morris [Mon, 20 Jan 2014 01:21:18 +0000 (17:21 -0800)]
* etc/NEWS: Small edits

10 years ago* etc/NEWS: Small edits
Glenn Morris [Mon, 20 Jan 2014 00:54:19 +0000 (16:54 -0800)]
* etc/NEWS: Small edits

10 years agoExtend last fix of term-window-width (Bug#16470).
Martin Rudalics [Sun, 19 Jan 2014 16:59:51 +0000 (17:59 +0100)]
Extend last fix of term-window-width (Bug#16470).

10 years agoFix Cygwin w32 build broken by last commit in w32font.c.
Eli Zaretskii [Sun, 19 Jan 2014 15:42:48 +0000 (17:42 +0200)]
Fix Cygwin w32 build broken by last commit in w32font.c.

 src/w32font.c (w32_load_unicows_or_gdi32, get_outline_metrics_w)
 (get_text_metrics_w, get_glyph_outline_w, get_char_width_32_w)
 [!WINDOWSNT]: These functions are no longer compiled on Cygwin;
 they are replaced by macros that expand into direct calls to the
 corresponding functions from GDI32.DLL.
 (globals_of_w32font) [WINDOWSNT]: Don't initialize g_b_* static
 variables in the Cygwin build, they are unused.

10 years agomerge trunk
Kenichi Handa [Sun, 19 Jan 2014 13:27:34 +0000 (22:27 +0900)]
merge trunk

10 years agocomposite.c (composition_update_it): Fix previous change.
Kenichi Handa [Sun, 19 Jan 2014 13:26:21 +0000 (22:26 +0900)]
composite.c (composition_update_it): Fix previous change.

10 years ago* eshell/esh-mode.el (eshell-password-prompt-regexp):
Michael Albinus [Sun, 19 Jan 2014 13:23:18 +0000 (14:23 +0100)]
* eshell/esh-mode.el (eshell-password-prompt-regexp):
Use `password-word-equivalents'.
(eshell-watch-for-password-prompt): Let-bind `case-fold-search'
to t.  (Bug#5664, Bug#13124)

10 years agoBind open-paren-in-column-0-is-defun-start to nil at some entry points.
Alan Mackenzie [Sun, 19 Jan 2014 12:32:47 +0000 (12:32 +0000)]
Bind open-paren-in-column-0-is-defun-start to nil at some entry points.
* progmodes/cc-engine.el (c-invalidate-state-cache-1)
(c-parse-state-1, c-guess-basic-syntax):  Bind it here.
* progmodes/cc-mode.el (c-before-change, c-after-change)
(c-font-lock-fontify-region): Bind it here.

10 years agoIn term-window-width call window-text-width instead of window-width (Bug#16470).
Martin Rudalics [Sun, 19 Jan 2014 09:24:26 +0000 (10:24 +0100)]
In term-window-width call window-text-width instead of window-width (Bug#16470).

* term.el (term-window-width): Call window-text-width instead of
window-width (Bug#16470).

10 years agoupdate-game-score fixes for -m and integer overflow
Paul Eggert [Sun, 19 Jan 2014 08:50:53 +0000 (00:50 -0800)]
update-game-score fixes for -m and integer overflow

* update-game-score.c: Include inttypes.h, stdbool.h.
(min): New macro, if not already defined.
(MAX_SCORES, main): Limit the maximum number of scores only from
limits imposed by the underyling platform, instead of the
arbitrary value 200.
(struct score_entry, main, read_score, write_score):
Scores are now intmax_t, not long.
(get_user_id): Reject user names containing spaces or newlines,
as they would mess up the score file.
Allow uids that don't fit in 'long'.
Increase the size of the buffer, to avoid overrun in weird cases.
(get_prefix, main): Use bool for boolean.
(main): Rewrite expr to avoid possibility of signed integer
overflow.  Don't allow newlines in data, as this would mess up
the score file.  Check for memory allocation failure when adding
the new score, or when unlockint the file.  Implement -m.
(read_score): Check for integer overflow when reading a score.
(read_score) [!HAVE_GETDELIM]: Check for integer overflow when
data gets very long.  Check only for space to delimit names,
since that's what's done in the HAVE_GETDELIM case.
(read_scores): New parameter ALLOC.  Change counts to ptrdiff_t.
All uses changed.  Use push_score to add individual scores;
that's simpler than repeating its contents.
(score_compare_reverse): Simplify.
(push_score): New parameter SIZE.  Change counts to ptrdiff_t.
All uses changed.  Check for integer overflow of size calculation.
(sort_scores, write_scores): Change counts to ptrdiff_t.
(unlock_file): Preserve errno on success, so that storage
exhaustion is diagnosed correctly.

Fixes: debbugs:16428

10 years ago* simple.el (password-word-equivalents): Remove duplicates.
Paul Eggert [Sat, 18 Jan 2014 22:23:38 +0000 (14:23 -0800)]
* simple.el (password-word-equivalents): Remove duplicates.

Sort, to make this easier next time.
Downcase.  Omit ": " after "jelszó".

10 years agolisp/gnus/gnus-setup.el (gnus-use-sendmail): We never use sendmail for mail reading
Steinar Bang [Sat, 18 Jan 2014 20:46:53 +0000 (20:46 +0000)]
lisp/gnus/gnus-setup.el (gnus-use-sendmail): We never use sendmail for mail reading

10 years ago* lisp/term/common-win.el (saved-region-selection): Defvar it.
Jan Djärv [Sat, 18 Jan 2014 15:11:03 +0000 (16:11 +0100)]
* lisp/term/common-win.el (saved-region-selection): Defvar it.
(x-select-text): Set saved-region-selection.

Fixes: debbugs:16382

10 years agoFix file name handling on MS-Windows 9X.
Eli Zaretskii [Sat, 18 Jan 2014 11:46:22 +0000 (13:46 +0200)]
Fix file name handling on MS-Windows 9X.

 src/w32.c (maybe_load_unicows_dll): New function.
 src/emacs.c (main) [WINDOWSNT]: Call maybe_load_unicows_dll early
 on, to make sure we can convert file names to and from UTF-8 on
 Windows 9X.  This fixes a failure to start up because Emacs cannot
 find term/w32-win.el.  Reported by oslsachem <oslsachem@gmail.com>.
 src/w32font.c [WINDOWSNT]: Include w32.h.
 (w32_load_unicows_or_gdi32): Call maybe_load_unicows_dll, instead
 of implementing the same stuff.
 Remove now unused g_b_init_is_windows_9x.
 src/w32.h (maybe_load_unicows_dll): Add prototype.

 nt/runemacs.c (ensure_unicows_dll): Don't tell in the message box
 that "emacs -nw" can do without UNICOWS.DLL on Windows 9X.  See
 w32.c:maybe_load_unicows_dll and its callers for the reason.

10 years agoChangeLog and Author: header comment fixes
Glenn Morris [Sat, 18 Jan 2014 01:51:38 +0000 (20:51 -0500)]
ChangeLog and Author: header comment fixes

10 years ago* lisp/emacs-lisp/authors.el (authors-aliases): Add more entries
Glenn Morris [Sat, 18 Jan 2014 01:50:56 +0000 (20:50 -0500)]
* lisp/emacs-lisp/authors.el (authors-aliases): Add more entries

10 years agoAdd some entries to authors.el variables
Glenn Morris [Sat, 18 Jan 2014 01:29:25 +0000 (20:29 -0500)]
Add some entries to authors.el variables

* lisp/emacs-lisp/authors.el (authors-aliases)
(authors-renamed-files-alist): Add some entries.

10 years agoChangeLog fixes
Glenn Morris [Sat, 18 Jan 2014 01:27:51 +0000 (20:27 -0500)]
ChangeLog fixes

10 years agoAdd :version tag to `tramp-password-prompt-regexp'.
Michael Albinus [Fri, 17 Jan 2014 18:24:09 +0000 (19:24 +0100)]
Add :version tag to `tramp-password-prompt-regexp'.

10 years agoFix Bug#13124.
Michael Albinus [Fri, 17 Jan 2014 18:20:39 +0000 (19:20 +0100)]
Fix Bug#13124.
* net/tramp.el (tramp-password-prompt-regexp): Use
`password-word-equivalents' if available.
(tramp-action-password, tramp-process-one-action)
(tramp-read-passwd): Let-bind `case-fold-search' to t.

10 years agoFix Bug#13124.
Chong Yidong [Fri, 17 Jan 2014 16:45:45 +0000 (17:45 +0100)]
Fix Bug#13124.

* simple.el (password-word-equivalents): New defcustom.
* comint.el (comint-password-prompt-regexp): Use it.  Bump version to 24.4.
(comint-watch-for-password-prompt): Let-bind `case-fold-search' to t.