1. 31 Aug, 2015 8 commits
    • Paul Eggert's avatar
      Treat “instead” strings as docstrings · 41ed99a3
      Paul Eggert authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-form):
      * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
      Substitute quotes in instead strings.
    • NicolasPetton's avatar
      Better documentation of seq-let · 8d76c007
      NicolasPetton authored
      * doc/lispref/sequences.texi (Sequence Functions): Rephrase the
      documentation of seq-let.
    • Paul Eggert's avatar
      * lisp/international/ccl.el: Fix quoting. · 6514fe88
      Paul Eggert authored
    • Paul Eggert's avatar
      Quoting fixes in lisp/international and lisp/leim · 9ffb6ce9
      Paul Eggert authored
      * lisp/international/ccl.el (ccl-dump, ccl-dump-call):
      * lisp/international/ja-dic-utl.el (skkdic-lookup-key):
      * lisp/international/mule-cmds.el:
      (select-safe-coding-system-interactively, leim-list-file-name):
      * lisp/international/quail.el (quail-use-package, quail-help):
      * lisp/international/titdic-cnv.el (tit-process-header)
      Respect text quoting style in doc strings and diagnostics.
      * lisp/international/quail.el (lisp/international/quail.el):
      * lisp/leim/quail/ethiopic.el ("ethiopic"):
      Escape apostrophes in doc strings.
    • Paul Eggert's avatar
      Make ‘text-quoting-style’ a plain defvar · d1729604
      Paul Eggert authored
      It doesn’t need customization, as it’s likely useful only by experts.
      Suggested by Stefan Monnier in:
      * lisp/cus-start.el: Remove doc.c section for builtin customized vars.
    • Paul Eggert's avatar
      Quoting fixes in lisp/textmodes · 2cac2e2e
      Paul Eggert authored
      * lisp/textmodes/bibtex.el (bibtex-validate)
      (bibtex-validate-globally, bibtex-search-entries):
      * lisp/textmodes/ispell.el (ispell-command-loop):
      * lisp/textmodes/page-ext.el (search-pages, pages-directory):
      * lisp/textmodes/texinfmt.el (texinfmt-version)
      (texinfo-format-region, texinfo-format-buffer-1):
      * lisp/textmodes/two-column.el (2C-split):
      Respect text quoting style in doc strings and diagnostics.
      * lisp/textmodes/conf-mode.el (conf-mode-map, conf-quote-normal):
      * lisp/textmodes/sgml-mode.el (sgml-specials, sgml-mode):
      Escape apostrophes in doc strings.
    • Paul Eggert's avatar
      Documentation fixes re quotes · b5335522
      Paul Eggert authored
      Prefer curved quotes in examples if users will typically see
      curved quotes when the examples run.
      Mention format-message when appropriate.
      Don’t use @code in examples.
      Quote an apostrophe with @kbd.
    • Paul Eggert's avatar
      Quoting fixes in lisp/progmodes · 4c24b9e3
      Paul Eggert authored
      * lisp/progmodes/cc-engine.el (c-bos-report-error):
      * lisp/progmodes/cpp.el (cpp-edit-reset):
      * lisp/progmodes/ebrowse.el (ebrowse-tags-apropos):
      * lisp/progmodes/etags.el (etags-tags-apropos-additional)
      (etags-tags-apropos, list-tags, tags-apropos):
      * lisp/progmodes/executable.el (executable-set-magic):
      * lisp/progmodes/octave.el (octave-sync-function-file-names)
      (octave-help, octave-find-definition-default-filename)
      Respect text quoting style in doc strings and diagnostics.
      * lisp/progmodes/cc-langs.el (c-populate-syntax-table):
      * lisp/progmodes/verilog-mode.el (verilog-auto-reset-widths):
      * lisp/progmodes/vhdl-mode.el (vhdl-electric-quote):
      Escape apostrophes in doc strings.
      * lisp/progmodes/cmacexp.el (c-macro-expansion):
      Use straight quoting in ASCII comment.
      * lisp/progmodes/idlwave.el (idlwave-auto-fill-split-string)
      * lisp/progmodes/vhdl-mode.el (vhdl-widget-directory-validate)
      (vhdl-electric-open-bracket, vhdl-electric-close-bracket):
      (vhdl-electric-semicolon, vhdl-electric-comma)
      (vhdl-electric-period, vhdl-electric-equal):
      Use directed quotes in diagnostics and doc strings.
  2. 30 Aug, 2015 5 commits
    • Xue Fuqiao's avatar
      Minor documentation and NEWS tweak · f665b49f
      Xue Fuqiao authored
      * doc/lispintro/emacs-lisp-intro.texi (fwd-para let): Add an index
    • Glenn Morris's avatar
      ; Auto-commit of ChangeLog files. · d987e6d6
      Glenn Morris authored
    • Michael Albinus's avatar
      * lisp/net/tramp-sh.el (tramp-convert-file-attributes): · cc90c25a
      Michael Albinus authored
      Revert patch from 2015-08-24.  Tramp shall be have like for local files.
      * test/automated/tramp-tests.el (tramp-test18-file-attributes):
      Adapt test.
    • Paul Eggert's avatar
      Text quoting fixes in cedet, emulation, emacs-lisp · 001c7dd9
      Paul Eggert authored
      * lisp/cedet/ede.el (ede-check-project-directory):
      * lisp/cedet/semantic/analyze/debug.el:
      * lisp/cedet/semantic/bovine/c.el (semantic-c-describe-environment):
      * lisp/cedet/semantic/decorate/include.el:
      * lisp/cedet/semantic/ia.el (semantic-ia-fast-jump):
      * lisp/emulation/edt.el (edt-load-keys):
      * lisp/emulation/viper-cmd.el:
      (viper-query-replace, viper-brac-function):
      * lisp/emulation/viper-ex.el (viper-get-ex-token, ex-compile):
      * lisp/emulation/viper-macs.el (viper-unrecord-kbd-macro):
      Respect text quoting style in doc string or diagnostic.
      * lisp/cedet/mode-local.el (describe-mode-local-overload):
      Use format-message to avoid overtranslating quotes.
      * lisp/emacs-lisp/checkdoc.el (checkdoc-in-sample-code-p):
      Escape an apostrophe in a docstring.
      * lisp/emacs-lisp/warnings.el (lwarn): Fix doc string.
    • Daniel Colascione's avatar
      Fix which-func for curly quotes: look for symbol, not message · 24ee55bf
      Daniel Colascione authored
      * lisp/progmodes/which-func.el (which-func-ff-hook): Look for new
      imenu-unavailable error symbol instead of trying to match message
      * lisp/imenu.el (imenu-unavailable): New error
      (imenu-unavailable-error): New function.
  3. 29 Aug, 2015 4 commits
    • Eli Zaretskii's avatar
      Fix Python tests on MS-Windows · 57e12057
      Eli Zaretskii authored
      * test/automated/python-tests.el
      (python-shell-calculate-command-1): Run python-shell-interpreter
      through shell-quote-argument before comparing with what
      python-shell-calculate-command returns.
      (python-shell-calculate-process-environment-2): Use path-separator
      instead of a literal ':'.
      (python-shell-with-environment-2): Run "/env/bin" through
      expand-file-name before comparing with exec-path.  (Bug#21375)
    • YAMAMOTO Mitsuharu's avatar
      Use Core Text types/functions/variables/enumerators directly · 5e5ee391
      YAMAMOTO Mitsuharu authored
      * src/macfont.h (FontDescriptorRef, FontRef, FontSymbolicTraits)
      (CharacterCollection): Remove typedefs.  All uses replaced with
      (MAC_FONT_SLANT_TRAIT): Remove macros.  All uses replaced with
      (MAC_CHARACTER_COLLECTION_ADOBE_JAPAN1): Remove enumerators.  All
      uses replaced with definitions.
      (kCTFontTraitItalic, kCTFontTraitBold, kCTFontTraitMonoSpace)
      (kCTFontTraitColorGlyphs, kCTCharacterCollectionIdentityMapping)
      (kCTCharacterCollectionAdobeJapan1 kCTFontOrientationDefault): Add
      compatibility enumerators for older versions.
      (mac_font_create_with_name, mac_font_get_size)
      (mac_font_copy_family_name, mac_font_copy_character_set)
      (mac_font_get_glyphs_for_characters, mac_font_get_ascent)
      (mac_font_get_descent, mac_font_get_leading)
      (mac_font_get_underline_thickness, mac_font_copy_graphics_font)
      (mac_font_copy_non_synthetic_table): Remove macros.  All uses
      replaced with definitions.
      (mac_font_create_available_families, mac_font_shape): Remove
      macros for renamed functions.
      (mac_nsctfont_copy_font_descriptor): Remove unused macro.
      * src/macterm.m (mac_font_descriptor_supports_languages): Rename
      from mac_ctfont_descriptor_supports_languages.
      (mac_font_create_preferred_family_for_attributes): Rename from
      (mac_font_get_advance_width_for_glyph): Rename from
      mac_ctfont_get_advance_width_for_glyph.  Use
      kCTFontOrientationDefault also for older versions.
      (mac_font_get_bounding_rect_for_glyph): Rename from
      mac_ctfont_get_bounding_rect_for_glyph. Use
      kCTFontOrientationDefault also for older versions.
      (mac_font_create_available_families): Rename from
      (mac_font_equal_in_postscript_name): Rename from
      mac_ctfont_equal_in_postscript_name.  All uses changed.
      (mac_font_create_line_with_string_and_font): Rename from
      mac_ctfont_create_line_with_string_and_font.  All uses changed.
      (mac_font_shape): Rename from mac_ctfont_shape.
      (mac_font_family_compare): Remove unused declaration.
    • Paul Eggert's avatar
      Fix minor text quoting in calc, calendar, vc · 5e63c842
      Paul Eggert authored
      * lisp/calc/calc-ext.el (calc-shift-Z-prefix-help):
      * lisp/calc/calc-help.el (calc-j-prefix-help):
      * lisp/calc/calc-misc.el (calc-help):
      * lisp/calc/calc.el (calc-algebraic-mode, calc-mode):
      Escape an apostrophe in a docstring.
      * lisp/calc/calc-forms.el (calc-hms-notation):
      * lisp/calc/calc-mode.el (calc-display-raw, calc-algebraic-mode):
      Escape an apostrophe in a diagnostic.
      * lisp/calc/calc-misc.el (calc-help):
      * lisp/calendar/diary-lib.el (diary-include-files):
      * lisp/calendar/todo-mode.el (todo-prefix, todo-item-mark):
      * lisp/vc/diff-mode.el (diff-delete-trailing-whitespace):
      * lisp/vc/ediff-diff.el (ediff-same-contents):
      * lisp/vc/ediff-merg.el (ediff-re-merge):
      * lisp/vc/ediff-ptch.el (ediff-patch-file-internal):
      * lisp/vc/ediff-util.el (ediff-test-save-region)
      * lisp/vc/ediff.el (ediff-merge-revisions)
      * lisp/vc/pcvs.el (cvs-mode-checkout, cvs-vc-command-advice):
      * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
      Respect text quoting style in doc string or diagnostic.
      * lisp/calc/calc-prog.el (calc-kbd-push, calc-kbd-pop):
      * lisp/vc/add-log.el (change-log-goto-source):
      Avoid double-formatting.
      * lisp/vc/ediff-init.el (format-message):
      New backward-compatibility alias.
    • Paul Eggert's avatar
      Fix minor text quoting problems in lisp top level · ff441d35
      Paul Eggert authored
      * lisp/apropos.el (apropos-describe-plist):
      * lisp/cus-theme.el (customize-themes):
      * lisp/dired.el (dired-log):
      * lisp/help-fns.el (describe-variable):
      * lisp/hexl.el (hexl-insert-multibyte-char):
      * lisp/info.el (Info-finder-find-node):
      * lisp/json.el (json-read-string):
      * lisp/novice.el (disabled-command-function)
      * lisp/startup.el (normal-mouse-startup-screen):
      * lisp/woman.el (WoMan-log, WoMan-warn):
      Respect text quoting style in doc string or diagnostic.
      * lisp/replace.el (replace-character-fold):
      * src/syntax.c (Fmodify_syntax_entry):
      Escape an apostrophe in a docstring.
      * lisp/tempo.el (tempo-define-template):
      Remove confusing apostrophe from docstring.
      * lisp/whitespace.el (whitespace-mark-x):
      Use directed quotes in docstring.
  4. 28 Aug, 2015 3 commits
  5. 27 Aug, 2015 6 commits
    • Paul Eggert's avatar
      Tweak startup screen quoting · b142c483
      Paul Eggert authored
      * lisp/startup.el (normal-splash-screen): Use standard
      "M-" abbrevation rather than a confusingly-different one.
      (normal-no-mouse-startup-screen): Follow ‘text-quoting-style’.
    • Paul Eggert's avatar
      Add test case for ‘format’ bug and refactor · 6dbe056b
      Paul Eggert authored
      * src/editfns.c (styled_format): Refactor internally, mostly by
      moving declarations closer to uses.  This should not affect behavior.
      * test/automated/textprop-tests.el (textprop-tests-format): New test.
    • Paul Eggert's avatar
      Fix ‘format’ bug with property offsets · f33c1641
      Paul Eggert authored
      * src/editfns.c (styled_format): Fix recently-introduced ‘format’
      bug in calculating string property offsets (Bug#21351).
    • Paul Eggert's avatar
      Use straight quotes in lib-src diagnostics · 2934c21f
      Paul Eggert authored
      These auxiliary programs can’t use Emacs’s text-quoting-style,
      and it’s too much trouble to redo that mechanism by hand.
      So just use straight quotes for now.
      * lib-src/ebrowse.c (main):
      * lib-src/emacsclient.c (decode_options, main):
      * lib-src/etags.c (Ada_help, default_C_help, Cplusplus_help)
      (Forth_help, HTML_help, Lisp_help, Makefile_help, Objc_help)
      (Perl_help, PHP_help, Python_help, Scheme_help, TeX_help, auto_help)
      (none_help, print_language_names, print_help, add_regex)
      * lib-src/make-docfile.c (write_c_args, scan_c_stream):
      Use straight quotes in diagnostics.
    • Paul Eggert's avatar
      ‘text-quoting-style’ fixes for admin · 862561f4
      Paul Eggert authored
      * admin/admin.el (cusver-scan, cusver-check):
      * admin/authors.el (authors-canonical-file-name):
      * admin/bzrmerge.el (bzrmerge-missing):
      Respect ‘text-quoting-style’ in diagnostics.
    • Paul Eggert's avatar
      Assume GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS · 60d1b187
      Paul Eggert authored
      This removes the need for GCPRO1 etc.  Suggested by Stefan Monnier in:
      * doc/lispref/internals.texi (Writing Emacs Primitives):
      * etc/NEWS:
      Document the change.
      * src/alloc.c (gcprolist, dump_zombies, MAX_ZOMBIES, zombies)
      (nzombies, ngcs, avg_zombies, max_live, max_zombies, avg_live)
      (Fgc_status, check_gcpros, relocatable_string_data_p, gc-precise):
      * src/bytecode.c (mark_byte_stack) [BYTE_MARK_STACK]:
      * src/eval.c (gcpro_level) [DEBUG_GCPRO]:
      * src/lisp.h (struct handler.gcpro, struct gcpro, GC_MARK_STACK)
      Remove.  All uses removed.  The code now assumes
      * src/bytecode.c (relocate_byte_stack):
      Rename from unmark_byte_stack, since it now only relocates.
      All callers changed.
      * src/frame.c (make_frame): Add an IF_LINT to pacify GCC 5.2
      with GCPROs removed.
      * src/systime.h: Use EMACS_LISP_H as the canary instead of GCPRO1.
      * test/automated/finalizer-tests.el (finalizer-basic)
      (finalizer-circular-reference, finalizer-cross-reference)
      * test/automated/generator-tests.el (cps-test-iter-close-finalizer):
      Remove tests, as they depend on gc-precise.
  6. 26 Aug, 2015 14 commits
    • NicolasPetton's avatar
      Improve seq-concatenate for new sequence types · 259a643d
      NicolasPetton authored
      Use the new `seq-into-sequence' in seqs passed to `seq-concatenate' to
      ensure that concatenation happens on sequences only.  This makes it
      possible to use `seq-concatenate' for new types of seqs.
      * lisp/emacs-lisp/seq.el (seq-into-sequence, seq-concatenate): New
      function used in `seq-concatenate'.
      * test/automated/seq-tests.el (test-seq-into-sequence): New unit test
      for seq-into-sequence.
    • Stephen Leake's avatar
      Add mode local overrides to xref-find-definitions · 64fbdc98
      Stephen Leake authored
      * lisp/cedet/mode-local.el (xref-mode-local--override-present,
      xref-mode-local-overload): New; add mode local overrides to
      * test/automated/elisp-mode-tests.el: Add mode local override tests.
      (xref-elisp-test-run): Handle indented defuns.
      (xref-elisp-generic-*): Improve doc strings.
      * lisp/progmodes/elisp-mode.el (elisp-xref-find-def-functions): New.
      (elisp--xref-find-definitions): Use it.
    • Stephen Leake's avatar
      Add mode local overrides to describe-function · 2e8750c7
      Stephen Leake authored
      * lisp/cedet/mode-local.el (describe-mode-local-overload): New; add mode
      local overrides to describe-function.
      * etc/NEWS: Document change.
    • Paul Eggert's avatar
      Prefer straight quoting in some etc text files · 1be208c2
      Paul Eggert authored
      These files are plain text and might be used by non-Emacs apps.
      They’re mostly ASCII, so just use straight quotes.
    • Paul Eggert's avatar
      Fix quoting in ‘message_with_string’ · 582222b5
      Paul Eggert authored
      * src/nsfont.m (nsfont_open): Use directed quotes in format; they
      should work now.
      * src/xdisp.c (message_to_stderr): New function, refactored from
      part of ‘message3_nolog’.
      (message3_nolog): Use it.
      (message_with_string): Use it.  Don’t mishandle NUL bytes when
      noninteractive.  Prefer AUTO_STRING when it’s most likely faster.
      Use ‘format-message’, not ‘format’, so that quotes are translated.
    • Eli Zaretskii's avatar
      Mention false positives of file-accessible-directory on w32 · 84a97872
      Eli Zaretskii authored
      * src/fileio.c (Ffile_accessible_directory_p): Doc fix.
    • Paul Eggert's avatar
      Treat error strings as help · 2731e821
      Paul Eggert authored
      * src/print.c (print_error_message): Translate quotes and command
      keys in errmsg so that users see, e.g., "Symbol’s value as
      variable is void: foo" when text-quoting-style is curved.
    • Glenn Morris's avatar
      ; Auto-commit of loaddefs files. · 5960d0ae
      Glenn Morris authored
    • Michael Albinus's avatar
    • Michael Albinus's avatar
    • Michael Albinus's avatar
    • Paul Eggert's avatar
      Top-level elisp files respect ‘text-quoting-style’ · 4786618f
      Paul Eggert authored
      In top-level elisp files, use format-message in diagnostic formats,
      so that they follow user preference as per ‘text-quoting-style’
      rather than being hard-coded to quote `like this'.
      * lisp/allout.el (allout-get-configvar-values):
      * lisp/apropos.el (apropos-symbols-internal):
      * lisp/dired-aux.el (dired-do-shell-command, dired-create-files)
      (dired-do-create-files-regexp, dired-create-files-non-directory):
      * lisp/dired-x.el (dired-do-run-mail):
      * lisp/dired.el (dired-log, dired-dnd-handle-local-file):
      * lisp/disp-table.el (standard-display-european):
      * lisp/find-dired.el (find-dired):
      * lisp/forms.el (forms-mode):
      * lisp/ido.el (ido-buffer-internal):
      * lisp/info.el (Info-index-next):
      * lisp/outline.el (outline-invent-heading):
      * lisp/printing.el (pr-ps-outfile-preprint, pr-i-ps-send):
      * lisp/proced.el (proced-log):
      * lisp/ps-print.el (ps-print-preprint, ps-get-size):
      * lisp/recentf.el (recentf-open-files, recentf-save-list):
      * lisp/savehist.el (savehist-save):
      * lisp/server.el (server-ensure-safe-dir):
      * lisp/ses.el (ses-rename-cell):
      * lisp/simple.el (list-processes--refresh):
      * lisp/startup.el (command-line):
      * lisp/strokes.el (strokes-unset-last-stroke)
      Use format-message so that quotes are restyled.
      * lisp/cus-edit.el (custom-raised-buttons, customize-browse):
      Don’t quote ‘raised’.
      * lisp/descr-text.el (describe-char):
      * lisp/dirtrack.el (dirtrack-debug-message):
      * lisp/hexl.el (hexl-insert-multibyte-char):
      Apply substitute-command-keys to help string.
      * lisp/wdired.el (wdired-do-renames, wdired-do-symlink-changes)
      Let dired-log do the formatting.
    • Paul Eggert's avatar
      Go back to grave quoting in Tramp · b12cfbfd
      Paul Eggert authored
      * lisp/net/tramp-adb.el:
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-compat.el:
      * lisp/net/tramp-gvfs.el:
      * lisp/net/tramp-gw.el:
      * lisp/net/tramp-sh.el:
      * lisp/net/tramp-smb.el:
      * lisp/net/tramp.el:
      Stick with grave quoting in diagnostics strings.  This is more
      portable to older Emacs, desirable for Tramp.
      * lisp/net/tramp-cache.el: Use ‘format-message’, not ‘format’,
      for diagnostic that needs requoting.
      * lisp/net/tramp-compat.el (format-message):
      Fall back on simple ‘format’, since that’s good enough now.
    • Paul Eggert's avatar
      Go back to grave quoting in Gnus · 27b2cff2
      Paul Eggert authored
      * lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
      * lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
      * lisp/gnus/gnus-int.el (gnus-start-news-server):
      * lisp/gnus/gnus-registry.el:
      * lisp/gnus/gnus-score.el (gnus-summary-increase-score):
      * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
      * lisp/gnus/gnus-topic.el (gnus-topic-rename):
      * lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
      * lisp/gnus/spam.el (spam-check-blackholes):
      Stick with grave quoting in diagnostics strings.  This is more
      portable to older Emacs, desirable for Gnus.