1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00
Commit Graph

57400 Commits

Author SHA1 Message Date
Glenn Morris
6b3770fb9d * lisp/emacs-lisp/gv.el (gv-define-setter): Fix doc typo. 2012-11-05 20:36:44 -05:00
Glenn Morris
7e92a49396 Auto-commit of loaddefs files. 2012-11-05 07:20:41 -05:00
Glenn Morris
5593ed900d Misc small cl doc fixes
* emacs-lisp/cl-extra.el (cl-maplist, cl-mapcan): Doc fix.

* emacs-lisp/cl-extra.el (cl-prettyexpand):
* emacs-lisp/cl-lib.el (cl-proclaim, cl-declaim):
* emacs-lisp/cl-macs.el (cl-destructuring-bind, cl-locally)
(cl-the, cl-compiler-macroexpand): Add basic doc strings.
2012-11-05 00:29:12 -08:00
Glenn Morris
f6c6e09c7f Auto-commit of loaddefs files. 2012-11-04 07:22:06 -05:00
Glenn Morris
4913840013 Rename cl-loop-handler, cl-loop-for-handler back to their original names
* lisp/emacs-lisp/cl-macs.el (cl-parse-loop-clause):
Rename handler properties back from cl-- to cl-.

Fixes: debbugs:12788
2012-11-03 11:32:09 -07:00
Glenn Morris
5c677d4410 * lisp/emacs-lisp/cl-macs.el (cl-do-all-symbols): Add doc string. 2012-11-03 11:03:39 -07:00
Eli Zaretskii
858f0f24b1 Adapt MSDOS port to latest changes.
config.bat: Copy lib/execinfo.in.h to lib/execinfo.in-h if needed.

 msdos/sedlibmk.inp: Sync with changes in lib/Makefile.in.
 (HAVE_DECL_ENVIRON, GNULIB_ENVIRON): Edit to require declaration
 through lib/unistd.h.
 msdos/sed1v2.inp: Sync with changes in src/Makefile.in.
 msdos/sed2v2.inp: Sync with changes in src/config.in.

 src/lisp.mk: Adjust comments to the fact that term/internal is now
 loaded from loadup.el.
 src/msdos.c (msdos_abort): Rename from emacs_abort, and make static.
 (msdos_fatal_signal): New function.
 (XMenuActivate): Adjust the call to kbd_buffer_events_waiting to
 its argument list.
 src/conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Define to "inline"
 for GCC versions before 4.
 (emacs_raise): Define to call msdos_fatal_signal.

 lisp/term/pc-win.el: Don't load term/internal from here.
 lisp/loadup.el: Load term/internal from here.
2012-11-03 15:58:33 +02:00
Eli Zaretskii
1d4341f988 Load term/internal from loadup.el. 2012-11-03 15:56:02 +02:00
Fabián Ezequiel Gallina
12fd5ee1ae * progmodes/python.el (inferior-python-mode): Fix hang in
jit-lock.

Fixes: debbugs:12645
2012-11-03 09:20:02 -03:00
Martin Rudalics
43bcfda6d8 Doc changes related to displaying buffers and quitting windows.
* window.el (switch-to-visible-buffer)
(switch-to-buffer-preserve-window-point): Fix doc-strings.

