1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00
Commit graph

109613 commits

Author SHA1 Message Date
Michael Albinus
ed9112575e * autorevert.el: Add file watch support.
(auto-revert-notify-enabled): New defconst.
(auto-revert-notify-watch-descriptor-hash-list)
(auto-revert-notify-watch-descriptor)
(auto-revert-notify-modified-p): New defvars.
(auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
(auto-revert-notify-handler): New defuns.
(auto-revert-mode, global-auto-revert-mode): Remove file watches
when mode is disabled.
(auto-revert-handler): Check for `auto-revert-notify-modified-p'.
(auto-revert-buffers): Add file watches for active buffers.
2013-01-10 15:27:48 +01:00
Dmitry Antipov
58cc0a010b Omit buffer_slot_type_mismatch and use generic predicates to enforce
the type of per-buffer values where appropriate.
* src/lisp.h (struct Lisp_Buffer_Objfwd): Rename slottype member to
predicate, which is how it's really used now.  Adjust comment.
* src/buffer.h (buffer_slot_type_mismatch): Remove prototype.
* src/buffer.c (buffer_slot_type_mismatch): Remove.
(DEFVAR_PER_BUFFER, defvar_per_buffer): Rename type argument to
predicate.  Adjust comment.
(syms_of_buffer): Use Qsymbolp for major-mode.  Use Qintegerp for
fill-column, left-margin, tab-width, buffer-saved-size,
left-margin-width, right-margin-width, left-fringe-width,
right-fringe-width, scroll-bar-width and buffer-display-count.
Use Qstringp for default-directory, buffer-file-name,
buffer-file-truename and buffer-auto-save-file-name.  Use Qfloatp for
scroll-up-aggressively and scroll-down-aggressively.  Use Qnumberp for
line-spacing.
* src/data.c (store_symval_forwarding): Adjust to call the predicate.
* lisp/cus-start.el (toplevel): Only allow float values for
scroll-up-aggressively and scroll-down-aggressively.
Allow any number for line-spacing.
2013-01-10 14:30:16 +04:00
Michael Albinus
997d5f2d1d * tramp.texi (Default Host): Introduce `tramp-default-host-alist'. 2013-01-10 08:34:48 +01:00
Stefan Monnier
bbc7ff2588 * lisp/doc-view.el (doc-view-pdfdraw-program): Allow "pdfdraw" name.
(doc-view-pdf->png-converter-function): Use mupdf if available.
(doc-view-djvu->png-converter-function)
(doc-view-ps->png-converter-function): Remove.
(doc-view--image-file-pattern): Replace doc-view--image-file-extension.
(doc-view-goto-page, doc-view-convert-current-doc, doc-view-display)
(doc-view-already-converted-p): Adjust accordingly.
(doc-view-mode-p): Simplify.
(doc-view-enlarge): Use setq-local.
(doc-view-pdf->png-converter-ghostscript)
(doc-view-djvu->png-converter-ddjvu)
(doc-view-pdf->png-converter-mupdf): Rework to call
doc-view-start-process directly.
(doc-view-pdf/ps->png): Simplify accordingly.
(doc-view-pdf->png-1, doc-view-djvu->png-1): Remove.
(doc-view-document->bitmap): Rename from doc-view-document->png.
(doc-view-convert-current-doc): Merge pdf and djvu cases.
(doc-view-set-slice-from-bounding-box): Fix completion table.
(doc-view-mode): Use add-hook for after-revert-hook.
2013-01-10 00:05:24 -05:00
Glenn Morris
31045a5b61 Misc make-tarball updates 2013-01-09 20:12:46 -08:00
Stefan Monnier
3f9549e874 Merge from emacs-24 2013-01-09 22:43:02 -05:00
Glenn Morris
c4dd9efc9e Bump version to 24.2.92
Regenerate etc/AUTHORS and lisp/ldefs-boot.el
2013-01-09 18:45:32 -08:00
Roland Winkler
b14abca947 * lisp/emacs-lisp/crm.el: Allow any regexp for separators.
(crm-default-separator): All spaces around the default comma separator.
(crm--completion-command): New macro.
(crm-completion-help, crm-complete, crm-complete-word): Use it.
(crm-complete-and-exit): Handle non-single-char separators.
2013-01-09 21:45:31 -05:00
Glenn Morris
d1b066d2f1 ChangeLog fixes from M-x authors 2013-01-09 18:30:52 -08:00
Glenn Morris
3c855b96ba authors.el tiny updates
* lisp/emacs-lisp/authors.el (authors-ignored-files)
(authors-valid-file-names, authors-renamed-files-alist):
Add some more entries.
2013-01-09 18:30:06 -08:00
Paul Eggert
6466e676b9 Merge from gnulib. 2013-01-09 18:19:44 -08:00
Stefan Monnier
08ce64e637 * lisp/image-mode.el (image-mode-winprops): Don't throw away the fallback
`t' pseudo-window entry.
2013-01-09 17:47:27 -05:00
Alan Mackenzie
8cff5febae Fix bugs in the c-parse-state mechanism. Reuse some markers instead of
continually generating new ones.

cc-engine.el (c-state-old-cpp-beg-marker, c-state-old-cpp-end-marker):
New variables.
(c-append-lower-brace-pair-to-state-cache): Start a backward search for
"}" definitively outside CPP constructs.
(c-remove-stale-state-cache): Inform the caller of a need to search back
for a brace pair in certain circumstances.
(c-state-maybe-marker): New macro.
(c-parse-state): Reuse markers when appropriate.
2013-01-09 21:33:00 +00:00
Aaron S. Hawley
51fb557877 * test/automated/undo-tests.el (undo-test0): Adjust error to code change. 2013-01-09 16:29:27 -05:00
Glenn Morris
45a7e57ca3 commands.texi small fix for bug#13393
* doc/lispref/commands.texi (Interactive Codes): 
Whitespace does not terminate interactive "S".
2013-01-09 16:26:08 -05:00
Elias Pipping
2b541f9a8d * lisp/doc-view.el: Add support for DjVu.
(doc-view-djvu->png-converter-function): New config var.
(doc-view-single-page-converter-function, doc-view--image-type)
(doc-view--image-file-extension): New vars.
(doc-view-mode): Initialize them.
(doc-view-goto-page): Use them.
(doc-view-mode-p): Add support for ddjvu.
(doc-view-djvu->png-converter-ddjvu, doc-view-djvu->png-1)
(doc-view-set-up-single-converter): New funs.
(doc-view-pdf/ps->png): Extend for djvu.
(doc-view-document->png): Rename from doc-view-pdf->png.
(doc-view-convert-current-doc): Handle djvu.
(doc-view-insert-image, doc-view-display)
(doc-view-already-converted-p): Don't hardcode png.
(doc-view-set-doc-type): Recognize djvu docs.

Fixes: debbugs:13164
2013-01-09 16:24:42 -05:00
Glenn Morris
89c0dda852 execute-extended-command prompt fix (bug#13395)
* lisp/simple.el (execute-extended-command): Doc fix.
Bind prefix-arg around read-extended-command, for prompt.
2013-01-09 16:23:14 -05:00
Elias Pipping
85f17e350d * lisp/doc-view.el: Add support for mupdf converter.
(doc-view-pdfdraw-program, doc-view-pdf->png-converter-function)
(doc-view-ps->png-converter-function): New config vars.
(doc-view-pdf->png-converter-ghostscript)
(doc-view-ps->png-converter-ghostscript)
(doc-view-pdf->png-converter-mupdf): New functions.
(doc-view-pdf/ps->png, doc-view-pdf->png-1): Use them.

Fixes: debbugs:13164
2013-01-09 14:48:42 -05:00
Juanma Barranquero
401d44c9a8 nt/config.nt: Sync with autogen/config.in.
(HAVE_GTK_HANDLE_BOX_NEW, HAVE_GTK_TEAROFF_MENU_ITEM_NEW): New macros.
2013-01-09 16:07:44 +01:00
Juanma Barranquero
5104861e85 src/w32.c, src/w32term.c: Remove unused local variables. 2013-01-09 16:07:01 +01:00
Dmitry Antipov
2eae9ccc2a * insdel.c (make_gap_larger): Fix comment because gap_left doesn't
adjust markers.
(make_gap_smaller): Likewise for gap_right.
2013-01-09 18:08:49 +04:00
Dmitry Antipov
eefd727851 * lisp.h (make_gap_1): New prototype.
* buffer.h (GAP_BYTES_DFL, GAP_BYTES_MIN): New macros for the special
gap size values.
* editfns.c (Fbuffer_size): Rename from Fbufsize to fit the common
naming convention.
(syms_of_editfns): Adjust defsubr.  Drop commented-out obsolete code.
* insdel.c (make_gap_larger): Use GAP_BYTES_DFL.
(make_gap_smaller): Use GAP_BYTES_MIN.  Adjust comment.
(make_gap_1): New function to adjust the gap of any buffer.
* coding.c (coding_alloc_by_making_gap): Use it.
* buffer.c (compact_buffer): Likewise.  Use BUF_Z_BYTE, BUF_GAP_SIZE,
GAP_BYTES_DFL and GAP_BYTES_MIN.  Adjust comment.
2013-01-09 17:50:22 +04:00
Michael Albinus
ccd04887a3 * net/tramp.el (tramp-eshell-directory-change): Check remote-path
first in session cache: When `tramp-own-remote-path' is in
`tramp-remote-path', the remote path is only set in the session
cache.
2013-01-09 10:49:27 +01:00
Chong Yidong
f55c06038d Minor doc fix. 2013-01-09 17:46:30 +08:00
Chong Yidong
5b64ccd7a2 * faces.el (read-face-name): Doc fix. 2013-01-09 17:43:38 +08:00
Glenn Morris
fb9f714667 Merge from emacs-24; up to 2012-12-08T12:11:29Z!eliz@gnu.org 2013-01-09 00:30:21 -08:00
Paul Eggert
ebb965fcf8 Backport spelling fixes from trunk 2013-01-09 00:29:10 -08:00
Paul Eggert
454fa9b7ea Spelling fix merged from gnulib. 2013-01-09 00:25:11 -08:00
Glenn Morris
72dbf62a95 Remove duplicated ChangeLog entry 2013-01-09 00:20:20 -08:00
Paul Eggert
677d5c928c Spelling fixes.
* lisp/net/tramp-adb.el (tramp-adb-get-toolbox):
Fix misspelling of 'unknown'.
2013-01-09 00:17:47 -08:00
Daiki Ueno
b84e3dda5b * mml-smime.el (epg-sub-key-fingerprint): Autoload. 2013-01-09 14:11:16 +09:00
Glenn Morris
9d4a179053 Remove some obsolete trace.el commentary 2013-01-08 20:01:57 -08:00
Glenn Morris
fc2f152607 Remove some of the more obsolete MAINTAINERS info 2013-01-08 20:00:57 -08:00
Glenn Morris
c5ad92de10 * emacs-lisp/trace.el (trace-function, trace-function-background): Doc fix. 2013-01-08 19:59:10 -08:00
Juri Linkov
39a0786e1b * lisp/international/mule-cmds.el (read-char-by-name): Move let-binding
of completion-ignore-case around completing-read to fix regression
exhibited by the test case `C-x 8 RET *acc TAB' and caused by
`string-match-p' using the nil value of `case-fold-search' and
`completion-ignore-case' in `completion-pcm--all-completions'..

Fixes: debbugs:12615
2013-01-09 02:20:02 +02:00
Juri Linkov
073ca75ba3 * lisp/textmodes/flyspell.el (flyspell-incorrect, flyspell-duplicate):
* lisp/progmodes/flymake.el (flymake-errline, flymake-warnline):
Use underline style wave on terminals that support it. 

* src/xfaces.c (tty_supports_face_attributes_p): Return 0 for the case
of (supports :underline (:style wave)).

Fixes: debbugs:13000
2013-01-09 01:50:40 +02:00
Stefan Monnier
4bdc352611 * lisp/emacs-lisp/pcase.el (pcase--split-equal): Also take advantage if
the predicate returns nil.
2013-01-08 17:26:21 -05:00
Bastien Guerry
04c285b264 Fixes related to the last Org merge. 2013-01-08 23:02:09 +01:00
Stefan Monnier
a464813702 * lisp/simple.el: Use lexical-binding.
(primitive-undo): Use pcase.
(minibuffer-history-isearch-push-state): Use a closure.
2013-01-08 15:15:15 -05:00
Aaron S. Hawley
3bace969f3 * lisp/simple.el (primitive-undo): Move from undo.c.
* src/undo.c (Fprimitive_undo): Move to simple.el.
(syms_of_undo): Remove declaration for Sprimitive_undo.
* test/automated/undo-tests.el: New file.
2013-01-08 14:13:31 -05:00
Bastien Guerry
2e3c2398e3 Merge Org up to commit 4cac75153. Some ChangeLog formatting fixes. 2013-01-08 19:49:37 +01:00
Stefan Monnier
1c851e98b6 * lisp/vc/pcvs.el (cvs-cleanup-collection): Extend meaning of `rm-handled'.
(cvs-mode-remove-handled): Use it.

Fixes: debbugs:13380
2013-01-08 12:34:35 -05:00
Bastien Guerry
d576dd9bde doc/misc/org.texi: Fix version number 2013-01-08 17:56:58 +01:00
Stefan Monnier
63a63bd434 * src/keyboard.c (echo_add_key): Rename from echo_add_char. 2013-01-08 11:51:11 -05:00
Bastien Guerry
6d3e4c8092 Merge Org (commit c8c217). Fix mistake about updating the wrong ChangeLog. 2013-01-08 16:31:30 +01:00
Stefan Monnier
a731fc1bb0 * lisp/emacs-lisp/nadvice.el (advice--tweak): New function.
(advice--remove-function, advice--subst-main): Use it.
* lisp/emacs-lisp/advice.el: Update commentary.
2013-01-08 10:24:56 -05:00
Bastien Guerry
c7cf0ebc24 Merge Org 7.9.3 (commit 31c1aea) 2013-01-08 15:27:18 +01:00
Michael Albinus
2a22c83bb0 * net/tramp-adb.el (tramp-adb-file-name-handler-alist): Remove
spurious entry.
2013-01-08 12:02:58 +01:00
Bastien Guerry
61a5bb859c etc/NEWS: Document the change wrt apropos-user-option' and apropos-variable' 2013-01-08 08:14:51 +01:00
Paul Eggert
ca6a2684bd Merge from gnulib (comment change only). 2013-01-07 21:07:19 -08:00