1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00
Commit Graph

107920 Commits

Author SHA1 Message Date
Juanma Barranquero
9ee2ee9f1b nt/config.nt: Sync with autogen/config.in. 2012-09-30 14:27:23 +02:00
Martin Rudalics
1bc834133d Fix last fix of window--display-buffer. 2012-09-30 12:44:43 +02:00
Glenn Morris
0e8bc99034 Auto-commit of generated files. 2012-09-30 06:17:45 -04:00
Chong Yidong
48de8b1221 Update docs for a bunch of 24.3 changes.
* doc/emacs/killing.texi (Rectangles): Document copy-rectangle-as-kill.

* doc/emacs/search.texi (Special Isearch): Document the lax space search
feature and M-s SPC.
(Regexp Search): Move main search-whitespace-regexp description to
Special Isearch.
(Replace): Document replace-lax-whitespace.

* doc/emacs/basic.texi (Position Info): Document C-u M-=.
(Moving Point): Document move-to-column.

* doc/emacs/display.texi (Useless Whitespace): Add delete-trailing-lines.

* doc/emacs/misc.texi (emacsclient Options): Document the effect of
initial-buffer-choice on client frames.  Document server-auth-dir.
Do not document server-host, which is bad security practice.

* doc/emacs/building.texi (Lisp Libraries): Docstring lookups can trigger
autoloading.  Document help-enable-auto-load.

* doc/emacs/mini.texi (Yes or No Prompts): New node.

* doc/emacs/ack.texi (Acknowledgments): Remove obsolete packages.

* doc/lispref/commands.texi (Click Events): Define "mouse position list".
Remove mention of unimplemented horizontal scroll bars.
(Drag Events, Motion Events): Refer to "mouse position list".
(Accessing Mouse): Document posnp.

* doc/lispref/errors.texi (Standard Errors): Tweak arith-error description.
Tweak markup.  Remove domain-error and friends, which seem to be
unused after the floating-point code revamp.

* doc/lispref/functions.texi (Obsolete Functions): Obsolescence also affects
documentation commands.  Various clarifications.
(Declare Form): New node.

* doc/lispref/loading.texi (Autoload):
* doc/lispref/help.texi (Documentation Basics): The special sequences can
trigger autoloading.

