bpt/emacs.git
10 years agoInclude interactive-only information in describe-function output
Glenn Morris [Sat, 22 Mar 2014 22:36:29 +0000 (15:36 -0700)]
Include interactive-only information in describe-function output

* lisp/help-fns.el (help-fns--interactive-only): New function.
(help-fns-describe-function-functions): Add the above function.

* lisp/simple.el (beginning-of-buffer, end-of-buffer, insert-buffer)
(next-line, previous-line): Remove hand-written interactive-only
information from doc strings, it is auto-generated now.

* lisp/bookmark.el (bookmark-write):
* lisp/epa-mail.el (epa-mail-decrypt, epa-mail-verify, epa-mail-sign)
(epa-mail-import-keys): Mark interactive-only,
and remove hand-written interactive-only information from doc strings.

* lisp/epa.el (epa-decrypt-armor-in-region, epa-verify-region)
(epa-verify-cleartext-in-region, epa-sign-region, epa-encrypt-region):
* lisp/files.el (not-modified):
* lisp/simple.el (mark-whole-buffer): Mark interactive-only.

* doc/lispref/commands.texi (Defining Commands):
Mention that interactive-only also affects describe-function.

* etc/NEWS: Mention this.

10 years agoAllow `declare' to set the interactive-only property
Glenn Morris [Sat, 22 Mar 2014 22:12:52 +0000 (15:12 -0700)]
Allow `declare' to set the interactive-only property

* lisp/emacs-lisp/byte-run.el (defun-declarations-alist):
Add interactive-only.  Doc tweak.
(macro-declarations-alist): Doc tweak.

* lisp/subr.el (declare): Doc tweak (add xref to manual).

* lisp/comint.el (comint-run):
* lisp/files.el (insert-file-literally, insert-file):
* lisp/replace.el (replace-string, replace-regexp):
* lisp/simple.el (beginning-of-buffer, end-of-buffer, delete-backward-char)
(delete-forward-char, goto-line, insert-buffer, next-line)
(previous-line): Set interactive-only via declare.

* doc/lispref/functions.texi (Declare Form): Add interactive-only.

* doc/lispref/commands.texi (Defining Commands) Mention declare.

* etc/NEWS: Mention this.

10 years agoMerge from emacs-24; up to 2014-03-21T21:27:25Z!dancol@dancol.org
Glenn Morris [Sat, 22 Mar 2014 21:44:04 +0000 (14:44 -0700)]
Merge from emacs-24; up to 2014-03-21T21:27:25Z!dancol@dancol.org

10 years ago* lispref/commands.texi (Defining Commands): Tweak previous change.
Glenn Morris [Sat, 22 Mar 2014 21:41:31 +0000 (14:41 -0700)]
* lispref/commands.texi (Defining Commands): Tweak previous change.

10 years ago* lispref/commands.texi (Defining Commands): List interactive-only values.
Glenn Morris [Sat, 22 Mar 2014 19:54:48 +0000 (12:54 -0700)]
* lispref/commands.texi (Defining Commands): List interactive-only values.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 22 Mar 2014 10:18:10 +0000 (06:18 -0400)]
Auto-commit of loaddefs files.

10 years agoFix bug#16873
Dmitry Gutov [Sat, 22 Mar 2014 08:43:30 +0000 (10:43 +0200)]
Fix bug#16873

* lisp/emacs-lisp/package.el (package-desc): Use the contents of the
quoted form, not its cdr.

10 years agodoc/lispref/functions.texi (Core Advising Primitives): Fix cross-reference in last...
Eli Zaretskii [Sat, 22 Mar 2014 08:35:03 +0000 (10:35 +0200)]
doc/lispref/functions.texi (Core Advising Primitives): Fix cross-reference in last change.

10 years agoRevert last commit.
Eli Zaretskii [Sat, 22 Mar 2014 08:28:20 +0000 (10:28 +0200)]
Revert last commit.

10 years agoFix bug #16694 with face attributes changed by themes.
Matthias Dahl [Sat, 22 Mar 2014 08:18:42 +0000 (10:18 +0200)]
Fix bug #16694 with face attributes changed by themes.

 lisp/faces.el (face-spec-recalc): Doc fix.  Call
 make-face-x-resource-internal earlier, and condition that on
 no-init-from-resources being nil.

10 years ago* help.el (temp-buffer-setup-hook): Remove help-mode-setup.
Leo Liu [Sat, 22 Mar 2014 08:13:46 +0000 (16:13 +0800)]
* help.el (temp-buffer-setup-hook): Remove help-mode-setup.
(temp-buffer-show-hook): Remove help-mode-finish.

Fixes: debbugs:16038

10 years agoDo not read uninitialized memory in conv_sockaddr_to_lisp
Daniel Colascione [Sat, 22 Mar 2014 03:04:53 +0000 (20:04 -0700)]
Do not read uninitialized memory in conv_sockaddr_to_lisp

10 years agoDo not read unitialized memory in conv_sockaddr_to_lisp
Daniel Colascione [Sat, 22 Mar 2014 03:04:24 +0000 (20:04 -0700)]
Do not read unitialized memory in conv_sockaddr_to_lisp

10 years agolisp/w32-common-fns.el (x-selection-owner-p): Get documentation from DOC.
Juanma Barranquero [Sat, 22 Mar 2014 00:24:00 +0000 (01:24 +0100)]
lisp/w32-common-fns.el (x-selection-owner-p): Get documentation from DOC.
Add empty docstring for the benefit of doc.c; change parameter profile
to match the X function.

10 years agoFix bugs that screwed M-x battery on Yeeloong
Richard M. Stallman [Fri, 21 Mar 2014 23:20:31 +0000 (19:20 -0400)]
Fix bugs that screwed M-x battery on Yeeloong

* lisp/battery.el (battery-linux-sysfs): Search for each field
from the beginning of the buffer.

10 years agoAvoid GC crashes.
Richard M. Stallman [Fri, 21 Mar 2014 23:16:26 +0000 (19:16 -0400)]
Avoid GC crashes.

* lisp/subr.el (set-transient-map): Clear out function and value
of the temporary symbol when we're done with it.

10 years ago*** empty log message ***
Richard M. Stallman [Fri, 21 Mar 2014 23:10:32 +0000 (19:10 -0400)]
*** empty log message ***

10 years agoMake Rmail delete and undelete commands handle repeat count.
Richard M. Stallman [Fri, 21 Mar 2014 23:09:02 +0000 (19:09 -0400)]
Make Rmail delete and undelete commands handle repeat count.

* lisp/mail/rmail.el (rmail-delete-message): Update summary.
(rmail-undelete-previous-message): Handle repeat count arg.
(rmail-delete-backward, rmail-delete-forward): Likewise.

* lisp/mail/rmailsum.el (rmail-summary-delete-forward):
Optimize case of reaching end and handling count.
(rmail-summary-mark-deleted): Optimize when N is current msg.
Don't create new summary line.
(rmail-summary-undelete): Pass arg to rmail-undelete-previous-message.
(rmail-summary-undelete-many): Rewrite for speed.
(rmail-summary-msg-number): New function.

10 years ago* doc/lispref/functions.texi (Advising Functions): Explain a bit more how
Stefan Monnier [Fri, 21 Mar 2014 21:47:52 +0000 (17:47 -0400)]
* doc/lispref/functions.texi (Advising Functions): Explain a bit more how
arguments work.
(Advice combinators): New node.
(Core Advising Primitives): Use it.  Expand description of "depth".
(Advising Named Functions): Document limitation of advices on macros.

10 years agoAdd memory information to bug reports
Daniel Colascione [Fri, 21 Mar 2014 21:27:25 +0000 (14:27 -0700)]
Add memory information to bug reports

10 years agoMerge from emacs-24; up to 2014-03-21T08:51:02Z!eliz@gnu.org
Glenn Morris [Fri, 21 Mar 2014 19:04:57 +0000 (12:04 -0700)]
Merge from emacs-24; up to 2014-03-21T08:51:02Z!eliz@gnu.org

10 years agoIncrease default history-length from 30 to 100
Glenn Morris [Fri, 21 Mar 2014 17:04:50 +0000 (13:04 -0400)]
Increase default history-length from 30 to 100

Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg02008.html

* lisp/cus-start.el (history-length): Bump :version.

* src/minibuf.c (history-length): Increase default from 30 to 100.

10 years ago* net/tramp.el (tramp-methods): Add docstring for `tramp-login-env'
Michael Albinus [Fri, 21 Mar 2014 13:02:25 +0000 (14:02 +0100)]
* net/tramp.el (tramp-methods): Add docstring for `tramp-login-env'
  and `tramp-copy-env'.

* net/tramp-sh.el (tramp-methods) <sudo>: Add `tramp-login-env'.
  (tramp-maybe-open-connection): Handle `tramp-login-env'.

10 years agoCode for previous change
Daniel Colascione [Fri, 21 Mar 2014 12:10:23 +0000 (05:10 -0700)]
Code for previous change

10 years agoFrame icon optimization
Daniel Colascione [Fri, 21 Mar 2014 12:09:57 +0000 (05:09 -0700)]
Frame icon optimization

10 years agoMove might_dump assignment earlier in initialization
Daniel Colascione [Fri, 21 Mar 2014 10:38:41 +0000 (03:38 -0700)]
Move might_dump assignment earlier in initialization

10 years agoAllow lisp allocation via mmap in dumped emacs
Daniel Colascione [Fri, 21 Mar 2014 10:25:10 +0000 (03:25 -0700)]
Allow lisp allocation via mmap in dumped emacs

10 years agoFix regression introduced by patch for Bug#10500.
YAMAMOTO Mitsuharu [Fri, 21 Mar 2014 10:14:10 +0000 (19:14 +0900)]
Fix regression introduced by patch for Bug#10500.
* xterm.c (x_draw_image_relief): Respect Vtool_bar_button_margin.
* w32term.c (x_draw_image_relief): Likewise.

10 years agoAllow lisp allocation via mmap in dumped emacs
Daniel Colascione [Fri, 21 Mar 2014 10:13:38 +0000 (03:13 -0700)]
Allow lisp allocation via mmap in dumped emacs

10 years agoBump trunk version to 24.4.50.
Eli Zaretskii [Fri, 21 Mar 2014 10:12:53 +0000 (12:12 +0200)]
Bump trunk version to 24.4.50.

 modified files:
   ChangeLog
   README
   configure.ac
   doc/emacs/emacsver.texi
   doc/man/emacs.1
   msdos/sed2v2.inp
   nt/config.nt
   nt/emacs.rc
   nt/emacsclient.rc
   nt/makefile.w32-in

10 years agoTruly maximize w32 frames with odd fonts and some texi fixes.
Martin Rudalics [Fri, 21 Mar 2014 09:23:22 +0000 (10:23 +0100)]
Truly maximize w32 frames with odd fonts and some texi fixes.

* w32fns.c (w32_wnd_proc): For WM_WINDOWPOSCHANGING don't
constrain frame size in SW_SHOWMAXIMIZED case so we can truly
maximize a frame for odd default fonts.
* frames.texi (Size and Position): In `frame-resize-pixelwise'
description drop remark about frame maximization.
* windows.texi (Display Action Functions): Add description for
`display-buffer-no-window' and explain use of `allow-no-window'
alist entries.

10 years agoExtend and improve w32-shell-execute on MS-Windows.
Eli Zaretskii [Fri, 21 Mar 2014 08:51:02 +0000 (10:51 +0200)]
Extend and improve w32-shell-execute on MS-Windows.

 src/w32fns.c (Fw32_shell_execute) [!CYGWIN]: Use ShellExecuteEx, to
 support more "verbs".

10 years agoDo not allow a dumped Emacs to be dumped
Daniel Colascione [Fri, 21 Mar 2014 07:27:26 +0000 (00:27 -0700)]
Do not allow a dumped Emacs to be dumped

10 years agoDon't set make-backup-files in lisp/Makefile loaddefs rules
Glenn Morris [Fri, 21 Mar 2014 07:22:41 +0000 (00:22 -0700)]
Don't set make-backup-files in lisp/Makefile loaddefs rules

* lisp/Makefile.in ($(MH_E_DIR)/mh-loaddefs.el)
($(TRAMP_DIR)/tramp-loaddefs.el, $(CAL_DIR)/cal-loaddefs.el)
($(CAL_DIR)/diary-loaddefs.el, $(CAL_DIR)/hol-loaddefs.el):
Don't set `make-backup-files'.

It doesn't really matter either way, so we might as well not bother.

10 years ago* lisp/electric.el (electric-indent-post-self-insert-function): Add doc.
Glenn Morris [Fri, 21 Mar 2014 07:19:21 +0000 (00:19 -0700)]
* lisp/electric.el (electric-indent-post-self-insert-function): Add doc.

10 years agoCosmetic tweaks for the output of `info-finder'
Glenn Morris [Fri, 21 Mar 2014 07:14:08 +0000 (00:14 -0700)]
Cosmetic tweaks for the output of `info-finder'

* lisp/info.el (info--prettify-description): New function,
to give info-finder descriptions consistent case, punctuation.
(Info-finder-find-node): Use it.  Sort packages.
Refer to "description" rather than "commentary".

10 years ago* lispref/commands.texi (Defining Commands): Copyedit re `interactive-only'.
Glenn Morris [Fri, 21 Mar 2014 07:06:55 +0000 (00:06 -0700)]
* lispref/commands.texi (Defining Commands): Copyedit re `interactive-only'.

10 years agoTiny doc/misc edits
Glenn Morris [Fri, 21 Mar 2014 07:00:21 +0000 (00:00 -0700)]
Tiny doc/misc edits

* doc/misc/ede.texi (ede-linux):
* doc/misc/vip.texi (New Bindings): Tiny copyedits.

