]> code.delx.au - gnu-emacs/log
gnu-emacs
10 years agoMerge from emacs-24; up to 2013-01-01T11:02:14Z!rudalics@gmx.at
Glenn Morris [Thu, 25 Jul 2013 07:10:56 +0000 (00:10 -0700)]
Merge from emacs-24; up to 2013-01-01T11:02:14Z!rudalics@gmx.at

10 years ago* make-dist: Add a --tests option, to include test/ (backport from trunk)
Glenn Morris [Thu, 25 Jul 2013 07:03:33 +0000 (00:03 -0700)]
* make-dist: Add a --tests option, to include test/   (backport from trunk)

10 years ago* make-dist: Add a --tests option, to include test/.
Glenn Morris [Thu, 25 Jul 2013 06:57:25 +0000 (23:57 -0700)]
* make-dist: Add a --tests option, to include test/.

10 years agoReduce use of @email in doc/misc
Glenn Morris [Thu, 25 Jul 2013 01:25:18 +0000 (21:25 -0400)]
Reduce use of @email in doc/misc

In many cases it serves no purpose.  It gets converted to mailto:
in html output, which is mainly just an invitation to get spam.

* doc/misc/erc.texi (Special Features): Update contact information.
(History): Avoid using @email.

* doc/misc/eshell.texi (Bugs and ideas): Minor updates.

* doc/misc/faq.texi (Reporting bugs, Origin of the term Emacs)
(Setting up a customization file)
(Using an already running Emacs process, Turning off beeping)
(Packages that do not come with Emacs)
(Replying to the sender of a message): Avoid using @email.

* doc/misc/pcl-cvs.texi (Contributors, Bugs): Avoid using @email.

* doc/misc/reftex.texi (Imprint): Avoid using @email.

* doc/misc/ses.texi (Top): Update bug reporting instructions.
(Acknowledgments): Avoid using @email.

* doc/misc/woman.texi (Introduction, Background): Remove outdated information.
(Bugs, Acknowledgments): Avoid using @email.

10 years agolisp/desktop.el: Add workaround for bug#14949.
Juanma Barranquero [Thu, 25 Jul 2013 00:37:56 +0000 (02:37 +0200)]
lisp/desktop.el: Add workaround for bug#14949.
(desktop--make-frame): Do not pass the `fullscreen' parameter to
modify-frame-parameters if the value has not changed.
(desktop--make-frame): On cl-delete-if call, check parameter name,
not full parameter.

10 years ago* etc/NEWS: Typo fix.
Xue Fuqiao [Wed, 24 Jul 2013 22:39:41 +0000 (06:39 +0800)]
* etc/NEWS: Typo fix.

10 years ago* doc/misc/ido.texi: New file.
Xue Fuqiao [Wed, 24 Jul 2013 22:32:48 +0000 (06:32 +0800)]
* doc/misc/ido.texi: New file.

10 years agoFix bug #14780 with unreachable lines near end of buffer.
Eli Zaretskii [Wed, 24 Jul 2013 17:36:42 +0000 (20:36 +0300)]
Fix bug #14780 with unreachable lines near end of buffer.

 src/xdisp.c (redisplay_window): Instead of moving point out of
 scroll margin, reject the force_start method, and try scrolling.

10 years agolisp/desktop.el (desktop-restoring-frames-p): Return a true boolean.
Juanma Barranquero [Wed, 24 Jul 2013 16:21:44 +0000 (18:21 +0200)]
lisp/desktop.el (desktop-restoring-frames-p): Return a true boolean.
(desktop-restore-frames): Warn when deleting an existing frame failed.

10 years ago* lisp/ffap.el (ffap-machine-p): Handle "not known" response.
Glenn Morris [Wed, 24 Jul 2013 15:56:24 +0000 (08:56 -0700)]
* lisp/ffap.el (ffap-machine-p): Handle "not known" response.

Fixes: debbugs:14929
10 years ago* src/alloc.c (make_save_ptr): Define if HAVE_NTGUI is defined (Bug#14944).
Ken Brown [Wed, 24 Jul 2013 15:11:30 +0000 (11:11 -0400)]
* src/alloc.c (make_save_ptr): Define if HAVE_NTGUI is defined (Bug#14944).

10 years ago* automated/file-notify-tests.el
Michael Albinus [Wed, 24 Jul 2013 13:56:19 +0000 (15:56 +0200)]
* automated/file-notify-tests.el
(file-notify--test-local-enabled): New defconst.  Replaces all
`file-notify-support' occurences.
(file-notify--test-remote-enabled): New defun.
(file-notify--deftest-remote): Use it.
(file-notify-test00-availability): Rewrite.
(file-notify-test00-availability-remote): New defun.
(file-notify-test01-add-watch): Rewrite first erroneous check.

