From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 26 11:46:49 2015 Received: (at submit) by debbugs.gnu.org; 26 Jan 2015 16:46:49 +0000 Received: from localhost ([127.0.0.1]:57220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFmoK-0008HE-Hf for submit@debbugs.gnu.org; Mon, 26 Jan 2015 11:46:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57941) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFl5g-0005aM-3m for submit@debbugs.gnu.org; Mon, 26 Jan 2015 09:56:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFl5P-0006Lt-3d for submit@debbugs.gnu.org; Mon, 26 Jan 2015 09:56:30 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFl5O-0006Lp-Vx for submit@debbugs.gnu.org; Mon, 26 Jan 2015 09:56:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFl5I-0001YI-ED for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2015 09:56:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFl59-0006J9-A5 for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2015 09:56:12 -0500 Received: from mail.openmailbox.org ([62.4.1.34]:52012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFl59-0006IF-1Y for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2015 09:56:03 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 49A152E00C6 for ; Mon, 26 Jan 2015 15:55:54 +0100 (CET) X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HAdySHYNOtiI for ; Mon, 26 Jan 2015 15:55:52 +0100 (CET) From: Mark Karpov To: bug-gnu-emacs@gnu.org Subject: 24.4; A possible typo in description of 'delete-selection-mode' variable Date: Mon, 26 Jan 2015 20:52:58 +0600 Message-ID: <87ppa1mw51.fsf@opmbx.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 26 Jan 2015 11:46:47 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) >From description of 'delete-selection-mode': With a prefix argument ARG, enable Delete Selection mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. In practice, if ARG is omitted or nil, the mode is disabled, otherwise it's enabled. In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.7) of 2015-01-18 on bisson Windowing system distributor `The X.Org Foundation', version 11.0.11603000 Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: magit-auto-revert-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t fci-mode: t rainbow-delimiters-mode: t flycheck-mode: t flyspell-mode: t which-function-mode: t show-paren-mode: t minibuffer-electric-default-mode: t electric-pair-mode: t display-time-mode: t delete-selection-mode: t smooth-scroll-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t auto-fill-mode: 1 Recent input: ( d e f u n SPC c o m p i l e - c SPC ( C-f " S t r a t r t a r t . C-f ( i n t e r a c t i v e C-f ( c o m p i l e C-c r M-v M-v M-v M-v M-v C-h v r e q u i r e - v f i n a l - q r e q u i r e - f i n a l - n e w l i n e SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC t SPC SPC SPC SPC SPC SPC SPC ; SPC a l w a y s SPC r e q u i t e SPC i t C-x C-s C-h f d e l e t e - d s e l e c t i o n - m o d e C-x o C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-SPC C-e d d f C-/ C-/ C-SPC C-e d f C-/ C-/ C-n C-n C-n C-n C-n C-n C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b M-x r e p o r t - m e e m Recent messages: Type C-x 1 to delete the help window. Saving file /home/mark/.emacs... Wrote /home/mark/.emacs Type C-x 1 to delete the help window. Mark set Undo! [2 times] Mark activated Undo! [2 times] Making completion list... Load-path shadows: /home/mark/.emacs.d/elpa/prolog-1.22/prolog hides /usr/share/emacs/24.4/lisp/progmodes/prolog Features: (shadow sort mail-extr emacsbug sendmail debug url-util url-parse url-vars eieio-opt speedbar sb-image ezimage dframe calc-alg calc-ext calc-menu calc calc-loaddefs calc-macs dabbrev pcase ace-window ace-jump-mode magit-key-mode magit view tramp tramp-compat auth-source eieio eieio-core gnus-util password-cache tramp-loaddefs trampver shell pcomplete grep epa epg diff-mode autorevert filenotify git-rebase-mode git-commit-mode log-edit message idna format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log vc-git dired disp-table fill-column-indicator rainbow-delimiters flycheck find-func help-mode rx subr-x flyspell ispell solarized-dark-theme solarized dash which-func imenu paren minibuf-eldef elec-pair time delsel slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations advice bridge slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc eldoc slime-repl elp slime-parse slime byte-opt bytecomp byte-compile cconv derived help-fns gud apropos compile etags arc-mode archive-mode noutline outline easy-mmode pp comint ansi-color ring hyperspec cl-macs thingatpt browse-url cl gv slime-autoloads smooth-scroll server edmacro kmacro cl-loaddefs cl-lib info easymenu package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 366132 33341) (symbols 48 39607 0) (miscs 40 1059 1135) (strings 32 73893 5808) (string-bytes 1 2027330) (vectors 16 28779) (vector-slots 8 612061 12721) (floats 8 198 822) (intervals 56 1941 61) (buffers 960 24) (heap 1024 42581 2004)) From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 26 14:38:40 2015 Received: (at 19693) by debbugs.gnu.org; 26 Jan 2015 19:38:41 +0000 Received: from localhost ([127.0.0.1]:57329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFpUe-0004mV-6A for submit@debbugs.gnu.org; Mon, 26 Jan 2015 14:38:40 -0500 Received: from mail.openmailbox.org ([62.4.1.34]:39464) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFpUX-0004mJ-T4 for 19693@debbugs.gnu.org; Mon, 26 Jan 2015 14:38:34 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id C550A2E0076 for <19693@debbugs.gnu.org>; Mon, 26 Jan 2015 20:38:32 +0100 (CET) X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ykwLhFciNDMh for <19693@debbugs.gnu.org>; Mon, 26 Jan 2015 20:38:31 +0100 (CET) From: Mark Karpov To: 19693@debbugs.gnu.org Subject: Further information Date: Tue, 27 Jan 2015 01:35:37 +0600 Message-ID: <874mrd8hdi.fsf@opmbx.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19693 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) I'm sorry if it's not really a bug. After some testing I understood that functions (something-mode ARG) when called from Lisp, enable corresponding mode if ARG is omitted, if it's NIL, and even if it's not NIL (some people use (something-mode t) to enable the such a actually). So, it's quite strange: almost any argument or its absence enables the mode, but to disable it one must use negative number. It would be more logical if T would enable the mode and NIL would disable it. Best, -- Mark From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 26 18:14:47 2015 Received: (at 19693) by debbugs.gnu.org; 26 Jan 2015 23:14:47 +0000 Received: from localhost ([127.0.0.1]:57389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFsrm-0001hE-QB for submit@debbugs.gnu.org; Mon, 26 Jan 2015 18:14:47 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:37163) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFsrl-0001h7-0n for 19693@debbugs.gnu.org; Mon, 26 Jan 2015 18:14:45 -0500 Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t0QNEg5E013931; Mon, 26 Jan 2015 18:14:43 -0500 Received: by ceviche.home (Postfix, from userid 20848) id B028366135; Mon, 26 Jan 2015 18:14:42 -0500 (EST) From: Stefan Monnier To: Mark Karpov Subject: Re: bug#19693: Further information Message-ID: References: <87ppa1mw51.fsf@opmbx.org> <874mrd8hdi.fsf@opmbx.org> Date: Mon, 26 Jan 2015 18:14:42 -0500 In-Reply-To: <874mrd8hdi.fsf@opmbx.org> (Mark Karpov's message of "Tue, 27 Jan 2015 01:35:37 +0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5198=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5198> : inlines <1959> : streams <1379958> : uri <1843938> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 19693 Cc: 19693@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > I'm sorry if it's not really a bug. After some testing I understood that > functions (something-mode ARG) when called from Lisp, enable > corresponding mode if ARG is omitted, if it's NIL, and even if it's not > NIL (some people use (something-mode t) to enable the such a > actually). So, it's quite strange: almost any argument or its absence > enables the mode, but to disable it one must use negative number. It > would be more logical if T would enable the mode and NIL would disable > it. This is the same for all minor-modes. The reason is partly historical and partly pragmatic. The situation is basically: - there are 3 different cases: enable, disable, toggle (so just using nil and t doesn't cut it). - when called from Elisp the most common case (by far) is `enable' and in many cases it's very handy to be able to skip the argument (typically (add-hook 'foo-mode-hook #'bar-mode) instead of (add-hook 'foo-mode-hook (lambda () (bar-mode )))). This means that (optional) nil has to mean "enable". The rest doesn't matter much. I chose `toggle' for the toggling case, and the "negative/positive" was chosen before I got involved in Emacs. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 10 20:29:04 2015 Received: (at control) by debbugs.gnu.org; 11 Feb 2015 01:29:04 +0000 Received: from localhost ([127.0.0.1]:39722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLM6x-0006JI-1r for submit@debbugs.gnu.org; Tue, 10 Feb 2015 20:29:03 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:41218 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLM6u-0006Is-3M for control@debbugs.gnu.org; Tue, 10 Feb 2015 20:29:00 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YLM6t-0005f4-7V for control@debbugs.gnu.org; Tue, 10 Feb 2015 20:28:59 -0500 Date: Tue, 10 Feb 2015 20:28:59 -0500 Message-Id: Subject: control message for bug 19693 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) tag 19693 notabug close 19693 From unknown Fri Jun 20 07:18:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 11 Mar 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator