]> git.eshelyaron.com Git - emacs.git/log
emacs.git
12 years ago* lisp/dired.el (dired-get-marked-files): Allow ! on . and ...
Stefan Monnier [Thu, 25 Oct 2012 13:00:52 +0000 (09:00 -0400)]
* lisp/dired.el (dired-get-marked-files): Allow ! on . and ...

Fixes: debbugs:12725
12 years ago* lisp/minibuffer.el (minibuffer-force-complete): Fix thinko.
Stefan Monnier [Thu, 25 Oct 2012 12:56:13 +0000 (08:56 -0400)]
* lisp/minibuffer.el (minibuffer-force-complete): Fix thinko.

12 years ago* lisp/net/ldap.el (ldap-search-internal): The official ldif format starts
Stefan Monnier [Thu, 25 Oct 2012 12:41:23 +0000 (08:41 -0400)]
* lisp/net/ldap.el (ldap-search-internal): The official ldif format starts
with a "version: 1" header.

Fixes: debbugs:12724
12 years ago* lisp/emacs-lisp/package.el (package-installed-p): Warn if not ready.
Stefan Monnier [Thu, 25 Oct 2012 12:38:09 +0000 (08:38 -0400)]
* lisp/emacs-lisp/package.el (package-installed-p): Warn if not ready.