10 years ago* filenotify.el (file-notify-supported-p):
Michael Albinus [Wed, 24 Jul 2013 13:29:15 +0000 (15:29 +0200)]
* filenotify.el (file-notify-supported-p):
* net/tramp-sh.el (tramp-sh-handle-file-notify-supported-p):
Remove functions.

* autorevert.el (auto-revert-use-notify):
(auto-revert-notify-add-watch):
* net/tramp.el (tramp-file-name-for-operation):
* net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* net/tramp-sh.el (tramp-sh-file-name-handler-alist):
* net/tramp-smb.el (tramp-smb-file-name-handler-alist):
Remove `file-notify-supported-p' entry.

10 years ago* errors.texi (Standard Errors): Fix typo.
Michael Albinus [Wed, 24 Jul 2013 13:10:38 +0000 (15:10 +0200)]
* errors.texi (Standard Errors): Fix typo.

* files.texi (Magic File Names):
* os.texi (File Notifications): Remove file-notify-supported-p.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 24 Jul 2013 11:17:32 +0000 (07:17 -0400)]
Auto-commit of loaddefs files.

10 years agoAuto-commit of generated files.
Glenn Morris [Wed, 24 Jul 2013 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agoMerge from mainline.
Xue Fuqiao [Wed, 24 Jul 2013 08:04:39 +0000 (16:04 +0800)]
Merge from mainline.

10 years ago* lisp/ido.el: Doc fix.
Xue Fuqiao [Wed, 24 Jul 2013 08:00:36 +0000 (16:00 +0800)]
* lisp/ido.el: Doc fix.

* lisp/ido.el (ido-fractionp):
(ido-cache-ftp-work-directory-time, ido-max-prospects, ido-mode)
(ido-max-file-prompt-width, ido-unc-hosts-cache)
(ido-max-directory-size, ido-max-dir-file-cache)
(ido-decorations): Doc fix.

10 years ago* lisp/dired-x.el (dired-mark-extension): Convert comment to doc string.
Glenn Morris [Wed, 24 Jul 2013 07:32:49 +0000 (00:32 -0700)]
* lisp/dired-x.el (dired-mark-extension): Convert comment to doc string.

10 years ago* printing.el: Replace all uses of deleted ps-flatten-list with lpr- version.
Glenn Morris [Wed, 24 Jul 2013 07:16:25 +0000 (00:16 -0700)]
* printing.el: Replace all uses of deleted ps-flatten-list with lpr- version.

10 years ago* printing.el: Replace all uses of deleted ps-windows-system, ps-lp-system
Glenn Morris [Wed, 24 Jul 2013 07:06:24 +0000 (00:06 -0700)]
* printing.el: Replace all uses of deleted ps-windows-system, ps-lp-system
with lpr- versions.

10 years ago* src/eval.c (Fprogn): Do not check that BODY is a proper list.
Paul Eggert [Wed, 24 Jul 2013 06:21:07 +0000 (07:21 +0100)]
* src/eval.c (Fprogn): Do not check that BODY is a proper list.

This undoes the previous change.  The check slows down the
interpreter, and is not needed to prevent a crash.  See
<http://lists.gnu.org/archive/html/emacs-devel/2013-07/msg00693.html>.
* doc/lispref/eval.texi (Special Forms): Mention 'lambda'.  Also, say that
non-well-formed expressions result in unspecified behavior, though
Emacs will not crash.

10 years ago* lisp/emacs-lisp/pcase.el (pcase--u1): Verify if self-quoting values can be
Stefan Monnier [Wed, 24 Jul 2013 05:13:24 +0000 (01:13 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--u1): Verify if self-quoting values can be
checked with memq.

Fixes: debbugs:14935
10 years ago* lisp/files.el (revert-buffer-function): Use a non-nil default.
Stefan Monnier [Wed, 24 Jul 2013 04:56:12 +0000 (00:56 -0400)]
* lisp/files.el (revert-buffer-function): Use a non-nil default.
(revert-buffer-preserve-modes): Declare var to
provide access to the `preserve-modes' argument.
(revert-buffer): Let-bind it.
(revert-buffer--default): New function, extracted from revert-buffer.

10 years ago* lisp/lpr.el: Signal print errors more prominently.
Stefan Monnier [Wed, 24 Jul 2013 04:37:11 +0000 (00:37 -0400)]
* lisp/lpr.el: Signal print errors more prominently.
(print-region-function): Don't default to nil.
(lpr-print-region): New function, extracted from print-region-1.
Check lpr's return value and signal an error in case of problem.
(print-region-1): Use it.
* lisp/ps-print.el (ps-windows-system, ps-lp-system): Remove.  Use the lpr-*
versions instead.
(ps-printer-name): Default to nil.
(ps-printer-name-option): Default to lpr-printer-switch.
(ps-print-region-function): Don't default to nil.
(ps-postscript-code-directory): Simplify default.
(ps-do-despool): Use lpr-print-region to properly check the outcome.
(ps-string-list, ps-eval-switch, ps-flatten-list)
(ps-flatten-list-1): Remove.
(ps-multibyte-buffer): Avoid setq.
* lisp/dos-w32.el (direct-print-region-helper): Use proper regexp operators.
(print-region-function, ps-print-region-function): Don't set them here.