10 years agoAdd some standard finder Keywords: to lisp/nxml/*.el.
Glenn Morris [Fri, 21 Mar 2014 06:56:55 +0000 (23:56 -0700)]
Add some standard finder Keywords: to lisp/nxml/*.el.

10 years ago* Makefile.in (all): Depend on `info'.
Glenn Morris [Fri, 21 Mar 2014 06:49:38 +0000 (23:49 -0700)]
* Makefile.in (all): Depend on `info'.

Fixes: debbugs:16626

10 years ago* admin/update_autogen: Auto-detect VCS in use.
Glenn Morris [Fri, 21 Mar 2014 06:39:13 +0000 (23:39 -0700)]
* admin/update_autogen: Auto-detect VCS in use.
(vcs): New variable.
(status, commit, main): Handle git.

10 years ago* etc/NEWS: Add top-level headings for next release
Glenn Morris [Fri, 21 Mar 2014 06:36:08 +0000 (23:36 -0700)]
* etc/NEWS: Add top-level headings for next release
Not sure if it will be "24.5", but does not matter at the moment.

10 years agoFix bug#16826
Dmitry Gutov [Fri, 21 Mar 2014 06:06:52 +0000 (08:06 +0200)]
Fix bug#16826

* lisp/emacs-lisp/package.el (package-compute-transaction):
Use `version-list-<=' to compare the requirement version against
the package version already to be installed.  Update the error
message.

10 years agoFix bug#17050
Dmitry Gutov [Fri, 21 Mar 2014 04:26:39 +0000 (06:26 +0200)]
Fix bug#17050

* lisp/progmodes/ruby-mode.el (ruby-smie-rules):
Add indentation rule for ` @ '.

10 years agolisp/*.el: Fix typos.
Juanma Barranquero [Fri, 21 Mar 2014 01:12:57 +0000 (02:12 +0100)]
lisp/*.el: Fix typos.

* lisp/align.el (align-regexp): Remove superfluous backslash.

* lisp/ffap.el (ffap-ftp-default-user, ffap-url-regexp)
  (ffap-pass-wildcards-to-dired, dired-at-point-require-prefix)
  (ffap-rfc-path, ffap-ftp-sans-slash-regexp, ffap-menu-regexp):
  Fix docstring typos.
  (ffap-next): Use C-u in docstring.
  (ffap-machine-p, ffap-list-env, ffap-alist, ffap-alist)
  (ffap-string-at-point-mode-alist, ffap-menu, ffap-menu-ask):
  Remove superfluous backslashes.
  (ffap-string-at-point): Reflow docstring.

* lisp/server.el (server-host): Reflow docstring.
  (server-unload-function): Fix docstring typo.
  (server-eval-at): Remove superfluous backslash.

* lisp/skeleton.el (skeleton-insert): Remove superfluous backslash.
  (skeleton-insert): Doc fix.
  (skeleton-insert): Reflow docstring.

* lisp/term/tty-colors.el (tty-color-alist, tty-modify-color-alist)
  (tty-color-approximate, tty-color-by-index, tty-color-values)
  (tty-color-desc): Remove superfluous backslashes.

10 years agoBackport doc.c fix from trunk.
Paul Eggert [Fri, 21 Mar 2014 00:10:29 +0000 (17:10 -0700)]
Backport doc.c fix from trunk.

* doc.c (store_function_docstring): Fix pointer signedness mismatch.

10 years agolisp/frameset.el: Make list-registers a bit more informative.
Juanma Barranquero [Fri, 21 Mar 2014 00:03:08 +0000 (01:03 +0100)]
lisp/frameset.el: Make list-registers a bit more informative.

(frameset--print-register): New function.
(frameset-to-register): Use it.

10 years agoBackport doc fix from trunk.
Paul Eggert [Thu, 20 Mar 2014 23:15:19 +0000 (16:15 -0700)]
Backport doc fix from trunk.

* internals.texi (C Integer Types): Prefer 'false' and 'true'
to '0' and '1' for booleans.

10 years ago* electric.el (global-map): Really bind C-j.
Stefan Monnier [Thu, 20 Mar 2014 22:00:20 +0000 (18:00 -0400)]
* electric.el (global-map): Really bind C-j.

Fixes: debbugs:16770

10 years agolisp/progmodes/hideif.el (hif-tokenize): Understand non-decimal floats.
Juanma Barranquero [Thu, 20 Mar 2014 18:22:17 +0000 (19:22 +0100)]
lisp/progmodes/hideif.el (hif-tokenize): Understand non-decimal floats.

10 years agolisp/emacs-lisp/cl-extra.el (cl--map-overlays): Remove obsolete code.
Juanma Barranquero [Thu, 20 Mar 2014 18:16:47 +0000 (19:16 +0100)]
lisp/emacs-lisp/cl-extra.el (cl--map-overlays): Remove obsolete code.

10 years agolisp/skeleton.el (skeleton-autowrap): Mark as obsolete.
Juanma Barranquero [Thu, 20 Mar 2014 18:13:16 +0000 (19:13 +0100)]
lisp/skeleton.el (skeleton-autowrap): Mark as obsolete.

10 years ago* internals.texi (C Integer Types): Prefer 'false' and 'true'
Paul Eggert [Thu, 20 Mar 2014 17:58:01 +0000 (10:58 -0700)]
* internals.texi (C Integer Types): Prefer 'false' and 'true'

to '0' and '1' for booleans.

10 years ago* doc.c (store_function_docstring): Fix pointer signedness mismatch.
Paul Eggert [Thu, 20 Mar 2014 17:42:05 +0000 (10:42 -0700)]
* doc.c (store_function_docstring): Fix pointer signedness mismatch.

10 years ago* lisp/electric.el (electric-newline-and-maybe-indent): New command.
Stefan Monnier [Thu, 20 Mar 2014 17:14:45 +0000 (13:14 -0400)]
* lisp/electric.el (electric-newline-and-maybe-indent): New command.
Bind it globally to C-j.
(electric-indent-mode): Don't mess with the global map any more.
Don't drop the post-self-insert-hook is some buffer is still using it.
* lisp/bindings.el (global-map): Remove C-j binding.

Fixes: debbugs:16770

10 years ago* lisp/emacs-lisp/nadvice.el (advice--make-docstring): Try harder to find
Stefan Monnier [Thu, 20 Mar 2014 16:00:17 +0000 (12:00 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--make-docstring): Try harder to find
the docstring of functions advised before dumping.
* src/doc.c (store_function_docstring): Warn when we don't know where to
put a docstring.
(Fsubstitute_command_keys): Don't advertise the fact that
text-properties are dropped, since we think it's a bug that we'll fix
in 24.5.

Fixes: debbugs:16993

10 years ago* src/frame.h (SET_FRAME_VISIBLE): Keep frame_garbaged up to date.
Stefan Monnier [Thu, 20 Mar 2014 14:09:37 +0000 (10:09 -0400)]
* src/frame.h (SET_FRAME_VISIBLE): Keep frame_garbaged up to date.
* src/xterm.c (handle_one_xevent) <MapNotify>: Don't garbage the frame.
* src/frame.c (frame_garbaged): Make "docstring" more precise.

10 years ago* src/charset.c (init_charset): When we cannot find the charsets directory,
Glenn Morris [Thu, 20 Mar 2014 01:21:52 +0000 (21:21 -0400)]
* src/charset.c (init_charset): When we cannot find the charsets directory,
mention if EMACSDATA is set.

10 years agoMark tiny change
Glenn Morris [Thu, 20 Mar 2014 01:20:15 +0000 (21:20 -0400)]
Mark tiny change

10 years ago* numbers.texi: Improve and clarify a bit, and fix some minor bugs.
Paul Eggert [Wed, 19 Mar 2014 21:21:01 +0000 (14:21 -0700)]
* numbers.texi: Improve and clarify a bit, and fix some minor bugs.

Remove now-obsolete hypothetical note about negative division,
as the C standard has changed.

10 years ago* fns.c (Frandom): Fix rare bug where the result isn't random.
Paul Eggert [Wed, 19 Mar 2014 21:14:32 +0000 (14:14 -0700)]
* fns.c (Frandom): Fix rare bug where the result isn't random.

10 years agoFix porting inconsistency about rounding to even.
Paul Eggert [Wed, 19 Mar 2014 21:09:08 +0000 (14:09 -0700)]
Fix porting inconsistency about rounding to even.

* doc/lispref/numbers.texi (Numeric Conversions, Rounding Operations):
Document that 'round' and 'fround' round to even.
* src/floatfns.c (emacs_rint) [!HAVE_RINT]: Round to even.
This way, the unusual !HAVE_RINT case acts like the usual
HAVE_RINT case, and we can fix the documentation accordingly.

10 years ago* lisp/ps-print.el (ps-generate-postscript-with-faces):
Stefan-W. Hahn [Wed, 19 Mar 2014 19:12:50 +0000 (15:12 -0400)]
* lisp/ps-print.el (ps-generate-postscript-with-faces):
Explicitly deactivate the mark.
* lisp/simple.el (deactivate-mark): Update region highlight.

Fixes: debbugs:16866

10 years agoFix minor memory-related problems on MS-Windows revealed by Dr. Memory.
Eli Zaretskii [Wed, 19 Mar 2014 17:43:18 +0000 (19:43 +0200)]
Fix minor memory-related problems on MS-Windows revealed by Dr. Memory.

 src/w32fns.c (reset_modifiers): Zero out keystate[] before using it.
 (w32_wnd_proc): Initialize the dwHoverTime member of
 TRACKMOUSEEVENT structure.

10 years agolisp/emacs-lisp/package.el (describe-package-1): Decode commentary (bug#16733).
Juanma Barranquero [Wed, 19 Mar 2014 16:14:26 +0000 (17:14 +0100)]
lisp/emacs-lisp/package.el (describe-package-1): Decode commentary (bug#16733).

10 years agolisp/iimage.el: Remove obsolete URL from Commentary (bug#17038).
Juanma Barranquero [Wed, 19 Mar 2014 02:24:51 +0000 (03:24 +0100)]
lisp/iimage.el: Remove obsolete URL from Commentary (bug#17038).

10 years agoRecommend not modifying :set's value arg in defcustom (bug#16755).
Juanma Barranquero [Tue, 18 Mar 2014 23:31:17 +0000 (00:31 +0100)]
Recommend not modifying :set's value arg in defcustom (bug#16755).

* doc/lispref/customize.texi (Variable Definitions):
* lisp/custom.el (defcustom): Recommend avoiding
  destructive modification of the value argument of :set.

10 years agoAdd NEWS markup for CEDET.
David Engster [Tue, 18 Mar 2014 21:17:05 +0000 (22:17 +0100)]
Add NEWS markup for CEDET.

10 years ago* doc/lispref/modes.texi (Auto-Indentation): Mention electric-indent variables.
Stefan Monnier [Tue, 18 Mar 2014 21:14:36 +0000 (17:14 -0400)]
* doc/lispref/modes.texi (Auto-Indentation): Mention electric-indent variables.
* doc/misc/cc-mode.texi (Indentation Commands): Remove C-j, since it's not
defined by CC-mode but globally.
(FAQ): Tweak text about RET and auto-indentation.
* doc/misc/vip.texi (Other Vi Commands): Adjust doc of C-j.

10 years agoDocument new EDE features.
David Engster [Tue, 18 Mar 2014 21:12:42 +0000 (22:12 +0100)]
Document new EDE features.

* ede.texi (ede-cpp-root): Document the :compile-command slot.
(ede-linux): Document new variables
`project-linux-build-directory-default' and
`project-linux-architecture-default'.

10 years ago* lisp/simple.el (newline-and-indent): Do autofill.
Stefan Monnier [Tue, 18 Mar 2014 20:49:24 +0000 (16:49 -0400)]
* lisp/simple.el (newline-and-indent): Do autofill.

Fixes: debbugs:17031

10 years agoDelete hunk mistakenly included in previous change.
Richard M. Stallman [Tue, 18 Mar 2014 13:22:01 +0000 (09:22 -0400)]
Delete hunk mistakenly included in previous change.

10 years agoEnsure dired-display-file displays it in other window.
Richard M. Stallman [Tue, 18 Mar 2014 12:07:01 +0000 (08:07 -0400)]
Ensure dired-display-file displays it in other window.

* dired.el (dired-display-file): Force use of other window.

10 years agodoc/lispref/functions.texi (Advising Named Functions): Fix reference.
Juanma Barranquero [Tue, 18 Mar 2014 11:29:33 +0000 (12:29 +0100)]
doc/lispref/functions.texi (Advising Named Functions): Fix reference.

10 years agoede.texi: Remove documentation for features only in CEDET upstream.
David Engster [Tue, 18 Mar 2014 07:13:51 +0000 (08:13 +0100)]
ede.texi: Remove documentation for features only in CEDET upstream.

* ede.texi (Project Local Variables): Remove reference to
`ede-java-root' and the example using it.
(Android projects, ede-java-root): Remove nodes since they are
only in CEDET upstream (Bug#17030).  All nodes updated.

10 years agoFurther tweaks for comment-start-skip behavior
Dmitry Gutov [Tue, 18 Mar 2014 06:06:33 +0000 (08:06 +0200)]
Further tweaks for comment-start-skip behavior

* lisp/newcomment.el (comment-normalize-vars): Only add escaping check
to `comment-start-skip' if not `comment-use-syntax'.
(comment-beginning): Use `narrow-to-region' instead of moving back
one character.
(http://lists.gnu.org/archive/html/emacs-devel/2014-03/msg00488.html)
(comment-start-skip): Update the docstring.

Fixes: debbugs:16971

10 years agoImprove documentation for integer and floating-point basics.
Paul Eggert [Tue, 18 Mar 2014 04:03:59 +0000 (21:03 -0700)]
Improve documentation for integer and floating-point basics.

* numbers.texi (Numbers, Integer Basics, Float Basics):
Document the basics a bit more precisely.  Say more clearly
that Emacs floating-point numbers are IEEE doubles on all
current platforms.  Give more details about frexp.
Say more clearly that '1.' is an integer.
(Predicates on Numbers): Fix wholenump typo.
* objects.texi (Integer Type): Adjust to match numbers.texi.

10 years agodoc/lispref/ChangeLog: Trivial fixes.
Juanma Barranquero [Tue, 18 Mar 2014 03:22:59 +0000 (04:22 +0100)]
doc/lispref/ChangeLog: Trivial fixes.

10 years ago* doc/lispref/functions.texi (Advising Functions): Try and improve the text.
Stefan Monnier [Tue, 18 Mar 2014 01:51:12 +0000 (21:51 -0400)]
* doc/lispref/functions.texi (Advising Functions): Try and improve the text.
Add example use of advice-add.
(Core Advising Primitives): Rename.  Explain handling of interactive
specs, including advice-eval-interactive-spec.
(Advising Named Functions): Try and better explain the difference with
add-function.
(Porting old advices): New node.

Fixes: debbugs:16959

10 years agoStyle fixes for floating-point doc.
Paul Eggert [Tue, 18 Mar 2014 01:19:03 +0000 (18:19 -0700)]
Style fixes for floating-point doc.

* commands.texi, customize.texi, display.texi, elisp.texi, files.texi:
* frames.texi, hash.texi, internals.texi, keymaps.texi, lists.texi:
* minibuf.texi, nonascii.texi, numbers.texi, objects.texi, os.texi:
* processes.texi, streams.texi, strings.texi, text.texi:
* variables.texi, windows.texi:
Hyphenate "floating-point" iff it precedes a noun.
Reword to avoid nouns and hyphenation when that's easy.
Prefer "integer" to "integer number" and "is floating point"
to "is a floating point number".
Prefer "@minus{}" to "-" when it's a minus.

10 years agolisp/ChangeLog: Move up misplaced entry.
Juanma Barranquero [Tue, 18 Mar 2014 01:13:00 +0000 (02:13 +0100)]
lisp/ChangeLog: Move up misplaced entry.

lisp/org/ChangeLog: Fix typo.

10 years agoRemove old debug print
Daniel Colascione [Tue, 18 Mar 2014 00:42:37 +0000 (17:42 -0700)]
Remove old debug print

10 years agognutls.c (Fgnutls_boot): Fix case of :verify-error = t.
Ted Zlatanov [Mon, 17 Mar 2014 21:29:56 +0000 (17:29 -0400)]
gnutls.c (Fgnutls_boot): Fix case of :verify-error = t.

10 years ago* lisp/emacs-lisp/nadvice.el (advice--interactive-form): New function.
Stefan Monnier [Mon, 17 Mar 2014 18:30:53 +0000 (14:30 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--interactive-form): New function.
(advice--make-interactive-form): Use it to avoid (auto)loading function.
(advice--make-1, advice-add, advice-remove):
Remove braindead :advice-pending hack.

10 years ago* lisp/calendar/calendar.el (calendar-generate-month): Apply weekend face
Glenn Morris [Mon, 17 Mar 2014 16:04:32 +0000 (09:04 -0700)]
* lisp/calendar/calendar.el (calendar-generate-month): Apply weekend face
to the right days; fixes 2013-08-06 change.

Fixes: debbugs:17028

10 years ago* net/tramp.el (tramp-action-out-of-band): Read pending output.
Michael Albinus [Mon, 17 Mar 2014 09:28:47 +0000 (10:28 +0100)]
* net/tramp.el (tramp-action-out-of-band): Read pending output.
(tramp-call-process): Trace also DESTINATION.

* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Quote file names when they are local.  Remove superfluous trace.

10 years agoRestore compatibility with legacy comment-start-skip values
Dmitry Gutov [Mon, 17 Mar 2014 06:48:09 +0000 (08:48 +0200)]
Restore compatibility with legacy comment-start-skip values

* lisp/newcomment.el (comment-beginning): If `comment-start-skip'
doesn't match, move back one char and try again.

Fixes: debbugs:16971

10 years agoFix debbugs#16971
Dmitry Gutov [Mon, 17 Mar 2014 06:22:58 +0000 (08:22 +0200)]
Fix debbugs#16971

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Set
`comment-use-syntax' to t to avoid the unnecessary runtime check.
Set `comment-start-skip' to a simpler value that doesn't try to
check if the semicolon is escaped (this is handled by
`syntax-ppss' now).

* lisp/progmodes/scheme.el (scheme-mode-variables): Same.

10 years agoMerge from mh-e; up to 2012-01-03T19:41:14Z!larsi@gnus.org.
Bill Wohler [Mon, 17 Mar 2014 00:50:05 +0000 (17:50 -0700)]
Merge from mh-e; up to 2012-01-03T19:41:14Z!larsi@gnus.org.

10 years agosrc/ChangeLog: Fix a typo in last commit.
Eli Zaretskii [Sun, 16 Mar 2014 16:31:50 +0000 (18:31 +0200)]
src/ChangeLog: Fix a typo in last commit.

10 years agoFix bug #16830 with slow search for newlines in forward-line.
Eli Zaretskii [Sun, 16 Mar 2014 16:28:34 +0000 (18:28 +0200)]
Fix bug #16830 with slow search for newlines in forward-line.

 src/search.c (find_newline): Speed up the function when using the
 newline cache, by halving the number of calls to
 region_cache_forward and region_cache_backward.

10 years agoFix behavior of with-temp-buffer-window (Bug#16816, Bug#17007).
Martin Rudalics [Sun, 16 Mar 2014 09:26:58 +0000 (10:26 +0100)]
Fix behavior of with-temp-buffer-window (Bug#16816, Bug#17007).

* window.el (with-temp-buffer-window): Don't make BUFFER-OR-NAME
current (Bug#16816, Bug#17007).
(with-current-buffer-window): New macro doing the same as
`with-temp-buffer-window' but with BUFFER-OR-NAME current.
* help.el (help-print-return-message): Warn in doc-string to not
use this in `with-help-window'.
(describe-bindings-internal): Call `describe-buffer-bindings'
from within help buffer.  See Juanma's scenario in (Bug#16816).
(with-help-window): Update doc-string.
* dired.el (dired-mark-pop-up):
* files.el (save-buffers-kill-emacs):
* register.el (register-preview): Use `with-current-buffer-window'
instead of `with-temp-buffer-window'.
* display.texi (Temporary Displays): Rewrite descriptions of
`with-output-to-temp-buffer' and `with-temp-buffer-window'.
* help.texi (Help Functions): Rewrite description of
`with-help-window'.

10 years agolisp/textmodes/css-mode.el: Fix typo in comment.
Juanma Barranquero [Sun, 16 Mar 2014 03:48:56 +0000 (04:48 +0100)]
lisp/textmodes/css-mode.el: Fix typo in comment.

10 years agolisp/textmodes/rst.el: Implement missing but documented functionality.
Juanma Barranquero [Sun, 16 Mar 2014 03:47:31 +0000 (04:47 +0100)]
lisp/textmodes/rst.el: Implement missing but documented functionality.

(rst-arabic-to-roman, rst-roman-to-arabic):
Implement inserting into current buffer, documented in their docstrings.
(rst-define-key, rst-compare-adornments, rst-insert-list-new-item)
(rst-section-tree-point, rst-forward-section, rst-indent)
(rst-compute-tabs, rst-font-lock-find-unindented-line-end)
(rst-font-lock-find-unindented-line-limit, rst-adornment-level)
(rst-font-lock-handle-adornment-pre-match-form)
(rst-repeat-last-character): Reflow docstrings.
(rst-preferred-adornments, rst-update-section, rst-find-title-line)
(rst-adjust-adornment-work, rst-initial-items, rst-insert-list)
(rst-toc-insert-style, rst-toc-insert-node, rst-goto-section)
(rst-compile, rst-imenu-convert-cell, rst-imenu-create-index):
Fix docstring typos.
(rst-all-sections, rst-section-hierarchy, rst-adjust): Doc fixes.
(rst-uncomment-region, rst-font-lock-find-unindented-line-match)
(rst-font-lock-handle-adornment-matcher): Mark unused arguments.

10 years agoUpdate the missed spot
Dmitry Gutov [Sun, 16 Mar 2014 02:42:15 +0000 (04:42 +0200)]
Update the missed spot

* doc/emacs/programs.texi (Matching): Update the missed spot.

Fixes: debbugs:17008

10 years ago* programs.texi (Matching): Use slightly more detailed description.
Dmitry Gutov [Sat, 15 Mar 2014 23:53:22 +0000 (01:53 +0200)]
* programs.texi (Matching): Use slightly more detailed description.

10 years agolisp/term/ns-win.el (x-command-line-resources): Rename from ns-... version.
Juanma Barranquero [Sat, 15 Mar 2014 18:12:54 +0000 (19:12 +0100)]
lisp/term/ns-win.el (x-command-line-resources): Rename from ns-... version.

(ns-initialize-window-system): Use it.  It is set in term/common-win.el
from the -xrm command line argument, but in the Nextstep port its value
is irrelevant because nsfns.m:Fx_open_connection ignores it for now.

10 years agolisp/progmodes/python.el: Fix docstring typos.
Juanma Barranquero [Sat, 15 Mar 2014 17:37:58 +0000 (18:37 +0100)]
lisp/progmodes/python.el: Fix docstring typos.

(defconst, python-syntax-count-quotes)
(python-indent-region, python-indent-shift-right)
(python-indent-dedent-line-backspace, python-nav-backward-sexp)
(python-nav-backward-sexp-safe, python-nav-backward-up-list)
(python-shell-prompt-block-regexp, python-shell-prompt-output-regexp)
(python-shell-prompt-pdb-regexp, python-shell-enable-font-lock)
(inferior-python-mode, python-shell-make-comint, run-python-internal)
(python-shell-buffer-substring, python-shell-send-buffer)
(python-pdbtrack-activate, python-pdbtrack-stacktrace-info-regexp)
(python-completion-complete-at-point, python-fill-docstring-style)
(python-eldoc-function, python-imenu-format-item-label)
(python-imenu-format-parent-item-label)
(python-imenu-format-parent-item-jump-label)
(python-imenu--build-tree, python-imenu-create-index)
(python-imenu-create-flat-index): Fix docstring typos.
(python-indent-context, python-shell-prompt-regexp, run-python):
Remove superfluous backslashes.
(python-indent-line, python-nav-beginning-of-defun)
(python-shell-get-buffer, python-shell-get-process)
(python-info-current-defun, python-info-current-line-comment-p)
(python-info-current-line-empty-p, python-util-popn): Doc fixes.
(python-indent-post-self-insert-function, python-shell-send-file)
(python-shell-completion-get-completions)
(python-shell-completion-complete-or-indent)
(python-eldoc--get-doc-at-point): Reflow docstrings.

10 years agosrc/buffer.c (Fset_buffer): Document return value (bug#17015).
Juanma Barranquero [Sat, 15 Mar 2014 11:16:12 +0000 (12:16 +0100)]
src/buffer.c (Fset_buffer): Document return value (bug#17015).

10 years agoUpdate `blink-matching-paren' in the manual
Dmitry Gutov [Sat, 15 Mar 2014 03:07:06 +0000 (05:07 +0200)]
Update `blink-matching-paren' in the manual

* doc/emacs/programs.texi (Matching): Update WRT to the new
`blink-matchin-paren' behavior.

* doc/lispref/display.texi (Blinking): Update WRT to the new
`blink-matchin-paren' behavior.