Phil Hagelberg
bc44bef767
Add support for non-default package repositories.
...
* lisp/emacs-lisp/package.el (package-archive-base): Var deleted.
(package-archives): New variable.
(package-archive-contents): Doc fix.
(package-load-descriptor): Do nothing if descriptor file is
missing.
(package--write-file-no-coding): New function.
(package-unpack-single): Use it.
(package-archive-id): New function.
(package-download-single, package-download-tar)
(package-menu-view-commentary): Use it.
(package-installed-p): Make second argument optional.
(package-read-all-archive-contents): New function.
(package-initialize): Use it.
(package-read-archive-contents): Add ARCHIVE argument.
(package--add-to-archive-contents): New function.
(package-install): Don't call package-read-archive-contents.
(package--download-one-archive): Store archive file in a
subdirectory of package-user-dir.
(package-menu-execute): Remove spurious line movement.
* lisp/emacs-lisp/package.el (package-load-list, package-archives)
(package-archive-contents, package-user-dir)
(package-directory-list, package--builtins, package-alist)
(package-activated-list, package-obsolete-alist): Mark as risky.
2010-07-28 14:54:42 -04:00
Jan Djärv
8a52f00afa
Add tool bar style text-image-horiz (text to the left of the image).
...
* lisp/cus-start.el (tool-bar-style): Add text-image-horiz.
* src/gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
style text_image_horiz.
* src/lisp.h (Qtext_image_horiz): Declare.
* src/xdisp.c (Qtext_image_horiz): Define.
(syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
to ducumentation of tool-bar-style.
* src/xsettings.c (Ftool_bar_get_system_style): Also check for
Qtext_image_horiz.
2010-07-28 19:34:51 +02:00
Michael Albinus
3f2afe323e
* tramp.texi (Traces and Profiles): Describe verbose level 9.
2010-07-28 12:25:38 +02:00
Michael Albinus
b21d3ceb6f
* progmodes/gud.el (gud-common-init): Check for remoteness of
...
`file', and not of `default-directory'.
2010-07-28 12:08:16 +02:00
Michael Albinus
8fbcce2d5a
* net/tramp.el (tramp-methods): Move hostname to the end in all
...
ssh `tramp-login-args'.
(tramp-verbose): Describe verbose level 9.
(tramp-open-shell): Check for tty if `tramp-verbose' >= 9.
(tramp-open-connection-setup-interactive-shell): Trace stty
settings if `tramp-verbose' >= 9.
(tramp-handle-start-file-process): Implement tty setting.
(Bug#4604, Bug#6360)
* net/tramp-cmds.el (tramp-bug): Recommend setting of
`tramp-verbose' to 9.
2010-07-28 12:02:18 +02:00
Aaron S. Hawley
128440c97f
* emacs-lisp/re-builder.el: Remove references to package `lisp-re' (bug#4369).
2010-07-28 01:38:46 +02:00
Tom Tromey
ae0c249465
Derive programming modes from prog-mode.
...
* progmodes/js.el (js-mode):
* progmodes/make-mode.el (makefile-mode):
* progmodes/simula.el (simula-mode):
* progmodes/tcl.el (tcl-mode): Derive from prog-mode.
2010-07-27 18:37:25 +02:00
Dan Nicolaescu
6079970319
* src/emacs.c (Fkill_emacs): Remove return statement.
2010-07-27 01:02:44 -07:00
Dan Nicolaescu
37254dc10a
Remove declarations and unused variables.
...
* src/term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
(encode_terminal_code, produce_composite_glyph): Remove unused variables.
(set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
local extern declarations.
2010-07-26 21:20:51 -07:00
Dan Nicolaescu
71c7345a4d
* src/xmenu.c: Do not included lwlib.h, not needed.
2010-07-26 21:12:42 -07:00
Dan Nicolaescu
6ba577cbed
* src/m/iris4d.h (XUINT, XSET): Remove, not needed.
2010-07-26 21:03:14 -07:00
Dan Nicolaescu
fdb183d636
* src/process.c: Move definitions earlier to minimize #ifdefs.
2010-07-26 20:59:42 -07:00
Dan Nicolaescu
eec47d6ba4
Use const, move declarations to header files.
...
* src/buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
* src/character.c (strwidth, parse_str_to_multibyte): Add const.
* src/character.h (strwidth, parse_str_to_multibyte): Likewise.
* src/charset.c (add_to_log): Remove declaration.
* src/composite.c (syms_of_composite): Remove local extern declarations.
* src/data.c (Finteractive_form): Use const.
* src/dired.c (scmp): Add const.
(directory_files_internal): Remove local extern declaration.
* src/dispextern.h (add_to_log): Remove declaration.
(x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
(x_frame_get_and_record_arg, x_default_parameter): Add const.
* src/dispnew.c: Remove duplicate #include <unistd.h>.
(update_window, update_frame_1, init_display): Remove local extern
declarations.
* src/editfns.c (region_limit, syms_of_editfns): Remove local extern
declarations.
* src/emacs.c (main): Remove local extern declaration.
* src/font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
(QCheight, QCsize, QCname): Remove declarations.
* src/frame.c (x_get_resource_string, x_get_string_resource)
(x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
(x_default_parameter): Use const.
* src/image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
(QCdata, QCtype, Qcenter): Remove declarations.
* src/keyboard.h (do_mouse_tracking): Add declaration.
* src/minibuf.c (Qmouse_face): Remove declaration.
* src/msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
* src/xdisp.c (do_mouse_tracking): Remove declaration.
(add_to_log): Use const.
* src/xfaces.c (Qmouse_face): Remove declaration.
(face_color_gray_p, tty_defined_color, defined_color)
(face_color_gray_p, face_color_supported_p). Add const.
* src/xfns.c: Include xlwmenu.h when USE_LUCID.
(x_defined_color, xic_set_xfontset): Use const.
(Fx_hide_tip): Remove local extern declaration.
* src/xselect.c (selection_data_to_lisp_data)
(x_property_data_to_lisp):
* src/xrdb.c (x_get_string_resource, file_p)
(x_get_customization_string, magic_file_p, search_magic_path)
(get_system_app, get_user_app, x_load_resources, x_get_resource)
(x_get_string_resource): Use const.
* src/xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
(x_text_icon, x_check_errors, x_connection_closed): Use const.
* src/xterm.h (x_get_customization_string, x_load_resources)
(x_get_resource, x_text_icon, x_text_icon, x_check_errors)
(x_check_errors, x_property_data_to_lisp, defined_color)
(xic_set_xfontset, x_defined_color): Use const.
2010-07-26 20:52:35 -07:00
Dan Nicolaescu
89dc303eb6
* src/lisp.h (Fkill_emacs): Mark as NO_RETURN.
2010-07-26 19:45:53 -07:00
Juanma Barranquero
0ed082fedf
Merge from emacs-23
2010-07-27 04:10:05 +02:00
Juanma Barranquero
4ce5a4ccd4
* modes.texi (Defining Minor Modes): Use C-delete in examples (bug#6334).
2010-07-27 03:37:23 +02:00
Sam Steingold
aa2d4bd343
* lisp/mouse.el (mouse-yank-primary, mouse-yank-secondary):
...
Do not call `x-get-selection' the second time, reuse the value.
2010-07-26 15:05:47 -04:00
Dan Nicolaescu
977105dcbf
NO_RETURN functions should not return.
...
* keyboard.c (Ftop_level, Fexit_recursive_edit)
(Fabort_recursive_edit): Remove return statements in NO_RETURN
functions.
2010-07-26 10:11:43 -07:00
Dan Nicolaescu
f5ada8903b
* frame.h (Qtty_color_mode): Add declaration.
2010-07-26 09:57:19 -07:00
Michael Albinus
c48763bb79
* url-http (url-http-parse-headers): Disable file name handlers at
...
all (not only Tramp). (Bug#6717)
2010-07-26 15:19:32 +02:00
Juanma Barranquero
e29eb8cf27
src/ChangeLog: Add missing bug reference.
2010-07-26 12:09:02 +02:00
Dan Nicolaescu
ccaf03362b
Mark functions as NO_RETURN.
...
* src/lisp.h (Ftop_level, Fexit_recursive_edit)
(Fabort_recursive_edit): Mark as NO_RETURN.
2010-07-25 23:37:26 -07:00
Dan Nicolaescu
ef00b293f6
* lwlib/xlwmenu.h (xlwmenu_window_p, xlwmenu_redisplay): Add declarations.
2010-07-25 23:22:32 -07:00
Daiki Ueno
78b84da382
Add alternative key bindings to epa-mail.el.
...
* epa-mail.el (epa-mail-mode-map): Add alternative key bindings
which consist of control chars only. Suggested by Richard
Stallman.
2010-07-26 14:22:13 +09:00
Kenichi Handa
50efd41b43
merge trunk
2010-07-26 13:29:08 +09:00
Kenichi Handa
dfe3c90fa5
font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the number of glyphs gets smaller than the original length.
2010-07-26 13:28:02 +09:00
Juanma Barranquero
7d383292d1
* lread.c (unreadpure, mapatoms_1): Make static.
2010-07-26 02:43:58 +02:00
Christoph Scholtes
a2a0d36b5b
* minibuf.c (Fread_buffer): Doc fix (bug#6528).
2010-07-26 01:56:56 +02:00
Juanma Barranquero
da31e629b6
* terminfo.c (tparam): Fix prototype of tparm (followup to 2010-07-25T00:20:51Z!lekktu@gmail.com).
2010-07-25 21:30:14 +02:00
Andreas Schwab
dcc19aacb7
Use __executable_start to find start of text segment for profiling
...
* emacs.c (main) [PROFILING]: Use __executable_start if defined to
find start of text segment.
* dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
is defined.
* configure.in: Check for __executable_start.
2010-07-25 21:09:54 +02:00
Andreas Schwab
7bfa6d7793
* callproc.c (set_initial_environment): Avoid unbalanced braces.
2010-07-25 20:36:37 +02:00
Ken Brown
63f9a672cb
* vm-limit.c (check_memory_limits): Fix previous change; accidentally reverted an earlier change.
2010-07-25 10:13:30 -04:00
Ken Brown
2493307567
Cygwin build cleanup (Bug#6715).
...
* mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
* vm-limit.c: ...add 'defined (CYGWIN)' here.
2010-07-25 09:46:48 -04:00
Daiki Ueno
192cfe779a
Fix typo and comment.
2010-07-25 20:50:51 +09:00
Michael Albinus
4ac3a65cf1
* url-http (url-http-parse-headers): Disable Tramp. (Bug#6717)
2010-07-25 13:36:02 +02:00
Daiki Ueno
4f195cf704
Fix *.gpg file creation (bug#6723).
...
* epa-file.el (epa-file-insert-file-contents): Check if LOCAL-FILE
exists before passing an error to find-file-not-found-functions (bug#6723).
2010-07-25 20:23:43 +09:00
Katsumi Yamaoka
86fb10614e
Accept x-pkcs7-signature MIME type as signature.
...
2010-07-24 David Engster <dengste@eml.cc>
* mml-smime.el (mml-smime-epg-verify): Also accept the older
x-pkcs7-signature MIME type as signature (RFC 2311, C.1).
2010-07-25 10:29:49 +00:00
Christoph Scholtes
f8e0614ccb
Build binary distros on Windows using emacs-VERSION as root dir name.
...
* nt/makefile.w32-in: Copy README.W32 to installation directory
during `make install'. Remove README.W32 with `distclean' (in
case Emacs was installed in place). Use temporary directory to
create distribution zip files in `dist' target.
* nt/zipdist.bat: Simplify code using temporary directory.
2010-07-25 05:53:37 +02:00
Juanma Barranquero
35a7804dae
* emacsclient.c (getcwd): Fix previous change.
...
Make getcwd conditional on HAVE_GETCWD and declare with the
correct POSIX profile (for some reason MinGW headers define
its 2nd arg as int, not size_t; but getcwd is not used on
Windows nonetheless).
2010-07-25 05:36:54 +02:00
Christoph Scholtes
d24076a601
Added README.W32 to distclean. Updated Changelog.
2010-07-24 21:07:15 -06:00
Juanma Barranquero
361358ea12
Make building under stricter warning flags somewhat cleaner.
...
Flags used: -Wold-style-declaration -Wunused-function -Wstrict-prototypes
* lib-src/emacsclient.c (getcwd, w32_getenv):
* lib-src/ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.
* nt/runemacs.c (set_user_model_id): Fix prototype.
* src/callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
* src/dired.c (opendir, readdir): Fix prototypes.
* src/editfns.c (w32_get_internal_run_time): Fix prototypes.
* src/keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
* src/ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
(telldir): Remove declaration.
* src/ralloc.c (real_morecore, __morecore): Fix prototypes.
* src/sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
* src/syssignal.h (strsignal): Fix prototype.
* src/term.c (tparam): Fix prototype.
(term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
(term_get_fkeys): Set inside "#ifndef DOS_NT".
* src/vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
and __morecore.
* src/w32gui.h (XParseGeometry): Fix prototype.
* src/w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
* src/w32term.c (my_set_focus): Declare inside #if 0.
* src/w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
(w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
(drain_message_queue, get_next_msg, post_msg, parse_button)
(ClipboardSequence_Proc): Fix prototypes.
(wait_for_sync): Remove declaration.
2010-07-25 02:20:51 +02:00
Christoph Scholtes
7f86df5f42
Added ChangeLog entry for copying of README.W32.
2010-07-24 16:10:01 -06:00
Christoph Scholtes
5904117d3c
Fixed whitespace.
2010-07-24 16:07:04 -06:00
Ken Brown
12a251254b
Regenerate configure.
2010-07-24 18:06:03 -04:00
Christoph Scholtes
e0d6af9cc6
Code cleanup. Added ChangeLog entry.
2010-07-24 16:04:10 -06:00
Christoph Scholtes
4ad28e2787
Refactoring of make dist target
2010-07-24 15:35:36 -06:00
Juanma Barranquero
630b95924e
* w32fns.c (w32_to_x_color): Remove, unused.
2010-07-24 22:52:43 +02:00
Ken Brown
0c1085c507
* configure.in (LINKER, LIB_GCC): Remove cygwin special cases (Bug#6715)
2010-07-24 14:44:54 -04:00
Andreas Schwab
6a0d661142
* lisp.h: Remove leftover P_.
2010-07-24 20:15:40 +02:00
Dan Nicolaescu
68441b90e9
Add NO_RETURN specifiers to functions in lib-src.
...
* lib-src/update-game-score.c (usage): Add NO_RETURN specifier.
* lib-src/movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
* lib-src/make-docfile.c (fatal):
* lib-src/hexl.c (usage):
* lib-src/fakemail.c (fatal):
* lib-src/etags.c (fatal, suggest_asking_for_help, pfatal):
* lib-src/emacsclient.c (fatal):
* lib-src/b2m.c (fatal): Likewise.
2010-07-24 10:18:18 -07:00