From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maske Newsgroups: gmane.emacs.help Subject: Re: How to modify a function of a package Date: Sun, 29 Oct 2023 01:55:19 +0200 (GMT+02:00) Message-ID: <565bacea-0119-43c7-9a60-4569c8ea7b4a@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12395"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Nikolay Kudryavtsev Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 29 01:56:25 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qwtAH-00037H-59 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 29 Oct 2023 01:56:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwt9V-0007IL-0U; Sat, 28 Oct 2023 19:55:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwt9N-0007Hw-TM for help-gnu-emacs@gnu.org; Sat, 28 Oct 2023 19:55:31 -0400 Original-Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qwt9J-00065M-VV for help-gnu-emacs@gnu.org; Sat, 28 Oct 2023 19:55:28 -0400 Original-Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9ae2cc4d17eso503298766b.1 for ; Sat, 28 Oct 2023 16:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698537322; x=1699142122; darn=gnu.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=gP8SZu19WBqzjPd1ob6Z5y8sWN3Pw/qxxtE1Ghmq/mU=; b=XFfXADAarZIWY7hZt/MA0gR5LE5wv3AVuJl3WbMiWGDjIqsjZQaDPltDaEMHk1eB9X p/vB4WjyMPdqTbjw2Fa4l+IsFceaYQBiigW6SmqwNCHIhuqPt5ersv3JL5nhBoy0dAp3 d65bPOVg0UhVyo6wah6VC/NCu3tcD7/9maBtGqilqZYJn9pEPw2G9jwAp2KzNgVCl+Xj ibDwTEgTIu1odmvSTl+VGxtU4a2SyJ3MK8zqvH9nU8501Oxz4XqyqNeOd1tnVMFYm2+h tjC6TARJnlwRZMVzOSpx3lhDB+Qj0yGrzAYGvBBJOSly/NbxfdpP8zNd1qm0cuiTVcMo 6jqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698537322; x=1699142122; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=gP8SZu19WBqzjPd1ob6Z5y8sWN3Pw/qxxtE1Ghmq/mU=; b=hc8S+dfwttZP8zAchPMSSRUS4C/mKm4yRIhbXqhUiWroak5gGATQvOd/EVc1EvrPqn nrCkCV1HYtMrc5xrkMlDlJW0KF7ALVc/4PQdpzWghylIVF5Tu+A8gQyczhORPb251guS 6RFF1zxISKD92VteaAYaC/7D3Sj0OnVLIF848Nx2TE5PoYXecRk23I0LWBfecU0L2hgr ZbAkRv6gv+nwEH210uj11iPDffQ0VamyPq5DVSXRD5I6KwTuM8lTA8BENkrzpf+BCsmu 5tmCI9FBZzJhXOgRNl8pCaDSOamLywmeQWDrm2vPPUCxcvpNESQwc8eP2h5ljIh9dBBW jRgw== X-Gm-Message-State: AOJu0YyR3KT+e5g5B72dy4lNI4a1LXNRCNkaCdxp3FtCOHCWdtpAY/N6 mTFfsRGMfHDh59pnlRao/pc= X-Google-Smtp-Source: AGHT+IGEgArrfX5WvR1ludM/Z8JsCrA/uQsFlqh9eWqbTZJHieLnJVcirtH47sep5SHHFTWNWmYZEg== X-Received: by 2002:a17:907:786:b0:9c3:70d5:dc57 with SMTP id xd6-20020a170907078600b009c370d5dc57mr6056850ejb.40.1698537321496; Sat, 28 Oct 2023 16:55:21 -0700 (PDT) Original-Received: from [127.0.0.1] (din-139-215-231-77.ipcom.comunitel.net. [77.231.215.139]) by smtp.gmail.com with ESMTPSA id z6-20020a1709060f0600b009944e955e19sm3446867eji.30.2023.10.28.16.55.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 28 Oct 2023 16:55:20 -0700 (PDT) In-Reply-To: X-Correlation-ID: <565bacea-0119-43c7-9a60-4569c8ea7b4a@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=maske1foro@gmail.com; helo=mail-ej1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145409 Archived-At: I will try those solution as soon as I get some time (after updating the package I have problems again). Thanks to all of you for your lessons :-) Oct 28, 2023 15:19:04 Nikolay Kudryavtsev : > Since everyone gave you only the more advanced answers, here's also the simple ones: > > 1. You do (require 'package) before redefining a function in it. Won't always work, a package may do something really sneaky with it's functions, but should suffice for most cases. > > 2. If you use use-package, put your function redefinition into the :config form and that's it.