bpt/emacs.git
10 years agoFix typos in ChangeLogs.
Juanma Barranquero [Fri, 26 Jul 2013 17:02:22 +0000 (19:02 +0200)]
Fix typos in ChangeLogs.

10 years ago* lisp/emacs-lisp/edebug.el: Use backtrace-eval to handle lexical variables.
Stefan Monnier [Fri, 26 Jul 2013 15:09:04 +0000 (11:09 -0400)]
* lisp/emacs-lisp/edebug.el: Use backtrace-eval to handle lexical variables.
(edebug-eval): Use backtrace-eval.
(edebug--display, edebug--recursive-edit): Don't let-bind the
edebug-outer-* vars that keep track of variables we locally let-bind.
(edebug-outside-excursion): Don't restore outside values of locally
let-bound vars.
(edebug--display): Use user-error.
(cl-lexical-debug, cl-debug-env): Remove.

10 years agolisp/desktop.el (desktop-restore-frames): Call `sit-for'.
Juanma Barranquero [Fri, 26 Jul 2013 14:01:19 +0000 (16:01 +0200)]
lisp/desktop.el (desktop-restore-frames): Call `sit-for'.
We want to be sure that new frames are visible before deleting
any remaining ones.

10 years agoFix bug #14841 with invisible frames on MS-Windows.
Eli Zaretskii [Fri, 26 Jul 2013 09:59:59 +0000 (12:59 +0300)]
Fix bug #14841 with invisible frames on MS-Windows.

 src/w32term.c (w32_read_socket) <WM_EMACS_PAINT>: Warn about frame
 being re-exposed only if it didn't ask to become visible.
 <WM_SIZE>: Under SIZE_RESTORED, only set the frame visible if it
 was previously iconified.
 (x_iconify_frame): Mark the frame iconified.

10 years agolisp/vc/vc-dir.el (vc-dir-mode-map): Add binding for vc-print-root-log.
Matthias Meulien [Fri, 26 Jul 2013 09:49:59 +0000 (11:49 +0200)]
lisp/vc/vc-dir.el (vc-dir-mode-map): Add binding for vc-print-root-log.

10 years ago*** empty log message ***
Richard M. Stallman [Fri, 26 Jul 2013 09:33:38 +0000 (05:33 -0400)]
*** empty log message ***

10 years agoAdd aliases for encrypting mail.
Richard M. Stallman [Fri, 26 Jul 2013 09:32:44 +0000 (05:32 -0400)]
Add aliases for encrypting mail.
* epa.el (epa-mail-aliases): New option.
* epa-mail.el (epa-mail-encrypt): Rewrite to be callable from programs.
Bind inhibit-read-only so read-only text doesn't ruin everything.
(epa-mail-default-recipients): New subroutine broken out.
Handle epa-mail-aliases.

10 years agoFix minor problems found by static checking.
Paul Eggert [Fri, 26 Jul 2013 08:39:55 +0000 (09:39 +0100)]
Fix minor problems found by static checking.

* eval.c (get_backtrace_frame, backtrace_eval_unrewind): Now static.
(backtrace_eval_unrewind): ';' -> '{}' to pacify GCC.

10 years agoAdd support for lexical variables to the debugger's `e' command.
Stefan Monnier [Fri, 26 Jul 2013 07:38:18 +0000 (03:38 -0400)]
Add support for lexical variables to the debugger's `e' command.
* lisp/emacs-lisp/debug.el (debug): Don't let-bind the debugger-outer-*
vars, except for debugger-outer-match-data.
(debugger-frame-number): Move check for "on a function call" from
callers into it.  Add `skip-base' argument.
(debugger-frame, debugger-frame-clear): Simplify accordingly.
(debugger-env-macro): Only reset the state stored in non-variables,
i.e. current-buffer and match-data.
(debugger-eval-expression): Rewrite using backtrace-eval.
* lisp/subr.el (internal--called-interactively-p--get-frame): Remove.
(called-interactively-p):
* lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip): Use the new
`base' arg of backtrace-frame instead.
* src/eval.c (set_specpdl_old_value): New function.
(unbind_to): Minor simplification.
(get_backtrace_frame): New function.
(Fbacktrace_frame): Use it.  Add `base' argument.
(backtrace_eval_unrewind, Fbacktrace_eval): New functions.
(syms_of_eval): Export backtrace-eval.
* src/xterm.c (x_focus_changed): Simplify.

10 years agoFix bug #14946 with documentation of fringe-mode the variable.
Eli Zaretskii [Fri, 26 Jul 2013 06:56:35 +0000 (09:56 +0300)]
Fix bug #14946 with documentation of fringe-mode the variable.

 doc/emacs/display.texi (Fringes): Document the variable fringe-mode.

10 years ago* lisp/align.el (align-regexp): Doc fix.
Glenn Morris [Fri, 26 Jul 2013 02:45:15 +0000 (22:45 -0400)]
* lisp/align.el (align-regexp): Doc fix.
(align-region): Explicit error if subexpression missing/does not match.

Fixes: debbugs:14857

10 years ago* lisp/simple.el (global-visual-line-mode): Do not duplicate the mode lighter.
Glenn Morris [Fri, 26 Jul 2013 01:55:06 +0000 (21:55 -0400)]
* lisp/simple.el (global-visual-line-mode): Do not duplicate the mode lighter.

Fixes: debbugs:14858

10 years ago* etc/spook.lines: Additions (tiny change)
Micah Anderson [Fri, 26 Jul 2013 01:45:52 +0000 (21:45 -0400)]
* etc/spook.lines: Additions  (tiny change)

Fixes: debbugs:14658

10 years agognus-art.el (gnus-button-url-regexp): Make it match url in which punctuation characte...
Andreas Schwab [Thu, 25 Jul 2013 23:40:51 +0000 (23:40 +0000)]
gnus-art.el (gnus-button-url-regexp): Make it match url in which punctuation characters follow parentheses (bug#14950)

10 years agoAdd Makefile rules for ido.texi
Glenn Morris [Thu, 25 Jul 2013 15:46:00 +0000 (08:46 -0700)]
Add Makefile rules for ido.texi

* doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add ido.
(ido, $(buildinfodir)/ido$(INFO_EXT), ido.dvi, ido.pdf): New rules.

* info/dir: Add ido.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 25 Jul 2013 10:18:09 +0000 (06:18 -0400)]
Auto-commit of loaddefs files.

10 years agoIn display-buffer bind split-window-keep-point to t, bug#14829.
Martin Rudalics [Thu, 25 Jul 2013 09:58:27 +0000 (11:58 +0200)]
In display-buffer bind split-window-keep-point to t, bug#14829.

* window.el (display-buffer): In display-buffer bind
split-window-keep-point to t, bug#14829.

10 years agolisp/desktop.el: Use pcase-let, pcase-let* in a few places.
Juanma Barranquero [Thu, 25 Jul 2013 09:24:26 +0000 (11:24 +0200)]
lisp/desktop.el: Use pcase-let, pcase-let* in a few places.
(desktop--select-frame, desktop--sort-states, desktop-restore-frames):
Deobfuscate access to desktop--mini values.

10 years agolisp/desktop.el: Rename internal "desktop-X" frame params to "desktop--X".
Juanma Barranquero [Thu, 25 Jul 2013 08:35:04 +0000 (10:35 +0200)]
lisp/desktop.el: Rename internal "desktop-X" frame params to "desktop--X".
(desktop-filter-parameters-alist, desktop--filter-restore-desktop-parm)
(desktop--filter-save-desktop-parm, desktop--process-minibuffer-frames)
(desktop--select-frame, desktop--sort-states, desktop-restore-frames):
Change accordingly.

10 years ago* fileio.c (Finsert_file_contents): Use a more-conservative fix.
Paul Eggert [Thu, 25 Jul 2013 08:07:47 +0000 (09:07 +0100)]
* fileio.c (Finsert_file_contents): Use a more-conservative fix.

Fixes: debbugs:14936

10 years ago* fileio.c (Finsert_file_contents): Avoid double-close.
Paul Eggert [Thu, 25 Jul 2013 07:29:36 +0000 (08:29 +0100)]
* fileio.c (Finsert_file_contents): Avoid double-close.

Fixes: debbugs:14936

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)