10 years ago* lisp/ansi-color.el: Fix old URL.
Xue Fuqiao [Wed, 24 Jul 2013 03:49:24 +0000 (11:49 +0800)]
* lisp/ansi-color.el: Fix old URL.

10 years ago* configure.ac: Use self-descriptive tags for AC_CONFIG_COMMANDS.
Glenn Morris [Wed, 24 Jul 2013 01:03:56 +0000 (21:03 -0400)]
* configure.ac: Use self-descriptive tags for AC_CONFIG_COMMANDS.

10 years ago* progmodes/sql.el Version 3.3
Michael Mauger [Wed, 24 Jul 2013 00:25:53 +0000 (20:25 -0400)]
* progmodes/sql.el Version 3.3
(sql-product-alist): Improve oracle :prompt-cont-regexp.
(sql-starts-with-prompt-re, sql-ends-with-prompt-re): New functions.
(sql-interactive-remove-continuation-prompt): Rewrite, use
functions above.  Fix continuation prompt and complete output line
handling.
(sql-redirect-one, sql-execute): Use `read-only-mode' on
redirected output buffer.
(sql-mode): Restore deleted code (Bug#13591).

10 years agolisp/desktop.el (desktop-clear): Fix previous change.
Juanma Barranquero [Tue, 23 Jul 2013 23:10:58 +0000 (01:10 +0200)]
lisp/desktop.el (desktop-clear): Fix previous change.

10 years agoNo need for configure to create etc/ and lisp/ any more
Glenn Morris [Tue, 23 Jul 2013 23:00:43 +0000 (19:00 -0400)]
No need for configure to create etc/ and lisp/ any more

* configure.ac (etc, lisp): No need to create specially.
Configure already creates lisp when generating lisp/Makefile;
src/Makefile now creates etc when needed.

* src/Makefile.in ($(etc)/DOC, temacs$(EXEEXT)): Ensure etc/ exists.

10 years agoUse a @configure_input@ comment at the start of generated Makefiles
Glenn Morris [Tue, 23 Jul 2013 22:57:17 +0000 (18:57 -0400)]
Use a @configure_input@ comment at the start of generated Makefiles

10 years ago* inotify-test.el (inotify-file-watch-simple): Delete temp-file when done.
Glenn Morris [Tue, 23 Jul 2013 19:54:01 +0000 (15:54 -0400)]
* inotify-test.el (inotify-file-watch-simple): Delete temp-file when done.

10 years ago* test/automated/subword-tests.el: Require subword.
Glenn Morris [Tue, 23 Jul 2013 16:08:47 +0000 (09:08 -0700)]
* test/automated/subword-tests.el: Require subword.

10 years ago* net/tramp.el (tramp-handle-file-notify-add-watch): New defun.
Michael Albinus [Tue, 23 Jul 2013 14:06:02 +0000 (16:06 +0200)]
* net/tramp.el (tramp-handle-file-notify-add-watch): New defun.

* net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use it.

10 years agolisp/desktop.el (desktop-list*): Fix previous change.
Juanma Barranquero [Tue, 23 Jul 2013 11:29:30 +0000 (13:29 +0200)]
lisp/desktop.el (desktop-list*): Fix previous change.

10 years agoAuto-commit of generated files.
Glenn Morris [Tue, 23 Jul 2013 10:17:48 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agoFix ChangeLog typo.
Paul Eggert [Tue, 23 Jul 2013 09:06:46 +0000 (10:06 +0100)]
Fix ChangeLog typo.

10 years agoPort to GNU/Linux systems with tinfo but not ncurses.
Paul Eggert [Tue, 23 Jul 2013 08:08:57 +0000 (09:08 +0100)]
Port to GNU/Linux systems with tinfo but not ncurses.

* configure.ac (USE_NCURSES): New symbol.
* src/dispnew.c (init_display): Depend on USE_NCURSES, not GNU_LINUX,
to decide whether ncurses is being used.  Without this change,
GCC complains about tgetent not being declared, on a system
that has tinfo installed but ncurses not installed.

10 years ago* eval.c (Fprogn): Check that BODY is a proper list.
Paul Eggert [Tue, 23 Jul 2013 07:22:16 +0000 (08:22 +0100)]
* eval.c (Fprogn): Check that BODY is a proper list.

10 years ago[Gnus] Fix previous commit
Katsumi Yamaoka [Tue, 23 Jul 2013 07:04:24 +0000 (07:04 +0000)]
[Gnus] Fix previous commit

* gnus.el (gnus-continuum-version):
* gnus-msg.el (gnus-extended-version): Simplify.

* gnus.el (gnus-continuum-version-1): Remove.
* gnus-msg.el (gnus-bug): Revert.

10 years agoTune UNEVALLED functions by using XCAR instead of Fcar, etc.
Paul Eggert [Tue, 23 Jul 2013 06:48:34 +0000 (07:48 +0100)]
Tune UNEVALLED functions by using XCAR instead of Fcar, etc.

* data.c (Fsetq_default):
* eval.c (Fif, Fcond, Fprog1, Fsetq, Fquote, Ffunction, Fdefvar)
(Fdefconst, FletX, Flet, Fwhile, Fcatch, Funwind_protect)
(Fcondition_case):
Tune by taking advantage of the fact that ARGS is always a list
when a function is declared to have UNEVALLED args.

10 years ago* emacsgtkfixed.c: Port to GCC 4.6.
Paul Eggert [Tue, 23 Jul 2013 06:38:51 +0000 (07:38 +0100)]
* emacsgtkfixed.c: Port to GCC 4.6.

GCC 4.6 complains about -Wunused-local-typedefs, introduced in 4.7.

10 years agoCalculate gnus-version correctly on Cygwin
Katsumi Yamaoka [Tue, 23 Jul 2013 05:22:20 +0000 (05:22 +0000)]
Calculate gnus-version correctly on Cygwin

* gnus.el (gnus-continuum-version): Do main calculations in integers.
  (gnus-continuum-version-1): New function, return a string.
* gnus-msg.el (gnus-extended-version, gnus-bug):
  Use gnus-continuum-version-1 instead of gnus-continuum-version.

10 years agosrc/callproc.c (child_setup): Silence compiler warnings.
Juanma Barranquero [Tue, 23 Jul 2013 01:11:40 +0000 (03:11 +0200)]
src/callproc.c (child_setup): Silence compiler warnings.

10 years agolisp/desktop.el: Simplify.
Juanma Barranquero [Tue, 23 Jul 2013 01:10:54 +0000 (03:10 +0200)]
lisp/desktop.el: Simplify.
(desktop-clear): Simplify; remove useless checks against invalid buffer names.
(desktop-list*): Use cl-list*.
(desktop-buffer-info, desktop-create-buffer): Simplify.

10 years ago* bookmark.el (bookmark-make-record): Restore NAME as a default
Leo Liu [Tue, 23 Jul 2013 00:58:28 +0000 (08:58 +0800)]
* bookmark.el (bookmark-make-record): Restore NAME as a default
value.

Fixes: debbugs:14933
10 years ago* lisp/emacs-lisp/autoload.el (autoload--setup-output): New function,
Stefan Monnier [Mon, 22 Jul 2013 23:21:14 +0000 (19:21 -0400)]
* lisp/emacs-lisp/autoload.el (autoload--setup-output): New function,
extracted from autoload--insert-text.
(autoload--insert-text): Remove.
(autoload--print-cookie-text): New function, extracted from
autoload--insert-cookie-text.
(autoload--insert-cookie-text): Remove.
(autoload-generate-file-autoloads): Adjust calls accordingly.

10 years ago* lisp/winner.el (winner-hook-installed-p): Remove.
Stefan Monnier [Mon, 22 Jul 2013 22:51:29 +0000 (18:51 -0400)]
* lisp/winner.el (winner-hook-installed-p): Remove.
(winner-mode): Simplify accordingly.

10 years ago* lisp/subr.el (add-to-list): Fix compiler-macro when `append' is
Stefan Monnier [Mon, 22 Jul 2013 17:24:31 +0000 (13:24 -0400)]
* lisp/subr.el (add-to-list): Fix compiler-macro when `append' is
not constant.  Don't use `cl-member' for the base case.