* doc/lispref/macros.texi (Defining Macros): Move description of `declare' to
Declare Form node.

* doc/lispref/numbers.texi (Integer Basics): Copyedits.
(Float Basics): Consider IEEE floating point always available.
(Random Numbers): Document actual limits.
(Arithmetic Operations): Clarify division by zero.  Don't mention
the machine-independence of negative division since it does not
happen in practice.

* doc/lispref/os.texi (Idle Timers): Minor clarifications.
(User Identification): Add system-users and system-groups.

* doc/lispref/strings.texi (String Basics): Copyedits.

* lisp/minibuffer.el (minibuffer-local-filename-syntax): Doc fix.

* lisp/server.el (server-host): Document the security implications.
(server-auth-key): Doc fix.

* lisp/startup.el (initial-buffer-choice): Doc fix.

* src/fns.c (Frandom): Doc fix.
2012-09-30 17:18:38 +08:00
Martin Rudalics
5938d5196d Handle window-height and window-width alist entries in `display-buffer'.
In buffer display functions handle window-height/window-width
alist entries.  Suggested by Juri Linkov as fix for Bug#1806.
* window.el (window--display-buffer): New argument ALIST.  Obey
window-height and window-width alist entries.
(window--try-to-split-window): New argument ALIST.  Bind
window-combination-limit to t when the window's size shall be
changed and window-combination-limit equals `window-size'.
(display-buffer-in-atom-window)
(display-buffer-in-major-side-window)
(display-buffer-in-side-window, display-buffer-same-window)
(display-buffer-reuse-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-window, display-buffer-below-selected)
(display-buffer-at-bottom, display-buffer-in-previous-window)
(display-buffer-use-some-window): Adjust all callers of
window--display-buffer and window--try-to-split-window.
(fit-frame-to-buffer): New option.
(fit-window-to-buffer): Can resize frames if fit-frame-to-buffer
is non-nil.
(display-buffer-in-major-side-window): Evaluate window-height /
window-width alist entries.

* help.el (temp-buffer-resize-frames)
(temp-buffer-resize-regexps): Remove options.
(temp-buffer-resize-mode): Adjust doc-string.
(resize-temp-buffer-window): Don't consult
temp-buffer-resize-regexps.  Use fit-frame-to-buffer instead of
temp-buffer-resize-frames.

* dired.el (dired-mark-pop-up): Call
display-buffer-below-selected with a fit-window-to-buffer alist
entry.

* window.c (Vwindow_combination_limit): New default value.
(Qwindow_size): New symbol replacing Qtemp_buffer_resize.
2012-09-30 11:10:59 +02:00
Chong Yidong
a97dc38060 Minor code tweak for delete-trailing-whitespace.
* lisp/simple.el (delete-trailing-whitespace): Avoid an unnecessary
restriction change.
2012-09-30 16:41:37 +08:00
Chong Yidong
d39d3c8e5f * lisp/bindings.el (goto-map): Bind M-g TAB to move-to-column. 2012-09-30 16:35:11 +08:00
Chong Yidong
c4c0c2dff6 * help-fns.el (help-fns--obsolete): Fix last change. 2012-09-30 16:24:56 +08:00
Paul Eggert
cb5b02667a * syssignal.h (PROFILER_CPU_SUPPORT): Don't define if PROFILING.
Suggested by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00811.html>.
2012-09-30 01:15:11 -07:00
Eli Zaretskii
84f72efd0c Fix compilation failure introduced in 2012-09-30T06:19:33Z!eggert@cs.ucla.edu.
src/profiler.c (Fprofiler_cpu_stop): Use timer_settime only if
 HAVE_TIMER_SETTIME is defined.
2012-09-30 09:26:32 +02:00
Paul Eggert
d89460ed93 Profiler improvements: more-accurate timers, overflow checks.
* profiler.c: Don't include stdio.h, limits.h, sys/time.h,
signal.h, setjmp.h.  Include systime.h instead.
(saturated_add): New function.
(record_backtrace, current_sample_interval): Use EMACS_INT, not size_t.
(record_backtrace, handle_profiler_signal): Saturate on fixnum overflow.
(profiler_timer, profiler_timer_ok) [HAVE_TIMER_SETTIME]:
New static vars.
(enum profiler_cpu_running): New enumn.
(profiler_cpu_running): Now of that enum type, not bool.
All uses changed to store the new value.
(handle_profiler_signal): Rename from sigprof_handler_1,
for consistency with other handlers.  Do not check whether
cpu_log is a hash-table if garbage collecting, since it
doesn't matter in that case.
(deliver_profiler_signal): Rename from sigprof_handler,
for consistency with other handlers.
(setup_cpu_timer): New function, with much of what used to be in
Fprofiler_cpu_start.  Check for out-of-range argument.
Prefer timer_settime if available, and prefer
thread cputime clocks, then process cputime clocks, then
monotonic clocks, to the old realtime clock.  Use make_timeval
to round more-correctly when falling back to setitimer.
(Fprofiler_cpu_start): Use it.
(Fprofiler_cpu_stop): Prefer timer_settime if available.
Don't assume that passing NULL as the 2nd argument of setitimer
is the same as passing a pointer to all-zero storage.
Ignore SIGPROF afterwards.
(malloc_probe): Saturate at MOST_POSITIVE_FIXNUM.
* sysdep.c (emacs_sigaction_init): Also mask out SIGPROF in
non-fatal signal handlers.  Ignore SIGPROF on startup.
* syssignal.h (PROFILER_CPU_SUPPORT): Define this macro here, not
in profiler.c, since sysdep.c now uses it.
2012-09-29 23:19:33 -07:00
Paul Eggert
65788e2e93 Merge from gnulib. 2012-09-29 21:19:32 -07:00
Stefan Monnier
34cf6f3952 * lisp/winner.el (winner-mode-map): Obey winner-dont-bind-my-keys here.
(minor-mode-map-alist): Remove redundant code.
2012-09-30 00:00:46 -04:00
Stefan Monnier
e01c13fea4 * lisp/vc/pcvs.el (cvs-cleanup-collection): Keep entries that are currently
visited in a buffer.
(cvs-insert-visited-file): New function.
(find-file-hook): Use it.
* lisp/vc/pcvs-info.el (cvs-fileinfo-pp): Don't use non-existent faces.
2012-09-29 23:44:35 -04:00
Stefan Monnier
02661b3a81 * lisp/vc/log-edit.el (log-edit-font-lock-keywords): Ignore case to
chose face.
(log-edit-empty-buffer-p): Don't require a space after a header.
2012-09-29 23:30:25 -04:00
Stefan Monnier
43711d4b01 * lisp/vc/ediff-util.el (ediff-diff-at-point): Don't assume point-min==1. 2012-09-29 23:28:38 -04:00
Stefan Monnier
23855148a2 * lisp/url/url-handlers.el (url-file-handler): Don't assume any url-FOO
function is a good handler for FOO.
(url-copy-file, url-file-local-copy, url-insert-file-contents)
(url-file-name-completion, url-file-name-all-completions)
(url-handlers-create-wrapper): Explicitly register as handler.
2012-09-29 23:26:52 -04:00
Stefan Monnier
38a30d6462 * lisp/tutorial.el (help-with-tutorial): Use minibuffer-with-setup-hook. 2012-09-29 23:21:50 -04:00
Stefan Monnier
4ffb41a99e * lisp/textmodes/text-mode.el (paragraph-indent-minor-mode): Make it
a proper minor-mode.
2012-09-29 23:20:00 -04:00
Stefan Monnier
98a5e33b90 * lisp/textmodes/tex-mode.el (tex-mode-map): Don't bind paren keys. 2012-09-29 23:10:13 -04:00
Glenn Morris
630d468c93 Comment fix 2012-09-29 19:27:36 -07:00
Paul Eggert
9d4dcdc961 * sysdep.c (handle_fatal_signal): Bump backtrace size to 40.
Suggested by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00796.html>.
2012-09-29 18:29:53 -07:00
Glenn Morris
5cc2e639c3 Use define-minor-mode for winner-mode
* lisp/winner.el (winner-mode): Remove variable (let define-minor-mode
handle it).
(winner-dont-bind-my-keys, winner-boring-buffers, winner-mode-hook):
Doc fixes.
(winner-mode-leave-hook): Rename to winner-mode-off-hook.
(winner-mode): Use define-minor-mode.

* etc/NEWS: Mention winner-mode-hook.
2012-09-29 16:52:03 -07:00
Glenn Morris
7bd302ebcb Remove duplication of vc-sccs-registered definition
* lisp/vc/vc-sccs.el (vc-sccs-registered): Use the progn trick to get
the full definition in loaddefs, rather than duplicating it.
Cf vc-rcs-registered.
2012-09-29 16:21:57 -07:00
Glenn Morris
a123c57a36 Comment for vc-rcs 2012-09-29 16:19:46 -07:00
Glenn Morris
91740b408c Comment for vc-sccs 2012-09-29 16:18:33 -07:00
Glenn Morris
93ab178b04 Comments for vc-bzr, clarifying vc-bzr-registered 2012-09-29 16:13:29 -07:00
Bastien Guerry
78819a9ff8 Partially revert previous commit.
The help: target for the Makefile was just meant as a local test.
2012-09-30 00:01:57 +02:00
Bastien Guerry
04558d31ab url-util.el: Fix two docstrings. 2012-09-29 22:45:44 +02:00
Glenn Morris
d2a54f135f Revert bogus vc autoloads change 2012-09-29 12:19:17 -07:00
Glenn Morris
3ef6d50528 Remove purecopy's that are no longer needed following previous change 2012-09-29 11:30:52 -07:00
Glenn Morris
2923922f5e No need to autoload vc-rcs, vc-sccs defcustoms.
* lisp/vc/vc-rcs.el (vc-rcs-master-templates):
* lisp/vc/vc-sccs.el (vc-sccs-master-templates): No need to autoload.
2012-09-29 11:28:01 -07:00
Glenn Morris
ced0838266 * lisp/help-macro.el (three-step-help): Do not autoload defcustom. 2012-09-29 11:21:45 -07:00
Glenn Morris
0e3e415624 Do not autoload defcustoms in inf-lisp.el
* lisp/progmodes/inf-lisp.el (inferior-lisp-filter-regexp)
(inferior-lisp-program, inferior-lisp-load-command)
(inferior-lisp-prompt, inferior-lisp-mode-hook):
Do not autoload defcustoms.
2012-09-29 11:20:12 -07:00
Glenn Morris
de82e29b3f Do not autoload defcustoms in hippie-exp.el
* lisp/hippie-exp.el (hippie-expand-try-functions-list)
(hippie-expand-verbose, hippie-expand-dabbrev-skip-space)
(hippie-expand-dabbrev-as-symbol, hippie-expand-no-restriction)
(hippie-expand-max-buffers, hippie-expand-ignore-buffers)
(hippie-expand-only-buffers): Do not autoload defcustoms.
* lisp/progmodes/vhdl-mode.el (vhdl-line-expand):
Explicitly load hippie-exp, so it does not get autoloaded
while hippie-expand-try-functions-list is let-bound.
2012-09-29 11:15:57 -07:00
Juanma Barranquero
8e5691a0ec src/makefile.w32-in ($(BLD)/profiler.$(O)): Update dependencies. 2012-09-29 19:07:01 +02:00
Juanma Barranquero
cd155987b5 nt/config.nt: Sync with autogen/config.in
(HAVE_TIMER_SETTIME): New macro.
2012-09-29 19:06:28 +02:00
Stefan Monnier
e7c1b6ef85 * src/lisp.h (struct backtrace): Remove indirection for `function' field.
* src/xdisp.c (redisplay_internal):
* src/profiler.c (record_backtrace, sigprof_handler_1):
* src/alloc.c (Fgarbage_collect):
* src/eval.c (interactive_p, Fsignal, eval_sub, Ffuncall, Fbacktrace)
(Fbacktrace_frame): Adjust accordingly.
2012-09-28 22:02:34 -04:00
Glenn Morris
277f0cfa8b * lisp/emacs-lisp/cl.el (flet): Fix case of obsolescence message. 2012-09-28 19:51:20 -04:00
Glenn Morris
e60b51abaa * bytecomp.el (byte-compile-cl-file-p): Only "cl.el" counts as cl these days.
Remove no longer appropriate file-local suppression of CL warnings in
lisp/emacs-lisp/cl-*.el files.
2012-09-28 19:30:52 -04:00
Juri Linkov
53baf48a6e Display archive errors in the echo area instead of inserting to the file buffer.
* lisp/arc-mode.el (archive-extract-by-stdout): Change arg STDERR-FILE
to STDERR-TEST that can be a regexp matching a successful output.
Create a temporary file and redirect stderr to it.  Search for
STDERR-TEST in the stderr output and display it in the echo area
if no match is found.
(archive-extract-by-file): New function like
`archive-extract-by-stdout' but extracting archives to files
and looking for successful matches in stdout.  Function body is
mostly copied from `archive-rar-extract'.
(archive-rar-extract): Use `archive-extract-by-file'.
(archive-7z-extract): Use `archive-extract-by-stdout'.

