From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Pablo Mercader =?UTF-8?Q?Alc=C3=A1ntara?= Newsgroups: gmane.emacs.bugs Subject: bug#25641: 25.1; insert-char function inconsistency Date: Tue, 7 Feb 2017 09:04:01 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1486472717 24713 195.159.176.226 (7 Feb 2017 13:05:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2017 13:05:17 +0000 (UTC) To: 25641@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 07 14:05:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb5SJ-00069E-3j for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2017 14:05:11 +0100 Original-Received: from localhost ([::1]:53944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb5SO-0006aG-Md for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2017 08:05:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb5SB-0006WS-EC for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:05:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb5SA-00054p-1R for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:05:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cb5S9-00054l-VL for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:05:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cb5S9-0006jN-Nv for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pablo Mercader =?UTF-8?Q?Alc=C3=A1ntara?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Feb 2017 13:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25641 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148647266325822 (code B ref -1); Tue, 07 Feb 2017 13:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2017 13:04:23 +0000 Original-Received: from localhost ([127.0.0.1]:58393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb5RX-0006iQ-AX for submit@debbugs.gnu.org; Tue, 07 Feb 2017 08:04:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb5RV-0006iC-TV for submit@debbugs.gnu.org; Tue, 07 Feb 2017 08:04:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb5RK-0004ok-Ka for submit@debbugs.gnu.org; Tue, 07 Feb 2017 08:04:16 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56360) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cb5RK-0004og-HX for submit@debbugs.gnu.org; Tue, 07 Feb 2017 08:04:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb5RF-0006Kx-SM for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:04:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb5RE-0004nL-Hd for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:04:05 -0500 Original-Received: from mail-it0-x230.google.com ([2607:f8b0:4001:c0b::230]:37023) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cb5RE-0004mI-CX for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 08:04:04 -0500 Original-Received: by mail-it0-x230.google.com with SMTP id r185so78761089ita.0 for ; Tue, 07 Feb 2017 05:04:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=do2jFTsXUvaLjsNSs8ajYsNdOu+RIWoWvH4ANPVfEzQ=; b=SOfIDyJ5pH1BJpoM21tHI9tqc+o6owa41aCLr7wJHAI9j7pkS4b2lswwxoIFNemGML ZEBAuf7RE/msVbXaJrKE0ucRjJTgmJviHQG/MqvpLrCCfyjeJxaeWcQjrrDlICrEaZwh IlctNzkqhMg9I62ohsjMMbhXvgIhgNXdc4LZGOnli4Xj/XEvpjm/1rhDSh02Mb3+b9lC ZQ+ZVZqK5EnJ9Aq+n2NuoZ9baJZ4w1XK8k4KBqkTjNSx88fBSyfVpfVfmcIxWXIYf2F4 EwzFLwHr8tutHVtXobmqAOOXeUaF7XKH8BOBhNVAtiR+VFtJ21VVTZkaTRuNQ01ZEjkW ympQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=do2jFTsXUvaLjsNSs8ajYsNdOu+RIWoWvH4ANPVfEzQ=; b=cpUkN8rCMBWRVLSn8pOdBw+pfBG1HIDg5RMLuDq0DwEDW3Y+OPINC/Qmx6idit8CkB SHoMItQhiW2HA2mx0jHYijcVoNJoOdRWu6eO/E7knOabx07OqYZwnHivd1X16jWi/l4W qtnVIyVSK9ofPUGizKHYNK1Tyib9TiuL8T7GnSUW7w+gO+RG6+3c48garI0FR2g6IoBa zh1pDmJsV/eZLlzEshuL2hy1bedUe1keOdcj9eYVCt6yZ9ocl8dOWV/TW1lQrX4D8mbi q8a7ueOy5g7zLM2FoxYVehE2Ig76uT7IAFTjCtfcm5qBUTJLL3PHSZq2VfvOZAA238a8 xx9w== X-Gm-Message-State: AIkVDXLwDXdEhcaIP7IaEcHdovA5FW7GNfS0ngfKdpnoRuEtJeVFBQypyEKSHY8hixgaEuTDyuo3nWV6hIf0Ng== X-Received: by 10.36.62.133 with SMTP id s127mr11971481its.110.1486472641785; Tue, 07 Feb 2017 05:04:01 -0800 (PST) Original-Received: by 10.107.132.1 with HTTP; Tue, 7 Feb 2017 05:04:01 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129064 Archived-At: Im playing with a bat file triying to put a BELL sound when the file execution is complete and I have a file that has the character so I just have to copy it into the bat file. But I was curious about how could I get the char directly from emacs so I did a C-u C-x =3D and emacs showed me this: position: 7 of 8 (75%), column: 6 character: C-g (displayed as C-g) (codepoint 7, #o7, #x7) preferred charset: ascii (ASCII (ISO646 IRV)) code point in charset: 0x07 script: latin syntax: . which means: punctuation to input: type "C-x 8 RET 7" or "C-x 8 RET BELL" buffer code: #x07 file code: #x07 (encoded by coding system iso-latin-1-dos) display: no font available hardcoded face: escape-glyph Character code properties: customize what to show old-name: BELL general-category: Cc (Other, Control) There are text properties here: fontified t I thought "ooh! this is cool I can write this character using its name, BELL" so I created a new bat file "alarm2.bat" with just one line and tryed to write the character on that file using C-x 8 RET BELL as the previous help screen told me, but got a different character. When I do a C-u C-x =3D over that character I got this: position: 9 of 10 (80%), column: 9 character: =F0=9F=94=94 (displayed as =F0=9F=94=94) (codepoint = 128276, #o372424, #x1f514) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0x1F514 script: symbol syntax: w which means: word category: .:Base to input: type "C-x 8 RET 1f514" or "C-x 8 RET BELL" buffer code: #xF0 #x9F #x94 #x94 file code: not encodable by coding system iso-latin-1-dos display: no font available Character code properties: customize what to show name: BELL general-category: So (Symbol, Other) decomposition: (128276) ('=F0=9F=94=94') There are text properties here: fontified t Its a different character but it also states that I could write it using C-x 8 RET BELL. To me that is an inconsistency, because one of the commands that the help screen showed me was C-x 8 RET BELL and that clearly doesn't work. In GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-11-15 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 10.0.10240 Configured using: 'configure --without-dbus --without-compress-install 'CFLAGS=3D-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Bat Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t yas-global-mode: t yas-minor-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Quit [6 times] Char: =F0=9F=94=94 (128276, #o372424, #x1f514) point=3D9 of 10 (80%) column= =3D9 You can run the command =E2=80=98rename-buffer=E2=80=99 with M-x ren-b RET Type "q" in help window to restore previous buffer You can run the command =E2=80=98describe-function=E2=80=99 with C-h f Type "q" in help window to restore previous buffer Making completion list... Quit [2 times] Making completion list... Load-path shadows: c:/Users/pmercader/AppData/Roaming/.emacs.d/elpa/cygwin-mount-20131111.1346= /cygwin-mount hides d:/share/emacs/share/emacs/site-lisp/cygwin/cygwin-mount Features: (shadow sort mail-extr emacsbug sendmail iso-transl pp wid-edit descr-text tutorial vc add-log log-view pcvs-util vc-dispatcher vc-svn frameset edebug apropos jka-compr ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff message rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader calc-help calc-aent calc-misc calccomp calc-sel info calc-stuff calc-yank calc-store eieio-opt speedbar sb-image ezimage dframe calc-alg calc-ext calc-menu calc calc-loaddefs calc-macs bat-mode vc-git diff-mode easy-mmode dabbrev files-x omnisharp omnisharp-settings omnisharp-auto-complete-actions omnisharp-server-actions omnisharp-utils s flycheck find-func rx subr-x etags xref project popup dash flymake csharp-mode imenu compile cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs macros nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok sql view python tramp-sh tramp tramp-compat auth-source eieio eieio-core cl-macs gnus-util mm-util help-fns mail-prsvr password-cache tramp-loaddefs trampver ucs-normalize shell pcomplete format-spec advice json map dired-aux dired thingatpt misearch multi-isearch rect edmacro kmacro setup-cygwin cygwin-mount ange-ftp comint ansi-color ring cl-seq yasnippet misterioso-theme finder-inf package epg-config windmove ido seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 522627 96926) (symbols 56 52480 0) (miscs 48 342 935) (strings 32 141122 2904) (string-bytes 1 3803911) (vectors 16 68626) (vector-slots 8 1966421 74426) (floats 8 1055 909) (intervals 56 4040 2404) (buffers 976 52))