10 years ago* lisp/progmodes/subword.el: Fix boundary case.
Stefan Monnier [Mon, 22 Jul 2013 16:25:32 +0000 (12:25 -0400)]
* lisp/progmodes/subword.el: Fix boundary case.
(subword-forward-regexp): Make it a constant.  Wrap optional \\W in its
own group.
(subword-backward-regexp): Make it a constant.
(subword-forward-internal): Don't treat a trailing capital as the
beginning of a word.
* test/automated/subword-tests.el: New file.

Fixes: debbugs:13758
10 years ago* sysdep.c (frame) [__FreeBSD__]: #define to freebsd_frame
Paul Eggert [Mon, 22 Jul 2013 15:30:54 +0000 (16:30 +0100)]
* sysdep.c (frame) [__FreeBSD__]: #define to freebsd_frame

when including <sys/user.h>, to prevent Sparc/ARM machine/frame.h
from messing up Emacs's 'struct frame'.

Fixes: debbugs:14923
10 years agolisp/emacs-lisp/package.el (package-menu-mode): Fix bug#14930.
Ari Roponen [Mon, 22 Jul 2013 11:39:32 +0000 (13:39 +0200)]
lisp/emacs-lisp/package.el (package-menu-mode): Fix bug#14930.
Don't modify the global value of tabulated-list-revert-hook.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 22 Jul 2013 10:21:02 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