Fixes: debbugs:12721
12 years ago* tramp.texi (Frequently Asked Questions): Mention
Michael Albinus [Thu, 25 Oct 2012 12:08:44 +0000 (14:08 +0200)]
* tramp.texi (Frequently Asked Questions): Mention
`tramp-completion-reread-directory-timeout' for performance
improvement.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 25 Oct 2012 10:17:47 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.

12 years agoDon't assume process IDs fit in int.
Paul Eggert [Thu, 25 Oct 2012 04:35:39 +0000 (21:35 -0700)]
Don't assume process IDs fit in int.

* emacs.c (shut_down_emacs) [!DOS_NT]:
* sysdep.c (sys_suspend) [SIGTSTP && !MSDOS]:
* term.c (dissociate_if_controlling_tty) [!DOS_NT]:
Use pid_t, not int, to store process IDs, as 'int'
is not wide enough on a few platforms (e.g., AIX and IRIX).

12 years ago* doc/misc/cl.texi (Declarations): Fix typos.
Glenn Morris [Thu, 25 Oct 2012 01:49:54 +0000 (21:49 -0400)]
* doc/misc/cl.texi (Declarations): Fix typos.

12 years agoNEWS copyedits
Glenn Morris [Thu, 25 Oct 2012 01:24:21 +0000 (21:24 -0400)]
NEWS copyedits

12 years agoMore cl doc updates
Glenn Morris [Thu, 25 Oct 2012 00:58:40 +0000 (20:58 -0400)]
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.

12 years agoRemove some old information from cl.texi that is no longer relevant
Glenn Morris [Wed, 24 Oct 2012 21:53:47 +0000 (17:53 -0400)]
Remove some old information from cl.texi that is no longer relevant

* doc/misc/cl.texi (Overview, Multiple Values, Creating Symbols)
(Numerical Functions): Say less/nothing about the original cl.el.
(Old CL Compatibility): Remove.
(Assertions): Remove ignore-errors (standard Elisp for some time).

12 years ago* lisp/minibuffer.el (minibuffer-force-complete): Use one more marker
Stefan Monnier [Wed, 24 Oct 2012 19:40:23 +0000 (15:40 -0400)]
* lisp/minibuffer.el (minibuffer-force-complete): Use one more marker
for the temporary-overlay-map command.

Fixes: debbugs:12619
12 years ago* time.el (display-time-world-display): Wrap delete-char inside inhibit-read-only.
Chong Yidong [Wed, 24 Oct 2012 18:26:22 +0000 (02:26 +0800)]
* time.el (display-time-world-display): Wrap delete-char inside inhibit-read-only.

12 years agoRevert last change to org-lparse.el
Chong Yidong [Wed, 24 Oct 2012 18:16:41 +0000 (02:16 +0800)]
Revert last change to org-lparse.el

12 years ago* Makefile.in (install-etc): Don't apply program transform to file suffixes.
Glenn Morris [Wed, 24 Oct 2012 17:25:24 +0000 (13:25 -0400)]
* Makefile.in (install-etc): Don't apply program transform to file suffixes.

12 years ago* Makefile.in (install-man): Don't apply transform to suffix.
Glenn Morris [Wed, 24 Oct 2012 16:41:59 +0000 (09:41 -0700)]
* Makefile.in (install-man): Don't apply transform to suffix.

12 years agoFix error in previous merge from Org.
Jambunathan K [Wed, 24 Oct 2012 15:04:12 +0000 (23:04 +0800)]
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
12 years ago* time.el (display-time-world-mode): Derive from special-mode.
Chong Yidong [Wed, 24 Oct 2012 14:50:30 +0000 (22:50 +0800)]
* 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
12 years agoDocument some Emacs 24.3 changes.
Chong Yidong [Wed, 24 Oct 2012 14:38:49 +0000 (22:38 +0800)]
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.

12 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Wed, 24 Oct 2012 13:46:38 +0000 (15:46 +0200)]
nt/config.nt: Sync with autogen/config.in.

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 24 Oct 2012 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoFurther namespace updates for cl.texi
Glenn Morris [Wed, 24 Oct 2012 07:41:11 +0000 (00:41 -0700)]
Further namespace updates for cl.texi

* doc/misc/cl.texi (Basic Setf, Macros, Declarations, Symbols, Numbers)
(Sequences, Lists, Structures, Assertions, Efficiency Concerns)
(Efficiency Concerns, Efficiency Concerns)
(Common Lisp Compatibility, Old CL Compatibility):
Further updates for cl-lib namespace.

12 years agoUpdate manual for new time stamp format.
Paul Eggert [Wed, 24 Oct 2012 05:12:23 +0000 (05:12 +0000)]
Update manual for new time stamp format.

These instances were missed the first time around.
Problem reported by Glenn Morris in <http://bugs.gnu.org/12706#25>.
* doc/lispintro/emacs-lisp-intro.texi (Files List):
* doc/lispref/buffers.texi (Modification Time):
* doc/lispref/files.texi (Testing Accessibility, File Attributes):
* doc/lispref/intro.texi (Version Info):
* doc/lispref/os.texi (Time of Day):
* doc/misc/emacs-mime.texi (time-date):
Update for new time stamp format (HIGH LOW MICROSEC PICOSEC).
* doc/misc/emacs-mime.texi (time-date):
Also, fix bogus time stamp and modernize a bit.

12 years agoImprove documentation of easy-menu-define.
Chong Yidong [Wed, 24 Oct 2012 03:48:50 +0000 (11:48 +0800)]
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
12 years ago* minibuffer.el (completion--flush-all-sorted-completions): Fix typo.
Stefan Monnier [Wed, 24 Oct 2012 03:22:21 +0000 (23:22 -0400)]
* minibuffer.el (completion--flush-all-sorted-completions): Fix typo.

Fixes: debbugs:12619
12 years ago* lisp/minibuffer.el (completion--all-sorted-completions-location): New var.
Stefan Monnier [Wed, 24 Oct 2012 03:18:32 +0000 (23:18 -0400)]
* 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
12 years agoFix last tiny change about text.texi.
Bastien Guerry [Tue, 23 Oct 2012 21:26:00 +0000 (23:26 +0200)]
Fix last tiny change about text.texi.

Thanks to Eli for his guidance.

12 years ago* configure.ac (_FORTIFY_SOURCE): Do not multiply define.
Paul Eggert [Tue, 23 Oct 2012 19:39:36 +0000 (12:39 -0700)]
* configure.ac (_FORTIFY_SOURCE): Do not multiply define.

This ports to Gentoo.  Problem originally reported against coreutils,
but Emacs has it too.

Fixes: debbugs:12714
12 years ago* lisp/progmodes/compile.el (compilation-start): Try to handle common
Stefan Monnier [Tue, 23 Oct 2012 19:07:44 +0000 (15:07 -0400)]
* lisp/progmodes/compile.el (compilation-start): Try to handle common
quoting of `cd' argument.