Fixes: debbugs:10347
2012-09-28 19:38:07 +03:00
Glenn Morris
e61d39cddf Merge from emacs-24; up to 2012-05-07T21:26:08Z!rgm@gnu.org 2012-09-28 09:02:31 -07:00
Stefan Monnier
3df749b0f8 * lisp/type-break.el: Use lexical-binding.
(type-break-mode): Use define-minor-mode.
2012-09-28 11:17:08 -04:00
Eli Zaretskii
404043ea88 Rename "Automatic Redisplay" entry in Lisp backtrace.
src/xdisp.c (syms_of_xdisp) <Qredisplay_internal>: Rename from
 Qautomatic_redisplay and change the symbol name.  All users changed.
2012-09-28 16:10:41 +02:00
Leo Liu
147c042502 Use minibuffer-message in pcomplete-show-completions 2012-09-28 21:42:19 +08:00
Leo Liu
9c1228c323 ido.el (ido-set-matches-1): Fix 2012-09-11 change 2012-09-28 21:38:26 +08:00
Stefan Monnier
7f457c067d * lisp/emacs-lisp/pcase.el (pcase--mark-used): New.
(pcase--u1): Use it.
* lisp/custom.el (load-theme): Set buffer-file-name so the load is recorded
in load-history with the right file name.

Fixes: debbugs:12512
2012-09-28 08:18:38 -04:00
Tassilo Horn
c00ebc9835 * doc-view.el (doc-view-current-cache-doc-pdf): New function.
(doc-view-doc->txt, doc-view-convert-current-doc): Use it.
(doc-view-get-bounding-box): Make bounding box slicing work for
ODF and DVI documents.
2012-09-28 12:05:46 +02:00
Tomohiro Matsuyama
704d3f455f * profiler.c (sigprof_handler): Fix race condition. 2012-09-28 18:34:20 +09:00
Glenn Morris
96fb71705b Don't autoload defcustoms in type-break.el
* type-break.el (type-break-mode, type-break-interval)
(type-break-good-rest-interval, type-break-keystroke-threshold):
No need to autoload.
(type-break-good-rest-interval, type-break-keystroke-threshold):
Add :set-after.
2012-09-28 01:01:08 -07:00