10 years ago* files.texi (Magic File Names): Add file-notify-add-watch,
Michael Albinus [Mon, 22 Jul 2013 09:19:00 +0000 (11:19 +0200)]
* files.texi (Magic File Names): Add file-notify-add-watch,
file-notify-rm-watch and file-notify-supported-p.  Move
file-remote-p down.

* errors.texi (Standard Errors): Add file-notify-error.

* os.texi (Desktop Notifications): Rename from Notifications.
(File Notifications): New node.

* elisp.texi (Top): Update menu for these changes.

10 years agoFix typo.
Michael Albinus [Mon, 22 Jul 2013 09:17:21 +0000 (11:17 +0200)]
Fix typo.

10 years ago* lisp/url/url-http.el (status): Remove, unused.
Stefan Monnier [Mon, 22 Jul 2013 04:06:21 +0000 (00:06 -0400)]
* lisp/url/url-http.el (status): Remove, unused.
(success): Remove var.
(url-http-handle-authentication): Return the value that `success'
should take instead of setting `success' directly.  Don't set `status'
since it's not used.
(url-http-parse-headers): Avoid unneeded setq.
Move the `setq success'.
(url-http): Use pcase.
(url-http-file-exists-p): Simplify.

10 years agolisp/desktop.el: Require 'cl-lib.
Juanma Barranquero [Mon, 22 Jul 2013 01:25:47 +0000 (03:25 +0200)]
lisp/desktop.el: Require 'cl-lib.
(desktop-before-saving-frames-functions): New hook.
(desktop--process-minibuffer-frames): Set desktop-mini parameter only
for frames being saved.  Rename from desktop--save-minibuffer-frames.
(desktop-save-frames): Run hook desktop-before-saving-frames-functions.
Do not save frames with non-nil `desktop-dont-save' parameter.  Filter
out deleted frames.
(desktop--find-frame): Use cl-find-if.
(desktop--select-frame): Use cl-(first|second|third) to access values
of desktop-mini.
(desktop--make-frame): Use cl-delete-if.
(desktop--sort-states): Fix sorting of minibuffer-owning frames.
(desktop-restore-frames): Use cl-(first|second|third) to access values
of desktop-mini.  Look for visible frame at the end, not while
restoring frames.

10 years agolisp/dired-x.el: Fix bug#14927.
Juanma Barranquero [Mon, 22 Jul 2013 01:04:10 +0000 (03:04 +0200)]
lisp/dired-x.el: Fix bug#14927.
(dired-mark-unmarked-files, dired-virtual, dired-guess-default)
(dired-mark-sexp, dired-filename-at-point): Use string-match-p, looking-at-p.

10 years agolisp/desktop.el: Make some frame-restoring functions public.
Juanma Barranquero [Sun, 21 Jul 2013 17:45:12 +0000 (19:45 +0200)]
lisp/desktop.el: Make some frame-restoring functions public.
(desktop-saved-frame-states): Rename from desktop--saved-states;
all users changed.
(desktop-save-frames): Rename from desktop--save-frames.
Do not save state to desktop file.
(desktop-save): Save desktop-saved-frame-states to desktop file
and reset to nil.
(desktop-restoring-frames-p): New function.
(desktop-restore-frames): Use it.  Rename from desktop--restore-frames.
(desktop-read): Use desktop-restoring-frames-p.  Do not try to fix
buffer-lists when restoring frames.  Suggested by Martin Rudalics.

10 years ago* alloc.c (make_save_ptr_ptr): Define this function.
Paul Eggert [Sun, 21 Jul 2013 15:56:55 +0000 (08:56 -0700)]
* alloc.c (make_save_ptr_ptr): Define this function.

It was inadvertently omitted.  It's needed only if
HAVE_MENUS && ! (USE_X_TOOLKIT || USE_GTK).

10 years ago* nsterm.m (sendEvent:): Skip mouse moved if no dialog and no Emacs
Jan Djärv [Sun, 21 Jul 2013 11:47:07 +0000 (13:47 +0200)]
* nsterm.m (sendEvent:): Skip mouse moved if no dialog and no Emacs
frame have focus.

Fixes: debbugs:14895
10 years agoAuto-commit of generated files.
Glenn Morris [Sun, 21 Jul 2013 10:19:07 +0000 (06:19 -0400)]
Auto-commit of generated files.

10 years agoAvoid vfork-related deadlock more cleanly.
Paul Eggert [Sun, 21 Jul 2013 06:53:47 +0000 (23:53 -0700)]
Avoid vfork-related deadlock more cleanly.

* callproc.c (child_setup): When the child's exec fails, output
the program name, as that's more useful.  Use O_NONBLOCK to avoid
deadlock.
* process.c (create_process_1): Remove; no longer needed.
(create_process): Remove timer hack; no longer needed, now that
the child avoids deadlock.

10 years agoSpelling fixes.
Paul Eggert [Sun, 21 Jul 2013 04:22:33 +0000 (21:22 -0700)]
Spelling fixes.

10 years agolisp/ChangeLog, src/ChangeLog: Fix typos.
Juanma Barranquero [Sun, 21 Jul 2013 02:53:19 +0000 (04:53 +0200)]
lisp/ChangeLog, src/ChangeLog: Fix typos.

10 years agolisp/desktop.el: Correctly restore iconified frames.
Juanma Barranquero [Sun, 21 Jul 2013 02:42:11 +0000 (04:42 +0200)]
lisp/desktop.el: Correctly restore iconified frames.
(desktop--filter-iconified-position): New function.
(desktop-filter-parameters-alist): Add entries for `top' and `left'.