* windows.texi (Switching Buffers): Document option
switch-to-buffer-preserve-window-point.
(Display Action Functions): Document window-height and
window-width alist entries.
(Display Action Functions): Document
display-buffer-below-selected and
display-buffer-in-previous-window.
(Quitting Windows): Document quit-restore-window.  Rewrite
section.
(Window Configurations): In window-state-get mention that
argument window must be valid.
(Window Parameters): Document quit-restore window parameter
(Bug#12158).
2012-11-03 11:47:03 +01:00
Glenn Morris
7a8d34f74e Auto-commit of loaddefs files. 2012-11-01 06:19:27 -04:00
Stephen Berman
b4b096e420 Fix for gomoku-display-statistics.
* play/gomoku.el (gomoku-display-statistics): Update mode line
only if in Gomoku buffer; don't capitalize "won".

Fixes: debbugs:12771
2012-11-01 10:25:08 +08:00
Martin Rudalics
218e997a10 Install fixes for Bug#12764 and Bug#12766.
* window.el (quit-restore-window): If the window has been
created on an existing frame and ended up as the sole window on
that frame, do not delete it (Bug#12764).

* minibuf.c (read_minibuf): Restore current buffer since
choose_minibuf_frame calling Fset_frame_selected_window may
change it (Bug#12766).
2012-10-31 11:02:51 +01:00
Stefan Monnier
3618df4590 * lisp/progmodes/sh-script.el (sh--inside-noncommand-expression):
Rename from sh--inside-arithmetic-expression, handle more cases.

Fixes: debbugs:11263
2012-10-30 23:10:25 -04:00
Stefan Monnier
b08b6da7fe * lisp/progmodes/sh-script.el (sh--inside-arithmetic-expression): New func.
(sh-font-lock-open-heredoc): Use it.

Fixes: debbugs:12770
2012-10-30 22:45:34 -04:00
Glenn Morris
fcc1acdadb Auto-commit of loaddefs files. 2012-10-30 06:18:56 -04:00
Glenn Morris
f43a5263c1 cl-mapc small fixes
* lisp/emacs-lisp/cl-extra.el (cl-mapc): Add autoload cookie.  Doc fix.

* doc/misc/cl.texi (Mapping over Sequences): Mention cl-mapc naming oddity.
2012-10-30 01:03:22 -07:00
Glenn Morris
4ddedf94c8 Doc and manual updates for cl-letf and letf
Fixes: debbugs:12760

* doc/misc/cl.texi (Modify Macros): Update for cl-letf changes.
(Obsolete Lexical Macros): Say a little more about letf/cl-letf.

* lisp/emacs-lisp/cl.el (letf): Doc fix. 

* etc/NEWS: Related edit.
2012-10-30 00:34:37 -07:00
Chong Yidong
ce69a8443a Add a comment for the last isearch.el change. 2012-10-30 14:23:31 +08:00
Chong Yidong
b5dd9a779b Fix isearch handling of keypad characters with kmacros.
* isearch.el (isearch-other-meta-char): Ensure that a reprocessed
function key is stored in a keyboard macro.

Fixes: debbugs:4894
2012-10-30 07:20:24 +08:00
Chong Yidong
748b0d840f * thingatpt.el (number-at-point): Apply a thing-at-point property. 2012-10-30 06:58:53 +08:00
Stefan Monnier
d7f9cc8528 * lisp/vc/diff-mode.el (diff-context->unified): Don't get confused by "hunk
header comments".
(diff-unified->context, diff-context->unified)
(diff-reverse-direction, diff-fixup-modifs): Use `use-region-p'.
2012-10-29 11:14:10 -04:00
Stefan Monnier
c606253cb5 * lisp/emacs-lisp/cl.el (letf): Add missing indent rules.
Fixes: debbugs:12759
2012-10-29 09:50:05 -04:00
Stefan Monnier
e07fcbdc32 * lisp/files.el (find-alternate-file): Only ask one question.
Fixes: debbugs:12487
2012-10-29 09:28:41 -04:00
Chong Yidong
1dc2755a71 * vc/vc-hooks.el (vc-file-clearprops): Kill vc-parent-buffer.
Suggested by Dan Nicolaescu.

Fixes: debbugs:6326
2012-10-29 19:12:17 +08:00
Chong Yidong
329c48d8b2 * info.el (Info-complete-menu-item): Avoid duplicates.
Fixes: debbugs:12705
2012-10-29 18:42:58 +08:00
Kevin Ryde
4574557789 * woman.el (woman-parse-numeric-value): Handle picas correctly.
Fixes: debbugs:12639
2012-10-29 18:30:11 +08:00
Chong Yidong
2230fa5bbf Fix last change.
* lisp/startup.el (fancy-about-screen): Don't message at all.
(startup-echo-area-message): Revert last change.

Fixes: debbugs:12680
2012-10-29 18:14:50 +08:00
Chong Yidong
5c2f2631f8 Avoid a misleading message on C-h C-a.
* lisp/startup.el (startup-echo-area-message): New arg.
(fancy-about-screen): Avoid a misleading message.

Fixes: debbugs:12680
2012-10-29 18:10:15 +08:00
Chong Yidong
e84cad57ef * thingatpt.el (thing-at-point): Doc fix.
Fixes: debbugs:12691
2012-10-29 18:03:21 +08:00
Chong Yidong
1913c5f53b * imenu.el (imenu): Inhibit push-mark message.
Fixes: debbugs:12726
2012-10-29 17:58:49 +08:00
Chong Yidong
894b9dd938 Manage face-remapping-alist properly in face-remap-add-relative.
* face-remap.el (face-remap-add-relative): Handle the case where a
face-remapping-alist entry is a cons cell.

Fixes: debbugs:12762
2012-10-29 17:55:57 +08:00
Glenn Morris
a0ccbcbddc * lisp/emacs-lisp/cl.el (defsetf): Doc fix. 2012-10-28 18:12:53 -07:00
Stefan Monnier
b3871e59da * lisp/progmodes/sh-script.el (sh-font-lock-paren): Also put punctuation
syntax to the matching opener, if any.
(sh-smie-sh-forward-token, sh-smie-sh-backward-token): Recognize this
matching open as a "case-(".
(sh-smie-rc-grammar): Add a corresponding rule for it.

Fixes: debbugs:12547
2012-10-28 20:06:39 -04:00
Daniel Hackney
cd44022cb0 * lisp/emacs-lisp/package.el (package-generate-autoloads): Kill buffer
"PKGNAME-autoloads.el" in case we created it.
2012-10-28 16:41:49 -04:00
Stefan Monnier
b938340493 * lisp/minibuffer.el (completion--twq-all): Disable too-strict assertions.
Fixes: debbugs:11714
2012-10-28 15:07:52 -04:00
Stefan Monnier
86957a0cd3 * lisp/minibuffer.el (completion--sifn-requote): Rewrite to handle things
like Tramp's "/foo:~bar//baz" -> "/scpc:foo:/baz" mapping.

Fixes: debbugs:11714
2012-10-28 14:48:17 -04:00
Stefan Monnier
15a8af19f4 * lisp/erc/erc-backend.el: Fix last bug number.
Fixes: debbugs:12740
2012-10-28 11:34:52 -04:00
Stefan Monnier
3bb08684ce * lisp/erc/erc-backend.el: Only require `erc' during compilation.
Fixes: debbugs:12486
2012-10-28 11:32:15 -04:00
Stefan Monnier
70edffb130 * lisp/tmm.el (tmm-prompt): Use map-keymap.
* doc/lispref/keymaps.texi (Format of Keymaps): Document the multiple
inheritance format.

Fixes: debbugs:12744
2012-10-28 10:56:51 -04:00
Eli Zaretskii
d069271c25 Fix help-echo text in profiler-report-make-entry-part.
lisp/profiler.el (profiler-report-make-entry-part): Fix help-echo
 text to match the real keybindings.
2012-10-27 11:54:04 +02:00
Juri Linkov
e2f022a3fa * lisp/wdired.el (wdired-keep-marker-rename): New defcustom.
(wdired-do-renames): Use it instead of `dired-keep-marker-rename'.

* lisp/dired.el (dired-keep-marker-rename): Add reference to
`wdired-keep-marker-rename' in the docstring.
Add default character value ?R to display initially in
Customization UI instead of ?@.

Fixes: debbugs:11795
2012-10-27 12:17:14 +03:00
Martin Rudalics
df171c230c In display-time-world restore fit-window-to-buffer behavior.
* window.el (display-buffer): In doc-string describe
window-height and window-width alist entries.

* time.el (display-time-world): Restore fit-window-to-buffer
behavior.
2012-10-27 10:58:30 +02:00
Chong Yidong
05b621a6b2 More Emacs 24.3 documentation updates.
* doc/emacs/building.texi (Compilation): Document compilation-always-kill.

* doc/emacs/files.texi (Misc File Ops): Symbolic links on Windows only work
on Vista and later.

* doc/emacs/frames.texi (Mouse Avoidance): Mention new variable
mouse-avoidance-banish-position.

* doc/emacs/mule.texi (Recognize Coding): Remove an unreferenced vindex.

* doc/emacs/package.texi (Package Menu): Document the "new" status.

* doc/emacs/programs.texi (Which Function): Which Function mode now works in
all major modes by default.

* doc/emacs/search.texi (Symbol Search): New node.

* doc/emacs/windows.texi (Window Choice): Don't refer to the obsolete
special-display feature.

* commands.texi (Event Input Misc): Remove last-input-char.
(Command Loop Info): Remove last-command-char.

* display.texi (Fringe Bitmaps): Add exclamation-mark bitmap.

* frames.texi (Initial Parameters): Don't mention the obsolete
special-display feature.

* hooks.texi (Standard Hooks): Remove obsolete hooks.

* markers.texi (Information from Markers): Remove obsolete
function buffer-has-markers-at.

* minibuf.texi (High-Level Completion): Don't mention removed
function iswitchb-read-buffer.

* text.texi (Yanking): Document yank-handled-properties.

* windows.texi (Choosing Window): Don't mention the obsolete
special display feature.
(Choosing Window Options): Remove obsolete special-display
variables, and the functions special-display-p and
special-display-popup-frame.

* subr.el (insert-buffer-substring-as-yank): Doc fix.
2012-10-27 13:03:52 +08:00
Jambunathan K
55f197b219 * lisp/minibuffer.el (completion-category-overrides): New completion
category `bookmark'.

Fixes: debbugs:11131
2012-10-26 16:44:38 -04:00
Stefan Monnier
150f809c34 * lisp/emacs-lisp/advice.el (ad-assemble-advised-definition):
Silence bogus compiler warnings for ad-do-it.
2012-10-26 14:01:30 -04:00
Stefan Monnier
372212dff2 * lisp/bookmark.el (bookmark-completing-read): Set the completion category
to `bookmark'.

Fixes: debbugs:11131
2012-10-26 13:20:54 -04:00
Bastien
c577256946 * lisp/face-remap.el: Use lexical-binding.
(text-scale-adjust): Improve docstring.  Use itself for the temporary
overlay-map bindings, so as to repeat the "Use..." message each time.
2012-10-26 13:07:35 -04:00
Stefan Monnier
63314e5730 * lisp/emacs-lisp/macroexp.el (macroexp--expand-all):
Obey byte-compile-warning-enabled-p.

Fixes: debbugs:12486
2012-10-26 11:59:40 -04:00
Stefan Monnier
a2be03575f * lisp/vc/diff-mode.el (diff-end-of-hunk): Also skip potential "no LF at eol".
(diff-refine-hunk): Similarly, handle the "no LF at eol".

Fixes: debbugs:12584
2012-10-26 11:51:42 -04:00
Bastien Guerry
00323fb326 Fix overwritten typos and Org version number. 2012-10-26 17:27:29 +02:00
Bastien Guerry
bdebdb64b3 Merge upstream Org (from commit acbbe2) 2012-10-26 16:42:05 +02:00
Martin Rudalics
8c7727c335 Fix bug#12731 in mouse-drag-line.
* mouse.el (mouse-drag-line): Move last form into preceding when
clause (Bug#12731).

* help.el (resize-temp-buffer-window): Fix doc-string.
2012-10-26 11:11:24 +02:00
David Engster
3f2a848dbe Merge CEDET upstream.
* emacs-lisp/eieio.el (eieio-update-lisp-imenu-expression):
Removed.  This feature is already integrated in imenu.

* emacs-lisp/eieio-opt.el: Remove require for `button' since it is
always loaded.  Require `speedbar' unconditionally.

* semantic/analyze.el (semantic-analyze-dereference-alias): New
function to dereference aliases.
(semantic-analyze-current-context-default): Use it.

* semantic/grammar.el (semantic-grammar-create-package):
* srecode/compile.el (srecode-compile-templates): Throw a proper
error if semantic-mode is not enabled (bug#9968).

Compiler warning fixes:

* semantic.el (semantic-elapsed-time): Make it a defsubst.

* srecode/dictionary.el (srecode-adebug-dictionary): Remove
require for `semantic'.

* srecode/map.el:
* srecode/insert.el: Declare functions from `data-debug'.

* semantic/grammar.el: Require `help-fns'.  Declare functions from
`eldoc', which is required in function body.

* srecode/java.el:
* semantic/texi.el:
* semantic/grammar-wy.el:
* semantic/db-file.el:
* semantic/db-el.el:
* semantic/chart.el: Fix requires.

* ede/locate.el: Remove useless requires. Declare functions
instead and require in functions when needed.
2012-10-25 22:13:16 +02:00
Stefan Monnier
aaabfc8b27 * lisp/dired.el (dired-get-marked-files): Allow ! on . and ...
Fixes: debbugs:12725
2012-10-25 09:00:52 -04:00
Stefan Monnier
414a8595f0 * lisp/minibuffer.el (minibuffer-force-complete): Fix thinko. 2012-10-25 08:56:13 -04:00
Stefan Monnier
fb5b947504 * lisp/net/ldap.el (ldap-search-internal): The official ldif format starts
with a "version: 1" header.

Fixes: debbugs:12724
2012-10-25 08:41:23 -04:00
Stefan Monnier
a7723be6dd * lisp/emacs-lisp/package.el (package-installed-p): Warn if not ready.
Fixes: debbugs:12721
2012-10-25 08:38:09 -04:00
Glenn Morris
cee6efdef3 Auto-commit of loaddefs files. 2012-10-25 06:17:47 -04:00
Glenn Morris
a05cb6e326 More cl doc updates
* doc/misc/cl.texi: Don't mess with the TeX section number counter.
Use Texinfo recommended convention for quotes+punctuation.
(Overview, Sequence Functions): Rephrase for better line-breaking.
(Time of Evaluation, Type Predicates, Modify Macros, Function Bindings)
(Macro Bindings, Conditionals, Iteration, Loop Basics)
(Random Numbers, Mapping over Sequences, Structures)
(Porting Common Lisp): Further updates for cl-lib namespace.
(Modify Macros, Declarations, Macro Bindings, Structures):
Break long lines in examples.
(Dynamic Bindings): Update for changed progv behavior.
(Loop Examples, Efficiency Concerns): Markup fixes.
(Structures): Remove TeX margin change.

* lisp/emacs-lisp/cl-macs.el (cl-progv): Doc fix.

* etc/NEWS: Related markup.
2012-10-24 20:58:40 -04:00
Stefan Monnier
3c92de7031 * lisp/minibuffer.el (minibuffer-force-complete): Use one more marker
for the temporary-overlay-map command.

Fixes: debbugs:12619
2012-10-24 15:40:23 -04:00
Chong Yidong
9321d8d7f9 * time.el (display-time-world-display): Wrap delete-char inside inhibit-read-only. 2012-10-25 02:26:22 +08:00
Chong Yidong
576978b400 Revert last change to org-lparse.el 2012-10-25 02:16:41 +08:00
Jambunathan K
c28885aede Fix error in previous merge from Org.
* lisp/org/org-lparse.el: Move some hooks from org-lparse to
org-do-lparse.

Fixes: debbugs:12718
2012-10-24 23:04:12 +08:00
Chong Yidong
a4b6d7c66e * time.el (display-time-world-mode): Derive from special-mode.
(display-time-world): Use display-buffer.
(display-time-world-mode-map): Variable deleted.

Fixes: debbugs:12708
2012-10-24 22:50:30 +08:00
Chong Yidong
cd99601878 Document some Emacs 24.3 changes.
* doc/emacs/dired.texi (Dired Deletion, Marks vs Flags): Document Emacs 24.3
changes to the mark and unmark commands.
(Comparison in Dired): Document chages to dired-diff.  Remove M-=,
which is no longer bound to dired-backup-diff.

* doc/emacs/mule.texi (Text Coding): set-buffer-file-coding-system can now
be invoked from the mode line.

* lisp/dired.el (dired-mark, dired-unmark, dired-flag-file-deletion):
Doc fix.
2012-10-24 22:38:49 +08:00
Chong Yidong
75e8f9d2de Improve documentation of easy-menu-define.
* lisp/emacs-lisp/easymenu.el (easy-menu-define): Doc fix.

* doc/lispref/keymaps.texi (Toolkit Differences): Node deleted.
(Easy Menu): New node.

Fixes: debbugs:12628
2012-10-24 11:48:50 +08:00
Stefan Monnier
5c78877693 * minibuffer.el (completion--flush-all-sorted-completions): Fix typo.
Fixes: debbugs:12619
2012-10-23 23:22:21 -04:00
Stefan Monnier
d92df117f9 * lisp/minibuffer.el (completion--all-sorted-completions-location): New var.
(completion--cache-all-sorted-completions)
(completion--flush-all-sorted-completions): Use it.
(completion-in-region, completion-in-region--postch)
(completion-at-point, completion-help-at-point): Use markers in
completion-in-region--data.

Fixes: debbugs:12619
2012-10-23 23:18:32 -04:00
Stefan Monnier
c79825bd22 * lisp/progmodes/compile.el (compilation-start): Try to handle common
quoting of `cd' argument.

Fixes: debbugs:12640
2012-10-23 15:07:44 -04:00
Stefan Monnier
9c3e39f3ff * lisp/vc/diff-mode.el (diff-hunk): `save-excursion' while refining.
Fixes: debbugs:12671
2012-10-23 14:40:23 -04:00
Glenn Morris
a6709bc70c * gud.el (gud-menu-map): Check gdb-active-process is bound. (Bug#12358) 2012-10-23 13:49:24 -04:00
Stefan Monnier
76673f9c62 * checkdoc.el (checkdoc-comment-style-hooks): Typo. 2012-10-23 13:09:22 -04:00
Stefan Monnier
d20d69c098 * lisp/repeat.el (repeat): Set real-this-command.
Fixes: debbugs:12232
2012-10-23 12:57:31 -04:00
Stefan Monnier
d106953274 Cleanup uses of "-hooks".
* doc/emacs/custom.texi (Hooks):
* doc/lispref/hooks.texi (Standard Hooks): Clarify that -hooks is deprecated.

* lisp/gnus/nndiary.el (nndiary-request-create-group-functions)
(nndiary-request-update-info-functions)
(nndiary-request-accept-article-functions):
* lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-functions):
* lisp/cedet/semantic/db-file.el (semanticdb-save-database-functions):
* lisp/cedet/semantic/lex.el (semantic-lex-reset-functions):
* lisp/cedet/semantic/edit.el (semantic-change-functions)
(semantic-edits-new-change-functions)
(semantic-edits-delete-change-functions)
(semantic-edits-reparse-change-functions):
* lisp/htmlfontify.el (hfy-post-html-hook):
* lisp/filesets.el (filesets-cache-fill-content-hook):
* lisp/arc-mode.el (archive-extract-hook):
* lisp/progmodes/cc-mode.el (c-prepare-bug-report-hook):
* lisp/net/rcirc.el (rcirc-sentinel-functions)
(rcirc-receive-message-functions, rcirc-activity-functions)
(rcirc-print-functions):
* lisp/net/dbus.el (dbus-event-error-functions):
* lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-functions):
* lisp/emacs-lisp/checkdoc.el (checkdoc-style-functions)
(checkdoc-comment-style-functions): Don't use "-hooks" suffix.

* lisp/term/sun.el (sun-raw-prefix-hooks):
* lisp/mail/sendmail.el (mail-yank-hooks):
* lisp/mh-e/mh-letter.el (mh-yank-hooks): Use make-obsolete-variable.
2012-10-23 11:06:07 -04:00
Michael Albinus
f7eac6d887 * net/tramp-smb.el (tramp-smb-maybe-open-connection): Set
`tramp-chunksize' to 1.  This improves the performance.
(tramp-smb-wait-for-output): Add timeout to
`tramp-accept-process-output' calls.
2012-10-23 16:26:30 +02:00
Chong Yidong
49238e7f5c Make unused variable font-list-limit obsolete, and move it out of C.
* display.texi (Font Lookup): Remove font-list-limit.

* lisp/startup.el (command-line):
* lisp/cus-start.el: Don't refer to font-list-limit.

* lisp/faces.el (font-list-limit): Define as an obsolete variable.

* xfaces.c (Vfont_list_limit): Move unused variable to faces.el.
2012-10-23 10:39:13 +08:00
Chong Yidong
608d9d7caf * lisp/newcomment.el (comment-normalize-vars): Doc fix.
Fixes: debbugs:12583
2012-10-23 10:17:36 +08:00
Stefan Monnier
4ff5b1b293 * lisp/subr.el (internal-temp-output-buffer-show): Rename from
temp-output-buffer-show, since previously compiled files expect this name.
2012-10-22 21:18:47 -04:00
Glenn Morris
ea1d4aaca0 image-type-from-file-name fix for bug#9045
* lisp/image.el (image-type-from-file-name): If multiple types match,
return the first one that is supported.
2012-10-22 20:46:11 -04:00
Glenn Morris
eda82a3153 * lisp/image.el (imagemagick-enabled-types): Doc fix. 2012-10-22 17:53:03 -04:00
Takafumi Arakaki
4f020becaf * lisp/progmodes/which-func.el (which-func-current): The hash-table may have
an explicit nil.

Fixes: debbugs:12338
2012-10-22 09:29:28 -04:00
Stefan Monnier
c77d37e227 Rework the last delsel/electric fix.
* lisp/delsel.el (delete-selection-helper): Use a function instead of a hook.
(delete-selection-pre-hook): Use use-region-p.
(delete-selection-self-insert-function): Remove.
(self-insert-command): Obey self-insert-uses-region-functions.
(self-insert-iso): Revert to previous setting, since we don't actually
know what that command does.
(delete-selection-self-insert-hooks): Remove.
* lisp/electric.el (electric-pair-delete-selection-self-insert-function):
Rename to electric-pair-will-use-region, return a boolean.
(electric-pair-mode): Adjust accordingly.  Don't require delsel.
2012-10-22 08:43:54 -04:00
Simon Law
b1d39ccce4 * lisp/delsel.el (delete-selection-helper): New function, extracted from
delete-selection-pre-hook.
(delete-selection-pre-hook): Use it.
(delete-selection-self-insert-function): New function.
(delete-selection-self-insert-hooks): New hook.
(self-insert-command, self-insert-iso): Use it.
* lisp/electric.el (electric-pair-syntax): New function, extracted from
electric-pair-post-self-insert-function.
(electric-pair-post-self-insert-function): Use it.
(electric-pair-delete-selection-self-insert-function): New function.
(electric-pair-mode): Require delsel and setup
delete-selection-self-insert-hooks.

Fixes: debbugs:11520
2012-10-21 23:15:44 -04:00
Paul Eggert
791ef5f8ea Spelling fixes. 2012-10-21 00:23:34 -07:00
Chong Yidong
4c5d08a868 Fix *vc-diff* buffer's behavior for empty diffs.
* vc/vc.el (vc-diff-internal): Set up Diff mode even if there are
no changes to show.

Fixes: debbugs:12586
2012-10-20 20:04:45 +08:00
Chong Yidong
045ef72904 Fix for Eshell's for loop.
* eshell/esh-cmd.el (eshell-rewrite-for-command): Copy the body
list explicitly.

Fixes: debbugs:12571
2012-10-20 19:54:24 +08:00
Chong Yidong
3503c79892 Fix last ChangeLog entry. 2012-10-20 19:35:05 +08:00
Arne Jørgensen
79e1997aa8 * progmodes/flymake.el (flymake-create-temp-inplace): Use file-truename.
Patch from:
http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00444.html
2012-10-20 19:34:06 +08:00
Eli Zaretskii
2068905bb7 Fix bug #12395 with doc strings silently omitted from DOC on MS-Windows.
lib-src/make-docfile.c (scan_lisp_file): Barf if called with a .el file
 other than one of a small list of supported un-compiled files.
 lib-src/makefile.w32-in (lisp1, lisp2): Name .elc files wherever they
 exist.

 lisp/loadup.el: Update comment about uncompiled Lisp files.
2012-10-20 12:01:19 +02:00
Jay Belanger
4c9e95500f calc/calc-units.el (math-extract-units): Properly extract powers of units. 2012-10-19 23:14:32 -05:00
Daniel Colascione
1a6e7e3807 Unbreak starting an X11 frame from a non-X11 Emacs daemon 2012-10-19 19:42:02 -08:00
Stefan Monnier
8e8083185c * lisp/minibuffer.el (minibuffer-force-complete): Make the next completion use
the same completion-field (bug@12221).
2012-10-19 14:59:36 -04:00
Martin Rudalics
fb0104dabe In debug record height of debugger window also when debugger will be back (Bug#8789).
* emacs-lisp/debug.el (debug): Record height of debugger window
also when debugger will be back (Bug#8789).
2012-10-19 11:28:50 +02:00
Chong Yidong
8c27235ead Fix how gdb-mi calls display-buffer to avoid switching frames.
* lisp/progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action):
Convert to defcustom.
(gdb-get-source-file): Don't bind pop-up-windows.

* lisp/progmodes/gud.el (gud-display-line): Don't specially re-use
other frames for the gdb-mi case.

Fixes: debbugs:12648
2012-10-19 03:46:18 +08:00
Stefan Monnier
393e94faab * lisp/erc/erc-backend.el: Require `erc' instead of autoloading its macros.
Fixes: debbugs:12669
2012-10-18 11:51:28 -04:00
Stefan Monnier
aaf0c30025 * lisp/emacs-lisp/advice.el: Clean up commentary a bit.
(ad-do-advised-functions, ad-with-originals): Use `declare'.
(byte-code-function-p): Never redefine.
2012-10-18 11:37:57 -04:00
Stefan Monnier
90eacf9920 * lisp/emacs-lisp/gv.el (cond): Same fix as before for `if'.
* Makefile.in ($(MAKEFILE_NAME)): Depend on src/lisp.mk as well.
2012-10-18 08:56:10 -04:00
Stefan Monnier
b2f0135a62 * lisp/erc/erc-backend.el (erc-with-server-buffer): Autoload as well.
Fixes: debbugs:12669
2012-10-18 08:49:18 -04:00
Glenn Morris
40714e3da8 * dired.el (dired-sort-toggle): Some ls implementations only allow
a single option string.

Fixes: debbugs:12666
2012-10-17 20:50:15 -07:00