summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use `quit-window' to restore configuration before xrefscratch/xrefDmitry Gutov2015-01-062-15/+45
| | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref--display-history): New variable. (xref--window-configuration): Remove. (xref--history-pushnew): New function. (xref--display-position): Use `xref--history-pushnew'. Add new argument. (xref--restore-window-configuration): Remove. (xref--show-location, xref-show-location-at-point): Update accordingly. (xref--xref-buffer-mode): Don't use `pre-command-hook'. (xref--quit): New command. (xref--xref-buffer-mode-map): Bind `q' to it.
* Add help-echo to xrefsDmitry Gutov2015-01-062-1/+7
| | | | | * lisp/progmodes/xref.el (xref--insert-xrefs): Add `help-echo' property to the references.
* * lisp.h (XSYMBOL): Parenthesize id in forward decl.Paul Eggert2015-01-052-2/+8
| | | | | Needed when neither optimizing nor inlining. Also, sort decls alphabetically.
* MS-Windows followup to previous commitEli Zaretskii2015-01-0511-83/+8
| | | | | | | src/w32proc.c, src/w32.h, src/w32fns.c, src/w32font.c, src/w32menu.c: src/w32notify.c, src/w32proc.c, src/w32select.c, src/w32term.c: src/w32uniscribe.c: Remove declarations of Q* variables that represent symbols.
* Use 0 for QnilPaul Eggert2015-01-054-19/+71
| | | | | | | | | | | | | | | | | | | | Fixes Bug#15880. If USE_LSB_TAG, arrange for the representation of Qnil to be zero so that NILP (x) is equivalent to testing whether x is 0 at the machine level. The overall effects of this and the previous patch shrink the size of the text segment by 2.3% and speeds up compilation of all the .elc files by about 0.5% on my platform, which is Fedora 20 x86-64. * lib-src/make-docfile.c (compare_globals): * src/lisp.h (lisp_h_XPNTR, lisp_h_XSYMBOL, lisp_h_XUNTAG) (make_lisp_symbol) [USE_LSB_TAG]: Symbols now tag the difference from lispsym, not the pointer. (lisp_h_XUNTAGBASE, TAG_SYMPTR): New macros. (Lisp_Int0, Lisp_Int1, Lisp_Symbol, Lisp_Misc, Lisp_String, Lisp_Cons): Renumber so that Lisp_Symbol is 0, so that Qnil is zero. (XSYMBOL): New forward decl. (XUNTAGBASE): New function. (XUNTAG): Use it.
* Compute C decls for DEFSYMs automaticallyPaul Eggert2015-01-0594-1980/+1017
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes Bug#15880. This patch also makes Q constants (e.g., Qnil) constant addresses from the C point of view. * make-docfile.c: Revamp to generate table of symbols, too. Include <stdbool.h>. (xstrdup): New function. (main): Don't process the same file twice. (SYMBOL): New constant in enum global_type. (struct symbol): Turn 'value' member into a union, either v.value for int or v.svalue for string. All uses changed. (add_global): New arg svalue, which overrides value, so that globals can have a string value. (close_emacs_global): New arg num_symbols; all uses changed. Output lispsym decl. (write_globals): Output symbol globals too. Output more ATTRIBUTE_CONST, now that Qnil etc. are C constants. Output defsym_name table. (scan_c_file): Move most of guts into ... (scan_c_stream): ... new function. Scan for DEFSYMs and record symbols found. Don't read past EOF if file doesn't end in newline. * alloc.c, bidi.c, buffer.c, bytecode.c, callint.c, casefiddle: * casetab.c, category.c, ccl.c, charset.c, chartab.c, cmds.c, coding.c: * composite.c, data.c, dbusbind.c, decompress.c, dired.c, dispnew.c: * doc.c, editfns.c, emacs.c, eval.c, fileio.c, fns.c, font.c, fontset.c: * frame.c, fringe.c, ftfont.c, ftxfont.c, gfilenotify.c, gnutls.c: * image.c, inotify.c, insdel.c, keyboard.c, keymap.c, lread.c: * macfont.m, macros.c, minibuf.c, nsfns.m, nsfont.m, nsimage.m: * nsmenu.m, nsselect.m, nsterm.m, print.c, process.c, profiler.c: * search.c, sound.c, syntax.c, term.c, terminal.c, textprop.c, undo.c: * window.c, xdisp.c, xfaces.c, xfns.c, xftfont.c, xmenu.c, xml.c: * xselect.c, xsettings.c, xterm.c: Remove Q vars that represent symbols (e.g., Qnil, Qt, Qemacs). These names are now defined automatically by make-docfile. * alloc.c (init_symbol): New function. (Fmake_symbol): Use it. (c_symbol_p): New function. (valid_lisp_object_p, purecopy): Use it. * alloc.c (marked_pinned_symbols): Use make_lisp_symbol instead of make_lisp_ptr. (garbage_collect_1): Mark lispsym symbols. (CHECK_ALLOCATED_AND_LIVE_SYMBOL): New macro. (mark_object): Use it. (sweep_symbols): Sweep lispsym symbols. (symbol_uses_obj): New function. (which_symbols): Use it. Work for lispsym symbols, too. (init_alloc_once): Initialize Vpurify_flag here; no need to wait, since Qt's address is already known now. (syms_of_alloc): Add lispsym count to symbols_consed. * buffer.c (init_buffer_once): Compare to Qnil, not to make_number (0), when testing whether storage is all bits zero. * dispextern (struct image_type): * font.c (font_property_table): * frame.c (struct frame_parm_table, frame_parms): * keyboard.c (scroll_bar_parts, struct event_head): * xdisp.c (struct props): Use XSYMBOL_INIT (Qfoo) and struct Lisp_Symbol * rather than &Qfoo and Lisp_Object *, since Qfoo is no longer an object whose address can be taken. All uses changed. * eval.c (run_hook): New function. Most uses of Frun_hooks changed to use it, so that they no longer need to take the address of a Lisp sym. (syms_of_eval): Don't use DEFSYM on Vrun_hooks, as it's a variable. * frame.c (syms_of_frame): Add defsyms for the frame_parms table. * keyboard.c (syms_of_keyboard): Don't DEFSYM Qmenu_bar here. DEFSYM Qdeactivate_mark before the corresponding var. * keymap.c (syms_of_keymap): Use DEFSYM for Qmenu_bar and Qmode_line instead of interning their symbols; this avoids duplicates. (LISP_INITIALLY, TAG_PTR) (DEFINE_LISP_SYMBOL_BEGIN, DEFINE_LISP_SYMBOL_END, XSYMBOL_INIT): New macros. (LISP_INITIALLY_ZERO): Use it. (enum symbol_interned, enum symbol_redirect, struct Lisp_Symbol) (EXFUN, DEFUN_ARGS_MANY, DEFUN_ARGS_UNEVALLED, DEFUN_ARGS_*): Move decls up, to avoid forward uses. Include globals.h earlier, too. (make_lisp_symbol): New function. (XSETSYMBOL): Use it. (DEFSYM): Now just a placeholder for make-docfile. * lread.c (DEFINE_SYMBOLS): Define, for globals.h. (intern_sym): New function, with body taken from old intern_driver. (intern_driver): Use it. Last arg is now Lisp integer, not ptrdiff_t. All uses changed. (define_symbol): New function. (init_obarray): Define the C symbols taken from lispsym. Use plain DEFSYM for Qt and Qnil. * syntax.c (init_syntax_once): No need to worry about Qchar_table_extra_slots.
* * lisp/minibuffer.el (completion-category-defaults): Default to nil.Stefan Monnier2015-01-053-7/+30
| | | | | (completion-category-defaults): New var. Set unicode-name to use substring completion.
* Add mouse interaction to xrefDmitry Gutov2015-01-052-1/+27
| | | | | | | * lisp/progmodes/xref.el (xref--button-map): New variable. (xref--mouse-2): New command. (xref--insert-xrefs): Add `mouse-face' and `keymap' properties to the inserted references.
* 'temacs -nw' should not call missing functionsPaul Eggert2015-01-045-4/+40
| | | | | | | | | | | | Without this patch, "temacs -nw" fails with the diagnostic "emacs: Symbol's function definition is void: frame-windows-min-size" and messes up the tty's state. * lib-src/make-docfile.c (write_globals): Declare Fframe_windows_min_size with ATTRIBUTE_CONST, too. Sort. * src/frame.c (Fframe_windows_min_size): New placeholder function. (syms_of_frame): Define it. * src/window.c (Fwindow__sanitize_window_sizes): New placeholder. (syms_of_window): Define it.
* * INSTALL: Mention 'make WERROR_CFLAGS='.Paul Eggert2015-01-042-1/+5
|
* * doc/lispref/files.texi: Fix xref typo.Paul Eggert2015-01-041-1/+1
|
* # ChangeLog fixesGlenn Morris2015-01-046-80/+74
|
* Clarify 'make info'Paul Eggert2015-01-032-5/+8
| | | | | | * Makefile.in (info): Use GNU make conditional rather than an '@' rule with a shell conditional, so that the builder can see the submake.
* Less 'make' chatter for oldXMenuPaul Eggert2015-01-032-3/+20
| | | | | | * Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0, am__v_GEN_1) (AM_V_at, am__v_at_, am__v_at_0, am__v_at_1): New macros. (libXMenu11.a): Use them.
* Less 'make' chatter for lwlibPaul Eggert2015-01-032-3/+20
| | | | | | * Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0, am__v_GEN_1) (AM_V_at, am__v_at_, am__v_at_0, am__v_at_1): New macros. (liblw.a): Use them.
* Less 'make' chatter for lisp dirPaul Eggert2015-01-034-18/+26
| | | | | | | | | | | | | | * lisp/Makefile.in (THEFILE): Define to be 'no-such-file' by default, to make it clearer that the caller must specify it. (compile-onefile): Remove, replacing by ... ($(THEFILE)c): ... new rule. This lets us use AM_V_GEN here. ($(THEFILE)c, .el.elc, $(MH_E_DIR)/mh-loaddefs.el) ($(TRAMP_DIR)/tramp-loaddefs.el, $(CAL_DIR)/cal-loaddefs.el) ($(CAL_DIR)/diary-loaddefs.el, $(CAL_DIR)/hol-loaddefs.el): Use AM_V_GEN to lessen 'make' chatter. (.el.elc): Omit duplicate comment. * src/Makefile.in (%.elc): Adjust to compile-onefile change in ../lisp/Makefile.in.
* Less 'make' chatter for lib-srcPaul Eggert2015-01-032-2/+7
| | | | * Makefile.in (blessmail): Less 'make' chatter here.
* Less 'make' chatter for leimPaul Eggert2015-01-032-6/+29
| | | | | | | | * Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_) (am__v_GEN_0, am__v_GEN_1, AM_V_at, am__v_at_, am__v_at_0) (am__v_at_1): New macros, from src/Makefile.in. (${leimdir}/quail/%.el, misc_convert, ${leimdir}/leim-list.el) (${leimdir}/ja-dic/ja-dic.el): Use them.
* Less 'make' chatter for admin/grammarsPaul Eggert2015-01-032-12/+33
| | | | | | | | | * grammars/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN) (am__v_GEN_, am__v_GEN_0, am__v_GEN_1, AM_V_at, am__v_at_) (am__v_at_0, am__v_at_1): New macros, from src/Makefile.in. (${bovinedir}/%-by.el, ${bovinedir}/scm-by.el) (${cedetdir}/semantic/%-wy.el, ${wisentdir}/%-wy.el) (${wisentdir}/javat-wy.el, ${cedetdir}/srecode/srt-wy.el): Use them.
* Less 'make' chatter for VCSWITNESSPaul Eggert2015-01-032-6/+10
| | | | | * Makefile.in (dirstate, VCSWITNESS): New macros. (src): Use them to lessen 'make' chatter.
* Less 'make' chatter in batch modePaul Eggert2015-01-037-9/+25
| | | | | | | | | * admin/unidata/unidata-gen.el (unidata-gen-files): * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads): * lisp/emacs-lisp/bytecomp.el (byte-compile-file): * lisp/files.el (save-buffer, basic-save-buffer): * lisp/international/quail.el (quail-update-leim-list-file): Don't output messages like "Generating ..." in batch mode.
* batch write-region no longer says "Wrote FOO"Paul Eggert2015-01-036-5/+26
| | | | | | | | This cuts down on 'make' chatter a bit. * doc/lispref/files.texi (Writing to Files): * etc/NEWS: Document this. * src/fileio.c (Fwrite_region): Don't output "Wrote /whatever/foo.elc" if noninteractive.
* Unbreak `mouse-action' property in text buttonsDmitry Gutov2015-01-042-1/+7
| | | | * lisp/button.el (push-button): Fix regression from 2012-12-06.
* Revert previous change to produce_composite_glyphPaul Eggert2015-01-032-1/+4
| | | | * term.c (produce_composite_glyph): Revert previous change (Bug#19496).
* Only show "Back" when the marker stack is non-emptyDmitry Gutov2015-01-033-0/+11
| | | | | | * lisp/menu-bar.el (menu-bar-goto-menu): Use it. * lisp/progmodes/xref.el (xref-marker-stack-empty-p): New function.
* Don't remap `next-line' and `previous-line' in xref keymapDmitry Gutov2015-01-032-13/+41
| | | | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref--window-configuration): New variable. (xref-show-location-at-point): New command. (xref--restore-window-configuration): New function. (xref-next-line, xref-prev-line): Delegate to `xref-show-location-at-point'. (xref--location-at-point): Don't signal the error. (xref-goto-xref): Do that here instead. (xref--xref-buffer-mode): Add `xref--restore-window-configuration' to `pre-command-hook'. (xref--xref-buffer-mode-map): Don't remap `next-line' and `previous-line'. Additionally bind `xref-next-line' and `xref-prev-line' to `n' and `p' respectively. Bind `xref-show-location-at-point' to `C-o'.
* Pacify gcc -WparenthesesPaul Eggert2015-01-032-1/+6
| | | | * frame.c (x_set_frame_parameters): Add parens (Bug#19428).
* Two fixes for setting up sizes of a new frame (Bug#19428).Martin Rudalics2015-01-033-2/+9
| | | | | | | * frame.c (x_set_frame_parameters): Call Fset_frame_size only if f->can_x_set_window_size is true. * xterm.c (x_set_window_size_1): Call change_frame_size with text sizes instead of pixel sizes (Bug#19428).
* ChangeLog fixesGlenn Morris2015-01-027-33/+49
|
* Auto-commit of loaddefs files.Glenn Morris2015-01-027-23/+23
|
* Less 'make' chatter for unidataPaul Eggert2015-01-012-17/+47
| | | | | | | | | | | | | * unidata/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_) (am__v_GEN_0, am__v_GEN_1, AM_V_at, am__v_at_, am__v_at_0, am__v_at_1): New macros, from ../src/Makefile.in. (${top_srcdir}/src/macuvs.h, %.elc, unidata.txt) (${unidir}/charprop.el, unifiles): Use them. (PHONY_EXTRAS): New macro. (.PHONY, ${unidir}/charprop.el): Use it. (FORCE): Remove; all uses replaced by PHONY_EXTRAS manipulation. (${unidir}/charprop.el, extraclean): Use 'make' conditionals rather than shell.
* Fix copyright years by handPaul Eggert2015-01-0197-106/+113
| | | | | | These are dates that admin/update-copyright did not update, or updated incorrectly. Also, back out the copyright-date change to doc/misc/texinfo.tex, as upstream hasn't updated that date yet.
* Update copyright year to 2015Paul Eggert2015-01-012127-2151/+2192
| | | | Run admin/update-copyright.
* * update-copyright (emacsver): Change to emacsver.tex.in.Paul Eggert2015-01-012-3/+7
|
* Merge from gnulib, incorporating:Paul Eggert2015-01-01225-224/+227
| | | | 2015-01-01 version-etc: new year
* Merge from origin/emacs-24Paul Eggert2015-01-0121-45/+180
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a5f90a3 * .gitattributes: New file. 5a9710f Make sure tool-bar changes are reflected on display. 93796ba * autogen.sh: Port better to non-GNU 'cp'. 9758516 Fix a typo in a comment in the previous commit. aa472a3 Fix the pixel coordinates returned by pos-visible-in-window-p. (Bug#19473) d261229 * automated/tramp-tests.el (tramp--test-smb-or-windows-nt-p): New defun. (tramp-test30-special-characters): Use it. (tramp--test-check-files): Filter nil file names out. 9278f05 Omit trailing white space 1c93fd3 Sync with Tramp 2.2.11. 96ebe18 Sync with Tramp 2.2.11. e792450 Sync with Tramp 2.2.11. 2d17e12 Fix ChangeLog entry. 6444482 Fix auto-revert-tail-mode for remote files b5c9c13 Spelling fixes c5504d1 src/w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458) Conflicts: ChangeLog doc/misc/ChangeLog lisp/ChangeLog src/ChangeLog test/ChangeLog
| * * .gitattributes: New file.Paul Eggert2015-01-012-0/+44
| |
| * Make sure tool-bar changes are reflected on display.Eli Zaretskii2015-01-012-2/+10
| | | | | | | | | | | | lisp/tool-bar.el (tool-bar-local-item) (tool-bar-local-item-from-menu): Call force-mode-line-update to make sure the tool-bar changes show on display.
| * * autogen.sh: Port better to non-GNU 'cp'.Paul Eggert2014-12-312-1/+6
| | | | | | | | Problem reported by Han Boetes.
| * Fix a typo in a comment in the previous commit.Eli Zaretskii2014-12-301-1/+1
| |
| * Fix the pixel coordinates returned by pos-visible-in-window-p. (Bug#19473)Eli Zaretskii2014-12-302-4/+24
| | | | | | | | | | src/xdisp.c (pos_visible_p): Fix up the X coordinate for right-to-left screen lines.
| * * automated/tramp-tests.el (tramp--test-smb-or-windows-nt-p):Michael Albinus2014-12-302-13/+25
| | | | | | | | | | | | New defun. (tramp-test30-special-characters): Use it. (tramp--test-check-files): Filter nil file names out.
| * Omit trailing white spacePaul Eggert2014-12-291-1/+0
| | | | | | | | This should simplify switching to automated ChangeLogs.
| * Sync with Tramp 2.2.11.Michael Albinus2014-12-292-1/+8
| | | | | | | | * trampver.texi: Update release number.
| * Sync with Tramp 2.2.11.Michael Albinus2014-12-292-4/+12
| | | | | | | | | | * automated/tramp-tests.el (tramp-test30-special-characters): Skip test on MS-Windows.
| * Sync with Tramp 2.2.11.Michael Albinus2014-12-294-3/+24
| | | | | | | | | | | | | | | | | | | | * net/tramp-compat.el (top): Require cl-macs for Emacs 22. Make an alias for `default-toplevel-value' if it doesn't exist. * net/tramp-smb.el (tramp-smb-handle-copy-directory): Use `tramp-compat-delete-directory'. * net/trampver.el: Update release number.
| * Fix ChangeLog entry.Michael Albinus2014-12-291-1/+2
| |
| * Fix auto-revert-tail-mode for remote filesFilipp Gunbin2014-12-292-9/+12
| | | | | | | | | | | | | | Fixes: debbugs:19449 * autorevert.el (auto-revert-handler): Fix auto-revert-tail-mode for remote files (bug#19449)
| * Spelling fixesPaul Eggert2014-12-284-8/+8
| |
| * src/w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458)Eli Zaretskii2014-12-282-1/+10
| |