10 years agoimage-dired.el: use with-current-buffer
Glenn Morris [Sat, 20 Jul 2013 19:29:02 +0000 (12:29 -0700)]
image-dired.el: use with-current-buffer

* lisp/image-dired.el (image-dired-track-original-file):
Use with-current-buffer.
(image-dired-track-thumbnail): Use with-current-buffer.
Avoid changing point of wrong window.

10 years agoTweak some message calls in gdb-mi.el
Glenn Morris [Sat, 20 Jul 2013 19:25:05 +0000 (12:25 -0700)]
Tweak some message calls in gdb-mi.el

* lisp/progmodes/gdb-mi.el (gdb-delete-handler, gdb-stopped):
Let `message' do the formatting.
(def-gdb-preempt-display-buffer): Add explicit format.

10 years agoMerge from emacs-24; up to 2012-12-31T11:35:13Z!rudalics@gmx.at
Glenn Morris [Sat, 20 Jul 2013 19:20:33 +0000 (12:20 -0700)]
Merge from emacs-24; up to 2012-12-31T11:35:13Z!rudalics@gmx.at

10 years ago* lisp/image-dired.el (image-dired-track-original-file):
Glenn Morris [Sat, 20 Jul 2013 19:17:32 +0000 (12:17 -0700)]
* lisp/image-dired.el (image-dired-track-original-file):
Avoid changing point of wrong window.

Fixes: debbugs:14909
10 years ago* international/mule.el (coding-system-iso-2022-flags): Fix last
Andreas Schwab [Sat, 20 Jul 2013 15:41:38 +0000 (17:41 +0200)]
* international/mule.el (coding-system-iso-2022-flags): Fix last
change.

10 years agoFix array bounds violation when pty allocation fails.
Paul Eggert [Sat, 20 Jul 2013 15:33:00 +0000 (08:33 -0700)]
Fix array bounds violation when pty allocation fails.

* configure.ac (PTY_TTY_NAME_SPRINTF): Use PTY_NAME_SIZE,
not sizeof pty_name, since pty_name is now a pointer to the array.
* src/process.c (PTY_NAME_SIZE): New constant.
(pty_name): Remove static variable; it's now auto.
(allocate_pty): Define even if !HAVE_PTYS; that's simpler.
Take pty_name as an arg rather than using a static variable.
All callers changed.
(create_process): Recover pty_flag from process, not from volatile local.
(create_pty): Stay inside array even when pty allocation fails.
(Fmake_serial_process): Omit unnecessary initializaiton of pty_flag.

10 years ago* lread.c (Fload): Avoid initialization only when lint checking.
Paul Eggert [Sat, 20 Jul 2013 14:21:25 +0000 (07:21 -0700)]
* lread.c (Fload): Avoid initialization only when lint checking.

Mention that it's needed only for older GCCs.

10 years agomerge trunk
Kenichi Handa [Sat, 20 Jul 2013 11:51:53 +0000 (20:51 +0900)]
merge trunk

10 years agocoding.c (decode_coding_iso_2022): Fix previous change.
Kenichi Handa [Sat, 20 Jul 2013 11:45:50 +0000 (20:45 +0900)]
coding.c (decode_coding_iso_2022): Fix previous change.

10 years agomule.el (coding-system-iso-2022-flags): Change 8-bit-level-4'
Kenichi Handa [Sat, 20 Jul 2013 11:22:56 +0000 (20:22 +0900)]
mule.el (coding-system-iso-2022-flags): Change 8-bit-level-4'

10 years ago* lread.c (Fload): Avoid uninitialized warning.
Andreas Schwab [Sat, 20 Jul 2013 08:25:46 +0000 (10:25 +0200)]
* lread.c (Fload): Avoid uninitialized warning.

10 years ago* coding.c (CODING_ISO_FLAG_LEVEL_4): New macro.
Kenichi Handa [Sat, 20 Jul 2013 04:19:05 +0000 (13:19 +0900)]
* coding.c (CODING_ISO_FLAG_LEVEL_4): New macro.
(decode_coding_iso_2022): Check the single-shift area.  (Bug#8522)

10 years ago* mule.el (coding-system-iso-2022-flags): Add `level-4'. (Bug#8522)
Kenichi Handa [Sat, 20 Jul 2013 04:15:37 +0000 (13:15 +0900)]
* mule.el (coding-system-iso-2022-flags): Add `level-4'.  (Bug#8522)

10 years agoFix some minor file descriptor leaks and related glitches.
Paul Eggert [Fri, 19 Jul 2013 18:09:23 +0000 (11:09 -0700)]
Fix some minor file descriptor leaks and related glitches.

* filelock.c (create_lock_file) [!O_CLOEXEC]: Use fcntl with FD_CLOEXEC.
(create_lock_file): Use write, not emacs_write.
* image.c (slurp_file, png_load_body):
* process.c (Fnetwork_interface_list, Fnetwork_interface_info)
(server_accept_connection):
Don't leak an fd on memory allocation failure.
* image.c (slurp_file): Add a cheap heuristic for growing files.
* xfaces.c (Fx_load_color_file): Block input around the fopen too,
as that's what the other routines do.  Maybe input need not be
blocked at all, but it's better to be consistent.
Avoid undefined behavior when strlen is zero.

10 years ago* alloc.c (staticpro): Avoid buffer overrun on repeated calls.
Paul Eggert [Fri, 19 Jul 2013 17:54:26 +0000 (10:54 -0700)]
* alloc.c (staticpro): Avoid buffer overrun on repeated calls.

(NSTATICS): Now a constant; doesn't need to be a macro.

10 years ago(decode_coding_utf_8): Add simple loop for fast processing of ASCII characters.
Richard M. Stallman [Fri, 19 Jul 2013 16:15:51 +0000 (12:15 -0400)]
(decode_coding_utf_8): Add simple loop for fast processing of ASCII characters.

10 years ago* net/shr.el (shr-mouse-browse-url): New command and keystroke.
Lars Magne Ingebrigtsen [Fri, 19 Jul 2013 14:57:28 +0000 (16:57 +0200)]
* net/shr.el (shr-mouse-browse-url): New command and keystroke.

Fixes: debbugs:14815
10 years agoMerge Changes made in Gnus master
Gnus developers [Fri, 19 Jul 2013 14:50:21 +0000 (14:50 +0000)]
Merge Changes made in Gnus master

2013-07-19 Geoff Kuenning <geoff@cs.hmc.edu> (tiny change)
 * gnus.texi (Customizing Articles): Document function predicates.

2013-07-19 Geoff Kuenning <geoff@cs.hmc.edu> (tiny change)
 * gnus-art.el (gnus-treat-predicate): Allow functions as predicates (bug#13384).

2013-07-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
 * gnus-start.el (gnus-clean-old-newsrc): Remove the newsrc cleanups
 that were only relevant in a development version a long time ago.

10 years agoeww textarea input fixup
Lars Magne Ingebrigtsen [Fri, 19 Jul 2013 14:44:16 +0000 (16:44 +0200)]
eww textarea input fixup

* net/eww.el (eww-process-text-input): Allow inputting when the
point is at the start of the line, as the properties aren't
front-sticky.

10 years ago* conf_post.h (RE_TRANSLATE_P) [emacs]: Remove obsolete optimization.
Paul Eggert [Fri, 19 Jul 2013 14:34:56 +0000 (07:34 -0700)]
* conf_post.h (RE_TRANSLATE_P) [emacs]: Remove obsolete optimization.

10 years ago(shr-make-table-1): Ensure that we don't infloop on degenerate widths.
Lars Magne Ingebrigtsen [Fri, 19 Jul 2013 14:07:43 +0000 (16:07 +0200)]
(shr-make-table-1): Ensure that we don't infloop on degenerate widths.

10 years ago* epa.el (epa-popup-info-window): Doc fix.
Richard M. Stallman [Fri, 19 Jul 2013 13:30:58 +0000 (09:30 -0400)]
* epa.el (epa-popup-info-window): Doc fix.

10 years agoAdd a comment.
Richard M. Stallman [Fri, 19 Jul 2013 13:09:03 +0000 (09:09 -0400)]
Add a comment.

10 years agosplit-string takes a new arg TRIM that's a regexp
Richard M. Stallman [Fri, 19 Jul 2013 12:18:16 +0000 (08:18 -0400)]
split-string takes a new arg TRIM that's a regexp
saying what to trim from the start and end of each substring.

* subr.el (split-string): New arg TRIM.

10 years agoFix the fix for bug #14901.
Eli Zaretskii [Fri, 19 Jul 2013 10:55:36 +0000 (13:55 +0300)]
Fix the fix for bug #14901.

 src/keyboard.c (kbd_buffer_get_event): Use Display_Info instead of
 unportable 'struct x_display_info'.
 (DISPLAY_LIST_INFO): Delete macro: not needed, since Display_Info
 is a portable type.

10 years ago* doc/lispref/windows.texi (Display Action Functions): Mention next-window.
Xue Fuqiao [Fri, 19 Jul 2013 06:31:17 +0000 (14:31 +0800)]
* doc/lispref/windows.texi (Display Action Functions): Mention next-window.

10 years ago* sysdep.c [GNU_LINUX]: Fix fd and memory leaks and similar issues.
Paul Eggert [Fri, 19 Jul 2013 05:36:50 +0000 (22:36 -0700)]
* sysdep.c [GNU_LINUX]: Fix fd and memory leaks and similar issues.

(procfs_ttyname): Don't use uninitialized storage if emacs_fopen
or fscanf fails.
(system_process_attributes): Prefer plain char to unsigned char
when either will do.  Clean up properly if interrupted or if
memory allocations fail.  Don't assume sscanf succeeds.  Remove
no-longer-needed workaround to stop GCC from whining.  Read
command-line once, instead of multiple times.  Check read status a
bit more carefully.

10 years agoFix obscure porting bug with varargs functions.
Paul Eggert [Fri, 19 Jul 2013 01:24:35 +0000 (18:24 -0700)]
Fix obscure porting bug with varargs functions.

The code assumed that int is treated like ptrdiff_t in a vararg
function, which is not a portable assumption.  There was a similar
-- though these days less likely -- porting problem with various
assumptions that pointers of different types all smell the same as
far as vararg functions is conserved.  To make this problem less
likely in the future, redo the API to use varargs functions.
* alloc.c (make_save_value): Remove this vararg function.
All uses changed to ...
(make_save_int_int_int, make_save_obj_obj_obj_obj)
(make_save_ptr_int, make_save_funcptr_ptr_obj, make_save_memory):
New functions.
(make_save_ptr): Rename from make_save_pointer, for consistency with
the above.  Define only on platforms that need it.  All uses changed.

10 years agolisp/ChangeLog, src/ChangeLog: Fix typos.
Juanma Barranquero [Fri, 19 Jul 2013 00:38:19 +0000 (02:38 +0200)]
lisp/ChangeLog, src/ChangeLog: Fix typos.

10 years ago* keyboard.c: Try to fix typos in previous change.
Paul Eggert [Thu, 18 Jul 2013 21:16:33 +0000 (14:16 -0700)]
* keyboard.c: Try to fix typos in previous change.

(DISPLAY_LIST_INFO): New macro.
(kbd_buffer_get_event): Do not access members that are not present
in X11.  Revert nadvertent change of "!=" to "=".

10 years ago* gdb-mi.el (gdb-done-or-error): Guard against "%" in gdb output (tiny change)
Richard Copley [Thu, 18 Jul 2013 16:56:08 +0000 (12:56 -0400)]
* gdb-mi.el (gdb-done-or-error): Guard against "%" in gdb output (tiny change)

Fixes: debbugs:14127
10 years agoFollowup to 2013-07-16T11:41:06Z!jan.h.d@swipnet.se.
Juanma Barranquero [Thu, 18 Jul 2013 16:50:05 +0000 (18:50 +0200)]
Followup to 2013-07-16T11:41:06Z!jan.h.d@swipnet.se.
* lisp/frame.el (blink-cursor-timer-function, blink-cursor-suspend):
  Add check for W32.
* src/keyboard.c (kbd_buffer_get_event):
* src/w32term.c (x_focus_changed): Port FOCUS_(IN|OUT)_EVENT changes to W32.

10 years agognus-art.el (gnus-shr-put-image): Make it work as well for shr.el's that the old...
Katsumi Yamaoka [Thu, 18 Jul 2013 11:26:04 +0000 (11:26 +0000)]
gnus-art.el (gnus-shr-put-image): Make it work as well for shr.el's that the old Emacs 24s bundle

10 years ago* filelock.c: Fix unlikely file descriptor leaks.
Paul Eggert [Thu, 18 Jul 2013 10:24:26 +0000 (03:24 -0700)]
* filelock.c: Fix unlikely file descriptor leaks.

(get_boot_time_1): Rework to avoid using emacs_open.
This doesn't actually fix a leak, but is better anyway.
(read_lock_data): Use read, not emacs_read.