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

99355 Commits

Author SHA1 Message Date
Jay Belanger
1fe275ee28 * calc/calc-menu.el (calc-units-menu): Add entries for logarithmic
units and musical notes.
2011-03-20 15:59:29 -05:00
Juanma Barranquero
45b6f6d5cb src/minibuf.c: Fix previous change.
* minibuf.c (Vcompleting_read_function): Don't declare, global variables
  are now in src/globals.h.
  (syms_of_minibuf): Remove spurious & from previous change.
2011-03-20 14:57:22 +01:00
Leo Liu
3ec03f7e46 New variable completing-read-function to customize completing-read 2011-03-20 18:35:27 +08:00
Christian Ohler
7d476bdec5 * emacs-lisp/ert.el (ert-run-tests-batch): Remove unused variable.
(ert-delete-all-tests): Use `called-interactively-p' rather than
`interactive-p'.
(ert--make-xrefs-region): Respect END.
2011-03-20 21:17:10 +11:00
Chong Yidong
ff854b0bde Add error for dired-create-directory on existing file (Bug#8246).
* lisp/dired-aux.el (dired-create-directory): Signal an error if the
directory already exists.
2011-03-19 18:07:41 -04:00
Chong Yidong
fe0fb33e83 Fix facemenu to populate buffer inside the with-help-window call.
See http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01193.html

* facemenu.el (list-colors-display): Call list-faces-display from
inside with-help-window.
(list-colors-print): Use display property to align the final
column, instead of checking window-width.
2011-03-19 17:37:21 -04:00
Chong Yidong
b14e3e21ec Merge changes from emacs-23 branch 2011-03-19 14:49:31 -04:00
Chong Yidong
4525ce3eb5 Fix tar package handling, and clean up package-subdirectory-regexp usage.
* lisp/startup.el (package-subdirectory-regexp): Move from package.el.
Omit \\` and \\', and let callers add them.

* lisp/emacs-lisp/package.el (package-strip-version)
(package-load-all-descriptors): Add \\` and \\' to
package-subdirectory-regexp before using it.
(package-untar-buffer): New arg DIR; ensure that file untars only
into this expected directory.  Remove superfluous delete-region.
(package-unpack): Caller changed.
(package-tar-file-info): Use package-subdirectory-regexp.
2011-03-19 14:27:55 -04:00
Chong Yidong
20f5695598 Backport fix for Bug#8219 from trunk.
* buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
(BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
These macros can no longer be used for assignment.

* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
struct members directly, instead of using BUF_BEGV etc.
(record_buffer_markers, fetch_buffer_markers): New functions for
recording and fetching special buffer markers.
(set_buffer_internal_1, set_buffer_temp): Use them.

* lread.c (unreadchar): Use SET_BUF_PT_BOTH.

* insdel.c (adjust_point): Use SET_BUF_PT_BOTH.

* intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
(get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.

* xdisp.c (hscroll_window_tree):
(reconsider_clip_changes): Use PT instead of BUF_PT.
2011-03-19 12:42:53 -04:00
Eli Zaretskii
576bce3267 Fix emerge.el on MS-Windows and MS-DOS.
lisp/emerge.el (emerge-metachars): Separate value for ms-dos and
 windows-nt systems.
 (emerge-protect-metachars): Quote correctly for ms-dos and
 windows-nt systems.
2011-03-19 11:30:56 +02:00
Juanma Barranquero
0a19a6f875 Fix typos. 2011-03-19 04:58:45 +01:00
Juanma Barranquero
f2b726e626 src/makefile.w32-in: Update dependencies. 2011-03-19 04:22:14 +01:00
Julien Danjou
06e9c2d94e gnus-util.el (gnus-buffer-live-p): Simplify gnus-buffer-live-p.
(gnus-buffer-live-p): Check that buffer is not nil.
2011-03-19 00:48:04 +00:00
Stefan Monnier
a904a09a8b * vc/diff-mode.el (diff-mode-map): Shadow problematic bindings from
diff-mode-shared-map.
(diff-mode-shared-map): Re-introduce some bindings that were problematic.

Fixes: debbugs:8284
2011-03-18 15:52:05 -04:00
Gnus developers
1518e4f02d Merge changes made in Gnus trunk.
message.texi (Various Commands): Document format specs in the ellipsis.
time-date.el (format-seconds): Use assoc instead of assoc-string to avoid warning on XEmacs.
gnus-art.el: Require mouse, which the build bot seems to say is needed.
gravatar.el (gravatar-retrieve-synchronously): Use `url-retrieve' on XEmacs, since it doesn't have url-retrieve-synchronously.
time-date.el (format-seconds): Use assoc instead of assoc-string, since assoc-string doesn't exist in XEmacs.
gnus-group.el (gnus-group-list-ticked): New function.
 (gnus-group-make-menu-bar): Provide a menu entry for it.
 (gnus-group-list-map): Provide a binding for it.
shr.el (shr-visit-file): New command.
nnimap.el (nnimap-fetch-inbox): Rewrite slightly last patch.
nnimap.el (nnimap-fetch-inbox): Don't download bodies on ver4-capable servers.
2011-03-18 13:45:04 +00:00
Paul Eggert
fffe2e1404 Restore failure returns to unexaix.c, unexcoff.c, unexcw.c 2011-03-17 13:18:59 -07:00
Eli Zaretskii
09f6ff021c Update MS-Windows dependencies after 2011-03-17T18:41:30Z!eggert@cs.ucla.edu.
src/makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
2011-03-17 21:55:40 +02:00
Paul Eggert
381259ef0d Change unexec implementations to match prototype. 2011-03-17 11:41:30 -07:00
Paul Eggert
a3a6c54ec7 Merge: Fix more problems found by GCC 4.5.2's static checks. 2011-03-17 09:51:42 -07:00
Paul Eggert
b1d876f1a1 Merge from mainline. 2011-03-17 09:32:03 -07:00
Juanma Barranquero
45763476fc src/xfaces.c (Fx_load_color_file): Read color file from absolute filename.
Fixes: debbugs:8250
2011-03-17 16:44:02 +01:00
Julien Danjou
d6cd56f187 mm-uu.el (mm-uu-dissect-text-parts): Only dissect handle that are inline.
gnus-art.el (article-hide-list-identifiers): Use gnus-group-get-list-identifiers.
* gnus-sum.el (gnus-group-get-list-identifiers): New function.
 (gnus-summary-remove-list-identifiers): Use gnus-group-get-list-identifiers to get regexp.
 (gnus-select-newsgroup, gnus-summary-insert-subject, gnus-summary-insert-articles): Call gnus-summary-remove-list-identifiers unconditionally.
2011-03-17 11:30:27 +00:00
Paul Eggert
b766f86726 * process.c (make_serial_process_unwind, send_process_trap):
(sigchld_handler): Now static.
2011-03-16 22:18:33 -07:00
Paul Eggert
be02381c5d * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
That way, the code declares only the vars that it needs.
* s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
* s/cygwin.h (PTY_ITERATION): Likewise.
* s/darwin.h (PTY_ITERATION): Likewise.
* s/gnu-linux.h (PTY_ITERATION): Likewise.
2011-03-16 22:15:08 -07:00
Paul Eggert
5704874403 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
* process.c (allocate_pty): Don't declare stb unless it's needed.
2011-03-16 19:36:27 -07:00
Juanma Barranquero
171fc304ac lisp/custom.el: Trivial fixes.
* custom.el (custom-known-themes): Reflow docstring.
  (custom-theme-load-path): Fix typo in docstring.
  (load-theme): Fix typo in error message.
  (custom-available-themes, custom-variable-theme-value):
  Use `let', not `let*'.
2011-03-17 03:30:27 +01:00
Jay Belanger
580b66d801 * lisp/calc-units.el (calcFunc-lupquant): Rename from
`calcFunc-pquant' (fixing previous commit).
  (calcFunc-lufquant): Rename from `calcFunc-fquant'
  (fixing previous commit).

* lisp/calc/calc-ext.el (calc-init-extensions): Update the names of the
  functions being autoloaded.
2011-03-16 21:25:36 -05:00
Paul Eggert
615f2d59a5 * bytecode.c (CONSTANTLIM): Remove; unused.
(METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
Define only if needed.
2011-03-16 19:18:00 -07:00
Paul Eggert
7914961cd7 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else". 2011-03-16 19:11:29 -07:00
Paul Eggert
73366a004b * unexelf.c (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused. 2011-03-16 19:09:36 -07:00
Paul Eggert
9ae7151257 * unexelf.c: Use a different way to cause a compilation error if anyone uses
n rather than nn, a way that does not involve shadowing.
2011-03-16 19:07:47 -07:00
Paul Eggert
b3967b18cd * unexelf.c (unexec): Name an expression,
to avoid gcc -Wbad-function-cast warning.
2011-03-16 18:52:35 -07:00
Paul Eggert
43cfc33e3d Add Bug#. 2011-03-16 18:49:15 -07:00
Jay Belanger
d71990a1e4 * lisp/calc/README: Mention musical notes.
* lisp/calc-units.el (calc-lu-quant): Rename from 
  `calc-logunits-quantity'. 
  (calcFunc-lupquant): Rename from `calcFunc-powerquant'.
  (calcFunc-lufquant): Rename from `calcFunc-fieldquant'.
  (calc-db): Rename from `calc-dblevel'.
  (calcFunc-dbpower): Rename from `calcFunc-dbpowerlevel'.
  (calcFunc-dbfield): Rename from `calcFunc-dbfieldlevel'.
  (calc-np): Rename from `calc-nplevel'.
  (calcFunc-nppower): Rename from `calcFunc-nppowerlevel'.
  (calcFunc-npfield): Rename from `calcFunc-npfieldlevel'.
  (calc-lu-plus): Rename from `calc-logunits-add'.
  (calcFunc-lupadd): Rename from `calcFunc-lupoweradd'.
  (calcFunc-lufadd): Rename from `calcFunc-lufieldadd'.
  (calc-lu-minus): Rename from `calc-logunits-sub'.
  (calcFunc-lupsub): Rename from `calcFunc-lupowersub'.
  (calcFunc-lufsub): Rename from `calcFunc-lufieldsub'.
  (calc-lu-times): Rename from `calc-logunits-mul'.
  (calcFunc-lupmul): Rename from `calcFunc-lupowermul'.
  (calcFunc-lufmul): Rename from `calcFunc-lufieldmul'.
  (calc-lu-divide): Rename from `calc-logunits-div'.
  (calcFunc-lupdiv): Rename from `calcFunc-lupowerdiv'.
  (calcFunc-lufdiv): Rename from `calcFunc-lufielddiv'.

* lisp/calc/calc-ext.el (calc-init-extensions): Update the names of the
  functions being autoloaded.

* lisp/calc/calc.el   (calc-lu-power-reference): Rename from
  `calc-logunits-power-reference'. 
  (calc-lu-field-reference): Rename from
  `calc-logunits-field-reference'. 

* lisp/calc/calc-help (calc-l-prefix-help): Mention musical note functions.

* doc/misc/calc.texi (Logarithmic Units): Update the function names.
2011-03-16 20:30:08 -05:00
Stefan Monnier
40c2934bb8 * lisp/minibuffer.el (completion-all-sorted-completions):
Use :completion-cycle-penalty text property if present.
2011-03-16 20:43:54 -04:00
Paul Eggert
29a6015ab3 * deps.mk (unexalpha.o): Remove; unused. 2011-03-16 17:22:09 -07:00
Paul Eggert
7feda0d218 * unexec.h: New file. 2011-03-16 17:03:31 -07:00
Paul Eggert
ce701a3393 New file unexec.h, the (simple) interface for unexec.
* deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
(unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
Depend on unexec.h.
* emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
* unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
* unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
2011-03-16 16:59:54 -07:00
Paul Eggert
4f63c6bb76 * syntax.c (back_comment, skip_chars): Mark vars as initialized. 2011-03-16 14:47:59 -07:00
Paul Eggert
01f44d5a68 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
shadowing.
2011-03-16 14:43:38 -07:00
Paul Eggert
0902fe4540 * lread.c (Fload, readevalloop, read1): Rename locals to avoid shadowing. 2011-03-16 14:40:51 -07:00
Paul Eggert
a6670b0ba2 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
Rename locals to avoid shadowing.
2011-03-16 14:34:32 -07:00
Paul Eggert
cef2010db4 * lread.c (read1): Rewrite so as not to use empty "else". 2011-03-16 14:29:13 -07:00
Paul Eggert
d4d7173a91 * print.c (Fredirect_debugging_output): Fix pointer signedess. 2011-03-16 14:28:29 -07:00
Paul Eggert
f08b802adc * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
warning when compiling print.c.
2011-03-16 14:27:03 -07:00
Paul Eggert
5ad03b978f * font.c (font_sort_entities): Mark var as initialized. 2011-03-16 14:23:37 -07:00
Paul Eggert
3ddb063971 * font.c (font_unparse_fcname): Abort in an "impossible" situation
instead of using an uninitialized var.
2011-03-16 14:14:06 -07:00
Ken Manheimer
b091141444 * allout.el (allout-yank-processing): Adjust for new rebulleting regime so
bullet being yanked is used without prompting the user for a choice.
2011-03-16 15:03:06 -04:00
Stefan Monnier
fb103ca9a7 * src/print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
(print_preprocess, print_object): New macro to fix last change.
2011-03-16 13:34:26 -04:00
Stefan Monnier
e4021ec1d7 * strings.texi (String Conversion): Don't mention string-make-(uni|multi)byte.
* nonascii.texi (Converting Representations): Fix up range.
* keymaps.texi (Key Binding Commands): Update code point, avoid
"unibyte character" and remove mention of unibyte bindings.

Fixes: debbugs:8262
2011-03-16 10:54:21 -04:00