Fixes: debbugs:12640
12 years ago* lisp/vc/diff-mode.el (diff-hunk): `save-excursion' while refining.
Stefan Monnier [Tue, 23 Oct 2012 18:40:23 +0000 (14:40 -0400)]
* lisp/vc/diff-mode.el (diff-hunk): `save-excursion' while refining.

Fixes: debbugs:12671
12 years ago* gud.el (gud-menu-map): Check gdb-active-process is bound. (Bug#12358)
Glenn Morris [Tue, 23 Oct 2012 17:49:24 +0000 (13:49 -0400)]
* gud.el (gud-menu-map): Check gdb-active-process is bound.  (Bug#12358)

12 years agoRevert 2012-10-21 Makefile.in change (bug#12713)
Glenn Morris [Tue, 23 Oct 2012 17:33:22 +0000 (13:33 -0400)]
Revert 2012-10-21 Makefile.in change (bug#12713)

* Makefile.in (emacs_transform): Remove.
(install-man): Revert 2012-10-21 change.

12 years agoUpdate lib-src/makefile.w32-in to follow 2012-10-21T01:19:46Z!rgm@gnu.org.
Eli Zaretskii [Tue, 23 Oct 2012 17:09:55 +0000 (19:09 +0200)]
Update lib-src/makefile.w32-in to follow 2012-10-21T01:19:46Z!rgm@gnu.org.

 lib-src/makefile.w32-in (lisp2): Add cp51932.el and eucjp-ms.el, to
 follow src/lisp.mk.

12 years ago* checkdoc.el (checkdoc-comment-style-hooks): Typo.
Stefan Monnier [Tue, 23 Oct 2012 17:09:22 +0000 (13:09 -0400)]
* checkdoc.el (checkdoc-comment-style-hooks): Typo.

12 years ago* lisp/repeat.el (repeat): Set real-this-command.
Stefan Monnier [Tue, 23 Oct 2012 16:57:31 +0000 (12:57 -0400)]
* lisp/repeat.el (repeat): Set real-this-command.

Fixes: debbugs:12232
12 years agoRemove NEWS markup so that file-attributes etc get rechecked
Glenn Morris [Tue, 23 Oct 2012 16:26:52 +0000 (09:26 -0700)]
Remove NEWS markup so that file-attributes etc get rechecked

12 years ago* text.texi (Org Authoring): Change @ref to @pxref.
Bastien Guerry [Tue, 23 Oct 2012 16:12:59 +0000 (18:12 +0200)]
* text.texi (Org Authoring): Change @ref to @pxref.

12 years agomerge trunk
Kenichi Handa [Tue, 23 Oct 2012 15:47:51 +0000 (00:47 +0900)]
merge trunk

12 years agoMake face-font-rescale-alist work correctly for non-ASCII fonts.
Kenichi Handa [Tue, 23 Oct 2012 15:42:29 +0000 (00:42 +0900)]
Make face-font-rescale-alist work correctly for non-ASCII fonts.

12 years agoCleanup uses of "-hooks".
Stefan Monnier [Tue, 23 Oct 2012 15:06:07 +0000 (11:06 -0400)]
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.

12 years ago* net/tramp-smb.el (tramp-smb-maybe-open-connection): Set
Michael Albinus [Tue, 23 Oct 2012 14:26:30 +0000 (16:26 +0200)]
* 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.

12 years agoFix outdated timestamp documentation in Elisp manual.
Paul Eggert [Tue, 23 Oct 2012 07:57:42 +0000 (00:57 -0700)]
Fix outdated timestamp documentation in Elisp manual.

* doc/lispref/files.texi (File Attributes):
* doc/lispref/text.texi (Undo):
Time stamp resolution is now 1 picosecond, not 1 second.
* etc/NEWS: Document increased precision in undo list.

Fixes: debbugs:12706
12 years agoChangeLog fix
Glenn Morris [Tue, 23 Oct 2012 07:52:18 +0000 (00:52 -0700)]
ChangeLog fix

12 years agoStart updating cl.texi for cl-lib changes
Glenn Morris [Tue, 23 Oct 2012 07:43:39 +0000 (00:43 -0700)]
Start updating cl.texi for cl-lib changes

* doc/misc/cl.texi: Include emacsver.texi.
Use Emacs version number rather than unchanging cl.el version number.
End all menu descriptions with a period.
Do not use @dfn{CL} for every instance of "CL".
(Overview): Remove no-runtime caveat, and note about foo* names.
(Usage): Use cl-lib rather than cl.
(Organization, Naming Conventions): Update for cl-lib.el.
(Installation): Remove long-irrelevant node.
(Program Structure, Predicates, Control Structure):
Start updating for cl-lib namespace.

* doc/misc/Makefile.in ($(buildinfodir)/cl$(INFO_EXT), cl.dvi, cl.pdf):
Depend on emacsver.texi.

12 years agoMake unused variable font-list-limit obsolete, and move it out of C.
Chong Yidong [Tue, 23 Oct 2012 02:39:13 +0000 (10:39 +0800)]
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.

12 years ago* doc/lispref/keymaps.texi (Key Sequences): Avoid referring to Edit Macro mode.
Chong Yidong [Tue, 23 Oct 2012 02:23:39 +0000 (10:23 +0800)]
* doc/lispref/keymaps.texi (Key Sequences): Avoid referring to Edit Macro mode.

* doc/emacs/kmacro.texi (Edit Keyboard Macro): Fix typo.

Fixes: debbugs:12529
12 years ago* lisp/newcomment.el (comment-normalize-vars): Doc fix.
Chong Yidong [Tue, 23 Oct 2012 02:17:36 +0000 (10:17 +0800)]
* lisp/newcomment.el (comment-normalize-vars): Doc fix.

Fixes: debbugs:12583
12 years ago* lisp/subr.el (internal-temp-output-buffer-show): Rename from
Stefan Monnier [Tue, 23 Oct 2012 01:18:47 +0000 (21:18 -0400)]
* lisp/subr.el (internal-temp-output-buffer-show): Rename from
temp-output-buffer-show, since previously compiled files expect this name.

12 years agoimage-type-from-file-name fix for bug#9045
Glenn Morris [Tue, 23 Oct 2012 00:46:11 +0000 (20:46 -0400)]
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.

12 years ago* doc/lispref/os.texi (Recording Input): Tiny fix.
Glenn Morris [Mon, 22 Oct 2012 21:57:14 +0000 (17:57 -0400)]
* doc/lispref/os.texi (Recording Input): Tiny fix.

12 years ago* lisp/image.el (imagemagick-enabled-types): Doc fix.
Glenn Morris [Mon, 22 Oct 2012 21:53:03 +0000 (17:53 -0400)]
* lisp/image.el (imagemagick-enabled-types): Doc fix.

12 years ago* lisp/progmodes/which-func.el (which-func-current): The hash-table may have
Takafumi Arakaki [Mon, 22 Oct 2012 13:29:28 +0000 (09:29 -0400)]
* lisp/progmodes/which-func.el (which-func-current): The hash-table may have
an explicit nil.

Fixes: debbugs:12338
12 years agoRework the last delsel/electric fix.
Stefan Monnier [Mon, 22 Oct 2012 12:43:54 +0000 (08:43 -0400)]
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.

12 years ago* lisp/delsel.el (delete-selection-helper): New function, extracted from
Simon Law [Mon, 22 Oct 2012 03:15:44 +0000 (23:15 -0400)]
* 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
12 years agoRefer to cl-lib rather than cl in lispref
Glenn Morris [Mon, 22 Oct 2012 02:22:27 +0000 (19:22 -0700)]
Refer to cl-lib rather than cl in lispref

* intro.texi (Lisp History):
* lists.texi (Sets And Lists): Refer to cl-lib rather than cl.

12 years ago* doc/lispref/tips.texi (Coding Conventions): Recommend cl-lib over cl.
Glenn Morris [Mon, 22 Oct 2012 02:18:58 +0000 (19:18 -0700)]
* doc/lispref/tips.texi (Coding Conventions): Recommend cl-lib over cl.

12 years ago* nsfont.m (nsfont_open, ns_glyph_metrics): Force integer advancement
Jan Djärv [Sun, 21 Oct 2012 18:48:11 +0000 (20:48 +0200)]
* nsfont.m (nsfont_open, ns_glyph_metrics): Force integer advancement
for screen font.
(nsfont_draw): Turn off LCD-smoothing.

Fixes: debbugs:11484
12 years ago* xterm.c (x_focus_changed): Check if daemonp when sending focus in
Jan Djärv [Sun, 21 Oct 2012 14:53:28 +0000 (16:53 +0200)]
* xterm.c (x_focus_changed): Check if daemonp when sending focus in
event.

Fixes: debbugs:12681
12 years agoSpelling fixes.
Paul Eggert [Sun, 21 Oct 2012 07:23:34 +0000 (00:23 -0700)]
Spelling fixes.

12 years agoPut back old Emacs 22 icons, just don't install them
Glenn Morris [Sun, 21 Oct 2012 01:35:46 +0000 (18:35 -0700)]
Put back old Emacs 22 icons, just don't install them
Some people prefer them to the newer icon

* Makefile.in (install-etc): Don't install emacs22 icons.

* etc/images/icons/hicolor/32x32/apps/emacs22.png:
* etc/images/icons/hicolor/16x16/apps/emacs22.png:
* etc/images/icons/hicolor/48x48/apps/emacs22.png:
* etc/images/icons/hicolor/24x24/apps/emacs22.png: Restore old icons.

* etc/images/icons/README: Restore info about emacs22 icons

12 years agoIn Makefile.in, use a make variable rather than a shell variable.
Glenn Morris [Sun, 21 Oct 2012 01:27:09 +0000 (18:27 -0700)]
In Makefile.in, use a make variable rather than a shell variable.

* Makefile.in (emacs_transform): New variable.
(install-etc): Prefer a make variable to a shell variable.

12 years agoRecognize that cp51932.el and eucjp-ms.el are loaded during dumping
Glenn Morris [Sun, 21 Oct 2012 01:19:46 +0000 (18:19 -0700)]
Recognize that cp51932.el and eucjp-ms.el are loaded during dumping

* src/lisp.mk (lisp): Add cp51932.el and eucjp-ms.el.

* lib-src/make-docfile.c (scan_lisp_file): Add cp51932.el and eucjp-ms.el.

12 years agoPort to OpenBSD 5.1.
Paul Eggert [Sat, 20 Oct 2012 21:30:51 +0000 (14:30 -0700)]
Port to OpenBSD 5.1.

* frame.c (Fmouse_position, Fmouse_pixel_position):
* xdisp.c (produce_stretch_glyph):
Declare local vars only when they're needed.
This is clearer and avoids a warning on OpenBSD about unused vars.
* frame.h (FRAME_WINDOW_P): Always evaluate its argument.
This is safer, and avoids OpenBSD warnings about unused vars.
* keyboard.c (record_menu_key): Remove unnecessary decl.
(poll_timer): Define only if POLL_FOR_INPUT is defined.
* unexelf.c (ELFSIZE) [!ElfW]: Do not define if already defined,
as our definition clashes with OpenBSD's.
* xfaces.c (load_face_colors, check_lface_attrs)
(get_lface_attributes_no_remap, get_lface_attributes)
(lface_fully_specified_p, x_supports_face_attributes_p)
(tty_supports_face_attributes_p, face_fontset, realize_face)
(realize_x_face, realize_tty_face):
Declare parameters to be Lisp_Object[LFACE_VECTOR_SIZE], not
merely Lisp_Object *.  This is more informative and avoids
a warning on OpenBSD about accessing beyond an object's size.

12 years agoFix last changes in make-docfile.c.
Eli Zaretskii [Sat, 20 Oct 2012 15:26:10 +0000 (17:26 +0200)]
Fix last changes in make-docfile.c.

 lib-src/make-docfile.c (IS_SLASH, DEF_ELISP_FILE): New macros.
 (scan_lisp_file): Only pass a .el file if its basename matches a
 known file in its entirety.  Use IS_SLASH and DEF_ELISP_FILE.

12 years agoFix a typo in lib-src/ChangeLog.
Eli Zaretskii [Sat, 20 Oct 2012 14:56:09 +0000 (16:56 +0200)]
Fix a typo in lib-src/ChangeLog.

12 years ago* make-docfile.c (scan_lisp_file): Add bounds checking.
Andreas Schwab [Sat, 20 Oct 2012 13:28:42 +0000 (15:28 +0200)]
* make-docfile.c (scan_lisp_file): Add bounds checking.

12 years agoAdd comments with instructions for creating new Lisp data types.
Eli Zaretskii [Sat, 20 Oct 2012 13:20:44 +0000 (15:20 +0200)]
Add comments with instructions for creating new Lisp data types.

12 years ago* lread.c (Fload): Doc fix.
Chong Yidong [Sat, 20 Oct 2012 12:50:49 +0000 (20:50 +0800)]
* lread.c (Fload): Doc fix.

Fixes: debbugs:12592
12 years agoFix *vc-diff* buffer's behavior for empty diffs.
Chong Yidong [Sat, 20 Oct 2012 12:04:45 +0000 (20:04 +0800)]
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
12 years agoFix for Eshell's for loop.
Chong Yidong [Sat, 20 Oct 2012 11:54:24 +0000 (19:54 +0800)]
Fix for Eshell's for loop.

* eshell/esh-cmd.el (eshell-rewrite-for-command): Copy the body
list explicitly.

Fixes: debbugs:12571
12 years agoFix last ChangeLog entry.
Chong Yidong [Sat, 20 Oct 2012 11:35:05 +0000 (19:35 +0800)]
Fix last ChangeLog entry.

12 years ago* progmodes/flymake.el (flymake-create-temp-inplace): Use file-truename.
Arne Jørgensen [Sat, 20 Oct 2012 11:34:06 +0000 (19:34 +0800)]
* progmodes/flymake.el (flymake-create-temp-inplace): Use file-truename.

Patch from:
http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00444.html

12 years agoFix bug #12395 with doc strings silently omitted from DOC on MS-Windows.
Eli Zaretskii [Sat, 20 Oct 2012 10:01:19 +0000 (12:01 +0200)]
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.

12 years agocalc/calc-units.el (math-extract-units): Properly extract powers of units.
Jay Belanger [Sat, 20 Oct 2012 04:14:32 +0000 (23:14 -0500)]
calc/calc-units.el (math-extract-units): Properly extract powers of units.

12 years agoUnbreak starting an X11 frame from a non-X11 Emacs daemon
Daniel Colascione [Sat, 20 Oct 2012 03:42:02 +0000 (19:42 -0800)]
Unbreak starting an X11 frame from a non-X11 Emacs daemon

12 years agoUndo faccessat change.
Paul Eggert [Fri, 19 Oct 2012 19:25:18 +0000 (12:25 -0700)]
Undo faccessat change.

12 years ago* lisp/minibuffer.el (minibuffer-force-complete): Make the next completion use
Stefan Monnier [Fri, 19 Oct 2012 18:59:36 +0000 (14:59 -0400)]
* lisp/minibuffer.el (minibuffer-force-complete): Make the next completion use
the same completion-field (bug@12221).

12 years agoNew files from gnulib.
Paul Eggert [Fri, 19 Oct 2012 17:14:00 +0000 (10:14 -0700)]
New files from gnulib.

Fixes: debbugs:12632
12 years agoUse faccessat, not access, when checking file permissions.
Paul Eggert [Fri, 19 Oct 2012 16:52:02 +0000 (09:52 -0700)]
Use faccessat, not access, when checking file permissions.

* .bzrignore: Add lib/fcntl.h.
* configure.ac (euidaccess): Remove check; gnulib does this for us now.
(gl_FCNTL_O_FLAGS): Define a dummy version.
* lib/at-func.c, lib/euidaccess.c, lib/faccessat.c, lib/fcntl.in.h:
* lib/getgroups.c, lib/group-member.c, lib/root-uid.h:
* lib/xalloc-oversized.h, m4/euidaccess.m4, m4/faccessat.m4:
* m4/fcntl_h.m4, m4/getgroups.m4, m4/group-member.m4:
New files, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Add faccessat.
(GNULIB_TOOL_FLAGS): Avoid at-internal, fchdir, malloc-posix,
openat-die, openat-h, save-cwd.  Do not avoid fcntl-h.
Omit gnulib's m4/fcntl-o.m4.
* nt/inc/ms-w32.h (AT_FDCWD, AT_EACCESS): New symbols.
(access): Remove.
(faccessat): New macro.
* src/Makefile.in (LIB_EACCESS): New macro.
(LIBES): Use it.
* src/callproc.c (init_callproc):
* src/charset.c (init_charset):
* src/fileio.c (check_existing, check_executable):
* src/lread.c (openp, load_path_check):
* src/process.c (allocate_pty):
* src/xrdb.c (file_p):
Use faccessat, not access or euidaccess.  Use symbolic names
instead of integers for the flags, as they're portable now.
* src/charset.c, src/xrdb.c: Include <fcntl.h>, for the new flags used.
* src/fileio.c (Ffile_readable_p):
Use faccessat, not stat + open + close.
(file_directory_p): New function, which uses 'stat' on most places
but 'access' (for efficiency) if WINDOWSNT.
* src/fileio.c (Ffile_directory_p, Fset_file_times):
* src/xrdb.c (file_p): Use file_directory_p.
* src/lisp.h (file_directory_p): New decl.
* src/lread.c (openp): When opening a file, use fstat rather than
stat, as that avoids a permissions race.  When not opening a file,
use file_directory_p rather than stat.
* src/process.c, src/sysdep.c, src/term.c: All uses of '#ifdef O_NONBLOCK'
changed to '#if O_NONBLOCK', to accommodate gnulib O_* tyle.
* src/w32.c (sys_faccessat): Rename from sys_access and switch to
faccessat's API.  All uses changed.

Fixes: debbugs:12632
12 years agosrc/ChangeLog: Fix changers name.
Kenichi Handa [Fri, 19 Oct 2012 13:02:52 +0000 (22:02 +0900)]
src/ChangeLog: Fix changers name.

12 years agofont.c (Ffont_at): Fix previous change.
Kenichi Handa [Fri, 19 Oct 2012 12:59:42 +0000 (21:59 +0900)]
font.c (Ffont_at): Fix previous change.

12 years agoIncrease the value of BASE_PURESIZE to avoid pure space overflow.
Eli Zaretskii [Fri, 19 Oct 2012 10:05:09 +0000 (12:05 +0200)]
Increase the value of BASE_PURESIZE to avoid pure space overflow.

 src/puresize.h (BASE_PURESIZE): Bump the base value to 1700000.  See
 http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00593.html
 for the reasons.

12 years agoIn debug record height of debugger window also when debugger will be back (Bug#8789).
Martin Rudalics [Fri, 19 Oct 2012 09:28:50 +0000 (11:28 +0200)]
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).

12 years agoDecrease NSTATICS to 0x800.
Eli Zaretskii [Fri, 19 Oct 2012 06:43:12 +0000 (08:43 +0200)]
Decrease NSTATICS to 0x800.

12 years ago* src/fns.c (Fnreverse): Include the problem element when signalling an error.
Stefan Monnier [Fri, 19 Oct 2012 00:54:35 +0000 (20:54 -0400)]
* src/fns.c (Fnreverse): Include the problem element when signalling an error.

Fixes: debbugs:12677
12 years agoFix how gdb-mi calls display-buffer to avoid switching frames.
Chong Yidong [Thu, 18 Oct 2012 19:46:18 +0000 (03:46 +0800)]
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
12 years ago* nsterm.m (ns_select): Check writefds before call to
Jan Djärv [Thu, 18 Oct 2012 18:54:37 +0000 (20:54 +0200)]
* nsterm.m (ns_select): Check writefds before call to
FD_ISSET.

Fixes: debbugs:12668
12 years agoFix wording of error message in staticpro.
Eli Zaretskii [Thu, 18 Oct 2012 18:21:55 +0000 (20:21 +0200)]
Fix wording of error message in staticpro.

12 years agoIncrease NSTATICS; tell the user when we run out of static slots.
Daniel Colascione [Thu, 18 Oct 2012 17:00:08 +0000 (09:00 -0800)]
Increase NSTATICS; tell the user when we run out of static slots.

12 years ago* lisp/erc/erc-backend.el: Require `erc' instead of autoloading its macros.
Stefan Monnier [Thu, 18 Oct 2012 15:51:28 +0000 (11:51 -0400)]
* lisp/erc/erc-backend.el: Require `erc' instead of autoloading its macros.

Fixes: debbugs:12669
12 years ago* lisp/emacs-lisp/advice.el: Clean up commentary a bit.
Stefan Monnier [Thu, 18 Oct 2012 15:37:57 +0000 (11:37 -0400)]
* 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.

12 years ago* lisp/emacs-lisp/gv.el (cond): Same fix as before for `if'.
Stefan Monnier [Thu, 18 Oct 2012 12:56:10 +0000 (08:56 -0400)]
* lisp/emacs-lisp/gv.el (cond): Same fix as before for `if'.
* Makefile.in ($(MAKEFILE_NAME)): Depend on src/lisp.mk as well.

12 years ago* lisp/erc/erc-backend.el (erc-with-server-buffer): Autoload as well.
Stefan Monnier [Thu, 18 Oct 2012 12:49:18 +0000 (08:49 -0400)]
* lisp/erc/erc-backend.el (erc-with-server-buffer): Autoload as well.

Fixes: debbugs:12669
12 years agoIn window.c fix two flaws reported by Dmitry Antipov.
Martin Rudalics [Thu, 18 Oct 2012 08:27:49 +0000 (10:27 +0200)]
In window.c fix two flaws reported by Dmitry Antipov.

* window.c (Ftemp_output_buffer_show): Remove.
(Fwindow_vscroll, Fset_window_vscroll): Use decode_live_window.
(syms_of_window): Remove defsubr for Stemp_output_buffer_show.

12 years ago* dired.el (dired-sort-toggle): Some ls implementations only allow
Glenn Morris [Thu, 18 Oct 2012 03:50:15 +0000 (20:50 -0700)]
* dired.el (dired-sort-toggle): Some ls implementations only allow
a single option string.

Fixes: debbugs:12666
12 years ago* lisp/minibuffer.el (completion-cycle-threshold): Doc fix
Glenn Morris [Thu, 18 Oct 2012 03:30:04 +0000 (20:30 -0700)]
* lisp/minibuffer.el (completion-cycle-threshold): Doc fix

12 years ago* doc/emacs/mini.texi (Completion Options): Fix off-by-one error
Dani Moncayo [Thu, 18 Oct 2012 03:27:17 +0000 (20:27 -0700)]
* doc/emacs/mini.texi (Completion Options): Fix off-by-one error

Fixes: debbugs:12644
12 years agomerge trunk
Kenichi Handa [Thu, 18 Oct 2012 00:00:39 +0000 (09:00 +0900)]
merge trunk

12 years agointernational/mule.el (set-keyboard-coding-system): Recover input meta mode when...
Kenichi Handa [Wed, 17 Oct 2012 23:59:24 +0000 (08:59 +0900)]
international/mule.el (set-keyboard-coding-system): Recover input meta mode when the new coding system doesn not use 8-bit.  Supply TERMINAL arg to set-input-meta-mode.

12 years agoAvoid compiler warnings in lib-src/ntlib.c
Eli Zaretskii [Wed, 17 Oct 2012 21:13:20 +0000 (23:13 +0200)]
Avoid compiler warnings in lib-src/ntlib.c

 src/ntlib.c: Include <mbstring.h>, to avoid compiler warning about
 _mbspbrk.